formatter
diff --git a/plugins/org.eclipse.graphiti.pattern/src/org/eclipse/graphiti/pattern/CreateConnectionFeatureForPattern.java b/plugins/org.eclipse.graphiti.pattern/src/org/eclipse/graphiti/pattern/CreateConnectionFeatureForPattern.java
index 5f2ca40..fc1579c 100644
--- a/plugins/org.eclipse.graphiti.pattern/src/org/eclipse/graphiti/pattern/CreateConnectionFeatureForPattern.java
+++ b/plugins/org.eclipse.graphiti.pattern/src/org/eclipse/graphiti/pattern/CreateConnectionFeatureForPattern.java
@@ -26,7 +26,8 @@
/**
* The Class CreateConnectionFeatureForPattern.
*/
-public class CreateConnectionFeatureForPattern extends AbstractCreateConnectionFeature implements ICustomUndoableFeature {
+public class CreateConnectionFeatureForPattern extends AbstractCreateConnectionFeature implements
+ ICustomUndoableFeature {
private IConnectionPattern delegate;
/**
diff --git a/plugins/org.eclipse.graphiti.pattern/src/org/eclipse/graphiti/pattern/ReconnectionFeatureForPattern.java b/plugins/org.eclipse.graphiti.pattern/src/org/eclipse/graphiti/pattern/ReconnectionFeatureForPattern.java
index 8d1e313..6fed8fb 100644
--- a/plugins/org.eclipse.graphiti.pattern/src/org/eclipse/graphiti/pattern/ReconnectionFeatureForPattern.java
+++ b/plugins/org.eclipse.graphiti.pattern/src/org/eclipse/graphiti/pattern/ReconnectionFeatureForPattern.java
@@ -28,7 +28,8 @@
/**
* The Class ReconnectionFeatureForPattern.
*/
-public class ReconnectionFeatureForPattern extends AbstractFeature implements IReconnectionFeature, ICustomUndoableFeature {
+public class ReconnectionFeatureForPattern extends AbstractFeature implements IReconnectionFeature,
+ ICustomUndoableFeature {
private static final String NAME = Messages.ReconnectionFeatureForPattern_0_xfld;
private IReconnection deletegate;
diff --git a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/command/CreateConnectionCommand.java b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/command/CreateConnectionCommand.java
index 2c8dcc7..da93ba6 100644
--- a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/command/CreateConnectionCommand.java
+++ b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/command/CreateConnectionCommand.java
@@ -86,7 +86,8 @@
* if source is null
* @see Connection#setLineStyle(int)
*/
- public CreateConnectionCommand(IConfigurationProvider configurationProvider, PictogramElement pe, List<IFeature> features) {
+ public CreateConnectionCommand(IConfigurationProvider configurationProvider, PictogramElement pe,
+ List<IFeature> features) {
super(configurationProvider);
setLabel(Messages.CreateConnectionCommand_0_xmsg);
@@ -153,7 +154,8 @@
CustomContext customContext = new CustomContext();
customContext.setPictogramElements(new PictogramElement[] { sourceObject, targetObject });
- DiagramEditorInternal diagramEditor = (DiagramEditorInternal) getFeatureProvider().getDiagramTypeProvider().getDiagramEditor();
+ DiagramEditorInternal diagramEditor = (DiagramEditorInternal) getFeatureProvider().getDiagramTypeProvider()
+ .getDiagramEditor();
Point newLocation = diagramEditor.calculateRealMouseLocation(location);
customContext.setLocation(newLocation.x, newLocation.y);
@@ -217,7 +219,9 @@
// allow connections only from anchor to anchor
CreateConnectionContext connectionContext = createContext();
- sourceLocation = connectionContext.getSourceLocation(); // store location for later usage
+ sourceLocation = connectionContext.getSourceLocation(); // store
+ // location for
+ // later usage
for (IFeature feature : features) {
@@ -358,7 +362,8 @@
if (location == null) {
return null;
}
- DiagramEditorInternal diagramEditor = (DiagramEditorInternal) getFeatureProvider().getDiagramTypeProvider().getDiagramEditor();
+ DiagramEditorInternal diagramEditor = (DiagramEditorInternal) getFeatureProvider().getDiagramTypeProvider()
+ .getDiagramEditor();
Point realLocation = diagramEditor.calculateRealMouseLocation(location);
ILocation currentLocation = new LocationImpl(realLocation.x, realLocation.y);
return currentLocation;
diff --git a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/command/ReconnectCommand.java b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/command/ReconnectCommand.java
index 439dc19..b5b02e6 100644
--- a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/command/ReconnectCommand.java
+++ b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/command/ReconnectCommand.java
@@ -52,13 +52,14 @@
* @throws IllegalArgumentException
* if conn is null
*/
- public ReconnectCommand(IConfigurationProvider configurationProvider, Connection connection, Anchor oldAnchor, Anchor newAnchor,
- PictogramElement newTargetPictogramElement, String reconnectType, Point location) {
+ public ReconnectCommand(IConfigurationProvider configurationProvider, Connection connection, Anchor oldAnchor,
+ Anchor newAnchor, PictogramElement newTargetPictogramElement, String reconnectType, Point location) {
super(configurationProvider);
ILocation targetLocation = null;
if (location != null) {
- DiagramEditorInternal diagramEditor = (DiagramEditorInternal) getFeatureProvider().getDiagramTypeProvider().getDiagramEditor();
+ DiagramEditorInternal diagramEditor = (DiagramEditorInternal) getFeatureProvider().getDiagramTypeProvider()
+ .getDiagramEditor();
Point realLocation = diagramEditor.calculateRealMouseLocation(location);
targetLocation = new LocationImpl(realLocation.x, realLocation.y);
}
@@ -84,9 +85,11 @@
public void execute() {
if (feature != null) {
// feature.reconnnect(ctx);
- GenericFeatureCommandWithContext genericFeatureCommandWithContext = new GenericFeatureCommandWithContext(feature, ctx);
+ GenericFeatureCommandWithContext genericFeatureCommandWithContext = new GenericFeatureCommandWithContext(
+ feature, ctx);
try {
- CommandExec.getSingleton().executeCommand(genericFeatureCommandWithContext, getTransactionalEditingDomain());
+ CommandExec.getSingleton().executeCommand(genericFeatureCommandWithContext,
+ getTransactionalEditingDomain());
} catch (Exception e) {
// Wrap in runtime exception (handled outside)
if (e instanceof RuntimeException) {
diff --git a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/editor/GFConnectionCreationTool.java b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/editor/GFConnectionCreationTool.java
index c230bdf..b2ad0aa 100644
--- a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/editor/GFConnectionCreationTool.java
+++ b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/editor/GFConnectionCreationTool.java
@@ -64,7 +64,8 @@
final CreateConnectionContext context = new CreateConnectionContext();
IFeatureProvider featureProvider = createFeature.getFeatureProvider();
IDiagramTypeProvider diagramTypeProvider = featureProvider.getDiagramTypeProvider();
- PictogramElement[] selectedPictogramElements = diagramTypeProvider.getDiagramEditor().getSelectedPictogramElements();
+ PictogramElement[] selectedPictogramElements = diagramTypeProvider.getDiagramEditor()
+ .getSelectedPictogramElements();
if (selectedPictogramElements.length == 2) {
PictogramElement sourcePictogramElement = selectedPictogramElements[0];
Anchor sourceAnchor = getAnchor(sourcePictogramElement);
@@ -79,7 +80,8 @@
CommandExec.executeFeatureWithContext(createFeature, context);
} catch (Exception ex) {
if (ex instanceof RollbackException) {
- // Just log it as info (operation was cancelled on purpose)
+ // Just log it as info (operation was cancelled on
+ // purpose)
T.racer().log(IStatus.INFO, "GFCommandStack.execute(Command) " + ex, ex); //$NON-NLS-1$
} else {
// Just log it as an error
diff --git a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/impl/AbstractCreateConnectionFeature.java b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/impl/AbstractCreateConnectionFeature.java
index 5b0e384..9a9b983 100644
--- a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/impl/AbstractCreateConnectionFeature.java
+++ b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/impl/AbstractCreateConnectionFeature.java
@@ -13,9 +13,6 @@
* </copyright>
*
*******************************************************************************/
-/*
- * Created on 04.10.2005
- */
package org.eclipse.graphiti.features.impl;
import org.eclipse.graphiti.features.ICreateConnectionFeature;
diff --git a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/impl/DefaultReconnectionFeature.java b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/impl/DefaultReconnectionFeature.java
index 1d46d4d..dae1399 100644
--- a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/impl/DefaultReconnectionFeature.java
+++ b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/impl/DefaultReconnectionFeature.java
@@ -13,9 +13,6 @@
* </copyright>
*
*******************************************************************************/
-/*
- * Created on 13.12.2005
- */
package org.eclipse.graphiti.features.impl;
import org.eclipse.graphiti.features.IFeatureProvider;
@@ -45,8 +42,8 @@
public boolean canReconnect(IReconnectionContext context) {
Connection connection = context.getConnection();
Anchor newAnchor = getNewAnchor(context);
- boolean ret = (connection != null) && (newAnchor != null) && (connection.getStart() != null) && (connection.getEnd() != null)
- && !(newAnchor.getParent() instanceof Diagram);
+ boolean ret = (connection != null) && (newAnchor != null) && (connection.getStart() != null)
+ && (connection.getEnd() != null) && !(newAnchor.getParent() instanceof Diagram);
return ret;
}
@@ -68,7 +65,7 @@
}
preReconnect(context);
-
+
Connection connection = context.getConnection();
Anchor newAnchor = context.getNewAnchor();
Anchor oldAnchor = context.getOldAnchor();
diff --git a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/func/IReconnection.java b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/func/IReconnection.java
index d1aab7d..2e9c5ff 100644
--- a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/func/IReconnection.java
+++ b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/func/IReconnection.java
@@ -13,9 +13,6 @@
* </copyright>
*
*******************************************************************************/
-/**
- *
- */
package org.eclipse.graphiti.func;
import org.eclipse.graphiti.features.context.IReconnectionContext;