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

Bianca,

I added this code:
public ApplicationWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
super(configurer);
configurer.getWindow().addPerspectiveListener(new PerspectiveAdapter() @Override
public void perspectiveActivated(IWorkbenchPage page,
IPerspectiveDescriptor perspective) {
System.out.println("DEBUG: " + page.getLabel() + perspective.getId());
}
});
}


and that works indeed. the method perspectiveActivated is called twice, so i have 2 identical messages in my console. is this normal behaviour or am i doing something wrong? because if i want to call a toggle-command to show view at startup, in the first perspectiveActivated-call the view is shown but in the second call the view will be hidden

kind regards,
roel