문제

I have made a plugin for eclipse that imports projects. I wish to make it so that the newly imported project will be selected by default when the import successfully completes. I do not know how to fire a selection event on the newly imported project.

도움이 되었습니까?

해결책

You can call

BasicNewResourceWizard.selectAndReveal(resource, workbenchWindow);

To select any resource.

In your case resource would be the IProject you have created.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top