Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 141540 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/tptp/platform/jvmti/client/internal/analysistypes/TIProbekitLaunchValidator.java (-7 / +30 lines)
Lines 11-20 Link Here
11
 **********************************************************************/
11
 **********************************************************************/
12
package org.eclipse.tptp.platform.jvmti.client.internal.analysistypes;
12
package org.eclipse.tptp.platform.jvmti.client.internal.analysistypes;
13
13
14
import java.awt.List;
15
import java.util.ArrayList;
16
import java.util.HashMap;
17
import java.util.Iterator;
18
import java.util.Map;
19
import java.util.Vector;
20
21
import org.eclipse.core.runtime.CoreException;
14
import org.eclipse.core.runtime.IStatus;
22
import org.eclipse.core.runtime.IStatus;
15
import org.eclipse.core.runtime.Status;
23
import org.eclipse.core.runtime.Status;
16
import org.eclipse.debug.core.ILaunchConfiguration;
24
import org.eclipse.debug.core.ILaunchConfiguration;
25
import org.eclipse.hyades.internal.execution.local.control.AgentConfigurationEntry;
17
import org.eclipse.hyades.trace.ui.UIPlugin;
26
import org.eclipse.hyades.trace.ui.UIPlugin;
27
import org.eclipse.hyades.trace.ui.internal.launcher.IProfileLaunchConfigurationConstants;
28
import org.eclipse.hyades.trace.ui.internal.launcher.ProfilingSetsManager;
29
import org.eclipse.hyades.trace.ui.launcher.IProfilingSet;
30
import org.eclipse.hyades.trace.ui.launcher.ProfilingAttribute;
31
import org.eclipse.jface.dialogs.MessageDialog;
32
import org.eclipse.osgi.util.NLS;
33
import org.eclipse.swt.widgets.Display;
34
import org.eclipse.tptp.platform.probekit.launch.internal.ProbekitLaunchPlugin;
35
import org.eclipse.tptp.platform.probekit.launch.internal.config.ProbekitLaunchMessages;
36
import org.eclipse.tptp.platform.probekit.registry.ProbeRegistry;
37
import org.eclipse.tptp.platform.probekit.registry.ProbeRegistryEntry;
38
import org.eclipse.tptp.platform.probekit.util.InvalidProbeBundleException;
39
import org.eclipse.tptp.platform.probekit.util.ProbeLaunchConfigString;
18
import org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherMessages;
40
import org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherMessages;
19
import org.eclipse.tptp.trace.ui.provisional.launcher.ILaunchValidator;
41
import org.eclipse.tptp.trace.ui.provisional.launcher.ILaunchValidator;
20
/**
42
/**
Lines 26-32 Link Here
26
 */
48
 */
27
public class TIProbekitLaunchValidator implements ILaunchValidator 
49
public class TIProbekitLaunchValidator implements ILaunchValidator 
28
{
50
{
29
51
		/**
52
		 * Called before we launch the process for this launch configuration
53
		 * so this is the final check of whether or not we ahve any probes selected.
54
		 * Must return an error message if there are no probes selected.
55
		 * @param configuration The LaunchConfiguration
56
		 */
30
		public IStatus validateConfiguration(ILaunchConfiguration configuration)
57
		public IStatus validateConfiguration(ILaunchConfiguration configuration)
31
		{
58
		{
32
			Status noProbesSelected = null;
59
			Status noProbesSelected = null;
Lines 42-53 Link Here
42
			catch(Exception e){
69
			catch(Exception e){
43
				
70
				
44
			}
71
			}
45
			// Until the backend agent extension (141540) is implemented we need to
72
			
46
			// disable the UI from allowing a Profile. 
73
			return noProbesSelected;
47
			// Thus, we always return this error message. The String will be removed and does
48
			// not need to be externalized
49
			return new Status(Status.ERROR, UIPlugin.getPluginId(),"Probe Insertion with JVMTI (Java 5.0) is temporarily disabled. ");
50
			//return noProbesSelected;
51
		}
74
		}
52
		
75
		
53
		public IStatus launchNotification(ILaunchConfiguration config)
76
		public IStatus launchNotification(ILaunchConfiguration config)

Return to bug 141540