Wednesday, 27 April 2016

[RCP] How to add recently opened editors menu.(최근 열은 에디터(파일) 리스트 메뉴 추가)

In ApplicationActionBarAdvisor.class

Sample Code
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
        @Override
 protected void fillMenuBar ( IMenuManager menuBar) {
  MenuManager fileMenu = new MenuManager("&File", "pe.dorbae.rcp.sample.file");
  menuBar.add( fileMenu);
  fileMenu.add( ContributionItemFactory.REOPEN_EDITORS.create( this.mWindow));
  fileMenu.add( new Separator());
  
  // Using plugin.xml
  
 }

No comments:

Post a Comment