</shortcut>
</extension>
<extension
- point="org.eclipse.ui.actionSets">
- <actionSet
- id="org.eclipse.linuxtools.valgrind.launch.exe.actionSet1"
- label="Profile Launch Actions"
- visible="true">
- <action
- class="org.eclipse.debug.internal.ui.actions.OpenProfileConfigurations"
- id="org.eclipse.linuxtools.valgrind.launch.exe.OpenProfileConfigurations"
- label="%launchConfigurations.label.0"
- menubarPath="org.eclipse.ui.run/addisions"
- pulldown="false"
- style="push">
- </action>
- <action
- class="org.eclipse.debug.internal.ui.actions.ProfileAsAction"
- id="org.eclipse.linuxtools.valgrind.launch.exe.ProfileAsAction"
- label="%launch.label.0"
- menubarPath="org.eclipse.ui.run/addisions"
- pulldown="true"
- style="pulldown">
- </action>
- <action
- class="org.eclipse.debug.internal.ui.actions.ProfileHistoryMenuAction"
- id="org.eclipse.linuxtools.valgrind.launch.exe.ProfileHistoryMenuAction"
- label="%launchHistory.label.0"
- menubarPath="org.eclipse.ui.run/addisions"
- pulldown="true"
- style="pulldown">
- </action>
- </actionSet>
- </extension>
- <extension
id="org.tizen.valgrind.tool"
point="org.tizen.common.connection.tools">
<tools
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.tizen.common.TizenPlatformConstants;
+import org.tizen.common.connection.ConnectionPlugin;
import org.tizen.nativecommon.ProjectUtil;
import org.tizen.nativecommon.launch.IProjectLaunchCommand;
import org.tizen.nativecommon.launch.TizenLaunchDelegate;
import org.tizen.nativecommon.launch.TizenLaunchMessages;
+import org.tizen.sdblib.IDevice;
import org.tizen.sdblib.SdbShellProcess;
public class TizenValgrindLaunchDelegate extends TizenLaunchDelegate {
@Override
public void launch(ILaunchConfiguration config, String mode,
- ILaunch launch, IProgressMonitor monitor) throws CoreException {
+ ILaunch launch, IProgressMonitor monitor) throws CoreException
+ {
+
if (monitor == null)
monitor = new NullProgressMonitor();
try {
+ IDevice device = ConnectionPlugin.getDefault().getCurrentDevice();
+ if(!device.isEmulator())
+ {
+ newCoreException(TizenLaunchMessages.CANNOT_LAUNCH,
+ new Exception("Valgrind profiling is available in emulator only."));
+ }
+
monitor.beginTask(TizenLaunchMessages.LAUNCH_APPLICATION, 30);
activateProgressView();
} finally {
monitor.done();
}
-
}
protected void launchApplicationWithValgrind(ILaunch launch,