NASA uses Eclipse RCP applications for experiments on the ...
NASA uses Eclipse RCP applications for experiments on the ...
NASA uses Eclipse RCP applications for experiments on the ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
How to change <strong>the</strong> layout of an <str<strong>on</strong>g>Eclipse</str<strong>on</strong>g> <str<strong>on</strong>g>RCP</str<strong>on</strong>g> applicati<strong>on</strong> <br />
Here we are c<strong>on</strong>trolling <strong>the</strong> layout of <strong>the</strong> <str<strong>on</strong>g>RCP</str<strong>on</strong>g> applicati<strong>on</strong>, and c<strong>on</strong>structing <strong>the</strong><br />
tabs (CTabFolder) which will c<strong>on</strong>trol and resp<strong>on</strong>d to perspective switching. <br />
public class IssApplicati<strong>on</strong>WorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {!<br />
!@Override!<br />
!public void createWindowC<strong>on</strong>tents(Shell shell) {!<br />
! !IWorkbenchWindowC<strong>on</strong>figurer c<strong>on</strong>figurer = getWindowC<strong>on</strong>figurer();!<br />
! !Menu menu = c<strong>on</strong>figurer.createMenuBar();!<br />
! !shell.setMenuBar(menu);!<br />
! !shell.setLayout(new FormLayout());!<br />
! !m_topToolbar = c<strong>on</strong>figurer.createCoolBarC<strong>on</strong>trol(shell);!<br />
! !m_perspectiveBar = createPerspectiveBarC<strong>on</strong>trol(shell);!<br />
! !m_page = c<strong>on</strong>figurer.createPageComposite(m_cTabFolder);!<br />
!<br />
! !m_perspectiveRegistry = c<strong>on</strong>figurer.getWindow().getWorkbench().getPerspectiveRegistry();!<br />
! !createPerspectiveBarTabs();!<br />
! !!<br />
! !m_rightToolbar = createRightToolbar(shell);!<br />
! !m_statusline = new SimpleStatusLineManager().createC<strong>on</strong>trol(shell);!<br />
!<br />
! !// The layout method does <strong>the</strong> work of c<strong>on</strong>necting <strong>the</strong> c<strong>on</strong>trols toge<strong>the</strong>r.!<br />
! !layoutNormal();!<br />
!}!<br />
<str<strong>on</strong>g>Eclipse</str<strong>on</strong>g> <str<strong>on</strong>g>RCP</str<strong>on</strong>g> <str<strong>on</strong>g>for</str<strong>on</strong>g> ISS Experiments <br />
14