當前位置: 首頁>>代碼示例>>Java>>正文


Java EditorsUI.getTooltipAffordanceString方法代碼示例

本文整理匯總了Java中org.eclipse.ui.editors.text.EditorsUI.getTooltipAffordanceString方法的典型用法代碼示例。如果您正苦於以下問題:Java EditorsUI.getTooltipAffordanceString方法的具體用法?Java EditorsUI.getTooltipAffordanceString怎麽用?Java EditorsUI.getTooltipAffordanceString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.ui.editors.text.EditorsUI的用法示例。


在下文中一共展示了EditorsUI.getTooltipAffordanceString方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: doCreateInformationControl

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的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.ui.editors.text.EditorsUI; //導入方法依賴的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

示例3: doCreateInformationControl

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
public IInformationControl doCreateInformationControl(Shell parent)
{
	if (CustomBrowserInformationControl.isAvailable(parent))
	{
		CustomBrowserInformationControl iControl = new CustomBrowserInformationControl(parent, null,
				EditorsUI.getTooltipAffordanceString())
		{
			public IInformationControlCreator getInformationPresenterControlCreator()
			{
				return informationPresenterControlCreator;
			}
		};
		iControl.setBackgroundColor(getBackgroundColor());
		iControl.setForegroundColor(getForegroundColor());
		return iControl;
	}
	else
	{
		// return new ThemedInformationControl(parent, null, EditorsUI.getTooltipAffordanceString());
		return new DefaultInformationControl(parent, true);
	}
}
 
開發者ID:apicloudcom,項目名稱:APICloud-Studio,代碼行數:23,代碼來源:AbstractDocumentationHover.java

示例4: doCreateInformationControl

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的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

示例5: getHoverControlCreator

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
@Override
public IInformationControlCreator getHoverControlCreator() {
    return new IInformationControlCreator() {

        @Override
        public IInformationControl createInformationControl(Shell parent) {
            String tooltipAffordanceString = null;
            try {
                tooltipAffordanceString = EditorsUI.getTooltipAffordanceString();
            } catch (Throwable e) {
                //Not available on Eclipse 3.2
            }
            informationControl = new PyInformationControl(parent, tooltipAffordanceString,
                    informationPresenter);
            return informationControl;
        }
    };
}
 
開發者ID:fabioz,項目名稱:Pydev,代碼行數:19,代碼來源:AbstractPyEditorTextHover.java

示例6: getHoverControlCreator

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
@Override
public IInformationControlCreator getHoverControlCreator() {
    return new IInformationControlCreator() {
        @Override
        public IInformationControl createInformationControl(Shell parent) {
            return new DefaultInformationControl(parent, EditorsUI.getTooltipAffordanceString());
        }
    };
}
 
開發者ID:pgcodekeeper,項目名稱:pgcodekeeper,代碼行數:10,代碼來源:SQLEditorTextHover.java

示例7: doCreateInformationControl

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
public IInformationControl doCreateInformationControl(Shell parent) {
	String tooltipAffordanceString = EditorsUI.getTooltipAffordanceString();
	if (de.darwinspl.preferences.resource.dwprofile.ui.DwprofileBrowserInformationControl.isAvailable(parent)) {
		de.darwinspl.preferences.resource.dwprofile.ui.DwprofileBrowserInformationControl iControl = new de.darwinspl.preferences.resource.dwprofile.ui.DwprofileBrowserInformationControl(parent, FONT, tooltipAffordanceString) {
			public IInformationControlCreator getInformationPresenterControlCreator() {
				return fInformationPresenterControlCreator;
			}
		};
		return iControl;
	} else {
		return new DefaultInformationControl(parent, tooltipAffordanceString);
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:14,代碼來源:DwprofileTextHover.java

示例8: canReuse

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
public boolean canReuse(IInformationControl control) {
	if (!super.canReuse(control)) {
		return false;
	}
	
	if (control instanceof IInformationControlExtension4) {
		String tooltipAffordanceString = EditorsUI.getTooltipAffordanceString();
		((IInformationControlExtension4) control).setStatusText(tooltipAffordanceString);
	}
	
	return true;
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:13,代碼來源:DwprofileTextHover.java

示例9: doCreateInformationControl

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
public IInformationControl doCreateInformationControl(Shell parent) {
	String tooltipAffordanceString = EditorsUI.getTooltipAffordanceString();
	if (eu.hyvar.feature.expression.resource.hyexpression.ui.HyexpressionBrowserInformationControl.isAvailable(parent)) {
		eu.hyvar.feature.expression.resource.hyexpression.ui.HyexpressionBrowserInformationControl iControl = new eu.hyvar.feature.expression.resource.hyexpression.ui.HyexpressionBrowserInformationControl(parent, FONT, tooltipAffordanceString) {
			public IInformationControlCreator getInformationPresenterControlCreator() {
				return fInformationPresenterControlCreator;
			}
		};
		return iControl;
	} else {
		return new DefaultInformationControl(parent, tooltipAffordanceString);
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:14,代碼來源:HyexpressionTextHover.java

示例10: doCreateInformationControl

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
public IInformationControl doCreateInformationControl(Shell parent) {
	String tooltipAffordanceString = EditorsUI.getTooltipAffordanceString();
	if (eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaBrowserInformationControl.isAvailable(parent)) {
		eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaBrowserInformationControl iControl = new eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaBrowserInformationControl(parent, FONT, tooltipAffordanceString) {
			public IInformationControlCreator getInformationPresenterControlCreator() {
				return fInformationPresenterControlCreator;
			}
		};
		return iControl;
	} else {
		return new DefaultInformationControl(parent, tooltipAffordanceString);
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:14,代碼來源:HyvalidityformulaTextHover.java

示例11: doCreateInformationControl

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
public IInformationControl doCreateInformationControl(Shell parent) {
	String tooltipAffordanceString = EditorsUI.getTooltipAffordanceString();
	if (eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueBrowserInformationControl.isAvailable(parent)) {
		eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueBrowserInformationControl iControl = new eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueBrowserInformationControl(parent, FONT, tooltipAffordanceString) {
			public IInformationControlCreator getInformationPresenterControlCreator() {
				return fInformationPresenterControlCreator;
			}
		};
		return iControl;
	} else {
		return new DefaultInformationControl(parent, tooltipAffordanceString);
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:14,代碼來源:HydatavalueTextHover.java

示例12: doCreateInformationControl

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
public IInformationControl doCreateInformationControl(Shell parent) {
	String tooltipAffordanceString = EditorsUI.getTooltipAffordanceString();
	if (eu.hyvar.feature.mapping.resource.hymapping.ui.HymappingBrowserInformationControl.isAvailable(parent)) {
		eu.hyvar.feature.mapping.resource.hymapping.ui.HymappingBrowserInformationControl iControl = new eu.hyvar.feature.mapping.resource.hymapping.ui.HymappingBrowserInformationControl(parent, FONT, tooltipAffordanceString) {
			public IInformationControlCreator getInformationPresenterControlCreator() {
				return fInformationPresenterControlCreator;
			}
		};
		return iControl;
	} else {
		return new DefaultInformationControl(parent, tooltipAffordanceString);
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:14,代碼來源:HymappingTextHover.java

示例13: doCreateInformationControl

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
public IInformationControl doCreateInformationControl(Shell parent) {
	String tooltipAffordanceString = EditorsUI.getTooltipAffordanceString();
	if (eu.hyvar.feature.constraint.resource.hyconstraints.ui.HyconstraintsBrowserInformationControl.isAvailable(parent)) {
		eu.hyvar.feature.constraint.resource.hyconstraints.ui.HyconstraintsBrowserInformationControl iControl = new eu.hyvar.feature.constraint.resource.hyconstraints.ui.HyconstraintsBrowserInformationControl(parent, FONT, tooltipAffordanceString) {
			public IInformationControlCreator getInformationPresenterControlCreator() {
				return fInformationPresenterControlCreator;
			}
		};
		return iControl;
	} else {
		return new DefaultInformationControl(parent, tooltipAffordanceString);
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:14,代碼來源:HyconstraintsTextHover.java

示例14: doCreateInformationControl

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
public IInformationControl doCreateInformationControl(Shell parent) {
	String tooltipAffordanceString = EditorsUI.getTooltipAffordanceString();
	if (eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestBrowserInformationControl.isAvailable(parent)) {
		eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestBrowserInformationControl iControl = new eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestBrowserInformationControl(parent, FONT, tooltipAffordanceString) {
			public IInformationControlCreator getInformationPresenterControlCreator() {
				return fInformationPresenterControlCreator;
			}
		};
		return iControl;
	} else {
		return new DefaultInformationControl(parent, tooltipAffordanceString);
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:14,代碼來源:HymanifestTextHover.java

示例15: getHoverControlCreator

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
@Override
public IInformationControlCreator getHoverControlCreator() {
	return new IInformationControlCreator() {

		@Override
		public IInformationControl createInformationControl(Shell parent) {
			return new DefaultInformationControl(parent, EditorsUI.getTooltipAffordanceString());
		}
	};
}
 
開發者ID:grosenberg,項目名稱:fluentmark,代碼行數:11,代碼來源:FluentMkTextHover.java


注:本文中的org.eclipse.ui.editors.text.EditorsUI.getTooltipAffordanceString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。