本文整理汇总了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;
}
}
}
}
}
}
}
示例2: bindIEObjectHoverProvider
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
/**
* Bind custom IEObjectHoverProvider.
*/
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
return N4JSHoverProvider.class;
}
示例3: bindIEObjectHoverProvider
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
return z80EObjectHoverProvider.class;
}
示例4: bindIEObjectHoverProvider
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
return BTSEObjectHover.class;
}
示例5: bindIEObjectHoverProvider
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
return HelpHoverProvider.class;
}
示例6: bindIEObjectHoverProvider
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
return CustomCSSHelpHoverProvider.class;
}
示例7: bindIEObjectHoverProvider
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
return PlanHoverProvider.class;
}
示例8: bindIEObjectHoverProvider
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
return PhdlEObjectHoverProvider.class;
}
示例9: bindIEObjectHoverProvider
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
return ActionEObjectHoverProvider.class;
}
示例10: bindIEObjectHoverProvider
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
return GamlHoverProvider.class;
}
示例11: bindIEObjectHoverProvider
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
return yangHoverProvider.class;
}
示例12: bindIEObjectHoverProvider
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
return Antlr4HoverProvider.class;
}
示例13: bindIEObjectHoverProvider
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
return JKindEObjectHoverProvider.class;
}
示例14: bindIEObjectHoverProvider
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; //导入依赖的package包/类
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
return ExpressionsEObjectHoverProvider.class;
}
示例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);
}