private static Constants constants = ((Constants) GWT.create(Constants.class));
public static Menu getMenu(final GenericPanel manager) {
Menu m = new Menu();
m.addItem(new Item(constants.BusinessRuleGuidedEditor(), new BaseItemListenerAdapter() {
public void onClick(BaseItem item, EventObject e) {
manager.launchWizard(AssetFormats.BUSINESS_RULE, constants.NewBusinessRuleGuidedEditor(), true);
}
}, "images/business_rule.gif")); //NON-NLS
m.addItem(new Item(constants.DSLBusinessRuleTextEditor(), new BaseItemListenerAdapter() {
public void onClick(BaseItem item, EventObject e) {
manager.launchWizard(AssetFormats.DSL_TEMPLATE_RULE, constants.NewRuleUsingDSL(), true);
}
}, "images/business_rule.gif")); //NON-NLS
m.addItem(new Item(constants.DRLRuleTechnicalRuleTextEditor(), new BaseItemListenerAdapter() {
public void onClick(BaseItem item, EventObject e) {
manager.launchWizard(AssetFormats.DRL, constants.NewDRL(), true);
}
}, "images/rule_asset.gif")); //NON-NLS
m.addItem(new Item(constants.DecisionTableSpreadsheet(), new BaseItemListenerAdapter() {
public void onClick(BaseItem item, EventObject e) {
manager.launchWizard(AssetFormats.DECISION_SPREADSHEET_XLS, constants.NewDecisionTableSpreadsheet(), true);
}
}, "images/spreadsheet_small.gif")); //NON-NLS
m.addItem(new Item(constants.DecisionTableWebGuidedEditor(), new BaseItemListenerAdapter() {
public void onClick(BaseItem item, EventObject e) {
manager.launchWizard(AssetFormats.DECISION_TABLE_GUIDED, constants.NewDecisionTableGuidedEditor(), true);
}
}, "images/gdst.gif")); //NON-NLS
m.addItem(new Item(constants.TestScenario(), new BaseItemListenerAdapter() {
public void onClick(BaseItem item, EventObject e) {
manager.launchWizard(AssetFormats.TEST_SCENARIO,
constants.CreateATestScenario(), false);
}
}, "images/test_manager.gif")); //NON-NLS