Examples of IColorManager


Examples of org.eclipse.cdt.ui.text.IColorManager

 
  @Override
  public ScriptSourceViewerConfiguration createSourceViewerConfiguraton(IPreferenceStore preferenceStore,
      ITextEditor editor, String partitioning) {
    Assert.isTrue(partitioning.equals(DeePartitions.PARTITIONING_ID));
    IColorManager colorManager = LangUIPlugin.getInstance().getColorManager();
    return new DeeSourceViewerConfiguration(colorManager, preferenceStore, editor);
  }
View Full Code Here

Examples of org.eclipse.dltk.ui.text.IColorManager

    setQuickAssistProcessor(processor);

    setInformationControlCreator(getInformationControlCreator());

    RutaTextTools textTools = RutaIdeUIPlugin.getDefault().getTextTools();
    IColorManager manager = textTools.getColorManager();

    IPreferenceStore store = RutaIdeUIPlugin.getDefault().getPreferenceStore();

    Color c = getColor(store, PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND, manager);
    setProposalSelectorForeground(c);
View Full Code Here

Examples of org.eclipse.dltk.ui.text.IColorManager

    setQuickAssistProcessor(processor);

    setInformationControlCreator(getInformationControlCreator());

    RutaTextTools textTools = RutaIdePlugin.getDefault().getTextTools();
    IColorManager manager = textTools.getColorManager();

    IPreferenceStore store = RutaIdePlugin.getDefault().getPreferenceStore();

    Color c = getColor(store, PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND, manager);
    setProposalSelectorForeground(c);
View Full Code Here

Examples of org.eclipse.jdt.ui.text.IColorManager

  }

  private void installSematicHighlighting() {

    SourceViewer sourceViewer = (SourceViewer) getSourceViewer();
    IColorManager colorManager = JavaUI.getColorManager();
    IPreferenceStore preferenceStore = JavaPlugin.getDefault()
        .getCombinedPreferenceStore();
    ATGConfiguration configuration = fConfiguration;

    fSemanticHighlightingManager.install(this, sourceViewer, colorManager,
View Full Code Here

Examples of org.eclipse.jdt.ui.text.IColorManager

*/
public class WodScanner extends AbstractJavaScanner {
  private static String[] WOD_TOKENS = { PreferenceConstants.ELEMENT_NAME, PreferenceConstants.ELEMENT_TYPE, PreferenceConstants.BINDING_NAME, PreferenceConstants.BINDING_NAMESPACE, PreferenceConstants.BINDING_VALUE, PreferenceConstants.BINDING_VALUE_NAMESPACE, PreferenceConstants.OGNL_BINDING_VALUE, PreferenceConstants.CONSTANT_BINDING_VALUE, PreferenceConstants.OPERATOR, PreferenceConstants.COMMENT, PreferenceConstants.UNKNOWN };

  public static WodScanner newWODScanner() {
    IColorManager colorManager = JavaPlugin.getDefault().getJavaTextTools().getColorManager();
    IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore();
    WodScanner scanner = new WodScanner(colorManager, preferenceStore);
    return scanner;
  }
View Full Code Here

Examples of org.emftext.access.resource.IColorManager

   * To initialize the EMFTextTokenScanner. Must be called before the text to style will be styled.
   * @param sourceText the text to style
   */
  private void initTokenScanner(){ 
    sourceText = getSyntaxContent();
    IColorManager colorManager = metaInformation.createColorManager();
    tokenScanner = metaInformation.createTokenScanner(colorManager);
    IDocument doc = new Document(sourceText);
    int length = doc.getLength();
    tokenScanner.setRange(doc, 0, length);
  }
View Full Code Here

Examples of org.erlide.ui.util.IColorManager

            }

        });

        final IPreferenceStore store = ErlideUIPlugin.getDefault().getPreferenceStore();
        final IColorManager colorManager = new ColorManager();
        consoleOutputViewer.setDocument(fDoc);
        consoleOutputViewer.configure(new ErlangConsoleSourceViewerConfiguration(store,
                colorManager, backend));

        consoleInputViewer = new SourceViewer(sashForm, null, SWT.MULTI | SWT.WRAP
View Full Code Here

Examples of org.erlide.ui.util.IColorManager

    public static SourceViewer createErlangPreviewer(final Composite parent,
            final IColorManager colorManager0, final IPreferenceStore topStore,
            final List<TokenHighlight> colors0, final String content) {
        // TODO we should move this method, to a utility class (or maybe create
        // an ErlangPreviewSourceViewer class)
        final IColorManager colorManager = colorManager0 != null ? colorManager0
                : new ColorManager();

        List<TokenHighlight> colors;
        if (colors0 == null) {
            colors = new ArrayList<TokenHighlight>();
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.