Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.ITextViewerExtension6


    if (PREFERENCE_HYPERLINKS_ENABLED.equals(property)) {
      if (fSourceViewer instanceof ITextViewerExtension6) {
        IHyperlinkDetector[] detectors= getSourceViewerConfiguration().getHyperlinkDetectors(fSourceViewer);
        int stateMask= getSourceViewerConfiguration().getHyperlinkStateMask(fSourceViewer);
        ITextViewerExtension6 textViewer6= (ITextViewerExtension6)fSourceViewer;
        textViewer6.setHyperlinkDetectors(detectors, stateMask);
      }
      return;
    }

    if (PREFERENCE_HYPERLINK_KEY_MODIFIER.equals(property)) {
      if (fSourceViewer instanceof ITextViewerExtension6) {
        ITextViewerExtension6 textViewer6= (ITextViewerExtension6)fSourceViewer;
        IHyperlinkDetector[] detectors= getSourceViewerConfiguration().getHyperlinkDetectors(fSourceViewer);
        int stateMask= getSourceViewerConfiguration().getHyperlinkStateMask(fSourceViewer);
        textViewer6.setHyperlinkDetectors(detectors, stateMask);
      }
      return;
    }
   
    if (PREFERENCE_RULER_CONTRIBUTIONS.equals(property)) {
View Full Code Here


        HyperlinkDetectorDescriptor[] descriptor= EditorsUI.getHyperlinkDetectorRegistry().getHyperlinkDetectorDescriptors();
        for (int i= 0; i < descriptor.length; i++) {
          if (descriptor[i].getId().equals(property) || (descriptor[i].getId() + HyperlinkDetectorDescriptor.STATE_MASK_POSTFIX).equals(property)) {
            IHyperlinkDetector[] detectors= getSourceViewerConfiguration().getHyperlinkDetectors(sourceViewer);
            int stateMask= getSourceViewerConfiguration().getHyperlinkStateMask(sourceViewer);
            ITextViewerExtension6 textViewer6= (ITextViewerExtension6)sourceViewer;
            textViewer6.setHyperlinkDetectors(detectors, stateMask);
            return;
          }
        }
      }
View Full Code Here

    if (PREFERENCE_HYPERLINKS_ENABLED.equals(property)) {
      if (fSourceViewer instanceof ITextViewerExtension6) {
        IHyperlinkDetector[] detectors= getSourceViewerConfiguration().getHyperlinkDetectors(fSourceViewer);
        int stateMask= getSourceViewerConfiguration().getHyperlinkStateMask(fSourceViewer);
        ITextViewerExtension6 textViewer6= (ITextViewerExtension6)fSourceViewer;
        textViewer6.setHyperlinkDetectors(detectors, stateMask);
      }
      return;
    }

    if (PREFERENCE_HYPERLINK_KEY_MODIFIER.equals(property)) {
      if (fSourceViewer instanceof ITextViewerExtension6) {
        ITextViewerExtension6 textViewer6= (ITextViewerExtension6)fSourceViewer;
        IHyperlinkDetector[] detectors= getSourceViewerConfiguration().getHyperlinkDetectors(fSourceViewer);
        int stateMask= getSourceViewerConfiguration().getHyperlinkStateMask(fSourceViewer);
        textViewer6.setHyperlinkDetectors(detectors, stateMask);
      }
      return;
    }

    if (PREFERENCE_RULER_CONTRIBUTIONS.equals(property)) {
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.ITextViewerExtension6

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.