NewSourceModulePage: formatting
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/wizards/NewSourceModulePage.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/wizards/NewSourceModulePage.java
index f7c00d5..8ef317a 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/wizards/NewSourceModulePage.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/wizards/NewSourceModulePage.java
@@ -102,8 +102,7 @@
ISourceModule module = currentScriptFolder
.getSourceModule(getFileName());
if (module.exists()) {
- status
- .setError(Messages.NewSourceModulePage_fileAlreadyExists);
+ status.setError(Messages.NewSourceModulePage_fileAlreadyExists);
} else {
IResource resource = module.getResource();
if (resource != null) {
@@ -112,12 +111,10 @@
try {
IFileStore store = EFS.getStore(location);
if (store.fetchInfo().exists()) {
- status
- .setError(Messages.NewSourceModulePage_error_TypeNameExistsDifferentCase);
+ status.setError(Messages.NewSourceModulePage_error_TypeNameExistsDifferentCase);
}
} catch (CoreException e) {
- status
- .setError(Messages.NewSourceModulePage_error_uri_location_unkown);
+ status.setError(Messages.NewSourceModulePage_error_uri_location_unkown);
}
}
}
@@ -482,11 +479,9 @@
extension.prepare(context);
}
final List<ICreateStep> steps = new ArrayList<ICreateStep>();
- steps.addAll(Arrays.asList(context.getSteps(ICreateStep.KIND_PREPARE)));
- steps.addAll(Arrays.asList(context.getSteps(ICreateStep.KIND_EXECUTE)));
- steps
- .addAll(Arrays.asList(context
- .getSteps(ICreateStep.KIND_FINALIZE)));
+ Collections.addAll(steps, context.getSteps(ICreateStep.KIND_PREPARE));
+ Collections.addAll(steps, context.getSteps(ICreateStep.KIND_EXECUTE));
+ Collections.addAll(steps, context.getSteps(ICreateStep.KIND_FINALIZE));
for (ICreateStep step : steps) {
step.execute(context, monitor);
}
@@ -724,8 +719,7 @@
dialog.setIgnoreCase(false);
dialog.setTitle(Messages.NewSourceModulePage_selectScriptFolder);
dialog.setMessage(Messages.NewSourceModulePage_selectScriptFolder);
- dialog
- .setEmptyListMessage(Messages.NewSourceModulePage_noFoldersAvailable);
+ dialog.setEmptyListMessage(Messages.NewSourceModulePage_noFoldersAvailable);
IProjectFragment projectFragment = getProjectFragment();
if (projectFragment != null) {
@@ -794,8 +788,8 @@
.getContextType(template.getContextTypeId());
// TODO introduce a way to create context by contextType
final SourceModuleTemplateContext context = new SourceModuleTemplateContext(
- contextType, CodeGeneration
- .getLineDelimiterUsed(module));
+ contextType,
+ CodeGeneration.getLineDelimiterUsed(module));
// String fileComment = getFileComment(file, lineDelimiter);
// context.setVariable(CodeTemplateContextType.FILE_COMMENT,
// fileComment != null ? fileComment : ""); //$NON-NLS-1$