mirror of
https://github.com/peterdell/wudsn-ide.git
synced 2024-12-21 18:29:40 +00:00
Output startup test message only for JAC!
This commit is contained in:
parent
ccaf1a554e
commit
80ddc43d9a
@ -32,21 +32,22 @@ import org.eclipse.ui.menus.WorkbenchWindowControlContribution;
|
||||
|
||||
// TODO: This should become a replacement for the action/actionSet based dynamic menu
|
||||
// See also https://wiki.eclipse.org/Menu_Contributions
|
||||
// Mail sent to grthor@users.sourceforge.net on 2020-10-11.
|
||||
// Asked at https://www.eclipse.org/forums/index.php/m/1833428/#msg_1833428
|
||||
public final class AssemblerEditorCompileAndRunCommandMenu extends WorkbenchWindowControlContribution {
|
||||
|
||||
public AssemblerEditorCompileAndRunCommandMenu() {
|
||||
if (System.getProperty("user.name").equals("JAC")) {
|
||||
new Exception("JAC! Test for Startup!").printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@AboutToShow
|
||||
public void aboutToShow(List<MMenuElement> items) {
|
||||
MDirectMenuItem dynamicItem = MMenuFactory.INSTANCE.createDirectMenuItem();
|
||||
dynamicItem.setLabel("Dynamic Menu Item (" + new Date() + ")");
|
||||
dynamicItem.setContributorURI("platform:/plugin/at.descher.eclipse.bug389063");
|
||||
dynamicItem
|
||||
.setContributionURI("bundleclass://at.descher.eclipse.bug389063/at.descher.eclipse.bug389063.dynamic.DirectMenuItemAHandler");
|
||||
dynamicItem.setContributionURI(
|
||||
"bundleclass://at.descher.eclipse.bug389063/at.descher.eclipse.bug389063.dynamic.DirectMenuItemAHandler");
|
||||
items.add(dynamicItem);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user