summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmusset2009-03-05 12:14:46 (EST)
committer jmusset2009-03-05 12:14:46 (EST)
commit7b5a9551f33eaff96fab152a882da6689989e5b9 (patch)
tree1a8b405f7719f44f283e5fc686c05062aadb2f30
parent223a09268a149c3c4255e7eebb4b4ef7657b6ce3 (diff)
downloadorg.eclipse.acceleo-7b5a9551f33eaff96fab152a882da6689989e5b9.zip
org.eclipse.acceleo-7b5a9551f33eaff96fab152a882da6689989e5b9.tar.gz
org.eclipse.acceleo-7b5a9551f33eaff96fab152a882da6689989e5b9.tar.bz2
format after renaming
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/launching/strategy/AcceleoPluginLaunchingStrategy.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/resources/AcceleoProject.java27
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/wizards/newfile/example/AcceleoCopyExampleContentStrategy.java5
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/wizards/newfile/example/IAcceleoExampleStrategy.java6
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoBuilder.java6
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoCompileOperation.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/runner/CreateRunnableAcceleoOperation.java15
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/core/AcceleoDebugger.java11
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AbstractDebugElement.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoDebugTarget.java6
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoLineBreakpoint.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoLineBreakpointAdapter.java12
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoRunToLineAdapter.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoValue.java3
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoCompletionChoice.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoCompletionProcessor.java120
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoEditor.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoElementHyperlinkDetector.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoOutlinePageItemProvider.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoSourceContent.java15
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/actions/references/ReferenceLabelProvider.java3
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoBlockScanner.java28
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoCommentScanner.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoPartitionScanner.java52
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoProtectedAreaScanner.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/utils/OpenDeclarationUtils.java3
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoLaunchDelegate.java22
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoLaunchDelegateStandalone.java6
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoMainTab.java17
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoSourceLookupDirector.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/IAcceleoLaunchConfigurationConstants.java3
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/natures/AcceleoToggleNatureAction.java9
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/perspectives/AcceleoPerspectiveFactory.java6
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AbstractAcceleoNewTemplatesMasterComposite.java6
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesDetailsComposite.java27
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesGlobalController.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesWizard.java17
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesWizardController.java6
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/CreateTemplateData.java3
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/AbstractM2TContentStrategy.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/AcceleoExampleStrategyUtils.java5
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/MTContentStrategy.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/XpandContentStrategy.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/AcceleoNewProjectUIWizard.java26
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/AcceleoNewProjectWizard.java19
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/AcceleoNewUIConfigurationPage.java3
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/CreateModuleData.java4
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/CreateModuleUIData.java8
48 files changed, 314 insertions, 249 deletions
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/launching/strategy/AcceleoPluginLaunchingStrategy.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/launching/strategy/AcceleoPluginLaunchingStrategy.java
index 35aa02e..2adf37b 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/launching/strategy/AcceleoPluginLaunchingStrategy.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/launching/strategy/AcceleoPluginLaunchingStrategy.java
@@ -18,8 +18,8 @@ import org.eclipse.acceleo.model.mtl.Module;
import org.eclipse.emf.ecore.EObject;
/**
- * Default Acceleo Plug-in launching strategy. It is used to launch an Acceleo application in the current Eclipse
- * thread.
+ * Default Acceleo Plug-in launching strategy. It is used to launch an Acceleo application in the current
+ * Eclipse thread.
*
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
*/
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/resources/AcceleoProject.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/resources/AcceleoProject.java
index 3274dee..c2e5803 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/resources/AcceleoProject.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/resources/AcceleoProject.java
@@ -45,10 +45,10 @@ import org.eclipse.pde.core.plugin.PluginRegistry;
import org.osgi.framework.Bundle;
/**
- * A Acceleo project represents a view of a project resource in terms of Acceleo elements. Each Acceleo project has a
- * classpath, defining which folders contain source code and where templates are located. Each Acceleo project
- * also has an output location. The extension of a template is '.acceleo' and the extension of an output file is
- * '.emtl'.
+ * A Acceleo project represents a view of a project resource in terms of Acceleo elements. Each Acceleo
+ * project has a classpath, defining which folders contain source code and where templates are located. Each
+ * Acceleo project also has an output location. The extension of a template is '.acceleo' and the extension of
+ * an output file is '.emtl'.
*
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
*/
@@ -160,7 +160,8 @@ public class AcceleoProject {
for (int i = 0; i < children.length; ++i) {
IResource resource = children[i];
if (resource instanceof IFile
- && IAcceleoConstants.MTL_FILE_EXTENSION.equals(((IFile)resource).getFileExtension())) {
+ && IAcceleoConstants.MTL_FILE_EXTENSION.equals(((IFile)resource)
+ .getFileExtension())) {
filesInput.add((IFile)resource);
} else if (resource instanceof IContainer) {
computeInputFiles(filesInput, (IContainer)resource);
@@ -172,7 +173,8 @@ public class AcceleoProject {
/**
* Gets the output file path (EMTL) for the given Acceleo file. For example : <br>
- * '/MyProject/src/org/eclipse/acceleo/file.acceleo' becomes '/MyProject/bin/org/eclipse/acceleo/file.emtl' </br>
+ * '/MyProject/src/org/eclipse/acceleo/file.acceleo' becomes
+ * '/MyProject/bin/org/eclipse/acceleo/file.emtl' </br>
*
* @param fileAcceleo
* is the Acceleo file
@@ -197,7 +199,8 @@ public class AcceleoProject {
/**
* Gets the input file path (Acceleo) for the given EMTL file path. For example : <br>
- * '/MyProject/bin/org/eclipse/acceleo/file.emtl' becomes '/MyProject/src-gen/org/eclipse/acceleo/file.acceleo' </br>
+ * '/MyProject/bin/org/eclipse/acceleo/file.emtl' becomes
+ * '/MyProject/src-gen/org/eclipse/acceleo/file.acceleo' </br>
*
* @param fileEMTL
* is the EMTL file path
@@ -207,8 +210,8 @@ public class AcceleoProject {
IFolder folder = getOutputFolder(project);
if (folder != null && folder.getFullPath().isPrefixOf(fileEMTL)) {
IPath relativePath = fileEMTL.removeFileExtension().addFileExtension(
- IAcceleoConstants.MTL_FILE_EXTENSION)
- .removeFirstSegments(folder.getFullPath().segmentCount());
+ IAcceleoConstants.MTL_FILE_EXTENSION).removeFirstSegments(
+ folder.getFullPath().segmentCount());
for (Iterator<IPath> itSourceFolders = sourceFolders.iterator(); itSourceFolders.hasNext();) {
IPath sourcePath = itSourceFolders.next().append(relativePath);
if (ResourcesPlugin.getWorkspace().getRoot().exists(sourcePath)) {
@@ -394,7 +397,8 @@ public class AcceleoProject {
*/
@SuppressWarnings("unchecked")
private void computeAccessibleOutputFilesWithBundle(List<URI> outputURIs, Bundle bundle) {
- Enumeration<URL> entries = bundle.findEntries("/", "*." + IAcceleoConstants.EMTL_FILE_EXTENSION, true); //$NON-NLS-1$ //$NON-NLS-2$
+ Enumeration<URL> entries = bundle
+ .findEntries("/", "*." + IAcceleoConstants.EMTL_FILE_EXTENSION, true); //$NON-NLS-1$ //$NON-NLS-2$
if (entries != null) {
while (entries.hasMoreElements()) {
URL entry = entries.nextElement();
@@ -457,7 +461,8 @@ public class AcceleoProject {
* @param current
* is the current Acceleo project
*/
- private void computeAccessibleAcceleoProjects(List<AcceleoProject> accessibleAcceleoProjects, AcceleoProject current) {
+ private void computeAccessibleAcceleoProjects(List<AcceleoProject> accessibleAcceleoProjects,
+ AcceleoProject current) {
if (!accessibleAcceleoProjects.contains(current)) {
accessibleAcceleoProjects.add(current);
IPluginModelBase plugin = PluginRegistry.findModel(current.project);
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/wizards/newfile/example/AcceleoCopyExampleContentStrategy.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/wizards/newfile/example/AcceleoCopyExampleContentStrategy.java
index bc9ff82..5782ea1 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/wizards/newfile/example/AcceleoCopyExampleContentStrategy.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/wizards/newfile/example/AcceleoCopyExampleContentStrategy.java
@@ -15,8 +15,9 @@ import org.eclipse.acceleo.internal.parser.cst.utils.FileContent;
import org.eclipse.core.resources.IFile;
/**
- * Default implementation of the "org.eclipse.acceleo.ide.ui.example" extension point. It is used to initialize
- * automatically a template file from an example, by copying the text of the example into the new template.
+ * Default implementation of the "org.eclipse.acceleo.ide.ui.example" extension point. It is used to
+ * initialize automatically a template file from an example, by copying the text of the example into the new
+ * template.
*
* @see IAcceleoExampleStrategy
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/wizards/newfile/example/IAcceleoExampleStrategy.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/wizards/newfile/example/IAcceleoExampleStrategy.java
index 85af95a..281acf9 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/wizards/newfile/example/IAcceleoExampleStrategy.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/ide/ui/wizards/newfile/example/IAcceleoExampleStrategy.java
@@ -14,9 +14,9 @@ import org.eclipse.core.resources.IFile;
/**
* An internal extension point is defined to specify multiple example strategies. It is used to initialize
- * automatically a template file from an example in the "New>Acceleo>Acceleo Templates" wizard. The extension point
- * "org.eclipse.acceleo.ide.ui.example" requires a fully qualified name of a Java class implementing this
- * interface.
+ * automatically a template file from an example in the "New>Acceleo>Acceleo Templates" wizard. The extension
+ * point "org.eclipse.acceleo.ide.ui.example" requires a fully qualified name of a Java class implementing
+ * this interface.
*
* @see AcceleoCopyExampleContentStrategy
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoBuilder.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoBuilder.java
index 1157c61..9c59113 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoBuilder.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoBuilder.java
@@ -171,7 +171,8 @@ public class AcceleoBuilder extends IncrementalProjectBuilder {
otherTemplates.remove(otherTemplateToBuild);
if (!deltaFiles.contains(otherTemplateToBuild)) {
deltaFiles.add(otherTemplateToBuild);
- String[] tokens = new String[] {IAcceleoConstants.DEFAULT_BEGIN, IAcceleoConstants.IMPORT,
+ String[] tokens = new String[] {IAcceleoConstants.DEFAULT_BEGIN,
+ IAcceleoConstants.IMPORT,
new Path(otherTemplateToBuild.getName()).removeFileExtension().lastSegment(),};
Sequence importSequence = new Sequence(tokens);
importSequencesToSearch.add(importSequence);
@@ -302,7 +303,8 @@ public class AcceleoBuilder extends IncrementalProjectBuilder {
for (int i = 0; i < children.length; ++i) {
IResource resource = children[i];
if (resource instanceof IFile
- && IAcceleoConstants.MTL_FILE_EXTENSION.equals(((IFile)resource).getFileExtension())) {
+ && IAcceleoConstants.MTL_FILE_EXTENSION.equals(((IFile)resource)
+ .getFileExtension())) {
filesOutput.add((IFile)resource);
} else if (resource instanceof IContainer
&& (outputFolder == null || !outputFolder.isPrefixOf(resource.getFullPath()))) {
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoCompileOperation.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoCompileOperation.java
index 1cacb03..5736a1c 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoCompileOperation.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoCompileOperation.java
@@ -169,8 +169,8 @@ public class AcceleoCompileOperation implements IWorkspaceRunnable {
filesWithMainTag.add(workspaceFile);
}
}
- CreateRunnableAcceleoOperation createRunnableAcceleoOperation = new CreateRunnableAcceleoOperation(acceleoProject,
- filesWithMainTag);
+ CreateRunnableAcceleoOperation createRunnableAcceleoOperation = new CreateRunnableAcceleoOperation(
+ acceleoProject, filesWithMainTag);
createRunnableAcceleoOperation.run(monitor);
}
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/runner/CreateRunnableAcceleoOperation.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/runner/CreateRunnableAcceleoOperation.java
index 0f0c9e8..1d21f7c 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/runner/CreateRunnableAcceleoOperation.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/runner/CreateRunnableAcceleoOperation.java
@@ -121,8 +121,8 @@ public class CreateRunnableAcceleoOperation implements IWorkspaceRunnable {
reportError(fileAcceleo, 0, 0, 0, AcceleoUIMessages.getString(
"CreateRunnableAcceleoOperation.MissingExport", packageName)); //$NON-NLS-1$
}
- URI moduleURI = URI.createPlatformResourceURI(acceleoProject.getOutputFilePath(fileAcceleo)
- .toString(), true);
+ URI moduleURI = URI.createPlatformResourceURI(acceleoProject.getOutputFilePath(
+ fileAcceleo).toString(), true);
ResourceSet resourceSet = new ResourceSetImpl();
try {
registerPackages(resourceSet);
@@ -142,15 +142,16 @@ public class CreateRunnableAcceleoOperation implements IWorkspaceRunnable {
}
}
}
- String classShortName = new Path(Character.toUpperCase(fileAcceleo.getName().charAt(0))
+ String classShortName = new Path(Character.toUpperCase(fileAcceleo.getName()
+ .charAt(0))
+ fileAcceleo.getName().substring(1)).removeFileExtension().lastSegment();
List<String> mainTemplateNames = new ArrayList<String>();
computesMainTemplateNames(mainTemplateNames, module);
if (mainTemplateNames.size() > 0) {
- CreateRunnableAcceleoContent arg = new CreateRunnableAcceleoContent(fileAcceleo.getProject()
- .getName(), packageName, classShortName, new Path(fileAcceleo.getName())
- .removeFileExtension().lastSegment(), mainTemplateNames, packages,
- resolvedClasspath);
+ CreateRunnableAcceleoContent arg = new CreateRunnableAcceleoContent(fileAcceleo
+ .getProject().getName(), packageName, classShortName, new Path(
+ fileAcceleo.getName()).removeFileExtension().lastSegment(),
+ mainTemplateNames, packages, resolvedClasspath);
CreateRunnableJavaWriter javaWriter = new CreateRunnableJavaWriter();
String javaText = javaWriter.generate(arg);
IFile javaFile = fileAcceleo.getParent().getFile(
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/core/AcceleoDebugger.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/core/AcceleoDebugger.java
index 156cc85..1446aba 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/core/AcceleoDebugger.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/core/AcceleoDebugger.java
@@ -200,8 +200,8 @@ public class AcceleoDebugger implements IDebugAST, ITemplateDebugger {
}
/**
- * Gets the Acceleo files of the given project and its dependencies. It also loads the corresponding AST model
- * of each Acceleo file in the given resource set.
+ * Gets the Acceleo files of the given project and its dependencies. It also loads the corresponding AST
+ * model of each Acceleo file in the given resource set.
*
* @param project
* is the project that contains the Acceleo Application to launch
@@ -211,8 +211,8 @@ public class AcceleoDebugger implements IDebugAST, ITemplateDebugger {
*/
private Map<File, Module> getInputOutputAcceleoFiles(IProject project, ResourceSet oResourceSet) {
Map<File, Module> result = new HashMap<File, Module>();
- Iterator<AcceleoProject> acceleoProjects = new AcceleoProject(project).getRecursivelyAccessibleAcceleoProjects()
- .iterator();
+ Iterator<AcceleoProject> acceleoProjects = new AcceleoProject(project)
+ .getRecursivelyAccessibleAcceleoProjects().iterator();
while (acceleoProjects.hasNext()) {
AcceleoProject acceleoProject = acceleoProjects.next();
try {
@@ -229,7 +229,8 @@ public class AcceleoDebugger implements IDebugAST, ITemplateDebugger {
}
} catch (IOException e1) {
AcceleoUIActivator.getDefault().getLog().log(
- new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, e1.getMessage(), e1));
+ new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, e1.getMessage(),
+ e1));
}
}
}
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AbstractDebugElement.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AbstractDebugElement.java
index a5e7ed4..35c5503 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AbstractDebugElement.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AbstractDebugElement.java
@@ -23,8 +23,8 @@ import org.eclipse.debug.core.model.IDebugElement;
import org.eclipse.debug.core.model.IDebugTarget;
/**
- * An Acceleo debug model element. Common abstract class for the debug target, the process, the stack frame, the
- * thread...
+ * An Acceleo debug model element. Common abstract class for the debug target, the process, the stack frame,
+ * the thread...
*
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
*/
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoDebugTarget.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoDebugTarget.java
index 03b9bed..287d530 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoDebugTarget.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoDebugTarget.java
@@ -27,9 +27,9 @@ import org.eclipse.debug.core.model.IProcess;
import org.eclipse.debug.core.model.IThread;
/**
- * This is a debuggable execution context for an Acceleo Application. A debug target may represent a debuggable
- * process or a virtual machine. A debug target is the root of the debug element hierarchy. A debug target
- * contains threads. Minimally, a debug target supports the following:
+ * This is a debuggable execution context for an Acceleo Application. A debug target may represent a
+ * debuggable process or a virtual machine. A debug target is the root of the debug element hierarchy. A debug
+ * target contains threads. Minimally, a debug target supports the following:
* <ul>
* <li>terminate
* <li>suspend/resume
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoLineBreakpoint.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoLineBreakpoint.java
index af2967e..5d61b7e 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoLineBreakpoint.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoLineBreakpoint.java
@@ -54,8 +54,8 @@ public class AcceleoLineBreakpoint extends LineBreakpoint {
/**
* Constructs a line breakpoint on the given resource at the given line number. The line number is 1-based
- * (i.e. the first line of a file is line number 1). The Acceleo VM uses 0-based line numbers, so this line
- * number translation is done at breakpoint install time.
+ * (i.e. the first line of a file is line number 1). The Acceleo VM uses 0-based line numbers, so this
+ * line number translation is done at breakpoint install time.
*
* @param astNode
* is the AST node to associate with the breakpoint.
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoLineBreakpointAdapter.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoLineBreakpointAdapter.java
index c2709b1..34cece9 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoLineBreakpointAdapter.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoLineBreakpointAdapter.java
@@ -69,8 +69,8 @@ public class AcceleoLineBreakpointAdapter implements IToggleBreakpointsTarget {
// create line breakpoint (line numbers start at 0)
ASTNode astNode = getBreakpointASTNodeAt(acceleoEditor.getContent(), offset);
if (astNode != null) {
- AcceleoLineBreakpoint lineBreakpoint = new AcceleoLineBreakpoint(astNode, resource, lineNumber + 1,
- offset, length);
+ AcceleoLineBreakpoint lineBreakpoint = new AcceleoLineBreakpoint(astNode, resource,
+ lineNumber + 1, offset, length);
DebugPlugin.getDefault().getBreakpointManager().addBreakpoint(lineBreakpoint);
}
}
@@ -123,13 +123,13 @@ public class AcceleoLineBreakpointAdapter implements IToggleBreakpointsTarget {
}
/**
- * Returns the editor being used to edit a Acceleo file, associated with the given part, or <code>null</code>
- * if none.
+ * Returns the editor being used to edit a Acceleo file, associated with the given part, or
+ * <code>null</code> if none.
*
* @param part
* workbench part
- * @return the editor being used to edit a Acceleo file, associated with the given part, or <code>null</code>
- * if none
+ * @return the editor being used to edit a Acceleo file, associated with the given part, or
+ * <code>null</code> if none
*/
private ITextEditor getEditor(IWorkbenchPart part) {
if (part instanceof ITextEditor) {
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoRunToLineAdapter.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoRunToLineAdapter.java
index e2fdab6..cc33f9d 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoRunToLineAdapter.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoRunToLineAdapter.java
@@ -53,8 +53,8 @@ public class AcceleoRunToLineAdapter implements IRunToLineTarget {
if (lineNumber > 0 && textEditor instanceof AcceleoEditor && target instanceof IAdaptable) {
IDebugTarget debugTarget = (IDebugTarget)((IAdaptable)target).getAdapter(IDebugTarget.class);
if (debugTarget != null) {
- ASTNode astNode = AcceleoLineBreakpointAdapter.getBreakpointASTNodeAt(((AcceleoEditor)textEditor)
- .getContent(), offset);
+ ASTNode astNode = AcceleoLineBreakpointAdapter.getBreakpointASTNodeAt(
+ ((AcceleoEditor)textEditor).getContent(), offset);
if (astNode != null) {
IFile resource = (IFile)textEditor.getEditorInput().getAdapter(IResource.class);
IBreakpoint breakpoint = new AcceleoRunToLineBreakpoint(astNode, resource, lineNumber,
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoValue.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoValue.java
index dd61281..142d0bf 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoValue.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/debug/model/AcceleoValue.java
@@ -195,7 +195,8 @@ public class AcceleoValue extends AbstractDebugElement implements IValue {
}
if ((featureValue instanceof Collection && ((Collection<?>)featureValue).size() > 0)
|| (!(featureValue instanceof Collection) && featureValue != null)) {
- variables.add(new AcceleoVariable(getDebugTarget(), featureName, featureValue, referenceType));
+ variables
+ .add(new AcceleoVariable(getDebugTarget(), featureName, featureValue, referenceType));
}
}
return variables.toArray(new IVariable[variables.size()]);
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoCompletionChoice.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoCompletionChoice.java
index 2a50670..00ae7d6 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoCompletionChoice.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoCompletionChoice.java
@@ -15,8 +15,8 @@ import org.eclipse.ocl.helper.Choice;
import org.eclipse.ocl.helper.ChoiceKind;
/**
- * Description of an Acceleo syntax completion choice. An Acceleo choice is based on an OCL choice. The choice also
- * can provide the actual Acceleo model element that it represents.
+ * Description of an Acceleo syntax completion choice. An Acceleo choice is based on an OCL choice. The choice
+ * also can provide the actual Acceleo model element that it represents.
*
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
*/
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoCompletionProcessor.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoCompletionProcessor.java
index 99e0b59..6136d06 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoCompletionProcessor.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoCompletionProcessor.java
@@ -308,8 +308,9 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
if (!duplicated.contains(replacementString)) {
duplicated.add(replacementString);
proposals.add(new CompletionProposal(replacementString, offset - start.length(),
- start.length(), replacementString.length(), AcceleoUIActivator.getDefault()
- .getImage("icons/template-editor/completion/EnumLiteral.gif"), //$NON-NLS-1$
+ start.length(), replacementString.length(), AcceleoUIActivator
+ .getDefault().getImage(
+ "icons/template-editor/completion/EnumLiteral.gif"), //$NON-NLS-1$
replacementString, null, next.getDescription()));
}
break;
@@ -361,21 +362,26 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
Image image;
if (nextOperationChoice instanceof AcceleoCompletionChoice) {
if (((AcceleoCompletionChoice)nextOperationChoice).getAcceleoElement() instanceof org.eclipse.acceleo.model.mtl.Template) {
- image = AcceleoUIActivator.getDefault().getImage("icons/template-editor/completion/Template.gif"); //$NON-NLS-1$
+ image = AcceleoUIActivator.getDefault().getImage(
+ "icons/template-editor/completion/Template.gif"); //$NON-NLS-1$
} else if (((AcceleoCompletionChoice)nextOperationChoice).getAcceleoElement() instanceof org.eclipse.acceleo.model.mtl.Query) {
- image = AcceleoUIActivator.getDefault().getImage("icons/template-editor/completion/Query.gif"); //$NON-NLS-1$
+ image = AcceleoUIActivator.getDefault()
+ .getImage("icons/template-editor/completion/Query.gif"); //$NON-NLS-1$
} else if (((AcceleoCompletionChoice)nextOperationChoice).getAcceleoElement() instanceof org.eclipse.acceleo.model.mtl.Macro) {
- image = AcceleoUIActivator.getDefault().getImage("icons/template-editor/completion/Macro.gif"); //$NON-NLS-1$
- } else {
image = AcceleoUIActivator.getDefault()
- .getImage("icons/template-editor/completion/Operation.gif"); //$NON-NLS-1$
+ .getImage("icons/template-editor/completion/Macro.gif"); //$NON-NLS-1$
+ } else {
+ image = AcceleoUIActivator.getDefault().getImage(
+ "icons/template-editor/completion/Operation.gif"); //$NON-NLS-1$
}
} else {
- image = AcceleoUIActivator.getDefault().getImage("icons/template-editor/completion/Operation.gif"); //$NON-NLS-1$
+ image = AcceleoUIActivator.getDefault()
+ .getImage("icons/template-editor/completion/Operation.gif"); //$NON-NLS-1$
}
if (nextOperationChoice.getElement() instanceof EOperation) {
EOperation eOperation = (EOperation)nextOperationChoice.getElement();
- String replacementStringWithArgsBefore = eOperation.getName() + IAcceleoConstants.PARENTHESIS_BEGIN;
+ String replacementStringWithArgsBefore = eOperation.getName()
+ + IAcceleoConstants.PARENTHESIS_BEGIN;
String replacementStringWithArgsAfter = ""; //$NON-NLS-1$
Iterator<EParameter> eParametersIt = eOperation.getEParameters().iterator();
while (eParametersIt.hasNext()) {
@@ -529,8 +535,9 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
EClassifier eClassifier = eClassifierIt.next();
if (eClassifier.getName().toLowerCase().startsWith(start.toLowerCase())) {
proposals.add(new CompletionProposal(eClassifier.getName(), offset - start.length(),
- start.length(), eClassifier.getName().length(), AcceleoUIActivator.getDefault()
- .getImage("icons/template-editor/completion/Type.gif"), eClassifier //$NON-NLS-1$
+ start.length(), eClassifier.getName().length(),
+ AcceleoUIActivator.getDefault().getImage(
+ "icons/template-editor/completion/Type.gif"), eClassifier //$NON-NLS-1$
.getName(), null, eClassifier.getName()));
}
}
@@ -572,8 +579,8 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
String replacementStringAfter = "') /]\n" + tabBuffer.toString(); //$NON-NLS-1$
String replacementString = replacementStringBefore + replacementStringAfter;
proposals.add(new CompletionProposal(replacementString, offset - start.length(), start
- .length(), replacementStringBefore.length(), AcceleoUIActivator.getDefault().getImage(
- "icons/template-editor/completion/Pattern.gif"), //$NON-NLS-1$
+ .length(), replacementStringBefore.length(), AcceleoUIActivator.getDefault()
+ .getImage("icons/template-editor/completion/Pattern.gif"), //$NON-NLS-1$
'[' + IAcceleoConstants.MODULE + ']', null, replacementString));
}
}
@@ -696,12 +703,12 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
if (!(cstNode instanceof ModelExpression)
&& (IAcceleoConstants.TAG_MAIN.startsWith(start.toLowerCase()) || ('[' + IAcceleoConstants.TAG_MAIN)
.startsWith(start.toLowerCase()))) {
- String replacementStringBefore = '[' + IAcceleoConstants.COMMENT + ' ' + IAcceleoConstants.TAG_MAIN
- + ' ' + "/]\n" + tab; //$NON-NLS-1$
+ String replacementStringBefore = '[' + IAcceleoConstants.COMMENT + ' '
+ + IAcceleoConstants.TAG_MAIN + ' ' + "/]\n" + tab; //$NON-NLS-1$
String replacementString = replacementStringBefore;
proposals.add(new CompletionProposal(replacementString, offset - start.length(), start
- .length(), replacementStringBefore.length(), patternImage, IAcceleoConstants.TAG_MAIN,
- null, replacementString));
+ .length(), replacementStringBefore.length(), patternImage,
+ IAcceleoConstants.TAG_MAIN, null, replacementString));
}
}
}
@@ -727,8 +734,8 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
+ '\t' + '\n' + tab + '[' + '/' + IAcceleoConstants.TEMPLATE + ']';
String replacementString = replacementStringBefore + replacementStringAfter;
proposals.add(new CompletionProposal(replacementString, offset - start.length(), start.length(),
- replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.TEMPLATE + ']', null,
- tab + replacementString));
+ replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.TEMPLATE + ']',
+ null, tab + replacementString));
}
if (IAcceleoConstants.QUERY.startsWith(start.toLowerCase())
|| ('[' + IAcceleoConstants.QUERY).startsWith(start.toLowerCase())) {
@@ -737,8 +744,8 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
+ " = /]\n"; //$NON-NLS-1$
String replacementString = replacementStringBefore + replacementStringAfter;
proposals.add(new CompletionProposal(replacementString, offset - start.length(), start.length(),
- replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.QUERY + ']', null,
- tab + replacementString));
+ replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.QUERY + ']',
+ null, tab + replacementString));
}
if (IAcceleoConstants.MACRO.startsWith(start.toLowerCase())
|| ('[' + IAcceleoConstants.MACRO).startsWith(start.toLowerCase())) {
@@ -748,8 +755,8 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
+ ']';
String replacementString = replacementStringBefore + replacementStringAfter;
proposals.add(new CompletionProposal(replacementString, offset - start.length(), start.length(),
- replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.MACRO + ']', null,
- tab + replacementString));
+ replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.MACRO + ']',
+ null, tab + replacementString));
}
}
@@ -818,8 +825,8 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
+ '\n' + tab + '[' + '/' + IAcceleoConstants.FOR + ']';
String replacementString = replacementStringBefore + replacementStringAfter;
proposals.add(new CompletionProposal(replacementString, offset - start.length(), start.length(),
- replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.FOR + ']', null, tab
- + replacementString));
+ replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.FOR + ']', null,
+ tab + replacementString));
}
if (IAcceleoConstants.IF.startsWith(start.toLowerCase())
|| ('[' + IAcceleoConstants.IF).startsWith(start.toLowerCase())) {
@@ -828,9 +835,8 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
+ '/' + IAcceleoConstants.IF + ']';
String replacementString = replacementStringBefore + replacementStringAfter;
proposals.add(new CompletionProposal(replacementString, offset - start.length(), start.length(),
- replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.IF + ']', null, tab
- .toString()
- + replacementString));
+ replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.IF + ']', null,
+ tab.toString() + replacementString));
}
if (IAcceleoConstants.FILE.startsWith(start.toLowerCase())
|| ('[' + IAcceleoConstants.FILE).startsWith(start.toLowerCase())) {
@@ -844,9 +850,8 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
+ '\n' + tab + '[' + '/' + IAcceleoConstants.LET + ']';
String replacementString = replacementStringBefore + replacementStringAfter;
proposals.add(new CompletionProposal(replacementString, offset - start.length(), start.length(),
- replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.LET + ']', null, tab
- .toString()
- + replacementString));
+ replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.LET + ']', null,
+ tab.toString() + replacementString));
}
if (IAcceleoConstants.TRACE.startsWith(start.toLowerCase())
|| ('[' + IAcceleoConstants.TRACE).startsWith(start.toLowerCase())) {
@@ -855,8 +860,8 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
+ '/' + IAcceleoConstants.TRACE + ']';
String replacementString = replacementStringBefore + replacementStringAfter;
proposals.add(new CompletionProposal(replacementString, offset - start.length(), start.length(),
- replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.TRACE + ']', null,
- tab + replacementString));
+ replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.TRACE + ']',
+ null, tab + replacementString));
}
if (IAcceleoConstants.PROTECTED_AREA.startsWith(start.toLowerCase())
|| ('[' + IAcceleoConstants.PROTECTED_AREA).startsWith(start.toLowerCase())) {
@@ -865,8 +870,8 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
+ '/' + IAcceleoConstants.PROTECTED_AREA + ']';
String replacementString = replacementStringBefore + replacementStringAfter;
proposals.add(new CompletionProposal(replacementString, offset - start.length(), start.length(),
- replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.PROTECTED_AREA + ']',
- null, tab + replacementString));
+ replacementStringBefore.length(), patternImage,
+ '[' + IAcceleoConstants.PROTECTED_AREA + ']', null, tab + replacementString));
}
if (IAcceleoConstants.SUPER.startsWith(start.toLowerCase())
|| ('[' + IAcceleoConstants.SUPER).startsWith(start.toLowerCase())) {
@@ -874,8 +879,8 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
String replacementStringAfter = "/]"; //$NON-NLS-1$
String replacementString = replacementStringBefore + replacementStringAfter;
proposals.add(new CompletionProposal(replacementString, offset - start.length(), start.length(),
- replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.SUPER + ']', null,
- replacementString));
+ replacementStringBefore.length(), patternImage, '[' + IAcceleoConstants.SUPER + ']',
+ null, replacementString));
}
if (IAcceleoConstants.DEFAULT_BEGIN.startsWith(start.toLowerCase())) {
String replacementString = "[ '[' /] "; //$NON-NLS-1$
@@ -907,8 +912,8 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
String tab, Image patternImage, boolean withMainTag) {
String mainTagText;
if (withMainTag) {
- mainTagText = '[' + IAcceleoConstants.COMMENT + ' ' + IAcceleoConstants.TAG_MAIN + ' ' + '/' + ']' + '\n'
- + tab;
+ mainTagText = '[' + IAcceleoConstants.COMMENT + ' ' + IAcceleoConstants.TAG_MAIN + ' ' + '/'
+ + ']' + '\n' + tab;
} else {
mainTagText = ""; //$NON-NLS-1$
}
@@ -959,7 +964,8 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
if (cstNode instanceof org.eclipse.acceleo.parser.cst.Module) {
if (isHeaderAfterParenthesis(bHeaderText)
&& ((org.eclipse.acceleo.parser.cst.Module)cstNode).getExtends().size() == 0) {
- computeKeywordProposal(proposals, start, IAcceleoConstants.EXTENDS + ' ', "", keywordImage); //$NON-NLS-1$
+ computeKeywordProposal(proposals, start, IAcceleoConstants.EXTENDS + ' ',
+ "", keywordImage); //$NON-NLS-1$
}
}
if (cstNode instanceof org.eclipse.acceleo.parser.cst.ModelExpression
@@ -1012,7 +1018,8 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
if (((org.eclipse.acceleo.parser.cst.Template)cstNode).getGuard() == null
&& pInit.search(bHeaderBuffer).b() == -1) {
computeKeywordProposal(proposals, start, IAcceleoConstants.GUARD + ' '
- + IAcceleoConstants.PARENTHESIS_BEGIN, IAcceleoConstants.PARENTHESIS_END, keywordImage);
+ + IAcceleoConstants.PARENTHESIS_BEGIN, IAcceleoConstants.PARENTHESIS_END,
+ keywordImage);
}
if (((org.eclipse.acceleo.parser.cst.Template)cstNode).getInit() == null
&& "{".startsWith(start.toLowerCase())) { //$NON-NLS-1$
@@ -1066,25 +1073,29 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
String start, String bHeaderText, Image keywordImage) {
if (isHeaderAfterParenthesis(bHeaderText) || bHeaderText.indexOf(IAcceleoConstants.SUPER) > -1) {
StringBuffer bHeaderBuffer = new StringBuffer(bHeaderText);
- Sequence pSeparator = new Sequence(IAcceleoConstants.SEPARATOR, IAcceleoConstants.PARENTHESIS_BEGIN);
+ Sequence pSeparator = new Sequence(IAcceleoConstants.SEPARATOR,
+ IAcceleoConstants.PARENTHESIS_BEGIN);
Sequence pAfter = new Sequence(IAcceleoConstants.AFTER, IAcceleoConstants.PARENTHESIS_BEGIN);
Sequence pGuard = new Sequence(IAcceleoConstants.GUARD, IAcceleoConstants.PARENTHESIS_BEGIN);
if (((org.eclipse.acceleo.parser.cst.ModelExpression)cstNode).getBefore() == null) {
if (pSeparator.search(bHeaderBuffer).b() == -1 && pAfter.search(bHeaderBuffer).b() == -1
&& pGuard.search(bHeaderBuffer).b() == -1) {
computeKeywordProposal(proposals, start, IAcceleoConstants.BEFORE + ' '
- + IAcceleoConstants.PARENTHESIS_BEGIN, IAcceleoConstants.PARENTHESIS_END, keywordImage);
+ + IAcceleoConstants.PARENTHESIS_BEGIN, IAcceleoConstants.PARENTHESIS_END,
+ keywordImage);
}
}
if (((org.eclipse.acceleo.parser.cst.ModelExpression)cstNode).getEach() == null
&& pAfter.search(bHeaderBuffer).b() == -1 && pGuard.search(bHeaderBuffer).b() == -1) {
computeKeywordProposal(proposals, start, IAcceleoConstants.SEPARATOR + ' '
- + IAcceleoConstants.PARENTHESIS_BEGIN, IAcceleoConstants.PARENTHESIS_END, keywordImage);
+ + IAcceleoConstants.PARENTHESIS_BEGIN, IAcceleoConstants.PARENTHESIS_END,
+ keywordImage);
}
if (((org.eclipse.acceleo.parser.cst.ModelExpression)cstNode).getAfter() == null
&& pGuard.search(bHeaderBuffer).b() == -1) {
computeKeywordProposal(proposals, start, IAcceleoConstants.AFTER + ' '
- + IAcceleoConstants.PARENTHESIS_BEGIN, IAcceleoConstants.PARENTHESIS_END, keywordImage);
+ + IAcceleoConstants.PARENTHESIS_BEGIN, IAcceleoConstants.PARENTHESIS_END,
+ keywordImage);
}
}
}
@@ -1105,7 +1116,8 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
String bHeaderText, Image keywordImage) {
if (isHeaderAfterParenthesis(bHeaderText)) {
StringBuffer bHeaderBuffer = new StringBuffer(bHeaderText);
- Sequence pSeparator = new Sequence(IAcceleoConstants.SEPARATOR, IAcceleoConstants.PARENTHESIS_BEGIN);
+ Sequence pSeparator = new Sequence(IAcceleoConstants.SEPARATOR,
+ IAcceleoConstants.PARENTHESIS_BEGIN);
Sequence pAfter = new Sequence(IAcceleoConstants.AFTER, IAcceleoConstants.PARENTHESIS_BEGIN);
Sequence pGuard = new Sequence(IAcceleoConstants.GUARD, IAcceleoConstants.PARENTHESIS_BEGIN);
Sequence pInit = new Sequence(IAcceleoConstants.BRACKETS_BEGIN);
@@ -1113,24 +1125,28 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
if (pSeparator.search(bHeaderBuffer).b() == -1 && pAfter.search(bHeaderBuffer).b() == -1
&& pGuard.search(bHeaderBuffer).b() == -1 && pInit.search(bHeaderBuffer).b() == -1) {
computeKeywordProposal(proposals, start, IAcceleoConstants.BEFORE + ' '
- + IAcceleoConstants.PARENTHESIS_BEGIN, IAcceleoConstants.PARENTHESIS_END, keywordImage);
+ + IAcceleoConstants.PARENTHESIS_BEGIN, IAcceleoConstants.PARENTHESIS_END,
+ keywordImage);
}
}
if (((org.eclipse.acceleo.parser.cst.ForBlock)cstNode).getEach() == null
&& pAfter.search(bHeaderBuffer).b() == -1 && pGuard.search(bHeaderBuffer).b() == -1
&& pInit.search(bHeaderBuffer).b() == -1) {
computeKeywordProposal(proposals, start, IAcceleoConstants.SEPARATOR + ' '
- + IAcceleoConstants.PARENTHESIS_BEGIN, IAcceleoConstants.PARENTHESIS_END, keywordImage);
+ + IAcceleoConstants.PARENTHESIS_BEGIN, IAcceleoConstants.PARENTHESIS_END,
+ keywordImage);
}
if (((org.eclipse.acceleo.parser.cst.ForBlock)cstNode).getAfter() == null
&& pGuard.search(bHeaderBuffer).b() == -1 && pInit.search(bHeaderBuffer).b() == -1) {
computeKeywordProposal(proposals, start, IAcceleoConstants.AFTER + ' '
- + IAcceleoConstants.PARENTHESIS_BEGIN, IAcceleoConstants.PARENTHESIS_END, keywordImage);
+ + IAcceleoConstants.PARENTHESIS_BEGIN, IAcceleoConstants.PARENTHESIS_END,
+ keywordImage);
}
if (((org.eclipse.acceleo.parser.cst.ForBlock)cstNode).getGuard() == null
&& pInit.search(bHeaderBuffer).b() == -1) {
computeKeywordProposal(proposals, start, IAcceleoConstants.GUARD + ' '
- + IAcceleoConstants.PARENTHESIS_BEGIN, IAcceleoConstants.PARENTHESIS_END, keywordImage);
+ + IAcceleoConstants.PARENTHESIS_BEGIN, IAcceleoConstants.PARENTHESIS_END,
+ keywordImage);
}
if (((org.eclipse.acceleo.parser.cst.ForBlock)cstNode).getInit() == null && "{".startsWith(start)) { //$NON-NLS-1$
String replacementStringBefore = "{ "; //$NON-NLS-1$
@@ -1157,8 +1173,8 @@ public class AcceleoCompletionProcessor implements IContentAssistProcessor {
buffer.append(aText);
buffer.append(tag);
Sequence literalEscape = new Sequence(IAcceleoConstants.LITERAL_ESCAPE);
- SequenceBlock pLiteral = new SequenceBlock(new Sequence(IAcceleoConstants.LITERAL_BEGIN), new Sequence(
- IAcceleoConstants.LITERAL_END), literalEscape, false, null);
+ SequenceBlock pLiteral = new SequenceBlock(new Sequence(IAcceleoConstants.LITERAL_BEGIN),
+ new Sequence(IAcceleoConstants.LITERAL_END), literalEscape, false, null);
SequenceBlock pParenthesis = new SequenceBlock(new Sequence(IAcceleoConstants.PARENTHESIS_BEGIN),
new Sequence(IAcceleoConstants.PARENTHESIS_END), null, true, new SequenceBlock[] {pLiteral});
Sequence pHeaderEnd = new Sequence(IAcceleoConstants.DEFAULT_END);
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoEditor.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoEditor.java
index e7b4c0c..b2773ed 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoEditor.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoEditor.java
@@ -453,8 +453,8 @@ public class AcceleoEditor extends TextEditor implements IResourceChangeListener
}
/**
- * Updates the folding structure of the template. This will be called from the Acceleo template reconciler in
- * order to allow the folding of blocks to the user.
+ * Updates the folding structure of the template. This will be called from the Acceleo template reconciler
+ * in order to allow the folding of blocks to the user.
*
* @param addedAnnotations
* These annotations have been added since the last reconciling operation.
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoElementHyperlinkDetector.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoElementHyperlinkDetector.java
index 9121716..bbfec97 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoElementHyperlinkDetector.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoElementHyperlinkDetector.java
@@ -127,8 +127,8 @@ public class AcceleoElementHyperlinkDetector extends AbstractHyperlinkDetector {
private final ITextEditor sourceEditor;
/**
- * Instantiates an Acceleo hyperlink given the editor it appears on, the text region it spans to, and the
- * link's target.
+ * Instantiates an Acceleo hyperlink given the editor it appears on, the text region it spans to, and
+ * the link's target.
*
* @param editor
* Editor on which this hyperlink is shown.
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoOutlinePageItemProvider.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoOutlinePageItemProvider.java
index 6b33bf1..f414f16 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoOutlinePageItemProvider.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoOutlinePageItemProvider.java
@@ -197,8 +197,8 @@ public class AcceleoOutlinePageItemProvider extends ReflectiveItemProvider {
text.append("template "); //$NON-NLS-1$
text.append(eTemplate.getName());
text.append("("); //$NON-NLS-1$
- for (Iterator<org.eclipse.acceleo.parser.cst.Variable> eParameters = eTemplate.getParameter().iterator(); eParameters
- .hasNext();) {
+ for (Iterator<org.eclipse.acceleo.parser.cst.Variable> eParameters = eTemplate.getParameter()
+ .iterator(); eParameters.hasNext();) {
org.eclipse.acceleo.parser.cst.Variable eVariable = eParameters.next();
if (eVariable.getType() != null) {
text.append(eVariable.getType());
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoSourceContent.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoSourceContent.java
index 4320a9e..8cfb2a9 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoSourceContent.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoSourceContent.java
@@ -620,7 +620,8 @@ public class AcceleoSourceContent {
value = 1;
} else if (arg0.getKind() == ChoiceKind.PROPERTY && arg1.getKind() == ChoiceKind.PROPERTY) {
value = arg0.getName().compareTo(arg1.getName());
- } else if (arg0 instanceof AcceleoCompletionChoice && !(arg1 instanceof AcceleoCompletionChoice)) {
+ } else if (arg0 instanceof AcceleoCompletionChoice
+ && !(arg1 instanceof AcceleoCompletionChoice)) {
value = -1;
} else if (arg0.getKind() == ChoiceKind.PROPERTY) {
value = -1;
@@ -635,9 +636,11 @@ public class AcceleoSourceContent {
Choice choice = choicesIt.next();
if (choice.getElement() instanceof EOperation) {
EOperation eOperation = (EOperation)choice.getElement();
- org.eclipse.acceleo.model.mtl.ModuleElement eModuleElement = oclParser.getModuleElement(eOperation);
+ org.eclipse.acceleo.model.mtl.ModuleElement eModuleElement = oclParser
+ .getModuleElement(eOperation);
if (eModuleElement != null) {
- AcceleoCompletionChoice acceleoChoice = new AcceleoCompletionChoice(choice, eModuleElement);
+ AcceleoCompletionChoice acceleoChoice = new AcceleoCompletionChoice(choice,
+ eModuleElement);
choice = acceleoChoice;
}
}
@@ -735,7 +738,8 @@ public class AcceleoSourceContent {
while (values.hasNext()) {
ModuleImportsValue moduleImportsValue = values.next();
if (moduleImportsValue != null && oName.equals(moduleImportsValue.getName())) {
- org.eclipse.acceleo.model.mtl.Module otherModule = getModule(vAST.eResource().getResourceSet(), oURI);
+ org.eclipse.acceleo.model.mtl.Module otherModule = getModule(vAST.eResource()
+ .getResourceSet(), oURI);
if (otherModule != null && oName.equals(otherModule.getName())
&& !vAST.getImports().contains(otherModule)) {
vAST.getImports().add(otherModule);
@@ -763,7 +767,8 @@ public class AcceleoSourceContent {
while (values.hasNext()) {
ModuleExtendsValue moduleExtendsValue = values.next();
if (moduleExtendsValue != null && oName.equals(moduleExtendsValue.getName())) {
- org.eclipse.acceleo.model.mtl.Module otherModule = getModule(vAST.eResource().getResourceSet(), oURI);
+ org.eclipse.acceleo.model.mtl.Module otherModule = getModule(vAST.eResource()
+ .getResourceSet(), oURI);
if (otherModule != null && oName.equals(otherModule.getName())
&& !vAST.getExtends().contains(otherModule)) {
vAST.getExtends().add(otherModule);
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/actions/references/ReferenceLabelProvider.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/actions/references/ReferenceLabelProvider.java
index 05569ab..b5034dc 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/actions/references/ReferenceLabelProvider.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/actions/references/ReferenceLabelProvider.java
@@ -58,7 +58,8 @@ public class ReferenceLabelProvider extends LabelProvider {
result = AcceleoUIActivator.getDefault().getImage(
"/icons/template-editor/" + ((EObject)entry.getMatch()).eClass().getName() + ".gif"); //$NON-NLS-1$ //$NON-NLS-2$
} else {
- result = AcceleoUIActivator.getDefault().getImage("/icons/template-editor/ModelExpression.gif"); //$NON-NLS-1$
+ result = AcceleoUIActivator.getDefault().getImage(
+ "/icons/template-editor/ModelExpression.gif"); //$NON-NLS-1$
}
} else {
result = AcceleoUIActivator.getDefault().getImage("/icons/template-editor/ModelExpression.gif"); //$NON-NLS-1$
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoBlockScanner.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoBlockScanner.java
index 9dc3602..e3da990 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoBlockScanner.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoBlockScanner.java
@@ -36,21 +36,23 @@ public class AcceleoBlockScanner extends AbstractAcceleoScanner {
* All the keywords sequences of the concrete syntax.
*/
private static final String[] KEYWORDS = {IAcceleoConstants.MODULE, IAcceleoConstants.COMMENT,
- IAcceleoConstants.IMPORT, IAcceleoConstants.EXTENDS, IAcceleoConstants.OVERRIDES, IAcceleoConstants.TEMPLATE,
- IAcceleoConstants.VISIBILITY_KIND_PUBLIC, IAcceleoConstants.VISIBILITY_KIND_PROTECTED,
- IAcceleoConstants.VISIBILITY_KIND_PRIVATE, IAcceleoConstants.QUERY, IAcceleoConstants.FOR,
- IAcceleoConstants.BEFORE, IAcceleoConstants.AFTER, IAcceleoConstants.SEPARATOR, IAcceleoConstants.GUARD,
+ IAcceleoConstants.IMPORT, IAcceleoConstants.EXTENDS, IAcceleoConstants.OVERRIDES,
+ IAcceleoConstants.TEMPLATE, IAcceleoConstants.VISIBILITY_KIND_PUBLIC,
+ IAcceleoConstants.VISIBILITY_KIND_PROTECTED, IAcceleoConstants.VISIBILITY_KIND_PRIVATE,
+ IAcceleoConstants.QUERY, IAcceleoConstants.FOR, IAcceleoConstants.BEFORE,
+ IAcceleoConstants.AFTER, IAcceleoConstants.SEPARATOR, IAcceleoConstants.GUARD,
IAcceleoConstants.IF, IAcceleoConstants.ELSE_IF, IAcceleoConstants.ELSE, IAcceleoConstants.LET,
- IAcceleoConstants.ELSE_LET, IAcceleoConstants.TRACE, IAcceleoConstants.MACRO, IAcceleoConstants.FILE,
- IAcceleoConstants.PROTECTED_AREA, IAcceleoConstants.SELF, IAcceleoConstants.SUPER,};
+ IAcceleoConstants.ELSE_LET, IAcceleoConstants.TRACE, IAcceleoConstants.MACRO,
+ IAcceleoConstants.FILE, IAcceleoConstants.PROTECTED_AREA, IAcceleoConstants.SELF,
+ IAcceleoConstants.SUPER,};
/**
* All the delimiters sequences of the concrete syntax. <code>[, ], [/, /]</code>
*/
private static final String[] DELIMITERS = {
IAcceleoConstants.DEFAULT_BEGIN + IAcceleoConstants.DEFAULT_END_BODY_CHAR,
- IAcceleoConstants.DEFAULT_END_BODY_CHAR + IAcceleoConstants.DEFAULT_END, IAcceleoConstants.DEFAULT_BEGIN,
- IAcceleoConstants.DEFAULT_END,};
+ IAcceleoConstants.DEFAULT_END_BODY_CHAR + IAcceleoConstants.DEFAULT_END,
+ IAcceleoConstants.DEFAULT_BEGIN, IAcceleoConstants.DEFAULT_END,};
/**
* Constructor.
@@ -103,10 +105,12 @@ public class AcceleoBlockScanner extends AbstractAcceleoScanner {
rules.add(new FirstVariableRule(new String[] {IAcceleoConstants.DEFAULT_BEGIN, IAcceleoConstants.FOR,
IAcceleoConstants.PARENTHESIS_BEGIN,}, new Token(new TextAttribute(foreGroundColor,
backGroundColor, style))));
- rules.add(new FirstVariableRule(new String[] {IAcceleoConstants.DEFAULT_BEGIN, IAcceleoConstants.LET},
- new Token(new TextAttribute(foreGroundColor, backGroundColor, style))));
- rules.add(new FirstVariableRule(new String[] {IAcceleoConstants.DEFAULT_BEGIN, IAcceleoConstants.ELSE_LET},
- new Token(new TextAttribute(foreGroundColor, backGroundColor, style))));
+ rules.add(new FirstVariableRule(
+ new String[] {IAcceleoConstants.DEFAULT_BEGIN, IAcceleoConstants.LET}, new Token(
+ new TextAttribute(foreGroundColor, backGroundColor, style))));
+ rules.add(new FirstVariableRule(new String[] {IAcceleoConstants.DEFAULT_BEGIN,
+ IAcceleoConstants.ELSE_LET, }, new Token(new TextAttribute(foreGroundColor, backGroundColor,
+ style))));
rules.add(new WhitespaceRule(new AcceleoWhitespaceDetector()));
return rules.toArray(new IRule[rules.size()]);
}
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoCommentScanner.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoCommentScanner.java
index cbd5375..b74d74c 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoCommentScanner.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoCommentScanner.java
@@ -33,8 +33,8 @@ public class AcceleoCommentScanner extends AbstractAcceleoScanner {
*/
public AcceleoCommentScanner(ColorManager manager) {
IRule[] rules = new IRule[1];
- rules[0] = new KeywordRule(IAcceleoConstants.TAG_MAIN, true, false, new Token(new TextAttribute(manager
- .getColor(IAcceleoColorConstants.COMMENT), null, SWT.BOLD)));
+ rules[0] = new KeywordRule(IAcceleoConstants.TAG_MAIN, true, false, new Token(new TextAttribute(
+ manager.getColor(IAcceleoColorConstants.COMMENT), null, SWT.BOLD)));
setRules(rules);
setDefaultReturnToken(new Token(new TextAttribute(manager.getColor(IAcceleoColorConstants.COMMENT))));
}
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoPartitionScanner.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoPartitionScanner.java
index 1843dfd..2e7385c 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoPartitionScanner.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoPartitionScanner.java
@@ -74,8 +74,9 @@ public class AcceleoPartitionScanner extends RuleBasedPartitionScanner {
/**
* All legal content types.
*/
- public static final String[] LEGAL_CONTENT_TYPES = new String[] {ACCELEO_COMMENT, ACCELEO_BEHAVIORAL_FEATURE,
- ACCELEO_PROTECTED_AREA, ACCELEO_IF, ACCELEO_LET, ACCELEO_FOR, ACCELEO_BLOCK,};
+ public static final String[] LEGAL_CONTENT_TYPES = new String[] {ACCELEO_COMMENT,
+ ACCELEO_BEHAVIORAL_FEATURE, ACCELEO_PROTECTED_AREA, ACCELEO_IF, ACCELEO_LET, ACCELEO_FOR,
+ ACCELEO_BLOCK,};
/**
* Constructor.
@@ -83,8 +84,8 @@ public class AcceleoPartitionScanner extends RuleBasedPartitionScanner {
public AcceleoPartitionScanner() {
List<IRule> rules = new ArrayList<IRule>();
SequenceBlockRule literal = new SequenceBlockRule(new KeywordRule(IAcceleoConstants.LITERAL_BEGIN),
- new KeywordRule(IAcceleoConstants.LITERAL_END), new KeywordRule(IAcceleoConstants.LITERAL_ESCAPE),
- new Token(IDocument.DEFAULT_CONTENT_TYPE));
+ new KeywordRule(IAcceleoConstants.LITERAL_END), new KeywordRule(
+ IAcceleoConstants.LITERAL_ESCAPE), new Token(IDocument.DEFAULT_CONTENT_TYPE));
computeCommentRules(rules);
computeBehavioralFeatureRules(rules, literal);
computeProtectedAreaRules(rules, literal);
@@ -105,7 +106,8 @@ public class AcceleoPartitionScanner extends RuleBasedPartitionScanner {
SequenceRule beginComment = new SequenceRule(new String[] {IAcceleoConstants.DEFAULT_BEGIN,
IAcceleoConstants.COMMENT, IAcceleoConstants.DEFAULT_END,});
SequenceRule endComment = new SequenceRule(new String[] {IAcceleoConstants.DEFAULT_BEGIN,
- IAcceleoConstants.DEFAULT_END_BODY_CHAR, IAcceleoConstants.COMMENT, IAcceleoConstants.DEFAULT_END,});
+ IAcceleoConstants.DEFAULT_END_BODY_CHAR, IAcceleoConstants.COMMENT,
+ IAcceleoConstants.DEFAULT_END,});
rules.add(new SequenceBlockRule(beginComment, endComment, new SequenceBlockRule[] {}, new Token(
ACCELEO_COMMENT)));
rules.add(new SequenceBlockRule(beginSequence(IAcceleoConstants.COMMENT), new KeywordRule(
@@ -125,20 +127,20 @@ public class AcceleoPartitionScanner extends RuleBasedPartitionScanner {
IAcceleoConstants.DEFAULT_END), new SequenceBlockRule[] {literal}, new Token(
ACCELEO_BEHAVIORAL_FEATURE)));
rules.add(new SequenceRule(new String[] {IAcceleoConstants.DEFAULT_BEGIN,
- IAcceleoConstants.DEFAULT_END_BODY_CHAR, IAcceleoConstants.TEMPLATE, IAcceleoConstants.DEFAULT_END,},
- new Token(ACCELEO_BEHAVIORAL_FEATURE)));
+ IAcceleoConstants.DEFAULT_END_BODY_CHAR, IAcceleoConstants.TEMPLATE,
+ IAcceleoConstants.DEFAULT_END,}, new Token(ACCELEO_BEHAVIORAL_FEATURE)));
rules.add(new SequenceBlockRule(beginSequence(IAcceleoConstants.QUERY), new KeywordRule(
IAcceleoConstants.DEFAULT_END), new SequenceBlockRule[] {literal}, new Token(
ACCELEO_BEHAVIORAL_FEATURE)));
rules.add(new SequenceRule(new String[] {IAcceleoConstants.DEFAULT_BEGIN,
- IAcceleoConstants.DEFAULT_END_BODY_CHAR, IAcceleoConstants.QUERY, IAcceleoConstants.DEFAULT_END,},
- new Token(ACCELEO_BEHAVIORAL_FEATURE)));
+ IAcceleoConstants.DEFAULT_END_BODY_CHAR, IAcceleoConstants.QUERY,
+ IAcceleoConstants.DEFAULT_END,}, new Token(ACCELEO_BEHAVIORAL_FEATURE)));
rules.add(new SequenceBlockRule(beginSequence(IAcceleoConstants.MACRO), new KeywordRule(
IAcceleoConstants.DEFAULT_END), new SequenceBlockRule[] {literal}, new Token(
ACCELEO_BEHAVIORAL_FEATURE)));
rules.add(new SequenceRule(new String[] {IAcceleoConstants.DEFAULT_BEGIN,
- IAcceleoConstants.DEFAULT_END_BODY_CHAR, IAcceleoConstants.MACRO, IAcceleoConstants.DEFAULT_END,},
- new Token(ACCELEO_BEHAVIORAL_FEATURE)));
+ IAcceleoConstants.DEFAULT_END_BODY_CHAR, IAcceleoConstants.MACRO,
+ IAcceleoConstants.DEFAULT_END,}, new Token(ACCELEO_BEHAVIORAL_FEATURE)));
}
/**
@@ -150,15 +152,13 @@ public class AcceleoPartitionScanner extends RuleBasedPartitionScanner {
* is the 'literal' rule
*/
private void computeProtectedAreaRules(List<IRule> rules, SequenceBlockRule literal) {
- rules
- .add(new SequenceBlockRule(beginSequence(IAcceleoConstants.PROTECTED_AREA), new KeywordRule(
- IAcceleoConstants.DEFAULT_END), new SequenceBlockRule[] {literal}, new Token(
+ rules.add(new SequenceBlockRule(beginSequence(IAcceleoConstants.PROTECTED_AREA), new KeywordRule(
+ IAcceleoConstants.DEFAULT_END), new SequenceBlockRule[] {literal}, new Token(
+ ACCELEO_PROTECTED_AREA)));
+ rules.add(new SequenceBlockRule(new SequenceRule(new String[] {IAcceleoConstants.DEFAULT_BEGIN,
+ IAcceleoConstants.DEFAULT_END_BODY_CHAR, IAcceleoConstants.PROTECTED_AREA,}),
+ new KeywordRule(IAcceleoConstants.DEFAULT_END), new SequenceBlockRule[] {literal}, new Token(
ACCELEO_PROTECTED_AREA)));
- rules
- .add(new SequenceBlockRule(new SequenceRule(new String[] {IAcceleoConstants.DEFAULT_BEGIN,
- IAcceleoConstants.DEFAULT_END_BODY_CHAR, IAcceleoConstants.PROTECTED_AREA,}),
- new KeywordRule(IAcceleoConstants.DEFAULT_END), new SequenceBlockRule[] {literal},
- new Token(ACCELEO_PROTECTED_AREA)));
}
/**
@@ -176,9 +176,9 @@ public class AcceleoPartitionScanner extends RuleBasedPartitionScanner {
IAcceleoConstants.DEFAULT_END), new SequenceBlockRule[] {literal}, new Token(ACCELEO_IF)));
rules.add(new SequenceRule(new String[] {IAcceleoConstants.DEFAULT_BEGIN, IAcceleoConstants.ELSE,
IAcceleoConstants.DEFAULT_END,}, new Token(ACCELEO_IF)));
- rules.add(new SequenceRule(new String[] {IAcceleoConstants.DEFAULT_BEGIN,
- IAcceleoConstants.DEFAULT_END_BODY_CHAR, IAcceleoConstants.IF, IAcceleoConstants.DEFAULT_END,},
- new Token(ACCELEO_IF)));
+ rules.add(new SequenceRule(
+ new String[] {IAcceleoConstants.DEFAULT_BEGIN, IAcceleoConstants.DEFAULT_END_BODY_CHAR,
+ IAcceleoConstants.IF, IAcceleoConstants.DEFAULT_END,}, new Token(ACCELEO_IF)));
}
/**
@@ -197,8 +197,8 @@ public class AcceleoPartitionScanner extends RuleBasedPartitionScanner {
rules.add(new SequenceRule(new String[] {IAcceleoConstants.DEFAULT_BEGIN, IAcceleoConstants.ELSE,
IAcceleoConstants.DEFAULT_END,}, new Token(ACCELEO_LET)));
rules.add(new SequenceRule(new String[] {IAcceleoConstants.DEFAULT_BEGIN,
- IAcceleoConstants.DEFAULT_END_BODY_CHAR, IAcceleoConstants.LET, IAcceleoConstants.DEFAULT_END,},
- new Token(ACCELEO_LET)));
+ IAcceleoConstants.DEFAULT_END_BODY_CHAR, IAcceleoConstants.LET,
+ IAcceleoConstants.DEFAULT_END,}, new Token(ACCELEO_LET)));
}
/**
@@ -213,8 +213,8 @@ public class AcceleoPartitionScanner extends RuleBasedPartitionScanner {
rules.add(new SequenceBlockRule(beginSequence(IAcceleoConstants.FOR), new KeywordRule(
IAcceleoConstants.DEFAULT_END), new SequenceBlockRule[] {literal}, new Token(ACCELEO_FOR)));
rules.add(new SequenceRule(new String[] {IAcceleoConstants.DEFAULT_BEGIN,
- IAcceleoConstants.DEFAULT_END_BODY_CHAR, IAcceleoConstants.FOR, IAcceleoConstants.DEFAULT_END,},
- new Token(ACCELEO_FOR)));
+ IAcceleoConstants.DEFAULT_END_BODY_CHAR, IAcceleoConstants.FOR,
+ IAcceleoConstants.DEFAULT_END,}, new Token(ACCELEO_FOR)));
}
/**
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoProtectedAreaScanner.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoProtectedAreaScanner.java
index 8e181af..a886806 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoProtectedAreaScanner.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/scanner/AcceleoProtectedAreaScanner.java
@@ -41,8 +41,8 @@ public class AcceleoProtectedAreaScanner extends AbstractAcceleoScanner {
new TextAttribute(manager.getColor(IAcceleoColorConstants.LITERAL), null, SWT.BOLD)));
rules[1] = new WhitespaceRule(new AcceleoWhitespaceDetector());
setRules(rules);
- setDefaultReturnToken(new Token(new TextAttribute(
- manager.getColor(IAcceleoColorConstants.PROTECTED_AREA), null, SWT.BOLD)));
+ setDefaultReturnToken(new Token(new TextAttribute(manager
+ .getColor(IAcceleoColorConstants.PROTECTED_AREA), null, SWT.BOLD)));
}
/**
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/utils/OpenDeclarationUtils.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/utils/OpenDeclarationUtils.java
index 7a8b931..283fd48 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/utils/OpenDeclarationUtils.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/utils/OpenDeclarationUtils.java
@@ -220,7 +220,8 @@ public final class OpenDeclarationUtils {
if (newFileURI != null) {
IEditorDescriptor editorDescriptor;
String lastSegment = newFileURI.lastSegment();
- if (lastSegment.endsWith(IAcceleoConstants.EMTL_FILE_EXTENSION) || lastSegment.endsWith(".ecore")) { //$NON-NLS-1$
+ if (lastSegment.endsWith(IAcceleoConstants.EMTL_FILE_EXTENSION)
+ || lastSegment.endsWith(".ecore")) { //$NON-NLS-1$
editorDescriptor = getXMIEditor();
} else {
editorDescriptor = workbench.getEditorRegistry().getDefaultEditor(lastSegment);
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoLaunchDelegate.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoLaunchDelegate.java
index 80718b1..d160097 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoLaunchDelegate.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoLaunchDelegate.java
@@ -44,9 +44,9 @@ import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
import org.osgi.framework.Bundle;
/**
- * To launch an Acceleo application in a Java standalone way, or in a full Eclipse way. This last way is currently
- * required for debugging an Acceleo file. You can also debug an Acceleo application by launching it in a Java
- * standalone way, but you will debug the Acceleo Java sources...
+ * To launch an Acceleo application in a Java standalone way, or in a full Eclipse way. This last way is
+ * currently required for debugging an Acceleo file. You can also debug an Acceleo application by launching it
+ * in a Java standalone way, but you will debug the Acceleo Java sources...
*
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
*/
@@ -200,16 +200,16 @@ public class AcceleoLaunchDelegate extends AcceleoLaunchDelegateStandalone {
Class<IAcceleoLaunchingStrategy> c = bundle.loadClass(strategyClass);
return c.newInstance();
} catch (ClassNotFoundException e) {
- IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK,
- e.getMessage(), e);
+ IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID,
+ IStatus.OK, e.getMessage(), e);
AcceleoUIActivator.getDefault().getLog().log(status);
} catch (InstantiationException e) {
- IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK,
- e.getMessage(), e);
+ IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID,
+ IStatus.OK, e.getMessage(), e);
AcceleoUIActivator.getDefault().getLog().log(status);
} catch (IllegalAccessException e) {
- IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK,
- e.getMessage(), e);
+ IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID,
+ IStatus.OK, e.getMessage(), e);
AcceleoUIActivator.getDefault().getLog().log(status);
}
}
@@ -280,8 +280,8 @@ public class AcceleoLaunchDelegate extends AcceleoLaunchDelegateStandalone {
}
/**
- * Returns the Acceleo application arguments (properties) specified by the given launch configuration, or an
- * empty list if none.
+ * Returns the Acceleo application arguments (properties) specified by the given launch configuration, or
+ * an empty list if none.
*
* @param configuration
* launch configuration
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoLaunchDelegateStandalone.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoLaunchDelegateStandalone.java
index 7f926a6..0b9938e 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoLaunchDelegateStandalone.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoLaunchDelegateStandalone.java
@@ -61,8 +61,10 @@ public class AcceleoLaunchDelegateStandalone extends org.eclipse.jdt.launching.J
Thread.sleep(100);
}
} catch (InterruptedException e) {
- AcceleoUIActivator.getDefault().getLog().log(
- new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, e.getMessage(), e));
+ AcceleoUIActivator.getDefault().getLog()
+ .log(
+ new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, e
+ .getMessage(), e));
}
if (container.getProject() != null) {
container.getProject().refreshLocal(IResource.DEPTH_INFINITE, monitor);
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoMainTab.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoMainTab.java
index 356241e..78db874 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoMainTab.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoMainTab.java
@@ -139,8 +139,10 @@ public class AcceleoMainTab extends org.eclipse.jdt.debug.ui.launchConfiguration
super.createControl(parent);
Composite mainComposite = (Composite)getControl();
new Label(mainComposite, SWT.NONE);
- Composite compAcceleo = createComposite(mainComposite, parent.getFont(), 2, 2, GridData.FILL_BOTH, 0, 0);
- Composite compModelTarget = createComposite(compAcceleo, parent.getFont(), 1, 1, GridData.FILL_BOTH, 0, 0);
+ Composite compAcceleo = createComposite(mainComposite, parent.getFont(), 2, 2, GridData.FILL_BOTH, 0,
+ 0);
+ Composite compModelTarget = createComposite(compAcceleo, parent.getFont(), 1, 1, GridData.FILL_BOTH,
+ 0, 0);
createAcceleoModelEditor(compModelTarget);
createAcceleoTargetEditor(compModelTarget);
createAcceleoArgumentsEditor(compAcceleo);
@@ -512,8 +514,8 @@ public class AcceleoMainTab extends org.eclipse.jdt.debug.ui.launchConfiguration
protected void updateAcceleoLaunchingStrategyFromConfig(ILaunchConfiguration config) {
String id = ""; //$NON-NLS-1$
try {
- id = config
- .getAttribute(IAcceleoLaunchConfigurationConstants.ATTR_LAUNCHING_STRATEGY_DESCRIPTION, ""); //$NON-NLS-1$
+ id = config.getAttribute(
+ IAcceleoLaunchConfigurationConstants.ATTR_LAUNCHING_STRATEGY_DESCRIPTION, ""); //$NON-NLS-1$
} catch (CoreException e) {
AcceleoUIActivator.getDefault().getLog().log(e.getStatus());
}
@@ -547,8 +549,8 @@ public class AcceleoMainTab extends org.eclipse.jdt.debug.ui.launchConfiguration
result = false;
}
} else {
- setErrorMessage(AcceleoUIMessages
- .getString("AcceleoMainTab.Error.InvalidModel", new Object[] {model})); //$NON-NLS-1$
+ setErrorMessage(AcceleoUIMessages.getString(
+ "AcceleoMainTab.Error.InvalidModel", new Object[] {model})); //$NON-NLS-1$
result = false;
}
}
@@ -576,7 +578,8 @@ public class AcceleoMainTab extends org.eclipse.jdt.debug.ui.launchConfiguration
}
super.performApply(config);
config.setAttribute(IAcceleoLaunchConfigurationConstants.ATTR_MODEL_PATH, modelText.getText().trim());
- config.setAttribute(IAcceleoLaunchConfigurationConstants.ATTR_TARGET_PATH, targetText.getText().trim());
+ config.setAttribute(IAcceleoLaunchConfigurationConstants.ATTR_TARGET_PATH, targetText.getText()
+ .trim());
config.setAttribute(IAcceleoLaunchConfigurationConstants.ATTR_ARGUMENTS, argumentsText.getText());
config.setAttribute(IAcceleoLaunchConfigurationConstants.ATTR_LAUNCHING_STRATEGY_DESCRIPTION,
launchingStrategyCombo.getText());
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoSourceLookupDirector.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoSourceLookupDirector.java
index 966e4b7..610eb9f 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoSourceLookupDirector.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/AcceleoSourceLookupDirector.java
@@ -19,8 +19,8 @@ import org.eclipse.debug.core.sourcelookup.ISourceLookupParticipant;
import org.eclipse.jdt.launching.sourcelookup.containers.JavaProjectSourceContainer;
/**
- * Acceleo source lookup director. Directs source lookup among a collection of source lookup participants, and a
- * common collection of source containers.
+ * Acceleo source lookup director. Directs source lookup among a collection of source lookup participants, and
+ * a common collection of source containers.
*
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
*/
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/IAcceleoLaunchConfigurationConstants.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/IAcceleoLaunchConfigurationConstants.java
index 523c470..bfd01b4 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/IAcceleoLaunchConfigurationConstants.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/launching/IAcceleoLaunchConfigurationConstants.java
@@ -42,6 +42,7 @@ public interface IAcceleoLaunchConfigurationConstants {
/**
* Launch configuration attribute key. This is the value of the launching strategy.
*/
- String ATTR_LAUNCHING_STRATEGY_DESCRIPTION = AcceleoUIActivator.PLUGIN_ID + ".LAUNCHING_STRATEGY_DESCRIPTION"; //$NON-NLS-1$
+ String ATTR_LAUNCHING_STRATEGY_DESCRIPTION = AcceleoUIActivator.PLUGIN_ID
+ + ".LAUNCHING_STRATEGY_DESCRIPTION"; //$NON-NLS-1$
}
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/natures/AcceleoToggleNatureAction.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/natures/AcceleoToggleNatureAction.java
index 41e4661..19a44bf 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/natures/AcceleoToggleNatureAction.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/natures/AcceleoToggleNatureAction.java
@@ -111,8 +111,10 @@ public class AcceleoToggleNatureAction implements IObjectActionDelegate {
try {
file.deleteMarkers(AcceleoMarker.PROBLEM_MARKER, false, IResource.DEPTH_ZERO);
} catch (CoreException e) {
- AcceleoUIActivator.getDefault().getLog().log(
- new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, e.getMessage(), e));
+ AcceleoUIActivator.getDefault().getLog()
+ .log(
+ new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, e
+ .getMessage(), e));
}
}
return;
@@ -147,7 +149,8 @@ public class AcceleoToggleNatureAction implements IObjectActionDelegate {
for (int i = 0; i < children.length; ++i) {
IResource resource = children[i];
if (resource instanceof IFile
- && IAcceleoConstants.MTL_FILE_EXTENSION.equals(((IFile)resource).getFileExtension())) {
+ && IAcceleoConstants.MTL_FILE_EXTENSION.equals(((IFile)resource)
+ .getFileExtension())) {
files.add((IFile)resource);
} else if (resource instanceof IContainer) {
members(files, (IContainer)resource);
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/perspectives/AcceleoPerspectiveFactory.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/perspectives/AcceleoPerspectiveFactory.java
index c031ce2..16ebe52 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/perspectives/AcceleoPerspectiveFactory.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/perspectives/AcceleoPerspectiveFactory.java
@@ -20,7 +20,8 @@ import org.eclipse.ui.console.IConsoleConstants;
import org.eclipse.ui.progress.IProgressConstants;
/**
- * The Acceleo perspective factory generates the initial Acceleo page layout and visible action set for the page.
+ * The Acceleo perspective factory generates the initial Acceleo page layout and visible action set for the
+ * page.
*
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
*/
@@ -82,7 +83,8 @@ public class AcceleoPerspectiveFactory implements IPerspectiveFactory {
// actions - creation wizard
layout.addNewWizardShortcut("org.eclipse.acceleo.ide.ui.wizards.newfile.AcceleoNewTemplatesWizard"); //$NON-NLS-1$
layout.addNewWizardShortcut("org.eclipse.acceleo.ide.ui.wizards.newproject.AcceleoNewProjectWizard"); //$NON-NLS-1$
- layout.addNewWizardShortcut("org.eclipse.acceleo.ide.ui.wizards.newproject.AcceleoNewProjectUIWizard"); //$NON-NLS-1$
+ layout
+ .addNewWizardShortcut("org.eclipse.acceleo.ide.ui.wizards.newproject.AcceleoNewProjectUIWizard"); //$NON-NLS-1$
layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewPackageCreationWizard"); //$NON-NLS-1$
layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewClassCreationWizard"); //$NON-NLS-1$
layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder"); //$NON-NLS-1$
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AbstractAcceleoNewTemplatesMasterComposite.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AbstractAcceleoNewTemplatesMasterComposite.java
index cd8f5c1..eeedc06 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AbstractAcceleoNewTemplatesMasterComposite.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AbstractAcceleoNewTemplatesMasterComposite.java
@@ -30,9 +30,9 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Group;
/**
- * The master composite of the 'AcceleoNewTemplatesWizard' wizard. This composite contains the useful widgets to
- * create and delete the templates. The way to manage the selection of one template in the tree viewer must be
- * subclassed.
+ * The master composite of the 'AcceleoNewTemplatesWizard' wizard. This composite contains the useful widgets
+ * to create and delete the templates. The way to manage the selection of one template in the tree viewer must
+ * be subclassed.
*
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
*/
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesDetailsComposite.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesDetailsComposite.java
index c666c6c..c379bc1 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesDetailsComposite.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesDetailsComposite.java
@@ -56,8 +56,8 @@ import org.eclipse.ui.dialogs.ContainerSelectionDialog;
import org.eclipse.ui.dialogs.FilteredResourcesSelectionDialog;
/**
- * The details composite of the 'AcceleoNewTemplatesWizard' wizard. This composite contains the useful widgets to
- * manage one template settings.
+ * The details composite of the 'AcceleoNewTemplatesWizard' wizard. This composite contains the useful widgets
+ * to manage one template settings.
*
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
*/
@@ -245,7 +245,8 @@ public class AcceleoNewTemplatesDetailsComposite extends Composite {
new Label(templateGroup, SWT.NONE);
advancedButton = new Button(templateGroup, SWT.PUSH);
advancedButton.setFont(templateGroup.getFont());
- advancedButton.setText(AcceleoUIMessages.getString("AcceleoNewTemplateWizardPage" + ".AdvanceShowedButton")); //$NON-NLS-1$ //$NON-NLS-2$
+ advancedButton.setText(AcceleoUIMessages
+ .getString("AcceleoNewTemplateWizardPage" + ".AdvanceShowedButton")); //$NON-NLS-1$ //$NON-NLS-2$
GridData data = setButtonLayoutData(advancedButton);
data.horizontalAlignment = GridData.BEGINNING;
data.horizontalSpan = 3;
@@ -296,7 +297,8 @@ public class AcceleoNewTemplatesDetailsComposite extends Composite {
createTemplateStatusWidgets(additionalOption);
templateGroup.layout();
exampleContainer.setVisible(false);
- advancedButton.setText(AcceleoUIMessages.getString("AcceleoNewTemplateWizardPage.AdvanceShowedButton")); //$NON-NLS-1$
+ advancedButton.setText(AcceleoUIMessages
+ .getString("AcceleoNewTemplateWizardPage.AdvanceShowedButton")); //$NON-NLS-1$
}
/**
@@ -308,10 +310,12 @@ public class AcceleoNewTemplatesDetailsComposite extends Composite {
private void handleAdvancedButtonSelect(Composite templateGroup) {
if (exampleContainer.isVisible()) {
exampleContainer.setVisible(false);
- advancedButton.setText(AcceleoUIMessages.getString("AcceleoNewTemplateWizardPage.AdvanceShowedButton")); //$NON-NLS-1$
+ advancedButton.setText(AcceleoUIMessages
+ .getString("AcceleoNewTemplateWizardPage.AdvanceShowedButton")); //$NON-NLS-1$
} else {
exampleContainer.setVisible(true);
- advancedButton.setText(AcceleoUIMessages.getString("AcceleoNewTemplateWizardPage.AdvanceHiddenButton")); //$NON-NLS-1$
+ advancedButton.setText(AcceleoUIMessages
+ .getString("AcceleoNewTemplateWizardPage.AdvanceHiddenButton")); //$NON-NLS-1$
}
}
@@ -356,8 +360,8 @@ public class AcceleoNewTemplatesDetailsComposite extends Composite {
initializeFileTemplate.setLayoutData(gridData);
initializeFileTemplate.setLayout(layout);
exampleFileLabel = new Label(initializeFileTemplate, SWT.NULL);
- exampleFileLabel
- .setText(AcceleoUIMessages.getString("AcceleoNewTemplateWizardPage.TemplateOutputFile") + ':'); //$NON-NLS-1$
+ exampleFileLabel.setText(AcceleoUIMessages
+ .getString("AcceleoNewTemplateWizardPage.TemplateOutputFile") + ':'); //$NON-NLS-1$
gridData = new GridData(GridData.FILL_HORIZONTAL);
gridData.horizontalAlignment = SWT.RIGHT;
final int widthHintExampleFileLabel = 35;
@@ -536,7 +540,8 @@ public class AcceleoNewTemplatesDetailsComposite extends Composite {
}
});
templateHasMainButtonState = new Button(statusContainer, SWT.CHECK);
- templateHasMainButtonState.setText(AcceleoUIMessages.getString("AcceleoNewTemplateWizardPage.AcceleoHasMain")); //$NON-NLS-1$
+ templateHasMainButtonState.setText(AcceleoUIMessages
+ .getString("AcceleoNewTemplateWizardPage.AcceleoHasMain")); //$NON-NLS-1$
templateHasMainButtonState.setSelection(true);
templateHasMainButtonState.addSelectionListener(new SelectionListener() {
public void widgetDefaultSelected(SelectionEvent e) {
@@ -716,8 +721,8 @@ public class AcceleoNewTemplatesDetailsComposite extends Composite {
private void updateStrategies() {
if (templateExampleStrategy != null) {
List<String> descriptions = new ArrayList<String>();
- for (Iterator<IAcceleoExampleStrategy> iterator = AcceleoExampleStrategyUtils.getExampleStrategies()
- .iterator(); iterator.hasNext();) {
+ for (Iterator<IAcceleoExampleStrategy> iterator = AcceleoExampleStrategyUtils
+ .getExampleStrategies().iterator(); iterator.hasNext();) {
descriptions.add(iterator.next().getDescription());
}
templateExampleStrategy.setItems(descriptions.toArray(new String[descriptions.size()]));
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesGlobalController.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesGlobalController.java
index 63d4a17..2b33d4b 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesGlobalController.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesGlobalController.java
@@ -74,8 +74,8 @@ public final class AcceleoNewTemplatesGlobalController {
* @param showTemplates
* indicates if the templates are shown on the left of the composite
*/
- public AcceleoNewTemplatesMasterComposite(Composite parent, AcceleoNewTemplatesGlobalController controller,
- boolean showTemplates) {
+ public AcceleoNewTemplatesMasterComposite(Composite parent,
+ AcceleoNewTemplatesGlobalController controller, boolean showTemplates) {
super(parent, controller, showTemplates);
}
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesWizard.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesWizard.java
index 65cd33e..15419e8 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesWizard.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesWizard.java
@@ -46,9 +46,10 @@ import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.ide.IDE;
/**
- * This is a 'new' wizard for Acceleo templates. Its role is to create a new Acceleo file resource in the provided
- * container. If the container resource (a folder or a project) is selected in the workspace when the wizard
- * is opened, it will accept it as the target container. The wizard creates one file with the extension "mtl".
+ * This is a 'new' wizard for Acceleo templates. Its role is to create a new Acceleo file resource in the
+ * provided container. If the container resource (a folder or a project) is selected in the workspace when the
+ * wizard is opened, it will accept it as the target container. The wizard creates one file with the extension
+ * "mtl".
*
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
*/
@@ -101,7 +102,8 @@ public class AcceleoNewTemplatesWizard extends Wizard implements INewWizard {
if (event.getCurrentPage() instanceof WizardPage
&& event.getTargetPage() instanceof AcceleoNewTemplatesWizardPage) {
WizardPage current = (WizardPage)event.getCurrentPage();
- AcceleoNewTemplatesWizardPage target = (AcceleoNewTemplatesWizardPage)event.getTargetPage();
+ AcceleoNewTemplatesWizardPage target = (AcceleoNewTemplatesWizardPage)event
+ .getTargetPage();
target.handleNewTemplatePageChanging(current);
}
}
@@ -192,8 +194,8 @@ public class AcceleoNewTemplatesWizard extends Wizard implements INewWizard {
ResourcesPlugin.getWorkspace().run(create, null);
return true;
} catch (CoreException e) {
- IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e.getMessage(),
- e);
+ IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e
+ .getMessage(), e);
AcceleoUIActivator.getDefault().getLog().log(status);
return false;
}
@@ -236,7 +238,8 @@ public class AcceleoNewTemplatesWizard extends Wizard implements INewWizard {
file.setContents(javaStream, true, false, monitor);
}
monitor.worked(1);
- monitor.setTaskName(AcceleoUIMessages.getString("AcceleoNewTemplatesWizard.Task.OpenTemplate")); //$NON-NLS-1$
+ monitor.setTaskName(AcceleoUIMessages
+ .getString("AcceleoNewTemplatesWizard.Task.OpenTemplate")); //$NON-NLS-1$
getShell().getDisplay().asyncExec(new Runnable() {
public void run() {
IWorkbenchPage aPage = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesWizardController.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesWizardController.java
index 4024d7a..572defc 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesWizardController.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/AcceleoNewTemplatesWizardController.java
@@ -221,7 +221,8 @@ public class AcceleoNewTemplatesWizardController {
updateStatus(AcceleoUIMessages.getString("AcceleoNewTemplateWizardPage.Error.InvalidFileName")); //$NON-NLS-1$
} else if (ResourcesPlugin.getWorkspace().getRoot().exists(
containerPath.append(fileName).addFileExtension(IAcceleoConstants.MTL_FILE_EXTENSION))) {
- updateStatus(AcceleoUIMessages.getString("AcceleoNewTemplateWizardPage.Error.ExistingFile", fileName)); //$NON-NLS-1$
+ updateStatus(AcceleoUIMessages.getString(
+ "AcceleoNewTemplateWizardPage.Error.ExistingFile", fileName)); //$NON-NLS-1$
} else {
IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(containerPath.append(fileName));
if (file.getProject().isAccessible()
@@ -233,7 +234,8 @@ public class AcceleoNewTemplatesWizardController {
} else if (EPackage.Registry.INSTANCE.getEPackage(viewDetailsComposite.getMetamodelURI()) == null) {
updateStatus(AcceleoUIMessages.getString("AcceleoNewTemplateWizardPage.Error.InvalidURI")); //$NON-NLS-1$
} else if (viewDetailsComposite.getMetamodelType().length() == 0) {
- updateStatus(AcceleoUIMessages.getString("AcceleoNewTemplateWizardPage.Error.MissingType")); //$NON-NLS-1$
+ updateStatus(AcceleoUIMessages
+ .getString("AcceleoNewTemplateWizardPage.Error.MissingType")); //$NON-NLS-1$
} else {
updateStatus(null);
}
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/CreateTemplateData.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/CreateTemplateData.java
index 982b39a..dc4c076 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/CreateTemplateData.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/CreateTemplateData.java
@@ -353,7 +353,8 @@ public class CreateTemplateData {
*/
public IAcceleoExampleStrategy getExampleStrategy() {
if (templateExampleStrategy == null || templateExampleStrategy.length() == 0) {
- templateExampleStrategy = AcceleoUIMessages.getString("AcceleoCopyExampleContentStrategy.Description"); //$NON-NLS-1$
+ templateExampleStrategy = AcceleoUIMessages
+ .getString("AcceleoCopyExampleContentStrategy.Description"); //$NON-NLS-1$
}
for (IAcceleoExampleStrategy strategy : AcceleoExampleStrategyUtils.getExampleStrategies()) {
if (templateExampleStrategy.equals(strategy.getDescription())) {
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/AbstractM2TContentStrategy.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/AbstractM2TContentStrategy.java
index f696c2a..03b2086 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/AbstractM2TContentStrategy.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/AbstractM2TContentStrategy.java
@@ -20,8 +20,8 @@ import org.eclipse.acceleo.internal.parser.cst.utils.FileContent;
import org.eclipse.core.resources.IFile;
/**
- * To initialize automatically an Acceleo template file from another M2T template file, by copying and modifying
- * the text of the example into the new template.
+ * To initialize automatically an Acceleo template file from another M2T template file, by copying and
+ * modifying the text of the example into the new template.
*
* @see IAcceleoExampleStrategy
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/AcceleoExampleStrategyUtils.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/AcceleoExampleStrategyUtils.java
index ec10dd4..2773c1c 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/AcceleoExampleStrategyUtils.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/AcceleoExampleStrategyUtils.java
@@ -87,8 +87,9 @@ public final class AcceleoExampleStrategyUtils {
AcceleoUIActivator.getDefault().getLog().log(status);
}
} else {
- IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK,
- AcceleoUIMessages.getString("AcceleoNewTemplatesWizard.MissingStrategyClass", //$NON-NLS-1$
+ IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID,
+ IStatus.OK, AcceleoUIMessages.getString(
+ "AcceleoNewTemplatesWizard.MissingStrategyClass", //$NON-NLS-1$
IAcceleoExampleStrategy.EXAMPLE_STRATEGY_EXTENSION_ID), null);
AcceleoUIActivator.getDefault().getLog().log(status);
}
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/MTContentStrategy.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/MTContentStrategy.java
index 493e8bd..52bfe04 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/MTContentStrategy.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/MTContentStrategy.java
@@ -16,8 +16,8 @@ import java.util.regex.Pattern;
import org.eclipse.acceleo.internal.ide.ui.AcceleoUIMessages;
/**
- * To initialize automatically an Acceleo template file from an old MT template file, by copying and modifying the
- * text of the example into the new template.
+ * To initialize automatically an Acceleo template file from an old MT template file, by copying and modifying
+ * the text of the example into the new template.
*
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
*/
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/XpandContentStrategy.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/XpandContentStrategy.java
index b30295e..30763a4 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/XpandContentStrategy.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newfile/example/XpandContentStrategy.java
@@ -16,8 +16,8 @@ import java.util.regex.Pattern;
import org.eclipse.acceleo.internal.ide.ui.AcceleoUIMessages;
/**
- * To initialize automatically an Acceleo template file from an Xpand template file, by copying and modifying the
- * text of the example into the new template.
+ * To initialize automatically an Acceleo template file from an Xpand template file, by copying and modifying
+ * the text of the example into the new template.
*
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
*/
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/AcceleoNewProjectUIWizard.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/AcceleoNewProjectUIWizard.java
index ee92d94..53f9ef7 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/AcceleoNewProjectUIWizard.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/AcceleoNewProjectUIWizard.java
@@ -211,7 +211,8 @@ public class AcceleoNewProjectUIWizard extends Wizard implements INewWizard {
}
newProjectPage.setInitialProjectName(initialProjectName);
newProjectPage.setTitle(AcceleoUIMessages.getString("AcceleoNewProjectUIWizard.Title")); //$NON-NLS-1$
- newProjectPage.setDescription(AcceleoUIMessages.getString("AcceleoNewProjectUIWizard.Module.Description")); //$NON-NLS-1$
+ newProjectPage.setDescription(AcceleoUIMessages
+ .getString("AcceleoNewProjectUIWizard.Module.Description")); //$NON-NLS-1$
newProjectPage.setImageDescriptor(wizardImage);
addPage(newProjectPage);
projectReferencesPage = new WizardNewProjectReferencePage(AcceleoUIMessages
@@ -317,8 +318,8 @@ public class AcceleoNewProjectUIWizard extends Wizard implements INewWizard {
ResourcesPlugin.getWorkspace().run(create, null);
return true;
} catch (CoreException e) {
- IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e.getMessage(),
- e);
+ IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e
+ .getMessage(), e);
AcceleoUIActivator.getDefault().getLog().log(status);
return false;
}
@@ -386,7 +387,8 @@ public class AcceleoNewProjectUIWizard extends Wizard implements INewWizard {
*/
private void createDefaultImage(IProject project, IProgressMonitor monitor) {
try {
- URL imageURL = Platform.getBundle(AcceleoUIActivator.PLUGIN_ID).getEntry("icons/AcceleoEditor.gif"); //$NON-NLS-1$
+ URL imageURL = Platform.getBundle(AcceleoUIActivator.PLUGIN_ID).getEntry(
+ "icons/AcceleoEditor.gif"); //$NON-NLS-1$
imageURL = FileLocator.toFileURL(imageURL);
File imageFile = new File(imageURL.getFile());
IFolder icons = project.getFolder(new Path("icons")); //$NON-NLS-1$
@@ -398,12 +400,12 @@ public class AcceleoNewProjectUIWizard extends Wizard implements INewWizard {
icons.refreshLocal(1, monitor);
}
} catch (IOException e) {
- IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e.getMessage(),
- e);
+ IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e
+ .getMessage(), e);
AcceleoUIActivator.getDefault().getLog().log(status);
} catch (CoreException e) {
- IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e.getMessage(),
- e);
+ IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e
+ .getMessage(), e);
AcceleoUIActivator.getDefault().getLog().log(status);
}
}
@@ -481,12 +483,12 @@ public class AcceleoNewProjectUIWizard extends Wizard implements INewWizard {
}
}
} catch (CoreException e) {
- IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e.getMessage(),
- e);
+ IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e
+ .getMessage(), e);
AcceleoUIActivator.getDefault().getLog().log(status);
} catch (UnsupportedEncodingException e) {
- IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e.getMessage(),
- e);
+ IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e
+ .getMessage(), e);
AcceleoUIActivator.getDefault().getLog().log(status);
}
}
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/AcceleoNewProjectWizard.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/AcceleoNewProjectWizard.java
index ae6cee8..b5f8162 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/AcceleoNewProjectWizard.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/AcceleoNewProjectWizard.java
@@ -87,7 +87,8 @@ public class AcceleoNewProjectWizard extends AcceleoNewTemplatesWizard {
.getString("AcceleoNewProjectWizard.Page.Name")); //$NON-NLS-1$
newProjectPage.setInitialProjectName(MODULE_NAME_PREFIX + "sample"); //$NON-NLS-1$
newProjectPage.setTitle(AcceleoUIMessages.getString("AcceleoNewProjectWizard.Title")); //$NON-NLS-1$
- newProjectPage.setDescription(AcceleoUIMessages.getString("AcceleoNewProjectWizard.Page.Description")); //$NON-NLS-1$
+ newProjectPage
+ .setDescription(AcceleoUIMessages.getString("AcceleoNewProjectWizard.Page.Description")); //$NON-NLS-1$
newProjectPage.setImageDescriptor(AcceleoUIActivator.getImageDescriptor("icons/AcceleoWizard.gif")); //$NON-NLS-1$
addPage(newProjectPage);
super.addPages();
@@ -129,8 +130,8 @@ public class AcceleoNewProjectWizard extends AcceleoNewTemplatesWizard {
ResourcesPlugin.getWorkspace().run(create, null);
return true;
} catch (CoreException e) {
- IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e.getMessage(),
- e);
+ IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e
+ .getMessage(), e);
AcceleoUIActivator.getDefault().getLog().log(status);
return false;
}
@@ -214,12 +215,12 @@ public class AcceleoNewProjectWizard extends AcceleoNewTemplatesWizard {
file.setContents(javaStream, true, false, monitor);
}
} catch (CoreException e) {
- IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e.getMessage(),
- e);
+ IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e
+ .getMessage(), e);
AcceleoUIActivator.getDefault().getLog().log(status);
} catch (UnsupportedEncodingException e) {
- IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e.getMessage(),
- e);
+ IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e
+ .getMessage(), e);
AcceleoUIActivator.getDefault().getLog().log(status);
}
}
@@ -245,8 +246,8 @@ public class AcceleoNewProjectWizard extends AcceleoNewTemplatesWizard {
project.getFile(new Path("META-INF/MANIFEST.MF")).appendContents(appendStream, true, false, //$NON-NLS-1$
monitor);
} catch (UnsupportedEncodingException e) {
- IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e.getMessage(),
- e);
+ IStatus status = new Status(IStatus.ERROR, AcceleoUIActivator.PLUGIN_ID, IStatus.OK, e
+ .getMessage(), e);
AcceleoUIActivator.getDefault().getLog().log(status);
}
}
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/AcceleoNewUIConfigurationPage.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/AcceleoNewUIConfigurationPage.java
index d6cf6e7..558e0a6 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/AcceleoNewUIConfigurationPage.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/AcceleoNewUIConfigurationPage.java
@@ -228,7 +228,8 @@ public class AcceleoNewUIConfigurationPage extends WizardPage {
} else if (getModelNameFilter().length() == 0) {
updateStatus(AcceleoUIMessages.getString("AcceleoNewUIConfigurationPage.Error.MissingModelName")); //$NON-NLS-1$
} else if (getTargetFolderAccess().length() == 0) {
- updateStatus(AcceleoUIMessages.getString("AcceleoNewUIConfigurationPage.Error.MissingTargetFolder")); //$NON-NLS-1$
+ updateStatus(AcceleoUIMessages
+ .getString("AcceleoNewUIConfigurationPage.Error.MissingTargetFolder")); //$NON-NLS-1$
} else {
updateStatus(null);
}
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/CreateModuleData.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/CreateModuleData.java
index 50ee114..4e38f89 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/CreateModuleData.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/CreateModuleData.java
@@ -24,8 +24,8 @@ import org.eclipse.core.runtime.Platform;
import org.eclipse.emf.ecore.EPackage;
/**
- * The class used to configure all the JET generations of the 'AcceleoNewProjectWizard' wizard. The purpose of the
- * wizard is to create a new Acceleo module (i.e an eclipse plug-in).
+ * The class used to configure all the JET generations of the 'AcceleoNewProjectWizard' wizard. The purpose of
+ * the wizard is to create a new Acceleo module (i.e an eclipse plug-in).
*
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
*/
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/CreateModuleUIData.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/CreateModuleUIData.java
index 3d7c9c1..f969965 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/CreateModuleUIData.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/wizards/newproject/CreateModuleUIData.java
@@ -28,8 +28,8 @@ import org.eclipse.core.runtime.Status;
import org.eclipse.ui.dialogs.WizardNewProjectReferencePage;
/**
- * The class used to configure all the JET generations of the 'AcceleoNewProjectUIWizard' wizard. The purpose of
- * the wizard is to create a new UI launcher (i.e an eclipse plug-in) for one or several Acceleo modules.
+ * The class used to configure all the JET generations of the 'AcceleoNewProjectUIWizard' wizard. The purpose
+ * of the wizard is to create a new UI launcher (i.e an eclipse plug-in) for one or several Acceleo modules.
*
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
*/
@@ -122,8 +122,8 @@ public class CreateModuleUIData {
}
/**
- * Initializes the API which runs the code generation by visiting each Acceleo file of the given project. It
- * adds a new entry point for the code generation if a java file is attached to the Acceleo file.
+ * Initializes the API which runs the code generation by visiting each Acceleo file of the given project.
+ * It adds a new entry point for the code generation if a java file is attached to the Acceleo file.
*
* @param acceleoProject
* is the Acceleo project