큐브리드: Editor 뷰 추가하기

큐브리드 2009/04/15 00:21 Posted by 종이비행기

1. public class ExecutionPlanPart extends EditorPart 클래스 생성

2. public class ExecutionPlanUnit implements IEditorInput 클래스 생성

3. 뷰 생성 소스
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
if (window == null) {
    return;
}
IEditorInput input = new ExecutionPlanUnit();
try {
    IEditorPart editor = window.getActivePage().openEditor(input, ExecutionPlanPart.ID);
} catch (PartInitException e) {
    logger.error(e.getMessage());
} finally {
}

4. plugin.xml에 extensions 추가

저작자 표시 비영리 변경 금지