@Override
public Object getHoverInfo(EObject first,ITextViewer textViewer,IRegion hoverRegion) {
IEObjectHoverProvider hoverProvider = serviceProvider.findService(first,IEObjectHoverProvider.class);
if (hoverProvider==null)
return null;
IinformationControlCreatorProvider creatorProvider = hoverProvider.getHoverInfo(first,textViewer,hoverRegion);
if (creatorProvider==null)
return null;
this.lastCreatorProvider = creatorProvider;
return lastCreatorProvider.getInfo();
}
项目:statecharts
文件:CrossRefObjectTextHover.java
@Override
public Object getHoverInfo(EObject first,IRegion hoverRegion) {
IinformationControlCreatorProvider creatorProvider = hoverProvider
.getHoverInfo(first,hoverRegion);
if (creatorProvider == null)
return null;
this.lastCreatorProvider = creatorProvider;
return lastCreatorProvider.getInfo();
}
@Override
public Object getHoverInfo(EObject first,hoverRegion);
if (creatorProvider == null)
return null;
this.lastCreatorProvider = creatorProvider;
return lastCreatorProvider.getInfo();
}