이 게시물 Get TreeViewer in RCP from another Plugin을 따라갔습니다.PlatformUI.getWorkbench() throws IllegalStateException : 처리기에서 실행될 때 아직 Workbench가 작성되지 않았습니다.
@PostConstruct
public void createComposite(Composite parent) {
IWorkbench wb = PlatformUI.getWorkbench();
}
나도 몰라 : 나는 일부에이 코드를 실행하면
@Execute
public void execute() {
IWorkbench wb = PlatformUI.getWorkbench();
}
는, 예외도 없다 : 나는 핸들러에이 코드를 추가 할 때, 나는 예외를 "java.lang.IllegalStateException: Workbench has not been created yet.
"있어요 왜. 나 좀 도와 줄 수있어? 감사!