import org.eclipse.ui.PlatformUI;
import org.tizen.common.TizenPlatformConstants;
import org.tizen.nativecommon.launch.IProjectLaunchCommand;
+import org.tizen.nativecommon.launch.TizenLaunchCommand;
import org.tizen.nativecommon.launch.TizenLaunchDelegate;
import org.tizen.nativecommon.launch.TizenLaunchMessages;
import org.tizen.oprofile.core.CommandManager;
protected static final String PACKAGE_NAME = "oprofile";
protected static final String PACKAGE_FILENAME_ARM = "oprofile_armel.deb";
+ protected static final String BADA_EXT = ".exe";
protected static String appName = null;
verifyBuildConfiguration(config, mode, new SubProgressMonitor(
monitor, 11));
+ setConsole(config);
+ tizenCommand = new TizenLaunchCommand(currentDevice, launchConsole);
+ // FIXME: ad-hoc code.
+ launchConsole.show();
+
Oprofile.getOpInfo();
// ISession session = getLaunchSession(config, new
IPath exeFile = CDebugUtils.verifyProgramPath(config);
remoteExePath += exeFile.toFile().getName();
+
+ // for bada application
+ // execute non-exe file instead of .exe file
+ if(remoteExePath.endsWith(BADA_EXT))
+ {
+ remoteExePath = remoteExePath.substring(0, remoteExePath.length() - BADA_EXT.length());
+ }
+
String cmd = "ls " + remoteExePath + TizenPlatformConstants.CMD_SUFFIX;
// resultRsp = session.run(cmd, null);
String[] resultRsp = CommandManager.runCommandReturningResultArray(cmd);
import org.tizen.common.connection.ConnectionPlugin;
import org.tizen.nativecommon.ProjectUtil;
import org.tizen.nativecommon.launch.IProjectLaunchCommand;
+import org.tizen.nativecommon.launch.TizenLaunchCommand;
import org.tizen.nativecommon.launch.TizenLaunchDelegate;
import org.tizen.nativecommon.launch.TizenLaunchMessages;
import org.tizen.sdblib.IDevice;
new SubProgressMonitor(monitor, 9));
verifyBuildConfiguration(config, mode, new SubProgressMonitor(monitor, 11));
+ setConsole(config);
+ tizenCommand = new TizenLaunchCommand(currentDevice, launchConsole);
+ // FIXME: ad-hoc code.
+ launchConsole.show();
+
// getLaunchSession(config, new SubProgressMonitor(monitor, 1));
if (mode.equals(ILaunchManager.PROFILE_MODE)) {
import org.eclipse.linuxtools.valgrind.ui.IValgrindToolView;
import org.eclipse.linuxtools.valgrind.ui.ValgrindUIPlugin;
import org.eclipse.linuxtools.valgrind.ui.ValgrindViewPart;
+import org.tizen.nativecommon.launch.TizenLaunchCommand;
import org.tizen.nativecommon.launch.TizenLaunchDelegate;
public class MassifLaunchDelegate extends TizenLaunchDelegate implements
String targetlog_massif = ValgrindLaunchPlugin.RESULT_DIR
+ OUT_FILE;
String hostlog_massif = ValgrindHostdir + File.separator + OUT_FILE;
+
// --bery sftp dowonload
// session.downloadFile(targetlog_massif,hostlog_massif);
File file = new File(hostlog_massif);
import org.eclipse.linuxtools.valgrind.ui.IValgrindToolView;
import org.eclipse.linuxtools.valgrind.ui.ValgrindUIPlugin;
import org.eclipse.linuxtools.valgrind.ui.ValgrindViewPart;
+import org.tizen.nativecommon.launch.TizenLaunchCommand;
import org.tizen.nativecommon.launch.TizenLaunchDelegate;
import org.xml.sax.SAXException;
String ValgrindHostdir = ValgrindUIPlugin.getDefault().getStateLocation().toOSString();
String targetlog=ValgrindLaunchPlugin.RESULT_DIR +"valgrind.xml";
String hostlog =ValgrindHostdir + File.separator + "valgrind_out.xml";
- //--bery sftp dowonload
+
+ //--bery sftp dowonload
File file = new File(hostlog);
if(file.exists()){
file.delete();