Package de.innovationgate.eclipse.utils.ui

Examples of de.innovationgate.eclipse.utils.ui.SingleStructuredSelection


          }
        }
      }
     
      try {
        WorkbenchUtils.setNavigationViewSelection(new SingleStructuredSelection(innerLayoutFile));
        WorkbenchUtils.setNavigationViewSelection(new SingleStructuredSelection(outerLayoutFile));
        WorkbenchUtils.openEditor(Plugin.getDefault().getWorkbench(), outerLayoutFile, ResourceIDs.EDITOR_TML);
      } catch (Exception e) {       
      }
     
      return true;
View Full Code Here


     
     
      WorkbenchUtils.openEditor(Plugin.getDefault().getWorkbench(), tmlFile, ResourceIDs.EDITOR_TML);
     
      try {
        WorkbenchUtils.setNavigationViewSelection(new SingleStructuredSelection(tmlFile));
      } catch (Exception e) {       
      }
     
      return true;
     
View Full Code Here

     
      if (bestContainer != null) {
        IFile syncInfo = WGADesignStructureHelper.determineSyncInfo(bestContainer);
        if (syncInfo != null) {
          WGADesignStructureHelper helper = new WGADesignStructureHelper(syncInfo);
          return new SingleStructuredSelection(helper.getDesignRoot());
        }
      }
    }
    return new SingleStructuredSelection(workspaceSelection.getProject());   
  }
View Full Code Here

      _linkCreateWebApp.addHyperlinkListener(new HyperlinkAdapter() {

      @Override
      public void linkActivated(HyperlinkEvent e) {
        try {
          WorkbenchUtils.openWizard(WGADesignerPlugin.getDefault().getWorkbench(), ResourceIDs.WIZARD_NEW_WGA_DESIGN, new SingleStructuredSelection(_model.getWgaRuntime().getProject()));
        } catch (CoreException e1) {
          WorkbenchUtils.showErrorDialog(WGADesignerPlugin.getDefault(), getSite().getShell(), "Unable to open wizard 'New WGADesign'", e1);
        }
      }
       
View Full Code Here

 
  private void handleExportWebApplication() {
      if (_tblWebApplications.getTable().getSelectionCount() > 0) {
            try {
                WebApplication app = _webAppModel.getBeans().get(_tblWebApplications.getTable().getSelectionIndex());
                IStructuredSelection selection = new SingleStructuredSelection(app);
                WorkbenchUtils.openWizard(WGADesignerPlugin.getDefault().getWorkbench(), ResourceIDs.WIZARD_EXPORT_WGAAPPLICATION, selection);             
            } catch (Exception e) {
                WorkbenchUtils.showErrorDialog(WGADesignerPlugin.getDefault(), getSite().getShell(), "Unable to open export wizard for web application", e);
            }
        } else {
View Full Code Here

TOP

Related Classes of de.innovationgate.eclipse.utils.ui.SingleStructuredSelection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.