Examples of AutoEditStrategyForTabs


Examples of org.eclipse.jst.jsp.ui.internal.autoedit.AutoEditStrategyForTabs

        allStrategies.add(javaStrategies[i]);
      }
      // be sure this is added last, after others, so it can modify
      // results from earlier steps.
      // add auto edit strategy that handles when tab key is pressed
      allStrategies.add(new AutoEditStrategyForTabs());

      strategies = (IAutoEditStrategy[]) allStrategies.toArray(new IAutoEditStrategy[allStrategies.size()]);
    }
    else if (contentType == IHTMLPartitions.HTML_DEFAULT || contentType == IHTMLPartitions.HTML_DECLARATION || contentType == IJSPPartitions.JSP_DIRECTIVE) {
      // html and jsp autoedit strategies
      List allStrategies = new ArrayList(0);

      // add the jsp autoedit strategy first then add all html's
      allStrategies.add(new StructuredAutoEditStrategyJSP());

      IAutoEditStrategy[] htmlStrategies = getHTMLSourceViewerConfiguration().getAutoEditStrategies(sourceViewer, contentType);
      for (int i = 0; i < htmlStrategies.length; i++) {
        allStrategies.add(htmlStrategies[i]);
      }

      strategies = (IAutoEditStrategy[]) allStrategies.toArray(new IAutoEditStrategy[allStrategies.size()]);
    }
    else {
      // default autoedit strategies
      List allStrategies = new ArrayList(0);

      IAutoEditStrategy[] superStrategies = super.getAutoEditStrategies(sourceViewer, contentType);
      for (int i = 0; i < superStrategies.length; i++) {
        allStrategies.add(superStrategies[i]);
      }

      // be sure this is added last, after others, so it can modify
      // results from earlier steps.
      // add auto edit strategy that handles when tab key is pressed
      allStrategies.add(new AutoEditStrategyForTabs());

      strategies = (IAutoEditStrategy[]) allStrategies.toArray(new IAutoEditStrategy[allStrategies.size()]);
    }

    return strategies;
View Full Code Here

Examples of org.eclipse.jst.jsp.ui.internal.autoedit.AutoEditStrategyForTabs

        allStrategies.add(javaStrategies[i]);
      }
      // be sure this is added last, after others, so it can modify
      // results from earlier steps.
      // add auto edit strategy that handles when tab key is pressed
      allStrategies.add(new AutoEditStrategyForTabs());

      strategies = (IAutoEditStrategy[]) allStrategies.toArray(new IAutoEditStrategy[allStrategies.size()]);
    }
    else if (contentType == IHTMLPartitions.HTML_DEFAULT || contentType == IHTMLPartitions.HTML_DECLARATION || contentType == IJSPPartitions.JSP_DIRECTIVE) {
      // html and jsp autoedit strategies
      List allStrategies = new ArrayList(0);

      // add the jsp autoedit strategy first then add all html's
      allStrategies.add(new StructuredAutoEditStrategyJSP());

      IAutoEditStrategy[] htmlStrategies = getHTMLSourceViewerConfiguration().getAutoEditStrategies(sourceViewer, contentType);
      for (int i = 0; i < htmlStrategies.length; i++) {
        allStrategies.add(htmlStrategies[i]);
      }

      strategies = (IAutoEditStrategy[]) allStrategies.toArray(new IAutoEditStrategy[allStrategies.size()]);
    }
    else {
      // default autoedit strategies
      List allStrategies = new ArrayList(0);

      IAutoEditStrategy[] superStrategies = super.getAutoEditStrategies(sourceViewer, contentType);
      for (int i = 0; i < superStrategies.length; i++) {
        allStrategies.add(superStrategies[i]);
      }

      // be sure this is added last, after others, so it can modify
      // results from earlier steps.
      // add auto edit strategy that handles when tab key is pressed
      allStrategies.add(new AutoEditStrategyForTabs());

      strategies = (IAutoEditStrategy[]) allStrategies.toArray(new IAutoEditStrategy[allStrategies.size()]);
    }

    return strategies;
View Full Code Here

Examples of org.eclipse.wst.xml.ui.internal.autoedit.AutoEditStrategyForTabs

    }

    // be sure this is last, so it can modify any results form previous
    // commands that might on on same partiion type.
    // add auto edit strategy that handles when tab key is pressed
    allStrategies.add(new AutoEditStrategyForTabs());

    return (IAutoEditStrategy[]) allStrategies.toArray(new IAutoEditStrategy[allStrategies.size()]);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.