}
}
- public boolean checkGdbServerInDevice(IDevice device, TizenLaunchCommand command) throws CoreException {
+ public boolean checkGdbServerInDevice(IDevice device, TizenLaunchCommand command)
+ throws CoreException, Exception {
String resultCommand = TizenPlatformConstants.GDBSERVER_PLATFORM_CMD + " --version"
+ TizenPlatformConstants.CMD_RESULT_CHECK;
- try {
- command.run(resultCommand, "0");
- } catch (Exception e) {
- //LaunchUtils.newCoreException(NLS.bind(TizenLaunchMessages.CANNOT_FIND_GDBSERVER, device.getDeviceName()), e);
- return false;
- }
-
+ command.run(resultCommand, "0");
return true;
}
public void readyGdbServer(IDevice device, TizenLaunchCommand command, IPath srcPath)
- throws CoreException, TimeoutException, SdbCommandRejectedException, IOException {
+ throws CoreException, TimeoutException, SdbCommandRejectedException, IOException, Exception {
File gdbserver = new File(srcPath.toOSString());
if (!gdbserver.exists()) {
protected void okPressed() {
if (remoteCheckBt.getSelection()) {
url = remoteText.getText();
- if (url.isEmpty() || url == null) {
+ if (url == null || url.isEmpty()) {
DialogUtil.openErrorDialog(resources.getString("AddRepo.Msg.Error.URLEmpty"));
return;
}
type = RepoManager.REMOTE_REPO_TYPE;
} else if (localCheckBt.getSelection()) {
url = localText.getText();
- if (url.isEmpty() || url == null) {
+ if (url == null || url.isEmpty()) {
DialogUtil.openErrorDialog(resources.getString("AddRepo.Msg.Error.URLEmpty"));
return;
}
if (remoteCheckBt.getSelection()) {
newUrl = remoteText.getText();
- if (newUrl.isEmpty() || newUrl == null) {
+ if (newUrl == null || newUrl.isEmpty()) {
DialogUtil.openErrorDialog(resources.getString("AddRepo.Msg.Error.URLEmpty"));
return;
}
type = RepoManager.REMOTE_REPO_TYPE;
} else if (localCheckBt.getSelection()) {
newUrl = localText.getText();
- if (newUrl.isEmpty() ||newUrl == null) {
+ if (newUrl == null || newUrl.isEmpty()) {
DialogUtil.openErrorDialog(resources.getString("AddRepo.Msg.Error.URLEmpty"));
return;
}