I would like to know where can I find the code which eclipse uses to display the forms in the plugin.xml file. In particular I am looking for the form layout used in the extension tab in the plugin.xml
You can import the eclipse plugins into your workspace by using import -> Plugins and Fragments from the package explorer. Then use the following options:
Select from all plug-ins and fragments found at the specified location
import from the target platform with source folders (last option)
Import the org.eclipse.pde.ui plugin
The code you seek is in org.eclipse.pde.internal.ui.editor.plugin
More specifically, the ExtensionPointsPage class
Unfortunately, Eclipse's plugin search doesn't work for referenced plugins. To do these searches I created a workspace that contains all the plugins from my eclipse install as source folders. I just open the workspace and perform my plugin search there. Just open the search dialog and choose plugin.
Related
I creat an eclipse plugin that I finished.
I would like to "share" my plugin with some people without just send them the whole code and they have to "create" the plugin by copy paste the code.
How can I make an installation file/ other way to make this plugin installable for others.
Thanks
One option is to create a Feature project. (An Eclipse Feature is essentially a feature.xml file and build.properties file that specify a collection of one or more Eclipse plugins that will be included when the Feature is installed into an Eclipse application).
Feature projects allow you to choose which plugins to include in them when you create them using the New Feature Project Wizard.
Once your project is created, you will have the feature.xml file opened for you in its editor. There you will be able to fill in more meta data if desired, and you will be given links for Exporting and Publishing the feature for others to consume.
Follow the steps under "Exporting" in the Overview tab of the feature.xml editor and choose to deploy using the Export Wizard. I suggest that you choose to deploy to an Archive file.
Then you can send that resulting Archive file (zip file) to your people. Then have those people open their Eclipse instance and go to "Help -> Install New Software". Then choose "Add" to add an update site. Then choose "Archive" which will allow them to navigate to the zip file that you have sent them.
Once they select that, they will be on their way to installing your Feature which contains your plugin into their Eclispe installation.
You can send them the plugin jar file, and they can put it in their
dropins folder.
Eclipse will not let you install using an archive unless the you have an update site.
I have a number of projects in my Eclipse workspace, some of them plain ol' Java projects, some of them Java web applications, some of them Flash Builder Flex projects.
They all live in a directory hierarchy. How can I open all of them in IntelliJ IDEA to be able to migrate from Eclipse to IDEA? The projects reference each other.
You can create an IntellIJ IDEA Project from source using the Import Project in the main menu.
Select the eclipse .project file or .classpath then check Link created IntelliJ IDEA modules to Eclipse project files.
The official docs, here:
To import an existing Eclipse projects to IntelliJ IDEA:
Open the New
Project Wizard. Having selected the option Import project from
external model, click Next.
On the Import page of the New Project
Wizard, select Eclipse. Optionally, check the option Import into
current project. Click Next.
On the next page of the wizard, specify
the directory, that contains the desired Eclipse workspace. In the
section IntelliJ IDEA project and module file location, specify
whether you want to create IntelliJ IDEA module files in the same
directory where the Eclipse projects reside, or in a dedicated
directory of your choice.
Check the option Link created IntelliJ IDEA
modules to Eclipse project files to automatically synchronize the
Eclipse projects and IntelliJ IDEA modules.
Specify whether you want test sources to be imported.
Click Next. IntelliJ IDEA scans the specified workspace for projects.
On the next page of the wizard, select the Eclipse projects you want
to import. So doing, each Eclipse project is converted to a separate
IntelliJ IDEA module. Click Next. Specify the name for the new
IntelliJ IDEA project, and the location of the project files.
Select also the format in which the project will be stored. Click Finish.
If you select "Keep project and modules in" you could separate eclipse project and IntelliJ IDEA project files
I never did something like this, but after reading docs and playing a bit the options it should be the best way.
I have an Eclipse RCP Project.
I am using Eclipse source classes, for that I am have a target platform with Eclipse's update site.
The plugins are imported from the target site, but without the Javadoc.
Quesion:
What is the location of the Eclipse's Javadoc for Eclipse RCP classes?
Add the Javadoc for a jar
It is also possible to add Javadoc to a library which you use.
Download the Javadoc of the jar and put it somewhere in your filesystem.
Open the Java Build Path page of a project via Right click on a project → Properties → Java Build Path. On the Libraries tab expand the library's node, select the Javadoc location attribute and press the Edit button.
Enter the location to the file which contains the Javadoc.
sourcepath="D:/eclipse3.3.2/plugins/org.eclipse.rcp.source_3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc/src/org.eclipse.osgi_3.3.2.R33x_v20080105/src.zip"
just try to adapte this to your case.
There is a checkbox to import the sources, inside of teh target platform's update-site dialog.
I've followed this tutorial (Step 2) to a tee on how to import the eclipse source code so that I can explore the various packages in order to assimilate some certain aspects of the code. I can import the plugin, but I can't see any source files, only binary class files. Does anyone know how I can download and view the eclipse source code? It does not seem straightforward at all.
Open Eclipse
Open menu 'Help' -> 'Install new software'
Select 'The Eclipse Project Updates'
Select 'Eclipse SDK' and install/restart
Open menu 'Window' -> 'Show View' -> 'Plug-ins'
You will find a list of all the plug-ins. Right-click on one, select 'Import as source project' and the source files will appear in a new project.
Note this works on Helios, it may be slightly different on other versions
The source code was not packaged with the version of eclipse that you were using, And Garrett Hall's suggestion was to download "Eclipse SDK Feature" from the "Eclipse Project Updates" site. "Eclipse SDK Feature" is nothing but source code with minimal eclipse. So the source would get downloaded and get installed and after a restart and an import of the plugin project, the plugin source code can be seen.
This is not universal- as in ,just downloading the Eclipse SDK feature would not be sufficient to see source code of any plugin(which did not include the sources).
If you want to understand the source code better, then I would suggest that you fetch it from SCM into your workspace. You can easily do that from the "Plugins" view: find the plugin you're interested in right and try right-click, "Import As" > "Project from Repository...". It should automatically clone the repository, checkout the right tag and import the source of the plugin.
I want to run Eclipse Java Development Tools form source code, but I'm stuck after checking out codes from eclipse repositories.
I've checked out all plugins from org.eclipse.jdt and imported them into my workspace, but after this I'm stuck.
There is lot of errors so obviously there are dependencides missing, but I don't know what else is needed to import/install in order to make this work.
I've read tutorial by Lars Vogella about working with Eclipse source codes, but it only covers examination of codes.
http://www.vogella.de/articles/EclipseCodeAccess/article.html
The Eclipse Classic Edition has the source-code of JDT and PDE integrated. After downloading and starting Eclipse Classic you can open the View "Plug-ins", select the JDT Plugins and select "Import as..." -> "Source Project" via Context-Menu
Following up our discussion, you should make sure that the versions of the plug-ins you check out from the source repository are consistent with those installed on your Eclipse. You can check out the source code of your installed plug-ins by going to the plug-ins view, right-click on the JDT plug-ins and choose Import As -> Project from a Repository... and select Import specific versions below.
A simple way is to
- File > Import
- Plug-ins and fragments
- On the next screen under 'Import as' select 'Projects from repository'
- On next screen, use filter as 'org.eclipse.jdt' and import all the matching plugins.