import org.tizen.nativeplatform.util.PlatformProjectUtil;
import org.tizen.sdblib.Arch;
import org.tizen.sdblib.IDevice;
+import org.tizen.sdblib.PlatformCapability;
import org.tizen.sdblib.SmartDevelopmentBridge;
public class TizenValgrindLaunchDelegate extends TizenLaunchDelegate {
return;
}
+ // check platform version - 3.0 is not supported yet
+ if (isPlatform30()) {
+ monitor.setCanceled(true);
+ ProfileLaunchShortcut.showErrorDialog(
+ Messages.getString("ValgrindOptionsTab.cannotrun"),
+ Messages.getString("TizenValgrindLaunchDelegate.unsupported_platform"), null);
+ return;
+ }
// check for Valgrind executable
if (!CommandManager.isExist(TizenPlatformConstants.TOOLS_TARGET_PATH + VALGRIND_EXECUTABLE_PATH)) {
Display.getDefault().syncExec(new Runnable() {
super();
}
}
+
+ private static boolean isPlatform30() {
+ PlatformCapability capa;
+ try {
+ capa = ConnectionPlugin.getDefault().getCurrentDevice().getPlatformCapability();
+ if (PlatformCapability.ENABLED.equals(capa.getMultiuserSupport())) {
+ return true;
+ } else {
+ return false;
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ return false;
+ }
}
TizenValgrindLaunchDelegate.valgrind_binary_doesnt_exist=The SDK does not have valgrind packages, it may be corrupted. Please try to re-install the SDK.
TizenValgrindLaunchDelegate.valgrind_doesnt_exist=The IDE will install the valgrind to the target device. The valgrind possesses 7MB of the device's storage.\nThe valgrind can profile your application in stable when the device's available memory size is more than 150MB.\nDo you want to continue installing the valgrind?
TizenValgrindLaunchDelegate.valgrind_error_message=The valgrind profiling was failed because the application was terminated abnormally. Or the HW capacity of the target may be too low to support valgrind profiling. In this case, we recommend to use the emulator.
+TizenValgrindLaunchDelegate.unsupported_platform=The target platform does not support the valgrind profiling.
TizenValgrindLaunchDelegate.valgrind_warning=Valgrind warning!!
ValgrindDebugPlugin.invalid_extension_point=Invalid extension point.
ValgrindDebugPlugin.invalid_extension_registry=Invalid extension registry.
import org.tizen.nativecommon.launch.ui.TizenLaunchDeviceSelectionDialog;
import org.tizen.sdblib.Arch;
import org.tizen.sdblib.IDevice;
+import org.tizen.sdblib.PlatformCapability;
import org.tizen.sdblib.SmartDevelopmentBridge;
public class TizenValgrindLaunchDelegate extends TizenLaunchDelegate {
return;
}
+ // check platform version - 3.0 is not supported yet
+ if (isPlatform30()) {
+ monitor.setCanceled(true);
+ ProfileLaunchShortcut.showErrorDialog(
+ Messages.getString("ValgrindOptionsTab.cannotrun"),
+ Messages.getString("TizenValgrindLaunchDelegate.unsupported_platform"), null);
+ return;
+ }
// check for Valgrind executable
if (!CommandManager.isExist(TizenPlatformConstants.TOOLS_TARGET_PATH + VALGRIND_EXECUTABLE_PATH)) {
Display.getDefault().syncExec(new Runnable() {
super();
}
}
+
+ private static boolean isPlatform30() {
+ PlatformCapability capa;
+ try {
+ capa = ConnectionPlugin.getDefault().getCurrentDevice().getPlatformCapability();
+ if (PlatformCapability.ENABLED.equals(capa.getMultiuserSupport())) {
+ return true;
+ } else {
+ return false;
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ return false;
+ }
}