Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2009-07-24 19:07:16 +0000
committerAndrew Niefer2009-07-24 19:07:16 +0000
commit98d9cda0076571aac97aa9011f4356deeed7b261 (patch)
tree8fed99cc1763e2c1a18ccffbc242faebb7d2c4e1 /bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse
parentde14ca2e0682df7e604712530ac4d71dd0ba132d (diff)
downloadrt.equinox.p2-98d9cda0076571aac97aa9011f4356deeed7b261.tar.gz
rt.equinox.p2-98d9cda0076571aac97aa9011f4356deeed7b261.tar.xz
rt.equinox.p2-98d9cda0076571aac97aa9011f4356deeed7b261.zip
bug 284303 - launcher.ini arguments lost
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse')
-rw-r--r--bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/SetLauncherNameAction.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/SetLauncherNameAction.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/SetLauncherNameAction.java
index 1584cd1ad..040c44de8 100644
--- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/SetLauncherNameAction.java
+++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/SetLauncherNameAction.java
@@ -14,6 +14,7 @@ import org.eclipse.core.runtime.Status;
import org.eclipse.equinox.internal.p2.engine.Profile;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseTouchpoint;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util;
+import org.eclipse.equinox.internal.provisional.frameworkadmin.LauncherData;
import org.eclipse.equinox.internal.provisional.frameworkadmin.Manipulator;
import org.eclipse.equinox.internal.provisional.p2.engine.ProvisioningAction;
@@ -38,7 +39,9 @@ public class SetLauncherNameAction extends ProvisioningAction {
}
private static void setLauncher(Manipulator manipulator, Profile profile, String launcherName) {
+ //Get the launcherData before changing the name so we don't lose anything from the old launcher.ini
+ LauncherData launcherData = manipulator.getLauncherData();
profile.setProperty(EclipseTouchpoint.PROFILE_PROP_LAUNCHER_NAME, launcherName);
- manipulator.getLauncherData().setLauncher(Util.getLauncherPath(profile));
+ launcherData.setLauncher(Util.getLauncherPath(profile));
}
} \ No newline at end of file

Back to the top