// actions
ActionBase action;
ImageIcon icon;
String langDepName;
JaWEAction ja;
// Close
action = new Close(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/close.gif"));
langDepName = "Close";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("Close", ja);
// Exit
action = new Exit(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/exit.gif"));
langDepName = "Exit";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("Exit", ja);
// HelpAbout
action = new HelpAbout(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/jawe.gif"));
langDepName = "HelpAbout";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("HelpAbout", ja);
// HelpManual
/*
try {
String clsName = "org.enhydra.jawe.base.controller.actions.HelpManual";
try {
action = (ActionBase) Class.forName(clsName).getConstructor(new Class[]{
JaWEComponent.class
}).newInstance(new Object[]{
comp
});
} catch (Exception e) {
action = null;
}
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/manual.gif"));
langDepName = "HelpManual";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("HelpManual", ja);
} catch (Exception ex) {
}
*/
// Language Switcher
componentSettings.put("LanguageSwitcherClassName",
"org.enhydra.jawe.components.languageswitcher.LanguageSwitcherManager");
componentSettings.put("LanguageSwitcherSettingsName",
"org.enhydra.jawe.components.languageswitcher.LanguageSwitcherSettings");
// Reconfigurator
componentSettings.put("ReconfiguratorClassName",
"org.enhydra.jawe.components.reconfiguration.ReconfiguratorManager");
componentSettings.put("ReconfiguratorSettingsName",
"org.enhydra.jawe.components.reconfiguration.ReconfiguratorSettings");
// NewPackage
action = new NewPackage(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/new.gif"));
langDepName = "NewPackage";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("NewPackage", ja);
// Open
action = new Open(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/open.gif"));
langDepName = "Open";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("Open", ja);
//CUSTOM
action = new Deploy(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/new.gif"));
langDepName = "Deploy";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("Deploy", ja);
//END CUSTOM
// RecentFiles
componentSettings.put("RecentFilesClassName",
"org.enhydra.jawe.base.recentfiles.RecentFilesManager");
componentSettings.put("RecentFilesSettingsName",
"org.enhydra.jawe.base.recentfiles.RecentFilesSettings");
// Reopen
action = new Reopen(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/reopen.gif"));
langDepName = "Reopen";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("Reopen", ja);
// Save
action = new Save(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/save.gif"));
langDepName = "Save";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("Save", ja);
// SaveAs
action = new SaveAs(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/saveas.gif"));
langDepName = "SaveAs";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("SaveAs", ja);
// Search
try {
String clsName = "org.enhydra.jawe.base.controller.actions.Search";
try {
action = (ActionBase) Class.forName(clsName).getConstructor(new Class[]{
JaWEComponent.class
}).newInstance(new Object[]{
comp
});
} catch (Exception e) {
action = null;
}
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/search.png"));
langDepName = "Search";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("Search", ja);
} catch (Exception ex) {
}
// Package
// PackageApplications
action = new PackageApplications(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/packageapplications.gif"));
langDepName = "PackageApplications";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("PackageApplications", ja);
// PackageCheckValidity
action = new PackageCheckValidity(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/packagecheck.gif"));
langDepName = "PackageCheckValidity";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("PackageCheckValidity", ja);
// PackageExternalPackages
action = new PackageExternalPackages(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/externalpackages.gif"));
langDepName = "PackageExternalPackages";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("PackageExternalPackages", ja);
// PackageAddExternalPackage
action = new PackageAddExternalPackage(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/externalpackagesadd.gif"));
langDepName = "PackageAddExternalPackage";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("PackageAddExternalPackage", ja);
// PackageRemoveExternalPackage
action = new PackageRemoveExternalPackage(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/externalpackagesremove.gif"));
langDepName = "PackageRemoveExternalPackage";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("PackageRemoveExternalPackage", ja);
// PackageNamespaces
action = new PackageNamespaces(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/namespaces.gif"));
langDepName = "PackageNamespaces";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("PackageNamespaces", ja);
// PackageNewProcess
action = new PackageNewProcess(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/processnew.gif"));
langDepName = "PackageNewProcess";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("PackageNewProcess", ja);
// PackageParticipants
action = new PackageParticipants(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/packageparticipants.gif"));
langDepName = "PackageParticipants";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("PackageParticipants", ja);
// PackageProcesses
action = new PackageProcesses(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/processes.gif"));
langDepName = "PackageProcesses";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("PackageProcesses", ja);
// PackageProperties
action = new PackageProperties(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/packageproperties.gif"));
langDepName = "PackageProperties";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("PackageProperties", ja);
// PackageTypeDeclarations
action = new PackageTypeDeclarations(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/typedeclarations.gif"));
langDepName = "PackageTypeDeclarations";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("PackageTypeDeclarations", ja);
// PackageWorkflowRelevantData
action = new PackageWorkflowRelevantData(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/packageworkflowrelevantdata.gif"));
langDepName = "PackageWorkflowRelevantData";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("PackageWorkflowRelevantData", ja);
// PackageReferredDocument
action = new PackageReferredDocument(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/referred_document.png"));
langDepName = "PackageReferredDocument";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put(action.getValue(Action.NAME), ja);
// Process
// ProcessActivitiesOverview
action = new ProcessActivitiesOverview(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/activities.gif"));
langDepName = "ProcessActivitiesOverview";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("ProcessActivitiesOverview", ja);
// ProcessActivitySetsOverview
action = new ProcessActivitySetsOverview(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/activitysets.gif"));
langDepName = "ProcessActivitySetsOverview";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("ProcessActivitySetsOverview", ja);
// ProcessApplications
action = new ProcessApplications(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/processapplications.gif"));
langDepName = "ProcessApplications";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("ProcessApplications", ja);
// ProcessFormalParameters
action = new ProcessFormalParameters(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/processformalparameters.gif"));
langDepName = "ProcessFormalParameters";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("ProcessFormalParameters", ja);
// ProcessParticipants
action = new ProcessParticipants(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/processparticipants.gif"));
langDepName = "ProcessParticipants";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("ProcessParticipants", ja);
// ProcessProperties
action = new ProcessProperties(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/processproperties.gif"));
langDepName = "ProcessProperties";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("ProcessProperties", ja);
// ProcessTransitionsOverview
action = new ProcessTransitionsOverview(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/transitions.gif"));
langDepName = "ProcessTransitionsOverview";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("ProcessTransitionsOverview", ja);
// ProcessWorkflowRelevantData
action = new ProcessWorkflowRelevantData(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/processworkflowrelevantdata.gif"));
langDepName = "ProcessWorkflowRelevantData";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("ProcessWorkflowRelevantData", ja);
// External Packages
// External Applications
action = new ExternalApplications(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/externalapplications.gif"));
langDepName = "ExternalApplications";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("ExternalApplications", ja);
// ExternalParticipants
action = new ExternalParticipants(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/externalparticipants.gif"));
langDepName = "ExternalParticipants";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("ExternalParticipants", ja);
// ExternalProcesses
action = new ExternalProcesses(comp);
icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/externalprocesses.gif"));
langDepName = "ExternalProcesses";
ja = new JaWEAction(action, icon, langDepName);
componentAction.put("ExternalProcesses", ja);
}