Xcos java: remove unnecessary imports 08/18108/2
Paul Bignier [Fri, 22 Apr 2016 14:06:06 +0000 (16:06 +0200)]
Change-Id: Ib975984152ccaf128584d3e45fab1d61aa7c2cf0

scilab/modules/xcos/src/java/org/scilab/modules/xcos/graph/model/XcosCell.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/codec/XcosObjectCodec.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/scicos/BlockGraphicElement.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/palette/PaletteBlockCtrl.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/utils/BlockPositioning.java

index bffb37b..5b17a9d 100644 (file)
@@ -107,7 +107,7 @@ public class XcosCell extends mxCell {
                 if (validCIdentifier.matcher(String.valueOf(value)).matches()) {
                     controller.setObjectProperty(getUID(), getKind(), ObjectProperties.LABEL, String.valueOf(value));
                 }
-            // no break on purpose
+                // no break on purpose
             case ANNOTATION:
                 controller.setObjectProperty(getUID(), getKind(), ObjectProperties.DESCRIPTION, String.valueOf(value));
                 break;
@@ -215,8 +215,8 @@ public class XcosCell extends mxCell {
                 }
 
                 /*
-                * At that point, the sourcePoint, targetPoint and points are valid values (but may be unknown) encode them to the the CONTROL_POINTS
-                */
+                 * At that point, the sourcePoint, targetPoint and points are valid values (but may be unknown) encode them to the the CONTROL_POINTS
+                 */
 
                 // Allocate some space to contains them all
                 int nbOfPoints = 2 + points.size();
index 496c0e6..fd6ecc0 100644 (file)
@@ -32,7 +32,6 @@ import org.w3c.dom.Node;
 import com.mxgraph.io.mxCellCodec;
 import com.mxgraph.io.mxCodec;
 import com.mxgraph.model.mxICell;
-import com.mxgraph.util.mxConstants;
 import org.scilab.modules.xcos.utils.XcosConstants;
 
 /**
index 6900537..47dfb3f 100644 (file)
@@ -30,7 +30,6 @@ import org.scilab.modules.types.ScilabTList;
 import org.scilab.modules.types.ScilabType;
 import org.scilab.modules.xcos.JavaController;
 import org.scilab.modules.xcos.ObjectProperties;
-import org.scilab.modules.xcos.VectorOfDouble;
 import org.scilab.modules.xcos.block.BasicBlock;
 import org.scilab.modules.xcos.graph.XcosDiagram;
 import org.scilab.modules.xcos.io.ScilabTypeCoder;
index 2f1e991..7143703 100644 (file)
@@ -25,7 +25,6 @@ import java.awt.dnd.DragSource;
 import java.awt.dnd.InvalidDnDOperationException;
 import java.awt.event.MouseListener;
 import java.lang.ref.WeakReference;
-import java.util.logging.Level;
 import java.util.logging.Logger;
 
 import org.scilab.modules.gui.messagebox.ScilabModalDialog;
index 2882373..f95345b 100644 (file)
@@ -32,9 +32,7 @@ import org.scilab.modules.xcos.port.Orientation;
 
 import com.mxgraph.model.mxGeometry;
 import com.mxgraph.model.mxIGraphModel;
-import com.mxgraph.util.mxConstants;
 import com.mxgraph.util.mxStyleUtils;
-import org.scilab.modules.graph.utils.ScilabGraphConstants;
 import org.scilab.modules.graph.utils.StyleMap;
 
 /**