Difference between revisions of "Teams Winter 2011/team1/RCP/Define and use JFace"
Line 11: | Line 11: | ||
</pre> | </pre> | ||
1.3 Run the application you should see the following: | 1.3 Run the application you should see the following: | ||
− | [[Image: StatusLine. | + | [[Image: StatusLine.png | 300px]] |
Revision as of 10:49, 4 March 2011
1. Adding status line
1.1 Open ApplicationWorkbenchWindowAdvisor.java
file in your project and add the following line at the end of preWindowOpen()
method:
configurer.setShowStatusLine(true);
1.2 Add a new method to this class to set text in status line from different parts of application:
@Override public void postWindowOpen() { IStatusLineManager statusline = getWindowConfigurer().getActionBarConfigurer().getStatusLineManager(); statusline.setMessage(null, "Status line is ready"); }