Search in sources :

Example 1 with TabbedPropertySheetPage

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);
    }
}
Also used : PropertySheet(org.eclipse.ui.views.properties.PropertySheet) IWorkbenchPage(org.eclipse.ui.IWorkbenchPage) ProcessExplorerView(com.centurylink.mdw.plugin.designer.views.ProcessExplorerView) TabbedPropertySheetPage(com.centurylink.mdw.plugin.designer.properties.TabbedPropertySheetPage) WorkbenchException(org.eclipse.ui.WorkbenchException)

Aggregations

TabbedPropertySheetPage (com.centurylink.mdw.plugin.designer.properties.TabbedPropertySheetPage)1 ProcessExplorerView (com.centurylink.mdw.plugin.designer.views.ProcessExplorerView)1 IWorkbenchPage (org.eclipse.ui.IWorkbenchPage)1 WorkbenchException (org.eclipse.ui.WorkbenchException)1 PropertySheet (org.eclipse.ui.views.properties.PropertySheet)1