My Wiki!

Starting Eclipse RCP 3 Application

Create Plugin Project

Headline

http://stackoverflow.com/questions/11239963/developing-an-eclipse-rcp-application

what i've realized is, the generated classes in a RCP project folder are only to manage the lifecycle and appearance of the RCP application, that's it. For everything else we want our application to do, we need to write seperate classes.

For eg, if you created a view (class that implements IViewPart interface) then u need to add that view to the RCP application using plugin.xml file.

following is a short description of these classes (what basically they do)

Application.java - starting point of application, similar to main(-) method.
WorkbenchWindowAdvisor.java - for window size, title, menubar, toolbar, status bar configuration and visibility.
WorkbenchAdvisor.java - identifies the initial perspective and which WorkbenchWindowAdvisor to use.
Perspective.java - arrangement of views and editors (like we have in Java Perspective, Debug Perspective in Eclipse IDE)
ActionBarAdvisor.java - for creating actions but the use of commands framework is encouraged (see page no.292 of Eclipse Rich Client Platform, Second Edition- by Jeff McAffer http://www.amazon.com/Eclipse-Rich-Client-Platform-Edition/dp/0321603788 )

Headline

Basic Concepts

MANIFEST.MD

Extension Points

Detailed UI Components

RCP Mail template

The RCP Mail template is not a functioning mail application but instead is a sample standalone RCP example provided with the Eclipse SDK that demonstrates how to:

add top-level menus and toolbars with actions
add keybindings to actions
create views that can't be closed and multiple instances of the same view
create perspectives with placeholders for new views
use the default About dialog
create a product definition

As in part 1, to create the example, select File > New > Project, then expand Plug-in Development and double-click Plug-in Project to bring up the Plug-in Project wizard. On the subsequent pages, enter a Project name such as org.eclipse.ui.tutorials.rcp.part3, indicate you want a Java project, select the version of Eclipse you're targetting (at least 3.1), and enable the option to Create an OSGi bundle manifest. Then click Next >.

For the option “Would you like to create a rich client application?”. Select Yes. Leave all the other options at their default values. Click Next > to continue.

Enable the option to Create a plug-in using one of the templates, then select the RCP Mail Template. Click Finish to accept all the defaults and generate the project (see Figure 1).

Product

More Resources

Eclipse GEF

GEF = GEF MVC + Draw2D + Zest

MVC


Navigation