本文整理汇总了Java中org.eclipse.jface.internal.text.html.BrowserInformationControl类的典型用法代码示例。如果您正苦于以下问题:Java BrowserInformationControl类的具体用法?Java BrowserInformationControl怎么用?Java BrowserInformationControl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BrowserInformationControl类属于org.eclipse.jface.internal.text.html包,在下文中一共展示了BrowserInformationControl类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
}
开发者ID:Yakindu,项目名称:solidity-ide,代码行数:21,代码来源:CustomCSSHelpHoverProvider.java
示例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);
}
}
开发者ID:angelozerr,项目名称:typescript.java,代码行数:24,代码来源:HoverControlCreator.java
示例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);
}
}
开发者ID:cplutte,项目名称:bts,代码行数:22,代码来源:DefaultEObjectHoverProvider.java
示例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);
}
}
开发者ID:gama-platform,项目名称:gama,代码行数:18,代码来源:GamlHoverProvider.java
示例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);
}
}
开发者ID:angelozerr,项目名称:eclipse-wtp-json,代码行数:24,代码来源:JSONHoverControlCreator.java
示例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);
}
}
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:19,代码来源:AbstractDocumentationHover.java
示例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);
}
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:21,代码来源:JavadocHover.java
示例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;
}
开发者ID:angelozerr,项目名称:typescript.java,代码行数:12,代码来源:TypeScriptCompletionProposal.java
示例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);
}
}
开发者ID:angelozerr,项目名称:typescript.java,代码行数:14,代码来源:PresenterControlCreator.java
示例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);
}
}
开发者ID:angelozerr,项目名称:eclipse-wtp-json,代码行数:14,代码来源:JSONPresenterControlCreator.java
示例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();
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:10,代码来源:JavadocHover.java
示例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();
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:10,代码来源:JavadocHover.java
示例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;
}
开发者ID:angelozerr,项目名称:eclipse-wtp-webresources,代码行数:14,代码来源:WebResourcesCompletionProposal.java
示例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);
}
}
开发者ID:angelozerr,项目名称:eclipse-wtp-webresources,代码行数:14,代码来源:PresenterControlCreator.java
示例16: getInformationControlCreator
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
@Override
public IInformationControlCreator getInformationControlCreator() {
Shell shell = TernUIPlugin.getActiveWorkbenchShell();
if (shell == null || !BrowserInformationControl.isAvailable(shell))
return null;
if (ternControlCreator == null) {
IInformationControlCreator presenterControlCreator = new IDEPresenterControlCreator(
this);
ternControlCreator = new IDEHoverControlCreator(
presenterControlCreator, true, this);
}
return ternControlCreator;
}
开发者ID:angelozerr,项目名称:angularjs-eclipse,代码行数:15,代码来源:HTMLAngularCompletionProposal.java
示例17: HoverLocationListener
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
public HoverLocationListener(BrowserInformationControl control) {
this.control = control;
}
开发者ID:angelozerr,项目名称:typescript.java,代码行数:4,代码来源:HoverLocationListener.java
示例18: addLinkListener
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
public static void addLinkListener(final BrowserInformationControl control) {
addLinkListener(control, new HoverLocationListener(control));
}
开发者ID:angelozerr,项目名称:typescript.java,代码行数:4,代码来源:HoverLocationListener.java
示例19: addLinkListener
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
protected void addLinkListener(BrowserInformationControl control) {
HoverLocationListener.addLinkListener(control);
}
开发者ID:angelozerr,项目名称:typescript.java,代码行数:4,代码来源:HoverControlCreator.java
示例20: addLinkListener
import org.eclipse.jface.internal.text.html.BrowserInformationControl; //导入依赖的package包/类
@Override
protected void addLinkListener(BrowserInformationControl control) {
HoverLocationListener.addLinkListener(control,
new IDEHoverLocationListener(control, provider));
}
开发者ID:angelozerr,项目名称:typescript.java,代码行数:6,代码来源:IDEHoverControlCreator.java
注:本文中的org.eclipse.jface.internal.text.html.BrowserInformationControl类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论