I created a convenience method that made use WT APIs to ensure that an Eclipse perspective was open. I noticed that if I called it several times specifying different perspective names that instead of the perspective changing a new window was opened for each call with the specified perspective being active. I am using version 3.9.0 of WT for Eclipse 3.3. Is this possibly a bug?
- Code: Select all
public static void openPerspective(IUIContext ui, String name) throws Exception {
ui.ensureThat(perspective(name).isActive());
}
Thanks,
Joe