本文整理汇总了Java中org.eclipse.jface.internal.text.html.BrowserInformationControl类的典型用法代码示例。如果您正苦于以下问题:Java BrowserInformationControl类的具体用法?Java BrowserInformationControl怎么用?Java BrowserInformationControl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BrowserInformationControl类属于org.eclipse.jface.internal.text.html包,在下文中一共展示了BrowserInformationControl类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doCreateInformationControl
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
@Override
public IInformationControl doCreateInformationControl(Shell parent) {
String tooltipAffordanceString = EditorsUI
.getTooltipAffordanceString();
if (BrowserInformationControl.isAvailable(parent)) {
String font = "org.eclipse.jdt.ui.javadocfont";
BrowserInformationControl iControl = new BrowserInformationControl(
parent, font, false) {
@Override
public IInformationControlCreator getInformationPresenterControlCreator() {
return fInformationPresenterControlCreator;
}
};
addLinkListener(iControl);
return iControl;
} else {
return new DefaultInformationControl(parent,
tooltipAffordanceString);
}
}
示例2: doCreateInformationControl
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
@Override
public IInformationControl doCreateInformationControl(Shell parent) {
String tooltipAffordanceString = "Press F2 for focus";
if (BrowserInformationControl.isAvailable(parent)) {
String font = JFaceResources.DIALOG_FONT;
BrowserInformationControl iControl = new BrowserInformationControl(
parent, font, tooltipAffordanceString) {
/*
* @see org.eclipse.jface.text.IInformationControlExtension5#
* getInformationPresenterControlCreator()
*/
@Override
public IInformationControlCreator getInformationPresenterControlCreator() {
return fInformationPresenterControlCreator;
}
};
addLinkListener(iControl);
return iControl;
} else {
return new DefaultInformationControl(parent,
tooltipAffordanceString);
}
}
示例3: doCreateInformationControl
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
@Override
public IInformationControl doCreateInformationControl(Shell parent) {
String tooltipAffordanceString = ""; //"Press 'F2' for focus";//EditorsUI.getTooltipAffordanceString();
if (BrowserInformationControl.isAvailable(parent)) {
String font = "org.eclipse.jdt.ui.javadocfont"; // FIXME: PreferenceConstants.APPEARANCE_JAVADOC_FONT;
IXtextBrowserInformationControl iControl = new XtextBrowserInformationControl(parent, font,
tooltipAffordanceString) {
/*
* @see org.eclipse.jface.text.IInformationControlExtension5#getInformationPresenterControlCreator()
*/
@Override
public IInformationControlCreator getInformationPresenterControlCreator() {
return fInformationPresenterControlCreator;
}
};
addLinkListener(iControl);
return iControl;
} else {
return new DefaultInformationControl(parent, tooltipAffordanceString);
}
}
示例4: doCreateInformationControl
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
@Override
public IInformationControl doCreateInformationControl(final Shell parent) {
final String tooltipAffordanceString = EditorsUI.getTooltipAffordanceString();
if (BrowserInformationControl.isAvailable(parent)) {
final String font = "org.eclipse.jdt.ui.javadocfont"; // FIXME:
// PreferenceConstants.APPEARANCE_JAVADOC_FONT;
final IXtextBrowserInformationControl iControl =
new GamlInformationControl(parent, font, tooltipAffordanceString) {
};
addLinkListener(iControl);
return iControl;
} else {
return new DefaultInformationControl(parent, tooltipAffordanceString);
}
}
示例5: doCreateInformationControl
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
@Override
public IInformationControl doCreateInformationControl(Shell parent) {
String tooltipAffordanceString = "Press F2 for focus";
if (BrowserInformationControl.isAvailable(parent)) {
String font = JFaceResources.DIALOG_FONT;
BrowserInformationControl iControl = new BrowserInformationControl(
parent, font, tooltipAffordanceString) {
/*
* @see org.eclipse.jface.text.IInformationControlExtension5#
* getInformationPresenterControlCreator()
*/
@Override
public IInformationControlCreator getInformationPresenterControlCreator() {
return fInformationPresenterControlCreator;
}
};
// addLinkListener(iControl);
return iControl;
} else {
return new DefaultInformationControl(parent,
tooltipAffordanceString);
}
}
示例6: doCreateInformationControl
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
public IInformationControl doCreateInformationControl(Shell parent)
{
if (BrowserInformationControl.isAvailable(parent))
{
ToolBarManager tbm = new ToolBarManager(SWT.FLAT);
CustomBrowserInformationControl iControl = new CustomBrowserInformationControl(parent, null, tbm);
iControl.setBackgroundColor(documentationHover.getBackgroundColor());
iControl.setForegroundColor(documentationHover.getForegroundColor());
documentationHover.populateToolbarActions(tbm, iControl);
tbm.update(true);
documentationHover.installLinkListener(iControl);
return iControl;
}
else
{
return new DefaultInformationControl(parent, true);
}
}
示例7: doCreateInformationControl
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
@Override
public IInformationControl doCreateInformationControl(Shell parent) {
String tooltipAffordanceString= fAdditionalInfoAffordance ? JavaPlugin.getAdditionalInfoAffordanceString() : EditorsUI.getTooltipAffordanceString();
if (BrowserInformationControl.isAvailable(parent)) {
String font= PreferenceConstants.APPEARANCE_JAVADOC_FONT;
BrowserInformationControl iControl= new BrowserInformationControl(parent, font, tooltipAffordanceString) {
/*
* @see org.eclipse.jface.text.IInformationControlExtension5#getInformationPresenterControlCreator()
*/
@Override
public IInformationControlCreator getInformationPresenterControlCreator() {
return fInformationPresenterControlCreator;
}
};
addLinkListener(iControl);
return iControl;
} else {
return new DefaultInformationControl(parent, tooltipAffordanceString);
}
}
示例8: getInformationControlCreator
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
@Override
public IInformationControlCreator getInformationControlCreator() {
Shell shell = getActiveWorkbenchShell();
if (shell == null || !BrowserInformationControl.isAvailable(shell))
return null;
if (tsControlCreator == null) {
PresenterControlCreator presenterControlCreator = new PresenterControlCreator();
tsControlCreator = new HoverControlCreator(presenterControlCreator, true);
}
return tsControlCreator;
}
示例9: doCreateInformationControl
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
@Override
public IInformationControl doCreateInformationControl(Shell parent) {
if (BrowserInformationControl.isAvailable(parent)) {
ToolBarManager tbm = new ToolBarManager(SWT.FLAT);
TypeScriptBrowserInformationControl control = new TypeScriptBrowserInformationControl(
parent, null, tbm);
tbm.update(true);
addLinkListener(control);
return control;
} else {
return new DefaultInformationControl(parent, true);
}
}
示例10: doCreateInformationControl
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
@Override
public IInformationControl doCreateInformationControl(Shell parent) {
if (BrowserInformationControl.isAvailable(parent)) {
ToolBarManager tbm = new ToolBarManager(SWT.FLAT);
JSONBrowserInformationControl control = new JSONBrowserInformationControl(
parent, null, tbm);
tbm.update(true);
// addLinkListener(control);
return control;
} else {
return new DefaultInformationControl(parent, true);
}
}
示例11: getInformationControlCreator
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
public IInformationControlCreator getInformationControlCreator() {
Shell shell= JavaPlugin.getActiveWorkbenchShell();
if (shell == null || !BrowserInformationControl.isAvailable(shell))
return null;
if (fCreator == null) {
/*
* FIXME: Take control creators (and link handling) out of JavadocHover,
* see https://bugs.eclipse.org/bugs/show_bug.cgi?id=232024
*/
JavadocHover.PresenterControlCreator presenterControlCreator= new JavadocHover.PresenterControlCreator(getSite());
fCreator= new JavadocHover.HoverControlCreator(presenterControlCreator, true);
}
return fCreator;
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:16,代码来源:AbstractJavaCompletionProposal.java
示例12: BackAction
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
public BackAction(BrowserInformationControl infoControl) {
fInfoControl= infoControl;
setText(JavaHoverMessages.JavadocHover_back);
ISharedImages images= PlatformUI.getWorkbench().getSharedImages();
setImageDescriptor(images.getImageDescriptor(ISharedImages.IMG_TOOL_BACK));
setDisabledImageDescriptor(images.getImageDescriptor(ISharedImages.IMG_TOOL_BACK_DISABLED));
update();
}
示例13: ForwardAction
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
public ForwardAction(BrowserInformationControl infoControl) {
fInfoControl= infoControl;
setText(JavaHoverMessages.JavadocHover_forward);
ISharedImages images= PlatformUI.getWorkbench().getSharedImages();
setImageDescriptor(images.getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD));
setDisabledImageDescriptor(images.getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD_DISABLED));
update();
}
示例14: getInformationControlCreator
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
@Override
public IInformationControlCreator getInformationControlCreator() {
Shell shell = WebResourcesUIPlugin.getActiveWorkbenchShell();
if (shell == null || !BrowserInformationControl.isAvailable(shell))
return null;
if (webResourcesControlCreator == null) {
PresenterControlCreator presenterControlCreator = new PresenterControlCreator();
webResourcesControlCreator = new WebResourcesHoverControlCreator(
presenterControlCreator, true);
}
return webResourcesControlCreator;
}
示例15: doCreateInformationControl
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
@Override
public IInformationControl doCreateInformationControl(Shell parent) {
if (BrowserInformationControl.isAvailable(parent)) {
ToolBarManager tbm = new ToolBarManager(SWT.FLAT);
WebResourcesBrowserInformationControl control = new WebResourcesBrowserInformationControl(
parent, null, tbm);
tbm.update(true);
WebResourcesHoverControlCreator.addLinkListener(control);
return control;
} else {
return new DefaultInformationControl(parent, true);
}
}