Changes

Jump to: navigation, search

Teams Winter 2011/team2/lab3

1,053 bytes added, 22:02, 11 March 2011
no edit summary
=Tutorial=
In this tutorial,
==Prerequisites==
*Download [http://www.eclipse.org/downloads/packages/eclipse-rcp-and-rap-developers/heliossr2 Eclipse RCP & RAP Developer]
[[File:Wiz4wT2.png]]
*Since we decided to use a template to create our first project, there are already a few predefined classes that we will alter to suit our requirements for this lab.
*What you should see in your Eclipse environment is something that looks very similar to the picture below[[File:EclipseStartT2.png]]*In the "MANIFEST" file, click on "Launch an Eclipse Application", this will run the "Hello RCP" template program that has not been edited yet. Running this application as is will result in a window to pop-up.[[File:ManiRun1T2.png]][[File:FWindowpopT2.png]]*Lets open "ApplicationWorkbenchWindowAdvisor.java" file so we can alter the window of our application.*Replace the following method with the one below<pre>public void preWindowOpen() { //Retrieves the main window IWorkbenchWindowConfigurer configurer = getWindowConfigurer(); //Sets the size of the window configurer.setInitialSize(new Point(600, 500)); //Header bar becomes available configurer.setShowCoolBar(true); //Footer bar becomes available configurer.setShowStatusLine(true); //Title of the window configurer.setTitle("My First RCP Application"); //$NON-NLS-1$}
1
edit

Navigation menu