Package org.eclipse.wst.xml.ui

Examples of org.eclipse.wst.xml.ui.StructuredTextViewerConfigurationXML


    return fStatusLineLabelProvider;
  }

  private StructuredTextViewerConfiguration getXMLSourceViewerConfiguration() {
    if (fXMLSourceViewerConfiguration == null) {
      fXMLSourceViewerConfiguration = new StructuredTextViewerConfigurationXML();
    }
    return fXMLSourceViewerConfiguration;
  }
View Full Code Here


    return fStatusLineLabelProvider;
  }

  private StructuredTextViewerConfiguration getXMLSourceViewerConfiguration() {
    if (fXMLSourceViewerConfiguration == null) {
      fXMLSourceViewerConfiguration = new StructuredTextViewerConfigurationXML();
    }
    return fXMLSourceViewerConfiguration;
  }
View Full Code Here

   *
   * @see org.eclipse.ui.texteditor.templates.TemplatePreferencePage#createViewer(org.eclipse.swt.widgets.Composite)
   */
  protected SourceViewer createViewer(Composite parent) {
    SourceViewerConfiguration sourceViewerConfiguration = new StructuredTextViewerConfiguration() {
      StructuredTextViewerConfiguration baseConfiguration = new StructuredTextViewerConfigurationXML();

      public String[] getConfiguredContentTypes(ISourceViewer sourceViewer) {
        return baseConfiguration.getConfiguredContentTypes(sourceViewer);
      }

      public LineStyleProvider[] getLineStyleProviders(ISourceViewer sourceViewer, String partitionType) {
        return baseConfiguration.getLineStyleProviders(sourceViewer, partitionType);
      }
    };
    return doCreateViewer(parent, sourceViewerConfiguration);
  }
View Full Code Here

      super(parent, template, edit, isNameModifiable, registry);
    }

    protected SourceViewer createViewer(Composite parent) {
      SourceViewerConfiguration sourceViewerConfiguration = new StructuredTextViewerConfiguration() {
        StructuredTextViewerConfiguration baseConfiguration = new StructuredTextViewerConfigurationXML();

        public String[] getConfiguredContentTypes(ISourceViewer sourceViewer) {
          return baseConfiguration.getConfiguredContentTypes(sourceViewer);
        }

        public LineStyleProvider[] getLineStyleProviders(ISourceViewer sourceViewer, String partitionType) {
          return baseConfiguration.getLineStyleProviders(sourceViewer, partitionType);
        }

        public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
          ContentAssistant assistant = new ContentAssistant();
          assistant.enableAutoActivation(true);
View Full Code Here

   *            the parent control
   * @return a configured source viewer
   */
  private SourceViewer createViewer(Composite parent) {
    SourceViewerConfiguration sourceViewerConfiguration = new StructuredTextViewerConfiguration() {
      StructuredTextViewerConfiguration baseConfiguration = new StructuredTextViewerConfigurationXML();

      public String[] getConfiguredContentTypes(ISourceViewer sourceViewer) {
        return baseConfiguration.getConfiguredContentTypes(sourceViewer);
      }

      public LineStyleProvider[] getLineStyleProviders(ISourceViewer sourceViewer, String partitionType) {
        return baseConfiguration.getLineStyleProviders(sourceViewer, partitionType);
      }
    };
    SourceViewer viewer = new StructuredTextViewer(parent, null, null, false, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
    viewer.getTextWidget().setFont(JFaceResources.getFont("org.eclipse.wst.sse.ui.textfont")); //$NON-NLS-1$
    IStructuredModel scratchModel = StructuredModelManager.getModelManager().createUnManagedStructuredModelFor(ContentTypeIdForXML.ContentTypeID_XML);
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.ui.StructuredTextViewerConfigurationXML

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.