[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Launch Command at startup

Hi Bianca,

Thanks for your quick reply. Where can I add the implementation of IPerspectiveListener? Do I have to add it in a method like postCreateWindow of the ApplicationWorkbenchWindowAdvisor?

I tried something like this
@Override
public void postWindowCreate() {
getWindowConfigurer().getWindow().addPerspectiveListener(new IPerspectiveListener() {
public void perspectiveActivated(IWorkbenchPage page,
IPerspectiveDescriptor perspective) {
System.out.println("DEBUG: OKKKKKKKK");
}
public void perspectiveChanged(IWorkbenchPage page,
IPerspectiveDescriptor perspective, String changeId) {
}
});
}


but no message got printed. The perspective where command has to be invoked is the same perspective that's returned by ApplicationWorkbenchAdvisor.getInitialWindowPerspectiveId (according to this issue i noticed following article http://dev.eclipse.org/newslists/news.eclipse.platform/msg26077.html)