Package org.eclipse.dltk.internal.ui.scriptview

Examples of org.eclipse.dltk.internal.ui.scriptview.ScriptExplorerPart


    if (selection instanceof ITreeSelection) {
      ITreeSelection treeSelection = (ITreeSelection) selection;
      Object firstElement = treeSelection.getFirstElement();
      if (firstElement instanceof IJavaScriptElement) {
        // it's JS element, follow opening JS editor
        ScriptExplorerPart part = getPart();
        IViewSite viewSite = part.getViewSite();
        OpenAction openAction = new OpenAction(viewSite);
        if (openAction != null && openAction.isEnabled()) {
          openAction.run();
          return;
        }
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.internal.ui.scriptview.ScriptExplorerPart

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.