RCP/RCP

RCP ActivePage에 특정 View 열기

위들 wedul 2016. 12. 24. 00:47
반응형

RCP ActivePage에 특정 View 열기


IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();

IViewReference viewReference = activePage.findViewReference(SlipView.ID);

if (viewReference == null) {

try {

activePage.showView(SlipView.ID);

} catch (PartInitException e) {

LOGGER.error("OpenSlipView Error : " , e);

}

}

728x90
반응형
1 2 3 4 5 6