|
|
| 105 |
IConfigurationElement[] actions = configElement |
105 |
IConfigurationElement[] actions = configElement |
| 106 |
.getChildren(IWorkbenchRegistryConstants.TAG_ACTION); |
106 |
.getChildren(IWorkbenchRegistryConstants.TAG_ACTION); |
| 107 |
if (actions.length > 0) { |
107 |
if (actions.length > 0) { |
| 108 |
for (int i = 0; i < actions.length; i++) { |
108 |
for (int i = actions.length - 1; i >= 0; i--) { |
| 109 |
IConfigurationElement up = actions[i]; |
109 |
addContribution(idContrib, menuContributions, actions[i], false, MAIN_MENU); |
| 110 |
IConfigurationElement down = actions[actions.length - 1 - i]; |
110 |
addToolBarContribution(idContrib, toolBarContributions, trimContributions, |
| 111 |
addContribution(idContrib, menuContributions, down, false, MAIN_MENU); |
111 |
actions[i], MAIN_TOOLBAR); |
| 112 |
addToolBarContribution(idContrib, toolBarContributions, trimContributions, up, |
|
|
| 113 |
MAIN_TOOLBAR); |
| 114 |
} |
112 |
} |
| 115 |
} |
113 |
} |
| 116 |
} |
114 |
} |