本文整理汇总了Java中org.eclipse.jface.text.ITextPresentationListener类的典型用法代码示例。如果您正苦于以下问题:Java ITextPresentationListener类的具体用法?Java ITextPresentationListener怎么用?Java ITextPresentationListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ITextPresentationListener类属于org.eclipse.jface.text包,在下文中一共展示了ITextPresentationListener类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: prependTextPresentationListener
import org.eclipse.jface.text.ITextPresentationListener; //导入依赖的package包/类
/** 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);
}
开发者ID:grosenberg,项目名称:fluentmark,代码行数:12,代码来源:FluentMkSourceViewer.java
示例2: prependTextPresentationListener
import org.eclipse.jface.text.ITextPresentationListener; //导入依赖的package包/类
/**
* 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);
}
开发者ID:cplutte,项目名称:bts,代码行数:14,代码来源:XtextSourceViewer.java
示例3: prependTextPresentationListener
import org.eclipse.jface.text.ITextPresentationListener; //导入依赖的package包/类
/**
* 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);
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:20,代码来源:JavaSourceViewer.java
示例4: registerTextPresentationListener
import org.eclipse.jface.text.ITextPresentationListener; //导入依赖的package包/类
public void registerTextPresentationListener(ITextPresentationListener listener) {
ISourceViewer viewer = getSourceViewer();
if (viewer instanceof TextViewer) {
((TextViewer) viewer).addTextPresentationListener(listener);
}
}
开发者ID:DarwinSPL,项目名称:DarwinSPL,代码行数:7,代码来源:DwprofileEditor.java
示例5: addTextPresentationListener
import org.eclipse.jface.text.ITextPresentationListener; //导入依赖的package包/类
public void addTextPresentationListener(ITextPresentationListener listener) {
viewer.addTextPresentationListener(listener);
}
开发者ID:fabioz,项目名称:Pydev,代码行数:4,代码来源:ScriptConsoleViewerWrapper.java
示例6: removeTextPresentationListener
import org.eclipse.jface.text.ITextPresentationListener; //导入依赖的package包/类
public void removeTextPresentationListener(ITextPresentationListener listener) {
viewer.removeTextPresentationListener(listener);
}
开发者ID:fabioz,项目名称:Pydev,代码行数:4,代码来源:ScriptConsoleViewerWrapper.java
注:本文中的org.eclipse.jface.text.ITextPresentationListener类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论