当前位置: 首页>>代码示例>>Java>>正文


Java IEObjectHoverProvider类代码示例

本文整理汇总了Java中org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider的典型用法代码示例。如果您正苦于以下问题:Java IEObjectHoverProvider类的具体用法?Java IEObjectHoverProvider怎么用?Java IEObjectHoverProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IEObjectHoverProvider类属于org.eclipse.xtext.ui.editor.hover包,在下文中一共展示了IEObjectHoverProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildHoverMap

import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
/**
 * Build a directory of node hovers indexed by the {@link EObject}.
 *
 * @param model
 *          the model for which to build the hover map, must not be {@code null}
 */
private void buildHoverMap(final EObject model) {
  // All contained features
  List<EStructuralFeature> features = model.eClass().getEAllStructuralFeatures();
  for (EStructuralFeature feature : features) {
    if (feature instanceof EReference && model.eIsSet(feature)) {
      EList<EObject> children = getFeatureValues(model, feature);
      boolean referenceAdded = false;
      IEObjectHoverProvider hoverProvider = getHoverProvider();
      for (EObject childModelElement : children) {
        if (!childModelElement.eIsProxy()) {
          buildHoverMap(childModelElement);
          Object element = childModelElement.eClass();
          Object hover = hoverProvider.getHoverInfo(childModelElement, null, null).getInfo();
          if (element != null && hover != null) {
            addToHoverMap(element, hover.toString());
            // also add the hover using the reference feature as key
            if (!referenceAdded) {
              addToHoverMap(feature, hover.toString());
              referenceAdded = true;
            }
          }
        }
      }
    }
  }
}
 
开发者ID:dsldevkit,项目名称:dsl-devkit,代码行数:33,代码来源:AbstractHoverTest.java

示例2: bindIEObjectHoverProvider

import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
/**
 * Bind custom IEObjectHoverProvider.
 */
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
	return N4JSHoverProvider.class;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:7,代码来源:N4JSUiModule.java

示例3: bindIEObjectHoverProvider

import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
    return z80EObjectHoverProvider.class;
}
 
开发者ID:yuv422,项目名称:z80editor,代码行数:4,代码来源:Z80UiModule.java

示例4: bindIEObjectHoverProvider

import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
	return BTSEObjectHover.class;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:4,代码来源:EgyDslUiModule.java

示例5: bindIEObjectHoverProvider

import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
	return HelpHoverProvider.class;
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:4,代码来源:SGenUiModule.java

示例6: bindIEObjectHoverProvider

import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
	return CustomCSSHelpHoverProvider.class;
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:4,代码来源:STextUiModule.java

示例7: bindIEObjectHoverProvider

import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
       return PlanHoverProvider.class;
}
 
开发者ID:lowcoupling,项目名称:plan,代码行数:4,代码来源:PlanUiModule.java

示例8: bindIEObjectHoverProvider

import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
	return PhdlEObjectHoverProvider.class;
}
 
开发者ID:timofonic,项目名称:PHDL,代码行数:4,代码来源:PhdlUiModule.java

示例9: bindIEObjectHoverProvider

import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
    return ActionEObjectHoverProvider.class;
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:4,代码来源:RulesUiModule.java

示例10: bindIEObjectHoverProvider

import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
	return GamlHoverProvider.class;
}
 
开发者ID:gama-platform,项目名称:gama,代码行数:4,代码来源:GamlUiModule.java

示例11: bindIEObjectHoverProvider

import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
    return yangHoverProvider.class;
}
 
开发者ID:att,项目名称:yang-design-studio,代码行数:4,代码来源:YangUiModule.java

示例12: bindIEObjectHoverProvider

import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
  return Antlr4HoverProvider.class;
}
 
开发者ID:antlr4ide,项目名称:antlr4ide,代码行数:4,代码来源:Antlr4UiModule.java

示例13: bindIEObjectHoverProvider

import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
	return JKindEObjectHoverProvider.class;
}
 
开发者ID:agacek,项目名称:jkind-xtext,代码行数:4,代码来源:JKindUiModule.java

示例14: bindIEObjectHoverProvider

import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
	return ExpressionsEObjectHoverProvider.class;
}
 
开发者ID:LorenzoBettini,项目名称:packtpub-xtext-book-examples,代码行数:4,代码来源:ExpressionsUiModule.java

示例15: getHoverProvider

import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
/**
 * Returns {@link IEObjectHoverProvider} for hover functionality of the editor.
 *
 * @return the {@link IEObjectHoverProvider} class for hover functionality, never {@code null}
 */
protected IEObjectHoverProvider getHoverProvider() {
  return getXtextTestUtil().get(IEObjectHoverProvider.class);
}
 
开发者ID:dsldevkit,项目名称:dsl-devkit,代码行数:9,代码来源:AbstractHoverTest.java


注:本文中的org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。