Teams Winter 2011/team1/RCP/Define and use JFace

From CDOT Wiki
Revision as of 10:44, 4 March 2011 by Azea (talk | contribs) (Created page with '=== 1. Adding status line === 1.1 Open <code>ApplicationWorkbenchWindowAdvisor.java</code> file in your project and add the following line at the end of <code>preWindowOpen()</co…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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");
   }