summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmusset2009-03-05 12:14:33 (EST)
committer jmusset2009-03-05 12:14:33 (EST)
commitb78e1275bfdf3fb096d5455a9efca2a7f924e4ec (patch)
treecdbe18918848e697ab516d5be6fe637bd0e423ab
parent1d4247424c11ea087e807fd5901511c78d884363 (diff)
downloadorg.eclipse.acceleo-b78e1275bfdf3fb096d5455a9efca2a7f924e4ec.zip
org.eclipse.acceleo-b78e1275bfdf3fb096d5455a9efca2a7f924e4ec.tar.gz
org.eclipse.acceleo-b78e1275bfdf3fb096d5455a9efca2a7f924e4ec.tar.bz2
format after renaming
-rw-r--r--examples/org.eclipse.acceleo.module.example.uml2java.ui/src/org/eclipse/acceleo/module/example/uml2java/ui/Activator.java14
-rw-r--r--examples/org.eclipse.acceleo.module.example.uml2java.ui/src/org/eclipse/acceleo/module/example/uml2java/ui/common/GenerateAll.java17
-rw-r--r--examples/org.eclipse.acceleo.module.example.uml2java.ui/src/org/eclipse/acceleo/module/example/uml2java/ui/popupMenus/AcceleoGenerateUmlToJavaAction.java37
3 files changed, 38 insertions, 30 deletions
diff --git a/examples/org.eclipse.acceleo.module.example.uml2java.ui/src/org/eclipse/acceleo/module/example/uml2java/ui/Activator.java b/examples/org.eclipse.acceleo.module.example.uml2java.ui/src/org/eclipse/acceleo/module/example/uml2java/ui/Activator.java
index af7b5ae..bc5b80b 100644
--- a/examples/org.eclipse.acceleo.module.example.uml2java.ui/src/org/eclipse/acceleo/module/example/uml2java/ui/Activator.java
+++ b/examples/org.eclipse.acceleo.module.example.uml2java.ui/src/org/eclipse/acceleo/module/example/uml2java/ui/Activator.java
@@ -29,15 +29,16 @@ public class Activator extends AbstractUIPlugin {
* The shared instance.
*/
private static Activator plugin;
-
+
/**
* The constructor.
*/
public Activator() {
}
- /**{@inheritDoc}
- *
+ /**
+ * {@inheritDoc}
+ *
* @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
* @generated
*/
@@ -46,8 +47,9 @@ public class Activator extends AbstractUIPlugin {
plugin = this;
}
- /**{@inheritDoc}
- *
+ /**
+ * {@inheritDoc}
+ *
* @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
* @generated
*/
@@ -58,7 +60,7 @@ public class Activator extends AbstractUIPlugin {
/**
* Returns the shared instance.
- *
+ *
* @return the shared instance
*/
public static Activator getDefault() {
diff --git a/examples/org.eclipse.acceleo.module.example.uml2java.ui/src/org/eclipse/acceleo/module/example/uml2java/ui/common/GenerateAll.java b/examples/org.eclipse.acceleo.module.example.uml2java.ui/src/org/eclipse/acceleo/module/example/uml2java/ui/common/GenerateAll.java
index d9b6eda..16b7e8a 100644
--- a/examples/org.eclipse.acceleo.module.example.uml2java.ui/src/org/eclipse/acceleo/module/example/uml2java/ui/common/GenerateAll.java
+++ b/examples/org.eclipse.acceleo.module.example.uml2java.ui/src/org/eclipse/acceleo/module/example/uml2java/ui/common/GenerateAll.java
@@ -22,7 +22,6 @@ import org.eclipse.core.runtime.Platform;
import org.eclipse.emf.common.util.URI;
import org.osgi.framework.Bundle;
-
/**
* Main entry point of the 'Uml To Java' generation module.
*
@@ -75,18 +74,19 @@ public class GenerateAll {
if (!targetFolder.exists()) {
targetFolder.mkdirs();
}
-
- final URI template0 = getTemplateURI("org.eclipse.acceleo.module.example.uml2java", new Path("/org/eclipse/acceleo/module/example/uml2java/generateJava.emtl"));
- org.eclipse.acceleo.module.example.uml2java.GenerateJava gen0 = new org.eclipse.acceleo.module.example.uml2java.GenerateJava(modelURI, targetFolder, arguments) {
+
+ final URI template0 = getTemplateURI("org.eclipse.acceleo.module.example.uml2java", new Path(
+ "/org/eclipse/acceleo/module/example/uml2java/generateJava.emtl"));
+ org.eclipse.acceleo.module.example.uml2java.GenerateJava gen0 = new org.eclipse.acceleo.module.example.uml2java.GenerateJava(
+ modelURI, targetFolder, arguments) {
protected URI createTemplateURI(String entry) {
return template0;
}
};
gen0.doGenerate();
-
-
+
}
-
+
/**
* Finds the template in the plug-in. Returns the template plug-in URI.
*
@@ -129,7 +129,8 @@ public class GenerateAll {
}
URI result;
if (url != null) {
- result = URI.createPlatformPluginURI(new Path(bundleID).append(new Path(url.getPath())).toString(), false);
+ result = URI.createPlatformPluginURI(new Path(bundleID).append(new Path(url.getPath()))
+ .toString(), false);
} else {
result = URI.createPlatformResourceURI(new Path(bundleID).append(relativePath).toString(), false);
}
diff --git a/examples/org.eclipse.acceleo.module.example.uml2java.ui/src/org/eclipse/acceleo/module/example/uml2java/ui/popupMenus/AcceleoGenerateUmlToJavaAction.java b/examples/org.eclipse.acceleo.module.example.uml2java.ui/src/org/eclipse/acceleo/module/example/uml2java/ui/popupMenus/AcceleoGenerateUmlToJavaAction.java
index 3fdabbb..2676619 100644
--- a/examples/org.eclipse.acceleo.module.example.uml2java.ui/src/org/eclipse/acceleo/module/example/uml2java/ui/popupMenus/AcceleoGenerateUmlToJavaAction.java
+++ b/examples/org.eclipse.acceleo.module.example.uml2java.ui/src/org/eclipse/acceleo/module/example/uml2java/ui/popupMenus/AcceleoGenerateUmlToJavaAction.java
@@ -12,12 +12,14 @@ package org.eclipse.acceleo.module.example.uml2java.ui.popupMenus;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
+import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
-import java.util.ArrayList;
-import org.eclipse.core.resources.IFile;
+import org.eclipse.acceleo.module.example.uml2java.ui.Activator;
+import org.eclipse.acceleo.module.example.uml2java.ui.common.GenerateAll;
import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -28,8 +30,6 @@ import org.eclipse.jface.action.IAction;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.acceleo.module.example.uml2java.ui.Activator;
-import org.eclipse.acceleo.module.example.uml2java.ui.common.GenerateAll;
import org.eclipse.ui.IActionDelegate;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.ActionDelegate;
@@ -38,29 +38,31 @@ import org.eclipse.ui.actions.ActionDelegate;
* Uml To Java code generation.
*
* @author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a>
- *
*/
public class AcceleoGenerateUmlToJavaAction extends ActionDelegate implements IActionDelegate {
-
+
/**
* Selected model files.
*/
protected List<IFile> files;
- /**{@inheritDoc}
- *
- * @see org.eclipse.ui.actions.ActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.ui.actions.ActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
+ * org.eclipse.jface.viewers.ISelection)
* @generated
*/
@SuppressWarnings("unchecked")
public void selectionChanged(IAction action, ISelection selection) {
if (selection instanceof IStructuredSelection) {
- files = ((IStructuredSelection) selection).toList();
+ files = ((IStructuredSelection)selection).toList();
}
}
- /**{@inheritDoc}
- *
+ /**
+ * {@inheritDoc}
+ *
* @see org.eclipse.ui.actions.ActionDelegate#run(org.eclipse.jface.action.IAction)
* @generated
*/
@@ -72,13 +74,16 @@ public class AcceleoGenerateUmlToJavaAction extends ActionDelegate implements IA
Iterator<IFile> filesIt = files.iterator();
while (filesIt.hasNext()) {
IFile model = (IFile)filesIt.next();
- URI modelURI = URI.createPlatformResourceURI(model.getFullPath().toString(), true);
+ URI modelURI = URI
+ .createPlatformResourceURI(model.getFullPath().toString(), true);
try {
IContainer target = model.getProject().getFolder("src-gen");
- GenerateAll generator = new GenerateAll(modelURI, target.getLocation().toFile(), getArguments());
+ GenerateAll generator = new GenerateAll(modelURI, target.getLocation()
+ .toFile(), getArguments());
generator.doGenerate();
} catch (IOException e) {
- IStatus status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, e.getMessage(), e);
+ IStatus status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, e
+ .getMessage(), e);
Activator.getDefault().getLog().log(status);
} finally {
model.getProject().refreshLocal(IResource.DEPTH_INFINITE, monitor);
@@ -112,4 +117,4 @@ public class AcceleoGenerateUmlToJavaAction extends ActionDelegate implements IA
return new ArrayList<String>();
}
-} \ No newline at end of file
+}