Examples of IDLTKUILanguageToolkit


Examples of org.eclipse.dltk.ui.IDLTKUILanguageToolkit

    super();
  }

  @Override
  public void createPartControl(Composite parent) {
    IDLTKUILanguageToolkit toolkit = DLTKUILanguageManager
            .getLanguageToolkit(RutaLanguageToolkit.getDefault().getNatureId());
    final ScriptTextTools textTools = toolkit.getTextTools();
    IPreferenceStore store = toolkit.getCombinedPreferenceStore();
    viewer = new ScriptSourceViewer(parent, null, null, false, SWT.BORDER | SWT.V_SCROLL
            | SWT.H_SCROLL, store);
    ScriptSourceViewerConfiguration configuration = textTools.createSourceViewerConfiguraton(store,
            (ITextEditor) null);
    viewer.configure(configuration);
View Full Code Here

Examples of org.eclipse.dltk.ui.IDLTKUILanguageToolkit

    if (content == null) {
      viewer.setInput(null);
      return;
    }
    IDocument doc = new Document(content);
    IDLTKUILanguageToolkit uiToolkit = DLTKUILanguageManager
            .getLanguageToolkit(RutaLanguageToolkit.getDefault().getNatureId());
    ScriptTextTools textTools = uiToolkit.getTextTools();
    if (textTools != null) {
      textTools.setupDocumentPartitioner(doc, uiToolkit.getPartitioningId());
    }
    viewer.setInput(doc);
  }
View Full Code Here

Examples of org.eclipse.dltk.ui.IDLTKUILanguageToolkit

      // compData.right = new FormAttachment(1000, 1000, -10);
      // compData.width = 109;
      // composite1.setSize(500, 500);
      compositeQueryRules.setLayoutData(compData);
      compositeQueryRules.setLayout(new FillLayout());
      IDLTKUILanguageToolkit toolkit = DLTKUILanguageManager.getLanguageToolkit(RutaLanguageToolkit
              .getDefault().getNatureId());
      final ScriptTextTools textTools = toolkit.getTextTools();
      IPreferenceStore store = toolkit.getCombinedPreferenceStore();
      viewer = new ScriptSourceViewer(compositeQueryRules, null, null, false, SWT.H_SCROLL
              | SWT.V_SCROLL | SWT.BORDER, store);

      ScriptSourceViewerConfiguration configuration = textTools.createSourceViewerConfiguraton(
              store, (ITextEditor) null);
View Full Code Here

Examples of org.eclipse.dltk.ui.IDLTKUILanguageToolkit

    if (content == null) {
      viewer.setInput(null);
      return;
    }
    IDocument doc = new Document(content);
    IDLTKUILanguageToolkit uiToolkit = DLTKUILanguageManager.getLanguageToolkit(RutaLanguageToolkit
            .getDefault().getNatureId());
    ScriptTextTools textTools = uiToolkit.getTextTools();
    if (textTools != null) {
      textTools.setupDocumentPartitioner(doc, uiToolkit.getPartitioningId());
    }
    viewer.setInput(doc);
  }
View Full Code Here

Examples of org.eclipse.dltk.ui.IDLTKUILanguageToolkit

      // compData.right = new FormAttachment(1000, 1000, -10);
      // compData.width = 109;
      // composite1.setSize(500, 500);
      composite1.setLayoutData(compData);
      composite1.setLayout(new FillLayout());
      IDLTKUILanguageToolkit toolkit = DLTKUILanguageManager
              .getLanguageToolkit(RutaLanguageToolkit.getDefault().getNatureId());
      final ScriptTextTools textTools = toolkit.getTextTools();
      IPreferenceStore store = toolkit.getCombinedPreferenceStore();
      viewer = new ScriptSourceViewer(composite1, null, null, false, SWT.H_SCROLL | SWT.V_SCROLL
              | SWT.BORDER, store);

      ScriptSourceViewerConfiguration configuration = textTools.createSourceViewerConfiguraton(
              store, (ITextEditor) null);
View Full Code Here

Examples of org.eclipse.dltk.ui.IDLTKUILanguageToolkit

    if (content == null) {
      viewer.setInput(null);
      return;
    }
    IDocument doc = new Document(content);
    IDLTKUILanguageToolkit uiToolkit = DLTKUILanguageManager
            .getLanguageToolkit(RutaLanguageToolkit.getDefault().getNatureId());
    ScriptTextTools textTools = uiToolkit.getTextTools();
    if (textTools != null) {
      textTools.setupDocumentPartitioner(doc, uiToolkit.getPartitioningId());
    }
    viewer.setInput(doc);
  }
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.