folder.create(true, true, null);
}
catch (CoreException e) {
- if (e.getStatus().getCode() == IResourceStatus.PATH_OCCUPIED)
+ if (e.getStatus().getCode() == IResourceStatus.PATH_OCCUPIED) {
folder.refreshLocal(IResource.DEPTH_ZERO, null);
- else
+ } else {
throw e;
+ }
}
// Make sure the folder is marked as derived so it is not added to CM
if (mode.equals(ILaunchManager.DEBUG_MODE)) {
processPostDebug(config);
} else {
- if (!launch.isTerminated())
+ if (!launch.isTerminated()) {
launch.terminate();
+ }
ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
launchManager.removeLaunch(launch);
}
}
private void setAttachProcess(ILaunchConfiguration config) throws CoreException {
- final PlatformLaunchUtils launchUtils = new PlatformLaunchUtils(target);
String processName = config.getAttribute(
ITizenLaunchConfigurationConstants.ATTR_PROCESSNAME_OPTION, "");
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
ILaunchConfigurationTab[] tabs = null;
- if (mode.equals("debug"))
+ if (mode.equals("debug")) {
tabs = new ILaunchConfigurationTab[] { new TizenDebuggerTab(false),
new SourceLookupTab() };
- else
+ } else {
tabs = new ILaunchConfigurationTab[] {};
+ }
setTabs(tabs);
}
createProcessGroup(comp, 1);
createOptionGroupComposite(comp);
- if (fSpecifyCoreFile)
+ if (fSpecifyCoreFile) {
createCoreFileGroup(comp, 1);
+ }
createVerticalSpacer(comp, 1);
}
FileEntry selectedFile = dlg.getSelectedFileEntry();
filePath = selectedFile.getFullPath();
fProgText.setText(filePath);
- } else
+ } else {
filePath = null;
+ }
}
});
}
FileEntry selectedFile = dlg.getSelectedFileEntry();
filePath = selectedFile.getFullPath();
fProgText.setText(filePath);
- } else
+ } else {
filePath = null;
+ }
}
});
}
for (int i = 0; i < debugConfigs.length; i++) {
if (debugConfigs[i]
.supportsMode(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN)) {
- if (debugConfigs[i].getName().contains("Tizen")) //$NON-NLS-1$
+ if (debugConfigs[i].getName().contains("Tizen")) {
debugList.add(debugConfigs[i]);
+ }
}
}
debugConfigs = (ICDebugConfiguration[]) debugList.toArray(new ICDebugConfiguration[0]);
- if (debugConfigs.length == 1)
+ if (debugConfigs.length == 1) {
debugConfig = debugConfigs[0];
- else if (debugConfigs.length > 1)
+ } else if (debugConfigs.length > 1) {
debugConfig = chooseDebugConfig(debugConfigs, mode);
+ }
}
configuration = createConfiguration(project, debugConfig, mode);
if (projectArtifactType
.equals(PlatformConfigurationManager.TIZEN_PLATFORM_ARTIFACT_TYPE)
|| projectArtifactType
- .equals(PlatformConfigurationManager.OLD_SLP_CUSTOM_DEBIAN_ARTIFACT_TYPE))
+ .equals(PlatformConfigurationManager.OLD_SLP_CUSTOM_DEBIAN_ARTIFACT_TYPE)) {
return true;
- else
+ } else {
return false;
+ }
} else {
return false;
}
if(dlg.open() == TizenRemoteFileDialogResult.OK) {
FileEntry selectedFile = dlg.getSelectedFileEntry();
filePath = selectedFile.getFullPath();
- } else
+ } else {
filePath = null;
+ }
}
});
}
if (dlg.open() == TizenRemoteFileDialogResult.OK) {
FileEntry selectedFile = dlg.getSelectedFileEntry();
filePath = selectedFile.getFullPath().trim();
- } else
+ } else {
filePath = null;
+ }
}
});
}
newList.add(proxyURL);
saveProxyURLs(newList);
- if (newList.size() == 1)
+ if (newList.size() == 1) {
setActiveSiteConfiguration(0);
+ }
}
public static synchronized void updateSiteConfiguration(int id, String name, String baseURI,