How to edit an eclipse plugin? - java

An eclipse plugin called JDTCommentsV2_1.0.9 does the following in eclipse:
I'm trying to add/edit some comments inside. e.g. add Run TestComment or just change one of the comments' name.
I have the .jar file and here's how it looks inside:
Question is which files should i edit and how.
Thank you
edit:
After following #greg449 and #Robin Green's instructions, I exported the jar file to eclipse, and edited the plugins.xml file. But if i export the files now as a jar, it doesn't work (nothing is changed in the menu). Finally i tried what #Robin Green said (Run -> Run As -> eclipse application) but there is no eclipse application under Run As. I got only Java Applet and Java Application. I'm wondering why. Might it be because i'm using ADT?
edit2:
I downloaded another version of eclipse (not ADT) and here i do have the Run As eclipse application bar". Can't i add it to ADT ?
edit3:
The picked answer works for eclipse JDT and not eclipse ADT.

It looks like you have a jar containing an existing Eclipse plugin so in your Eclipse you do File > Import and choose General > Existing Projects into Workspace and select the jar as the source.
Once you have the plugin project installed in your workspace you are going to have to work out how the plugin works by looking at the source and the plugin.xml.
Once you have modified the plugin use Export > Plug-in Development > Deployable plug-ins and fragments to build a new plugin jar.

Generally speaking you check out the source code from its source control repository or download it as an archive file from its website and then import it into Eclipse, same as any other project.

Related

Import source project in eclipse

I need to import a source Project in eclipse. The project is made by many folder like Classes (that contain .class files), src(that contain .java files) and many others. The source project and the instructions on how to set up eclipse are reported at this link. I tried to follow them but I haven't got anything. I think this is a simple thing but I'm new to eclipse.
My eclipse actual version is eclipse java neon 2.
My OS is ubuntu.
You could choose to create a new Project from the File Options and then select Project from existing sources which choosing the source directory.
Second approach could be to just use File > import Project wizard.

Struggling to install/add JUnit plugin in Netbeans IDE 8.0.2

I am new to Netbeans and I am trying to install JUnit in the IDE. I have searched multiple places and can not find a clear answer. I am running Windows8 with the latest updates and Netbeans 8.0.2. I have downloaded the jar file for JUnit opened Tools => Plugins then Downloaded tab. I select the jar file but nothing happens. I have also tried to run the jar file from commandline and double clicked it and nothing happens. I am looking to expand my skills sets by practicing using JUnit so any help would be appreciated.
thank you.
It is installed by default.
To see that it is installed goto Tools -> Plugins -> Installed and search for JUnit. If it is not there, check Tools -> Plugins -> Available Plugins before trying your own download.
To use select any java file in the projects directory, right-click Tools -> Create/Update Tests. This will create a stub test file under Test Packages under your Project in the projects tab.
Select the project and right-click for Test to run all the tests or select any file and right-click for the Test File option.
I have not used Netbeans for many years now. However, a quick search shows that during the installation process, there is an option of installing JUnit along with Netbeans. The default option(checked) is Install JUnit.
If by any chance, the second option(Do not install JUnit) got checked, you may want to re-install Netbeans again.
For some reason I am still using the old 8.0.2 version of Netbeans, and I found out that the install script apparently installs the junit plugin, but not the junit libs. Downloading the following files and adding them as test libs helped:
junit-4.13.jar
hamcrest-core-1.3.jar
At the time of this writing, they could be found here: https://github.com/junit-team/junit4/wiki/Download-and-Install
I had the same issue and this is how I solved it,
First download the jar file for Junit from this link
Junit test jar
Then follow along as shown in the images
Right click on the Library section on your particular project
Click on the create button and name Junit(on your preference)->Ok
Then select the Library you created and then select Add Jar/folder
Then select the .jar file you downloaded before and select Add jar folder
Now you have setup the Junit library on netbeans

How to install SWT for eclipse Kepler

I recently downloaded eclipse Kepler to learn to use SWT, I also downloaded the SWT zip folder.
The instructions on eclipse web site states that I should import the zip folder to Existing Projects into Workspace. I have done this, but no project shows on the Projects form field, I have been googling since morning to get info on how to install SWT on Eclipse Kepler but I have not found any help.
Please I need help on this, as I am faced with a project that needs rich look and feel. All replies would be greatly appreciated. Thanks to all.
I got it, Ignorance was the case, cos I have never done any SWT before. so this reply is for all those who are as Ignorant as I was.
The jar file representing the SWT library is found in the plugin folder, of the eclipse installation, to add the jar file to a project you would have to follow these steps:
Right Click on the project Name
Select Properties
Choose the Java Build Path from the dialog that appears
select Libraries > click on the Add External JARs...
Select the SWT jar file from the plugins folder in the eclipse folder represented by org.eclipse.swt.windowing_system>_.jar
and click on OK to exit the dialog`,
then you are ready to play

Plug-In not taking affect in Eclipse

I have created a plugin project in eclipse to create a new category and view. I run the MANIFEST.MF file as an eclipse application which opens a new eclipse window and I can see my plugin take affect. However, I want the plugin to be part of my standard eclipse installation.
For this I have exported the project to a jar, put the jar in the plugins folder and restarted eclipse. But I cannot see the changes take affect. I have also tried running eclipse from the command prompt with -clean option to force eclipse to search for new plugins. I have also tried putting the jar file in the dropins folder and restarting but nothing is working.
Any idea on what I might be missing ? I know the other option is to create feature but I wanted to understand what is wrong or missing in my approach.
Regards,
Dev
Try starting Eclipse with OSGI console (eclipse -console) and see if it gives any errors or warnings.
See this answer on SO.

How to import existing files into IntelliJ 10 IDE?

I have used Eclipse before. I changed to IntelliJ. Now I am wondering how to import existing files into IntelliJ 10 IDE. In Eclipse I was used to just drag the directory into the src folder, but I cannot do it here.
IDEA doesn't have such feature, you either set up a project on top of the existing sources or you copy files to the existing project externally, using Finder or your favorite file manager.
Actually you can tell IDEA to open a project and when you get prompted with the file explorer you select the eclipse project file. IDEA will then create it's own specific project files and setup the classpath for you. It's pretty nifty.

Categories