]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - eclipse/plugins/org.argeo.slc.ide.ui/src/main/java/org/argeo/slc/ide/ui/launch/osgi/OsgiBootEquinoxLaunchConfiguration.java
Bypass simple configurator if found
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.ide.ui / src / main / java / org / argeo / slc / ide / ui / launch / osgi / OsgiBootEquinoxLaunchConfiguration.java
index c00b3075224ebb86d5e1f5509de12090faa185d4..1f39aac0ad58d01022319f49f85de9e4a78708c5 100644 (file)
@@ -9,7 +9,9 @@ import org.eclipse.debug.core.ILaunch;
 import org.eclipse.debug.core.ILaunchConfiguration;
 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
 import org.eclipse.pde.ui.launcher.EquinoxLaunchConfiguration;
+import org.eclipse.pde.ui.launcher.IPDELauncherConstants;
 
+/** OSGiBoot launch configuration. */
 public class OsgiBootEquinoxLaunchConfiguration extends
                EquinoxLaunchConfiguration {
        public final static String ID = SlcIdeUiPlugin.ID
@@ -20,14 +22,17 @@ public class OsgiBootEquinoxLaunchConfiguration extends
                        ILaunch launch, IProgressMonitor monitor) throws CoreException {
                super.launch(configuration, mode, launch, monitor);
 
-               // TODO: add launch listener to be notified when is terminated and
-               // refresh resources
+               System.out.println("targetBundles="
+                               + configuration.getAttribute(
+                                               IPDELauncherConstants.TARGET_BUNDLES, ""));
+               System.out.println("workspaceBundles="
+                               + configuration.getAttribute(
+                                               IPDELauncherConstants.WORKSPACE_BUNDLES, ""));
 
-               IFile propertiesFile = (IFile) configuration.getMappedResources()[0];
+               // Refresh resources before launching
+               final IFile propertiesFile = (IFile) configuration.getMappedResources()[0];
                propertiesFile.getParent().refreshLocal(IResource.DEPTH_INFINITE,
                                monitor);
-               // propertiesFile.getProject().refreshLocal(IResource.DEPTH_INFINITE,
-               // monitor);
        }
 
        @Override