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


Java IActionBarConfigurer類代碼示例

本文整理匯總了Java中org.eclipse.ui.application.IActionBarConfigurer的典型用法代碼示例。如果您正苦於以下問題:Java IActionBarConfigurer類的具體用法?Java IActionBarConfigurer怎麽用?Java IActionBarConfigurer使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


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

示例1: postWindowCreate

import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
/**
 * 刪除 RCP 自帶的工具欄按鈕
 */
public void postWindowCreate() {
	IActionBarConfigurer actionBarConfigurer = getWindowConfigurer().getActionBarConfigurer();
	IContributionItem[] coolItems = actionBarConfigurer.getCoolBarManager().getItems();
	for (int i = 0; i < coolItems.length; i++) {
		if (coolItems[i] instanceof ToolBarContributionItem) {
			ToolBarContributionItem toolbarItem = (ToolBarContributionItem) coolItems[i];
			if (toolbarItem.getId().equals("org.eclipse.ui.WorkingSetActionSet")
					|| toolbarItem.getId().equals("org.eclipse.ui.edit.text.actionSet.annotationNavigation")
					|| toolbarItem.getId().equals("org.eclipse.ui.edit.text.actionSet.navigation")) {
				toolbarItem.getToolBarManager().removeAll();
			}
		}
	}
	actionBarConfigurer.getCoolBarManager().update(true);

	addAutoPluginMenu();

}
 
開發者ID:heartsome,項目名稱:translationstudio8,代碼行數:22,代碼來源:ApplicationWorkbenchWindowAdvisor.java

示例2: YamcsStudioActionBarAdvisor

import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public YamcsStudioActionBarAdvisor(IActionBarConfigurer configurer) {
    super(configurer);
    window = configurer.getWindowConfigurer().getWindow();

    // Remove menu items that are not suitable in CS-Studio
    removeActionById("org.eclipse.ui.edit.text.actionSet.navigation");
    removeActionById("org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo");
    removeActionById("org.eclipse.ui.edit.text.actionSet.annotationNavigation");
}
 
開發者ID:yamcs,項目名稱:yamcs-studio,代碼行數:10,代碼來源:YamcsStudioActionBarAdvisor.java

示例3: EnsembleActionBarAdvisor

import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
/**
 * Creates an EnsembleActionBarAdvisor, this calls the parent ActionBarAdvisor constructor.  
 * This is the only public constructor.
 * 
 * @param configurer The 
 */
public EnsembleActionBarAdvisor(IActionBarConfigurer configurer) {
	super(configurer);
	PlatformUI.getPreferenceStore().setValue(
			IWorkbenchPreferenceConstants.DYNAMIC_HELP_ACTION_TEXT, "Related Help");
	PlatformUI.getPreferenceStore().setValue(
			IWorkbenchPreferenceConstants.HELP_CONTENTS_ACTION_TEXT, "User Guide");
}
 
開發者ID:nasa,項目名稱:OpenSPIFe,代碼行數:14,代碼來源:EnsembleActionBarAdvisor.java

示例4: createActionBarAdvisor

import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
@Override
public ActionBarAdvisor createActionBarAdvisor(final IActionBarConfigurer configurer) {
	return new N4JSApplicationActionBarAdvisor(configurer);
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:5,代碼來源:N4JSApplicationWorkbenchWindowAdvisor.java

示例5: createActionBarAdvisor

import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
@Override
public ActionBarAdvisor createActionBarAdvisor ( final IActionBarConfigurer configurer )
{
    return new ApplicationActionBarAdvisor ( configurer );
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:6,代碼來源:ApplicationWorkbenchWindowAdvisor.java

示例6: ApplicationActionBarAdvisor

import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public ApplicationActionBarAdvisor ( final IActionBarConfigurer configurer )
{
    super ( configurer );
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:5,代碼來源:ApplicationActionBarAdvisor.java

示例7: createActionBarAdvisor

import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) {
    return new ApplicationActionBarAdvisor(configurer);
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:4,代碼來源:ApplicationWorkbenchWindowAdvisor.java

示例8: ApplicationActionBarAdvisor

import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) {
    super(configurer);
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:4,代碼來源:ApplicationActionBarAdvisor.java

示例9: createActionBarAdvisor

import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public ActionBarAdvisor createActionBarAdvisor(
        IActionBarConfigurer actionBarConfigurer) {
    return new BrowserActionBarAdvisor(actionBarConfigurer);
}
 
開發者ID:NineWorlds,項目名稱:xstreamer,代碼行數:5,代碼來源:ApplicationWorkbenchAdvisor.java

示例10: createActionBarAdvisor

import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
@Override
public ActionBarAdvisor createActionBarAdvisor(
		IActionBarConfigurer configurer) {
	return new ApplicationActionBarAdvisor(configurer);
}
 
開發者ID:NineWorlds,項目名稱:xstreamer,代碼行數:6,代碼來源:ApplicationWorkbenchWindowAdvisor.java

示例11: ApplicationActionBarAdvisor

import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) {
	super(configurer);
}
 
開發者ID:NineWorlds,項目名稱:xstreamer,代碼行數:4,代碼來源:ApplicationActionBarAdvisor.java

示例12: BrowserActionBarAdvisor

import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public BrowserActionBarAdvisor(IActionBarConfigurer configurer) {
       super(configurer);
}
 
開發者ID:NineWorlds,項目名稱:xstreamer,代碼行數:4,代碼來源:BrowserActionBarAdvisor.java

示例13: createActionBarAdvisor

import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer)
{
    return new ApplicationActionBarAdvisor(configurer);
}
 
開發者ID:tlaplus,項目名稱:tlaplus,代碼行數:5,代碼來源:ApplicationWorkbenchWindowAdvisor.java

示例14: ApplicationActionBarAdvisor

import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
/**
 * @param configurer
 */
public ApplicationActionBarAdvisor(IActionBarConfigurer configurer)
{
    super(configurer);
}
 
開發者ID:tlaplus,項目名稱:tlaplus,代碼行數:8,代碼來源:ApplicationActionBarAdvisor.java

示例15: GUIEditorActionBarAdvisor

import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public GUIEditorActionBarAdvisor(IActionBarConfigurer configurer) {
	super(configurer);
}
 
開發者ID:ShoukriKattan,項目名稱:ForgedUI-Eclipse,代碼行數:4,代碼來源:GUIEditorActionBarAdvisor.java


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