Examples of ITextDoubleClickStrategy


Examples of org.eclipse.jface.text.ITextDoubleClickStrategy

   *            the content type for which the strategy is applicable
   * @return a double-click strategy or <code>null</code> if double
   *         clicking should not be supported
   */
  public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) {
    ITextDoubleClickStrategy strategy = null;
    Object extendedStrategy = ExtendedConfigurationBuilder.getInstance().getConfiguration(ExtendedConfigurationBuilder.DOUBLECLICKSTRATEGY, contentType);
    if (extendedStrategy instanceof ITextDoubleClickStrategy) {
      strategy = (ITextDoubleClickStrategy) extendedStrategy;
    }
    else {
View Full Code Here

Examples of org.eclipse.jface.text.ITextDoubleClickStrategy

    return formatter;
  }

  public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) {
    ITextDoubleClickStrategy strategy = null;

    // html or javascript
    if (contentType == IHTMLPartitions.HTML_DEFAULT || contentType == IHTMLPartitions.SCRIPT)
      strategy = getHTMLSourceViewerConfiguration().getDoubleClickStrategy(sourceViewer, contentType);
    else if (contentType == IJSPPartitions.JSP_CONTENT_JAVA || contentType == IJSPPartitions.JSP_CONTENT_JAVASCRIPT)
View Full Code Here

Examples of org.eclipse.jface.text.ITextDoubleClickStrategy

   *            the content type for which the strategy is applicable
   * @return a double-click strategy or <code>null</code> if double
   *         clicking should not be supported
   */
  public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) {
    ITextDoubleClickStrategy strategy = null;
    Object extendedStrategy = ExtendedConfigurationBuilder.getInstance().getConfiguration(ExtendedConfigurationBuilder.DOUBLECLICKSTRATEGY, contentType);
    if (extendedStrategy instanceof ITextDoubleClickStrategy) {
      strategy = (ITextDoubleClickStrategy) extendedStrategy;
    }
    else {
View Full Code Here

Examples of org.eclipse.jface.text.ITextDoubleClickStrategy

    return formatter;
  }

  public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) {
    ITextDoubleClickStrategy strategy = null;

    // html or javascript
    if (contentType == IHTMLPartitions.HTML_DEFAULT || contentType == IHTMLPartitions.SCRIPT)
      strategy = getHTMLSourceViewerConfiguration().getDoubleClickStrategy(sourceViewer, contentType);
    else if (contentType == IJSPPartitions.JSP_CONTENT_JAVA || contentType == IJSPPartitions.JSP_CONTENT_JAVASCRIPT)
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.