Skip to content

Commit

Permalink
remove IForgeLaunchConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
koentsje committed Feb 16, 2014
1 parent 24056fa commit a066cf5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

public class ForgeLaunchHelper {

private static final String ID_FORGE_PROCESS_FACTORY = "org.jboss.tools.forge.core.process.ForgeProcessFactory";

private static final ILaunchManager LAUNCH_MANAGER = DebugPlugin.getDefault().getLaunchManager();

private static final ILaunchConfigurationType JAVA_LAUNCH_CONFIGURATION_TYPE =
Expand Down Expand Up @@ -85,7 +87,7 @@ private static ILaunchConfigurationWorkingCopy createWorkingCopy(String name, St
try {
String launchConfigurationName = name + System.currentTimeMillis();
result = JAVA_LAUNCH_CONFIGURATION_TYPE.newInstance(null, launchConfigurationName);
result.setAttribute(DebugPlugin.ATTR_PROCESS_FACTORY_ID, IForgeLaunchConfiguration.ID_FORGE_PROCESS_FACTORY);
result.setAttribute(DebugPlugin.ATTR_PROCESS_FACTORY_ID, ID_FORGE_PROCESS_FACTORY);
result.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, "org.jboss.modules.Main");
result.setAttribute(IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY, WORKING_DIR.getAbsolutePath());
result.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, createVmArguments(location));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@

public class ForgeProcessFactory implements IProcessFactory {

private static final String ID_FORGE_PROCESS_TYPE = "org.jboss.tools.forge.forgeProcess";

@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public IProcess newProcess(ILaunch launch, Process process, String label, Map attributes) {
if (attributes == null) {
attributes = new HashMap(1);
}
attributes.put(IProcess.ATTR_PROCESS_TYPE, IForgeLaunchConfiguration.ID_FORGE_PROCESS_TYPE);
attributes.put(IProcess.ATTR_PROCESS_TYPE, ID_FORGE_PROCESS_TYPE);
return new ForgeRuntimeProcess(launch, process, label, attributes);
}
}

This file was deleted.

0 comments on commit a066cf5

Please sign in to comment.