Java 类org.eclipse.jface.text.ITextPresentationListener 实例源码

项目:fluentmark    文件:FluentMkSourceViewer.java   
/** Prepend given listener to the list of presentation listeners */
public void prependTextPresentationListener(ITextPresentationListener listener) {
    Assert.isNotNull(listener);

    if (fTextPresentationListeners == null) {
        fTextPresentationListeners = new ArrayList<ITextPresentationListener>();
    }

    fTextPresentationListeners.remove(listener);
    fTextPresentationListeners.add(0, listener);
}
项目:bts    文件:XtextSourceViewer.java   
/**
 * copied from org.eclipse.jdt.internal.ui.javaeditor.JavaSourceViewer.prependTextPresentationListener(ITextPresentationListener)
 */
@SuppressWarnings("unchecked")
public void prependTextPresentationListener(ITextPresentationListener listener) {
    Assert.isNotNull(listener);

    if (fTextPresentationListeners == null)
        fTextPresentationListeners= new ArrayList<ITextPresentationListener>();

    fTextPresentationListeners.remove(listener);
    fTextPresentationListeners.add(0, listener);
}
项目:Eclipse-Postfix-Code-Completion    文件:JavaSourceViewer.java   
/**
 * Prepends the text presentation listener at the beginning of the viewer's
 * list of text presentation listeners.  If the listener is already registered
 * with the viewer this call moves the listener to the beginning of
 * the list.
 *
 * @param listener the text presentation listener
 * @since 3.0
 */
public void prependTextPresentationListener(ITextPresentationListener listener) {

    Assert.isNotNull(listener);

    if (fTextPresentationListeners == null)
        fTextPresentationListeners= new ArrayList<ITextPresentationListener>();

    fTextPresentationListeners.remove(listener);
    fTextPresentationListeners.add(0, listener);
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:JavaSourceViewer.java   
/**
 * Prepends the text presentation listener at the beginning of the viewer's
 * list of text presentation listeners.  If the listener is already registered
 * with the viewer this call moves the listener to the beginning of
 * the list.
 *
 * @param listener the text presentation listener
 * @since 3.0
 */
public void prependTextPresentationListener(ITextPresentationListener listener) {

    Assert.isNotNull(listener);

    if (fTextPresentationListeners == null)
        fTextPresentationListeners= new ArrayList<ITextPresentationListener>();

    fTextPresentationListeners.remove(listener);
    fTextPresentationListeners.add(0, listener);
}
项目:DarwinSPL    文件:DwprofileEditor.java   
public void registerTextPresentationListener(ITextPresentationListener listener) {
    ISourceViewer viewer = getSourceViewer();
    if (viewer instanceof TextViewer) {
        ((TextViewer) viewer).addTextPresentationListener(listener);
    }
}
项目:DarwinSPL    文件:HyexpressionEditor.java   
public void registerTextPresentationListener(ITextPresentationListener listener) {
    ISourceViewer viewer = getSourceViewer();
    if (viewer instanceof TextViewer) {
        ((TextViewer) viewer).addTextPresentationListener(listener);
    }
}
项目:DarwinSPL    文件:HyvalidityformulaEditor.java   
public void registerTextPresentationListener(ITextPresentationListener listener) {
    ISourceViewer viewer = getSourceViewer();
    if (viewer instanceof TextViewer) {
        ((TextViewer) viewer).addTextPresentationListener(listener);
    }
}
项目:DarwinSPL    文件:HydatavalueEditor.java   
public void registerTextPresentationListener(ITextPresentationListener listener) {
    ISourceViewer viewer = getSourceViewer();
    if (viewer instanceof TextViewer) {
        ((TextViewer) viewer).addTextPresentationListener(listener);
    }
}
项目:DarwinSPL    文件:HymappingEditor.java   
public void registerTextPresentationListener(ITextPresentationListener listener) {
    ISourceViewer viewer = getSourceViewer();
    if (viewer instanceof TextViewer) {
        ((TextViewer) viewer).addTextPresentationListener(listener);
    }
}
项目:DarwinSPL    文件:HyconstraintsEditor.java   
public void registerTextPresentationListener(ITextPresentationListener listener) {
    ISourceViewer viewer = getSourceViewer();
    if (viewer instanceof TextViewer) {
        ((TextViewer) viewer).addTextPresentationListener(listener);
    }
}
项目:DarwinSPL    文件:HymanifestEditor.java   
public void registerTextPresentationListener(ITextPresentationListener listener) {
    ISourceViewer viewer = getSourceViewer();
    if (viewer instanceof TextViewer) {
        ((TextViewer) viewer).addTextPresentationListener(listener);
    }
}
项目:Pydev    文件:ScriptConsoleViewerWrapper.java   
public void addTextPresentationListener(ITextPresentationListener listener) {
    viewer.addTextPresentationListener(listener);
}
项目:Pydev    文件:ScriptConsoleViewerWrapper.java   
public void removeTextPresentationListener(ITextPresentationListener listener) {
    viewer.removeTextPresentationListener(listener);
}