use of com.centurylink.mdw.plugin.designer.properties.TabbedPropertySheetPage in project mdw-designer by CenturyLinkCloud.
the class DesignerPerspective method showPerspectiveAndSelectProjectPreferences.
public static void showPerspectiveAndSelectProjectPreferences(IWorkbenchWindow activeWindow, WorkflowProject project) {
try {
IWorkbenchPage page = showPerspective(activeWindow);
ProcessExplorerView processExplorer = (ProcessExplorerView) page.findView(ProcessExplorerView.VIEW_ID);
if (processExplorer != null) {
processExplorer.setFocus();
processExplorer.select(project);
PropertySheet propSheet = (PropertySheet) page.showView(PROPERTY_SHEET);
if (propSheet != null) {
TabbedPropertySheetPage tabbedPage = (TabbedPropertySheetPage) propSheet.getCurrentPage();
if (tabbedPage != null)
tabbedPage.setSelectedTab("mdw.properties.tabs.preferences");
}
}
} catch (WorkbenchException ex) {
PluginMessages.uiError(activeWindow.getShell(), ex, "Project Preferences", project);
}
}
Aggregations