本文整理匯總了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();
}
示例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");
}
示例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");
}
示例4: createActionBarAdvisor
import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
@Override
public ActionBarAdvisor createActionBarAdvisor(final IActionBarConfigurer configurer) {
return new N4JSApplicationActionBarAdvisor(configurer);
}
示例5: createActionBarAdvisor
import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
@Override
public ActionBarAdvisor createActionBarAdvisor ( final IActionBarConfigurer configurer )
{
return new ApplicationActionBarAdvisor ( configurer );
}
示例6: ApplicationActionBarAdvisor
import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public ApplicationActionBarAdvisor ( final IActionBarConfigurer configurer )
{
super ( configurer );
}
示例7: createActionBarAdvisor
import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) {
return new ApplicationActionBarAdvisor(configurer);
}
示例8: ApplicationActionBarAdvisor
import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) {
super(configurer);
}
示例9: createActionBarAdvisor
import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public ActionBarAdvisor createActionBarAdvisor(
IActionBarConfigurer actionBarConfigurer) {
return new BrowserActionBarAdvisor(actionBarConfigurer);
}
示例10: createActionBarAdvisor
import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
@Override
public ActionBarAdvisor createActionBarAdvisor(
IActionBarConfigurer configurer) {
return new ApplicationActionBarAdvisor(configurer);
}
示例11: ApplicationActionBarAdvisor
import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) {
super(configurer);
}
示例12: BrowserActionBarAdvisor
import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public BrowserActionBarAdvisor(IActionBarConfigurer configurer) {
super(configurer);
}
示例13: createActionBarAdvisor
import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer)
{
return new ApplicationActionBarAdvisor(configurer);
}
示例14: ApplicationActionBarAdvisor
import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
/**
* @param configurer
*/
public ApplicationActionBarAdvisor(IActionBarConfigurer configurer)
{
super(configurer);
}
示例15: GUIEditorActionBarAdvisor
import org.eclipse.ui.application.IActionBarConfigurer; //導入依賴的package包/類
public GUIEditorActionBarAdvisor(IActionBarConfigurer configurer) {
super(configurer);
}