I am new to eclipse plugin development. I want to develop a plugin which will generate XML files from the classes present in the workspace. It will have 2-3 UI forms which will take information from user while generating XMLs.
From what I have read till now, I think there are two ways by which we can develop plugins
SWT
RPC
I want to know which will be appropriate way to go for me ?
Both, they aren't mutually exclusive. SWT is the widget toolkit used in Eclipse, and RCP ("Rich Client Platform") is an application platform based on SWT that is also the foundation of the Eclipse IDE.
I'd suggest that you start with a project template. Get the latest "Eclipse for RCP and RAP developers" package from the Eclipse download site. Create a new plug-in project (File > New > Plug-in Project), check "This plug-in will make contributions to the UI" on the second page of the wizard, and on the last page, select one of the templates.
You should also have a look at the answers to How to write a plugin for Eclipse? to get started.
Please note that, while this approach still works with Eclipse 4, there are newer APIs to use if you target Eclipse 4 IDEs only. For documentation of this approach, see Eclipse 4 RCP (aka E4) documentation.
Related
I want to start using AngularJs and Java Spring for development purpose.I am using Eclipse as IDE . I want to configure my Eclipse to have these frameworks working seamlessly.
I know I may be asking too much,but trust me I have done much research on my part and you guys are my last resort.Any help would be much appreciated.
You'd first wanna make sure you have the JSDT installed.
Next thing is to install some dedicated tools for the job, so check out AngularJS Eclipse Tools. The AngularJS Eclipse Templates might be of help, too, and here's a visual guide written for it to get you started.
Also see the AngularJS Eclipse getting started page.
Since this answer had been posted, the AngularJS Eclipse plugin was released, as other answers stated. You might wanna check it out first.
Install JavaScript Development Tools (JSDT) and AngularJS Eclipse plug-in in eclipse from Eclipse Marketplace or Update site angularjs-eclipse-0.5.0,
Right Click on your project --> Configure --> Convert to Angularjs Project (as shown below)
Now you can see the Angularjs tags available as shown below.
.
Make sure the project is extracted on your hard disk.
In Eclipse go to the menu: File->New->Project.
Select "General->Project" and click on the next button.
Enter the project name in the "Project name:" field
Disable "Use default location" Click on the "Browse ..." button and select the folder that contains the project (the one from step 1)
Click on the "Finish" button
Right-click with the mouse on you're new project and click "Configure->Convert to AngularJS Project.."
Enable you're project goodies and click on the "OK" button.
Netbeans 8.0 (beta at the time of this post) has Angular support as well as HTML5 support.
Check out this Oracle article: https://blogs.oracle.com/geertjan/entry/integrated_angularjs_development
Since these previous answers above, there is now a release of an Eclipse Plugin to assist with development using AngularJS:
https://marketplace.eclipse.org/content/angularjs-eclipse
https://github.com/angelozerr/angularjs-eclipse/wiki/Installation---Update-Site (take a look around the other Wiki pages for information on features)
The release at the time of the answer is 0.1.0.
Please also checkout JSDT (http://www.eclipse.org/webtools/jsdt/) and also Eclipse VJET (http://eclipse.org/vjet/). The VJET project appears to be an attempt to provide better feature sets to the editor without being encumbered by the JSDT project (open source politics at play I guess).
Download angular js from this link and add as new software in eclipse
http://oss.opensagres.fr/angularjs-eclipse/0.6.0/
Configuration worked with Eclipse Mars 4.5 version.
1) Install Eclipse Mars 4.5 from
https://eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/mars2
This comes with Tern and embedded Node.js server
2) Install AngularJS Eclipse plugin from Eclipse Marketplace
3) Configure node.js server to the embedded nodejs server within Eclipse (found in the eclipse plugins folder) at Windows-> Preferences -> JavaScript -> Tern -> Server -> node.js. No extra configurations are required.
4) Test configuration in a html or javascript file.
https://github.com/angelozerr/angularjs-eclipse
With current Angular 4 and 5 versions, there is an IDE for that.
Go to eclipse market place any search for 'Angular'. You will see the IDE and install it.
After that restart eclipse and follow the welcome messages to choose preferences.
How to start using eclipse with angular projects?
Considering you already have angular project and you want to import it into eclipse.
go to file > import > choose Angular Project
and It would be better to have your projects in a separate working set so that you will not confuse it with other kind of (like java)projects.
With Angular IDE You will have a terminal window too.
To open this type terminal in eclipse search box(quick access) on the top right corner.
Hi Guys if u are using angular plugin in eclipse that time is plugin is limited periods after that if u want to used this plugin then u pay it so i suggest to you used webstrome and visual code ide that are very easy and comfort to used so take care if u start and developed a angular app using eclipse
I want to create an Eclipse RCP from our collection of already existing Eclipse plugins.
We have the pecularity that in our RCP we want the user to be able to open ("import") Eclipse projects (we distribute some of our features in bundles which come in the form of Eclipse projects. These should be registered in the workspace because a model server scans for the opened projects and loads them). Also, when I open files via File->open an exception is thrown from our internal editors: File opening intentionally only is possible if you load an imported resource.
For the moment, I have gotten the RCP to work by depending on org.eclipse.core.resources and org.eclipse.ui.navigator.resources. Thereby, I can import complete Eclipse projects. However, I am unsure[1] this is the correct/"intented" way of doing it (e.g. the navigator view is lacking icons per default) should I rather use the CNF?
The main thing is, we have to support loading/importing Eclipse projects in our RCP. Your answer is even helpful if you know other RCPs which allow to import Eclipse projects.
Regards
SuperUser
[1] http://wiki.eclipse.org/RCP_FAQ#Is_the_resources_plug-in_.28org.eclipse.core.resources.29_considered_part_of_the_Rich_Client_Platform.3F
If you are using org.eclipse.ui.navigator.resources then you are using the CNF (it's org.eclipse.ui.navigator).
The link you have is pretty outdated information, using the Eclipse Resources support in an RCP application will work fine (our product does it). And then if you want to package the application to work either as RCP or in an IDE environment you are one step closer. Also, despite what the link you provided says, don't be afraid to use stuff in org.eclipse.ui.ide if you need them. All you really need to be concerned about is to make sure you are only using classes that are actual Eclipse API, if you do that, then everything will work on future Eclipse versions. Anything that's public is Eclipse API unless it's marked in the Javadoc that it's not intended to be used by clients.
You should not be using the Resource Navigator as that has been deprecated and is not as general as the CNF.
As far as importing and exporting Eclipse projects with RCP, our product does that as well and it works fine.
I would say you are on the right track.
I've run in trouble building and packaging our Eclipse-based application. Here is an 'Our Application' consists of 4 Eclipse plug-ins. It's RCP based now (but it's easy to migrate to IDE platform, AFAIK?). It's building and packaging fine, with a simple .product build descriptor.
But now I've faced a problem, as there is a requirement to run that application, with the other plug-ins 'under the same roof'. The plugins are: Papyrus UML, BPMN Designer and (possibly) and XML editor from WTP.
The question is - is it better to 'integrate' this plug-ins in RCP, or to use our plug-ins in an Eclipse IDE? And more specifically - how to create Eclipse IDE build with that and only that plug-ins (features), without JDT and other need-less stuff? What approach should we use, to create such a packaging?
Using plug-ins in an Eclipse IDE may take you lots of time filtering the unused menu items or something else.
If you want to disable the entire unused plugin, the extension point "org.eclipse.ui.activities" may help you. http://www.vogella.de/blog/2009/07/13/eclipse-activities/
Earlier I was using Netbeans,and it had all framework in it like struts ,spring,hibernate.As Eclipse is used mostly in industry,so i downloaded Eclipse Indigo java ee ,but i am not able to find option to create application using framework like sturts or hibernate or spring. I am gonna use them in future. as i am in learning phase,also if it does not support these framework,please give me link which eclipse to download as eclipse website contain number of eclipse version which to download i don't have idea.
It depends upon which type of application you want to create and i am taking an example of web-application
to create a web-application all you need is to create a dynamic web-project in eclipse by
Right click on the project explorer/ file->new.
Crete a web-application by following the wizard.
and you are all set to start your development>regarding suport for Spring/Hibernate,they provide there plugin for eclipse all you need to do either
Go to market place by Help->marketplace
Go to respective website say spring source and Hibernate
search for the plugin and install them in your eclipse and you are all set to go
Hibernate Tool
Spring IDE
Will suggest you to install using marketplace i.e help->marketplace
Eclipse is plugin based. WTP is the generic webapp plugin. Hibernate tools for hibernate and maybe Akrogen for struts. (Search for 'xxx eclipse plugin' with your favorite search engine, in the future)
You can look into Maven if you want, Maven has a whole range of archetypes for almost every combination of projects.
I'm following this tutorial about using Google engine API to create web application.
When I add any file with .jsp suffix into my war folder the project will not compile any more.
What can be the reason ? If you need more information please just leave some comment. Thank you.
Can it be that I it cannot compile because I did not download "Eclipse for Java EE developers" but only "Eclipse for Java developers" ?
I'm not sure. I see <Java EE> in the title bar in your Eclipse screenshot which is typical for Eclipse for Java EE developers. So you have likely the right version. If you are able to do File > New > Dynamic Web Project then you definitely have the Java EE version or at least the one with WTP. More detail can be found in Help > About Eclipse.
the error in Markers tab is "Your project must be configured to use a JDK in order to use JSPs"
You need to install the JDK. Go to the Java SE download home page and click the leftmost one of the four big buttons. Done that, go in Eclipse to Windows > Preferences > Java > Installed JREs, select the existing JRE, click Edit and let the JRE home path point to the JDK folder.
It it asking you if you want to run even though it found errors in the project. First, what are the errors and can you fix them easily? Eclipse gives pretty good error messages. If the errors are from validation, turn them off in the project settings, then try running the project again.
Otherwise, double check that you are using the exact code from the tutorial. Copy the code from Google and save it into a separate file. Then select your file, and the new file, right-click on the two files and use Eclipe's file-compare to show you if you missed anything.
[edit]
You could install the EE version to a different directory. Different versions of Eclipse do play nice with each other, they're just huge. Do not import your project into the EE workspace. It will come across as a plain Java project and you need a Web project. Create a new Web/JSP project and then copy the files over.