Ejemplo n.º 1
0
 protected void updateIcon(final Presentation presentation, final ConfigurationContext context) {
   final RunnerAndConfigurationSettingsImpl configuration = context.findExisting();
   if (configuration != null) {
     presentation.setIcon(configuration.getType().getIcon());
   } else {
     super.updateIcon(presentation, context);
   }
 }
Ejemplo n.º 2
0
 public void perform(final ConfigurationContext context) {
   final RunManagerImpl runManager = (RunManagerImpl) context.getRunManager();
   final RunnerAndConfigurationSettingsImpl configuration = context.getConfiguration();
   final RunnerAndConfigurationSettingsImpl template =
       runManager.getConfigurationTemplate(configuration.getFactory());
   final RunConfiguration templateConfiguration = template.getConfiguration();
   runManager.addConfiguration(
       configuration,
       runManager.isConfigurationShared(template),
       runManager.getBeforeRunTasks(templateConfiguration));
   runManager.setActiveConfiguration(configuration);
 }
Ejemplo n.º 3
0
 public void perform(final ConfigurationContext context) {
   final RunnerAndConfigurationSettingsImpl configuration = context.getConfiguration();
   if (RunDialog.editConfiguration(
       context.getProject(),
       configuration,
       ExecutionBundle.message(
           "create.run.configuration.for.item.dialog.title", configuration.getName()))) {
     final RunManagerImpl runManager = (RunManagerImpl) context.getRunManager();
     runManager.addConfiguration(
         configuration,
         runManager.isConfigurationShared(configuration),
         runManager.getBeforeRunTasks(configuration.getConfiguration()));
     runManager.setActiveConfiguration(configuration);
   }
 }