本文整理汇总了Java中org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider.ModeAware方法的典型用法代码示例。如果您正苦于以下问题:Java IOutlineTreeProvider.ModeAware方法的具体用法?Java IOutlineTreeProvider.ModeAware怎么用?Java IOutlineTreeProvider.ModeAware使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider
的用法示例。
在下文中一共展示了IOutlineTreeProvider.ModeAware方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setInfoText
import org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider; //导入方法依赖的package包/类
/**
* @since 2.2
*/
protected void setInfoText() {
if(treeProvider instanceof IOutlineTreeProvider.ModeAware)
setInfoText("Press " + invokingKeystroke + " to " + ((IOutlineTreeProvider.ModeAware) treeProvider)
.getNextMode().getDescription());
else
setInfoText(Messages.QuickOutlinePopup_pressESC);
}
示例2: changeOutlineMode
import org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider; //导入方法依赖的package包/类
/**
* @since 2.2
*/
protected void changeOutlineMode() {
if(treeProvider instanceof IOutlineTreeProvider.ModeAware) {
IOutlineTreeProvider.ModeAware modeTreeProvider = (IOutlineTreeProvider.ModeAware) treeProvider;
OutlineMode nextMode = modeTreeProvider.getNextMode();
modeTreeProvider.setCurrentMode(nextMode);
setInfoText();
setInput(document);
}
}
示例3: bindIOutlineTreeProvider_ModeAware
import org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider; //导入方法依赖的package包/类
/** Outline modes for showing inherited members or not */
public Class<? extends IOutlineTreeProvider.ModeAware> bindIOutlineTreeProvider_ModeAware() {
return N4JSOutlineModes.class;
}