Java Code Examples for org.eclipse.jface.action.ActionContributionItem#fill()

The following examples show how to use org.eclipse.jface.action.ActionContributionItem#fill() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DocumentationMenuAction.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
protected void addActionToMenu(Menu parent, IAction action) {
	ActionContributionItem item = new ActionContributionItem(action);
	item.fill(parent, -1);
}
 
Example 2
Source File: ChangeXMPPAccountAction.java    From saros with GNU General Public License v2.0 4 votes vote down vote up
private void addActionToMenu(Menu parent, Action action) {
  ActionContributionItem item = new ActionContributionItem(action);
  item.fill(parent, -1);
}
 
Example 3
Source File: FollowModeAction.java    From saros with GNU General Public License v2.0 4 votes vote down vote up
private void addActionToMenu(Menu parent, Action action) {
  ActionContributionItem item = new ActionContributionItem(action);
  item.fill(parent, -1);
}
 
Example 4
Source File: CodeSmellPackageExplorer.java    From JDeodorant with MIT License 4 votes vote down vote up
private void addActionToMenu(Menu menu, IAction action)
{
	ActionContributionItem item= new ActionContributionItem(action);
	item.fill(menu, -1);
}
 
Example 5
Source File: CodeSmellVisualization.java    From JDeodorant with MIT License 4 votes vote down vote up
private void addActionToMenu(Menu menu, IAction action)
{
	ActionContributionItem item= new ActionContributionItem(action);
	item.fill(menu, -1);
}
 
Example 6
Source File: ToolbarAction.java    From XPagesExtensionLibrary with Apache License 2.0 4 votes vote down vote up
protected void addToMenu(Menu menu, IAction action) {       
    ActionContributionItem item = new ActionContributionItem(action);
    item.fill(menu, -1);        
}
 
Example 7
Source File: HistoryDropDownAction.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
protected void addActionToMenu(Menu parent, Action action) {
	ActionContributionItem item= new ActionContributionItem(action);
	item.fill(parent, -1);
}
 
Example 8
Source File: HistoryDropDownAction.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
protected void addActionToMenu(Menu parent, Action action) {
    ActionContributionItem item = new ActionContributionItem(action);
    item.fill(parent, -1);
}
 
Example 9
Source File: HistoryDropDownAction.java    From lapse-plus with GNU General Public License v3.0 4 votes vote down vote up
protected void addActionToMenu(Menu parent, Action action) {
	ActionContributionItem item= new ActionContributionItem(action);
	item.fill(parent, -1);
}
 
Example 10
Source File: DerivedSourceDropDownAction.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
private void addActionToMenu(Menu parent, Action action) {
	ActionContributionItem item = new ActionContributionItem(action);
	item.fill(parent, -1);
}
 
Example 11
Source File: HelpDropDownAction.java    From http4e with Apache License 2.0 4 votes vote down vote up
protected void addActionToMenu( Menu parent, Action action){
   ActionContributionItem item = new ActionContributionItem(action);
   item.fill(parent, -1);
}
 
Example 12
Source File: ImportMenuAction.java    From http4e with Apache License 2.0 4 votes vote down vote up
protected void addActionToMenu( Menu parent, Action action){
   ActionContributionItem item = new ActionContributionItem(action);
   item.fill(parent, -1);
}
 
Example 13
Source File: ExportMenuAction.java    From http4e with Apache License 2.0 4 votes vote down vote up
protected void addActionToMenu( Menu parent, Action action){
   ActionContributionItem item = new ActionContributionItem(action);
   item.fill(parent, -1);
}
 
Example 14
Source File: ToolsAction.java    From http4e with Apache License 2.0 4 votes vote down vote up
protected void addActionToMenu( Menu parent, Action action){
   ActionContributionItem item = new ActionContributionItem(action);
   item.fill(parent, -1);
}
 
Example 15
Source File: ShowHistoryAction.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
protected void addActionToMenu(Menu parent, Action action) {
	final ActionContributionItem item = new ActionContributionItem(action);
	item.fill(parent, -1);
}
 
Example 16
Source File: TableCustomizationDropDownAction.java    From nebula with Eclipse Public License 2.0 4 votes vote down vote up
protected void addActionToMenu(Menu parent, Action action) {
   ActionContributionItem item = new ActionContributionItem(action);
   item.fill(parent, -1);
}
 
Example 17
Source File: ClasspathModifierDropDownAction.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Populate the menu with the given action item
 *
 * @param parent the menu to add an action for
 * @param action the action to be added
 */
private void addActionToMenu(Menu parent, IAction action) {
    ActionContributionItem item = new ActionContributionItem(action);
    item.fill(parent, -1);
}