This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 237848 - Need some additional API/functionality from launchers implementation
Summary: Need some additional API/functionality from launchers implementation
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-31 10:38 UTC by igor_nikiforov
Modified: 2016-09-04 18:36 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description igor_nikiforov 2013-10-31 10:38:22 UTC
During fixing #227793 I've found that the following functionality is missed from Launchers API:
- I need to execute launcher, that I've create in my code. Currently I have to do the following thing:

LauncherAction action = LauncherAction.runAsAction();
action.createContextAwareInstance(Lookups.fixed(project));
action.new LauncherExecutableAction(launcher).actionPerformed(null);

- Launcher, created in my code is not saved. Here is code sample:

final LaunchersRegistry registry = LaunchersRegistryFactory.getInstance(project.getProjectDirectory());
launcher = new Launcher(executable, null);
registry.add(launcher);