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

}

}

+ Recent posts