Index: src/nongnu/cashews/eclipse/composer/MyEllipseEditorPlugin.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/MyEllipseEditorPlugin.java,v retrieving revision 1.4 diff -u -3 -p -u -r1.4 MyEllipseEditorPlugin.java --- src/nongnu/cashews/eclipse/composer/MyEllipseEditorPlugin.java 2005/03/24 16:57:59 1.4 +++ src/nongnu/cashews/eclipse/composer/MyEllipseEditorPlugin.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* MyEllipseEditorPlugin.java -- Another plugin wrapper???. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer; import org.eclipse.ui.plugin.*; @@ -9,7 +44,8 @@ import java.util.*; /** * The main plugin class to be used in the desktop. */ -public class MyEllipseEditorPlugin extends AbstractUIPlugin +public class MyEllipseEditorPlugin + extends AbstractUIPlugin { // The shared instance. private static MyEllipseEditorPlugin plugin; Index: src/nongnu/cashews/eclipse/composer/Plugin.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/Plugin.java,v retrieving revision 1.4 diff -u -3 -p -u -r1.4 Plugin.java --- src/nongnu/cashews/eclipse/composer/Plugin.java 2005/03/24 16:57:59 1.4 +++ src/nongnu/cashews/eclipse/composer/Plugin.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* Plugin.java -- Wrapper for the plug-in. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer; import org.eclipse.core.runtime.IPluginDescriptor; @@ -14,4 +49,4 @@ public class Plugin extends AbstractUIPl { super(descriptor); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/actions/DiagramActionBarContributor.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/actions/DiagramActionBarContributor.java,v retrieving revision 1.5 diff -u -3 -p -u -r1.5 DiagramActionBarContributor.java --- src/nongnu/cashews/eclipse/composer/actions/DiagramActionBarContributor.java 2005/03/24 23:29:26 1.5 +++ src/nongnu/cashews/eclipse/composer/actions/DiagramActionBarContributor.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* DiagramActionBarContributor.java -- Toolbar additions for the diagram. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.actions; import org.eclipse.gef.ui.actions.ActionBarContributor; @@ -9,7 +44,8 @@ import org.eclipse.gef.ui.actions.UndoRe import org.eclipse.jface.action.IToolBarManager; import org.eclipse.ui.IWorkbenchActionConstants; -public class DiagramActionBarContributor extends ActionBarContributor +public class DiagramActionBarContributor + extends ActionBarContributor { // ------------------------------------------------------------------------ Index: src/nongnu/cashews/eclipse/composer/commands/ConnectionCreateCommand.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/commands/ConnectionCreateCommand.java,v retrieving revision 1.4 diff -u -3 -p -u -r1.4 ConnectionCreateCommand.java --- src/nongnu/cashews/eclipse/composer/commands/ConnectionCreateCommand.java 2005/03/24 16:57:59 1.4 +++ src/nongnu/cashews/eclipse/composer/commands/ConnectionCreateCommand.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* ConnectionCreateCommand.java -- Command for creating connections. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.commands; import java.util.List; @@ -9,7 +44,8 @@ import nongnu.cashews.eclipse.composer.m import org.eclipse.gef.commands.Command; -public class ConnectionCreateCommand extends Command +public class ConnectionCreateCommand + extends Command { protected Connection connection; @@ -74,4 +110,4 @@ public class ConnectionCreateCommand ext this.source.addOutput(this.connection); this.target.addInput(this.connection); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/commands/CreateNodeCommand.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/commands/CreateNodeCommand.java,v retrieving revision 1.5 diff -u -3 -p -u -r1.5 CreateNodeCommand.java --- src/nongnu/cashews/eclipse/composer/commands/CreateNodeCommand.java 2005/03/24 16:57:59 1.5 +++ src/nongnu/cashews/eclipse/composer/commands/CreateNodeCommand.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* CreateNodeCommand.java -- Command for creating nodes. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.commands; import nongnu.cashews.eclipse.composer.model.Diagram; @@ -9,7 +44,8 @@ import nongnu.cashews.eclipse.composer.m import org.eclipse.draw2d.geometry.Point; import org.eclipse.gef.commands.Command; -public class CreateNodeCommand extends Command +public class CreateNodeCommand + extends Command { private Diagram diagram; @@ -66,4 +102,4 @@ public class CreateNodeCommand extends C { execute(); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/commands/DeleteNodeCommand.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/commands/DeleteNodeCommand.java,v retrieving revision 1.5 diff -u -3 -p -u -r1.5 DeleteNodeCommand.java --- src/nongnu/cashews/eclipse/composer/commands/DeleteNodeCommand.java 2005/03/24 16:57:59 1.5 +++ src/nongnu/cashews/eclipse/composer/commands/DeleteNodeCommand.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* DeleteNodeCommand.java -- Command for deleting nodes. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.commands; import nongnu.cashews.eclipse.composer.model.Diagram; @@ -8,7 +43,8 @@ import nongnu.cashews.eclipse.composer.m import org.eclipse.gef.commands.Command; -public class DeleteNodeCommand extends Command +public class DeleteNodeCommand + extends Command { private Diagram diagram; @@ -53,4 +89,4 @@ public class DeleteNodeCommand extends C { this.execute(); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/commands/MoveNodeCommand.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/commands/MoveNodeCommand.java,v retrieving revision 1.4 diff -u -3 -p -u -r1.4 MoveNodeCommand.java --- src/nongnu/cashews/eclipse/composer/commands/MoveNodeCommand.java 2005/03/24 16:57:59 1.4 +++ src/nongnu/cashews/eclipse/composer/commands/MoveNodeCommand.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* MoveNodeCommand.java -- Command for moving nodes. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.commands; import nongnu.cashews.eclipse.composer.model.Node; @@ -7,7 +42,8 @@ import nongnu.cashews.eclipse.composer.m import org.eclipse.draw2d.geometry.Point; import org.eclipse.gef.commands.Command; -public class MoveNodeCommand extends Command +public class MoveNodeCommand + extends Command { private Node node; @@ -51,4 +87,4 @@ public class MoveNodeCommand extends Com { this.node.setLocation(newPos); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/commands/RenameNodeCommand.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/commands/RenameNodeCommand.java,v retrieving revision 1.6 diff -u -3 -p -u -r1.6 RenameNodeCommand.java --- src/nongnu/cashews/eclipse/composer/commands/RenameNodeCommand.java 2005/03/24 16:57:59 1.6 +++ src/nongnu/cashews/eclipse/composer/commands/RenameNodeCommand.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* RenameNodeCommand.java -- Command for renaming nodes. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.commands; import nongnu.cashews.eclipse.composer.model.Node; @@ -8,7 +43,8 @@ import nongnu.cashews.eclipse.composer.u import org.eclipse.gef.commands.Command; -public class RenameNodeCommand extends Command +public class RenameNodeCommand + extends Command { private Node node; @@ -57,4 +93,4 @@ public class RenameNodeCommand extends C { this.node.setName(newName); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/dnd/DiagramTemplateTransferDropTargetListener.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/dnd/DiagramTemplateTransferDropTargetListener.java,v retrieving revision 1.4 diff -u -3 -p -u -r1.4 DiagramTemplateTransferDropTargetListener.java --- src/nongnu/cashews/eclipse/composer/dnd/DiagramTemplateTransferDropTargetListener.java 2005/03/24 16:57:59 1.4 +++ src/nongnu/cashews/eclipse/composer/dnd/DiagramTemplateTransferDropTargetListener.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* DiagramTemplateTransferDropTargetListener.java -- Event handler. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.dnd; import nongnu.cashews.eclipse.composer.model.ElementFactory; @@ -24,4 +59,4 @@ public class DiagramTemplateTransferDrop { return new ElementFactory(template); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/figures/EllipseNodeFigure.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/figures/EllipseNodeFigure.java,v retrieving revision 1.4 diff -u -3 -p -u -r1.4 EllipseNodeFigure.java --- src/nongnu/cashews/eclipse/composer/figures/EllipseNodeFigure.java 2005/03/24 16:57:59 1.4 +++ src/nongnu/cashews/eclipse/composer/figures/EllipseNodeFigure.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* EllipseNodeFigure.java -- Figure for the elliptical node. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.figures; import org.eclipse.draw2d.Figure; @@ -7,7 +42,8 @@ import org.eclipse.draw2d.Label; import org.eclipse.draw2d.Ellipse; import org.eclipse.draw2d.geometry.Rectangle; -public class EllipseNodeFigure extends Figure +public class EllipseNodeFigure + extends Figure { private String name; @@ -50,4 +86,4 @@ public class EllipseNodeFigure extends F this.ellipseFigure.setBounds(rect); this.label.setBounds(rect); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/figures/RectangleNodeFigure.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/figures/RectangleNodeFigure.java,v retrieving revision 1.2 diff -u -3 -p -u -r1.2 RectangleNodeFigure.java --- src/nongnu/cashews/eclipse/composer/figures/RectangleNodeFigure.java 2005/03/24 16:57:59 1.2 +++ src/nongnu/cashews/eclipse/composer/figures/RectangleNodeFigure.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* RectangleNodeFigure.java -- Figure for rectangular nodes. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.figures; import org.eclipse.draw2d.Figure; @@ -7,7 +42,8 @@ import org.eclipse.draw2d.Label; import org.eclipse.draw2d.RectangleFigure; import org.eclipse.draw2d.geometry.Rectangle; -public class RectangleNodeFigure extends Figure +public class RectangleNodeFigure + extends Figure { private String name; @@ -50,4 +86,4 @@ public class RectangleNodeFigure extends this.rectangleFigure.setBounds(rect); this.label.setBounds(rect); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/model/Connection.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/model/Connection.java,v retrieving revision 1.5 diff -u -3 -p -u -r1.5 Connection.java --- src/nongnu/cashews/eclipse/composer/model/Connection.java 2005/03/24 16:57:58 1.5 +++ src/nongnu/cashews/eclipse/composer/model/Connection.java 2005/03/25 00:04:33 @@ -1,8 +1,44 @@ +/* Connection.java -- A connection between two nodes. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.model; -public class Connection extends Element +public class Connection + extends Element { /** @@ -27,4 +63,4 @@ public class Connection extends Element { return this.target; } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/model/Diagram.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/model/Diagram.java,v retrieving revision 1.9 diff -u -3 -p -u -r1.9 Diagram.java --- src/nongnu/cashews/eclipse/composer/model/Diagram.java 2005/03/24 16:57:58 1.9 +++ src/nongnu/cashews/eclipse/composer/model/Diagram.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* Diagram.java -- Representation of the diagram as a whole. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.model; import java.io.BufferedInputStream; @@ -22,7 +57,9 @@ import org.xml.sax.InputSource; import org.xml.sax.XMLReader; import org.xml.sax.helpers.XMLReaderFactory; -public class Diagram extends Element implements XMLizable +public class Diagram + extends Element + implements XMLizable { // serialization version Index: src/nongnu/cashews/eclipse/composer/model/DiagramParser.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/model/DiagramParser.java,v retrieving revision 1.2 diff -u -3 -p -u -r1.2 DiagramParser.java --- src/nongnu/cashews/eclipse/composer/model/DiagramParser.java 2005/03/24 16:57:58 1.2 +++ src/nongnu/cashews/eclipse/composer/model/DiagramParser.java 2005/03/25 00:04:33 @@ -1,9 +1,39 @@ -/* - * Created on 22-Mar-2005 - * - * - */ +/* DiagramParser.java -- Deserializer for diagrams. + Copyright (C) 2005 The University of Sheffield. + +This file is part of the CASheW-s editor Eclipse plug-in. + +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. +*/ package nongnu.cashews.eclipse.composer.model; @@ -25,7 +55,8 @@ import org.xml.sax.helpers.DefaultHandle * * */ -public class DiagramParser extends DefaultHandler +public class DiagramParser + extends DefaultHandler { private Diagram d; Index: src/nongnu/cashews/eclipse/composer/model/Element.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/model/Element.java,v retrieving revision 1.5 diff -u -3 -p -u -r1.5 Element.java --- src/nongnu/cashews/eclipse/composer/model/Element.java 2005/03/24 16:57:58 1.5 +++ src/nongnu/cashews/eclipse/composer/model/Element.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* Element.java -- Representation of a diagram element. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.model; import java.beans.PropertyChangeListener; @@ -10,7 +45,8 @@ import java.io.Serializable; // abstract base class of elements in the model -public abstract class Element implements Cloneable, Serializable +public abstract class Element + implements Cloneable, Serializable { // serialization version @@ -48,4 +84,4 @@ public abstract class Element implements listeners.removePropertyChangeListener(l); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/model/ElementFactory.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/model/ElementFactory.java,v retrieving revision 1.4 diff -u -3 -p -u -r1.4 ElementFactory.java --- src/nongnu/cashews/eclipse/composer/model/ElementFactory.java 2005/03/24 16:57:58 1.4 +++ src/nongnu/cashews/eclipse/composer/model/ElementFactory.java 2005/03/25 00:04:33 @@ -1,10 +1,46 @@ +/* ElementFactory.java -- Factory for creating diagram elements. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.model; import org.eclipse.gef.requests.CreationFactory; -public class ElementFactory implements CreationFactory +public class ElementFactory + implements CreationFactory { private Object template; @@ -36,4 +72,4 @@ public class ElementFactory implements C { return template; } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/model/EllipseNode.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/model/EllipseNode.java,v retrieving revision 1.8 diff -u -3 -p -u -r1.8 EllipseNode.java --- src/nongnu/cashews/eclipse/composer/model/EllipseNode.java 2005/03/24 16:57:58 1.8 +++ src/nongnu/cashews/eclipse/composer/model/EllipseNode.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* EllipseNode.java -- Representation of an ellipsical node. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.model; import java.util.Iterator; @@ -10,7 +45,9 @@ import org.eclipse.ui.views.properties.I import org.eclipse.ui.views.properties.IPropertySource; import org.eclipse.ui.views.properties.TextPropertyDescriptor; -public class EllipseNode extends Node implements IPropertySource, XMLizable +public class EllipseNode + extends Node + implements IPropertySource, XMLizable { // serialization version @@ -170,4 +207,4 @@ public class EllipseNode extends Node im str.append(""); return str.toString(); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/model/EllipseNodeFactory.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/model/EllipseNodeFactory.java,v retrieving revision 1.3 diff -u -3 -p -u -r1.3 EllipseNodeFactory.java --- src/nongnu/cashews/eclipse/composer/model/EllipseNodeFactory.java 2005/03/24 16:57:58 1.3 +++ src/nongnu/cashews/eclipse/composer/model/EllipseNodeFactory.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* EllipseNodeFactory.java -- Factory for creating ellipse nodes. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.model; public class EllipseNodeFactory extends NodeFactory @@ -15,4 +50,4 @@ public class EllipseNodeFactory extends return new EllipseNode(name); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/model/Node.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/model/Node.java,v retrieving revision 1.11 diff -u -3 -p -u -r1.11 Node.java --- src/nongnu/cashews/eclipse/composer/model/Node.java 2005/03/24 16:57:58 1.11 +++ src/nongnu/cashews/eclipse/composer/model/Node.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* Node.java -- Representation of a node in the diagram. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.model; import java.util.ArrayList; @@ -10,7 +45,9 @@ import org.eclipse.ui.views.properties.I import org.eclipse.ui.views.properties.IPropertySource; import org.eclipse.ui.views.properties.TextPropertyDescriptor; -public abstract class Node extends Element implements IPropertySource +public abstract class Node + extends Element + implements IPropertySource { // serialization version Index: src/nongnu/cashews/eclipse/composer/model/NodeFactory.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/model/NodeFactory.java,v retrieving revision 1.3 diff -u -3 -p -u -r1.3 NodeFactory.java --- src/nongnu/cashews/eclipse/composer/model/NodeFactory.java 2005/03/24 16:57:58 1.3 +++ src/nongnu/cashews/eclipse/composer/model/NodeFactory.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* NodeFactory.java -- Factory for creating nodes. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.model; import java.util.regex.Matcher; @@ -7,7 +42,8 @@ import java.util.regex.Pattern; import org.eclipse.gef.requests.SimpleFactory; -public abstract class NodeFactory extends SimpleFactory +public abstract class NodeFactory + extends SimpleFactory { static int autoId; @@ -55,4 +91,4 @@ public abstract class NodeFactory extend public abstract Node createNode(String name); -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/model/NodeRegistrar.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/model/NodeRegistrar.java,v retrieving revision 1.4 diff -u -3 -p -u -r1.4 NodeRegistrar.java --- src/nongnu/cashews/eclipse/composer/model/NodeRegistrar.java 2005/03/24 16:57:58 1.4 +++ src/nongnu/cashews/eclipse/composer/model/NodeRegistrar.java 2005/03/25 00:04:33 @@ -1,21 +1,47 @@ -/* - * Created on 2005-3-14 - * - * TODO To change the template for this generated file go to - * Window - Preferences - Java - Code Style - Code Templates - */ +/* NodeRegistrar.java -- Maintains a register of created nodes. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.model; import java.util.HashSet; import java.util.Set; /** - * @author Roger Liu - * - * TODO To change the template for this generated type comment go to Window - - * Preferences - Java - Code Style - Code Templates + * @author Andrew John Hughes (address@hidden) */ public class NodeRegistrar { Index: src/nongnu/cashews/eclipse/composer/model/RectangleNode.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/model/RectangleNode.java,v retrieving revision 1.6 diff -u -3 -p -u -r1.6 RectangleNode.java --- src/nongnu/cashews/eclipse/composer/model/RectangleNode.java 2005/03/24 16:57:58 1.6 +++ src/nongnu/cashews/eclipse/composer/model/RectangleNode.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* RectangleNode.java -- Representation of a rectangular node. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.model; import java.util.List; @@ -9,7 +44,9 @@ import org.eclipse.ui.views.properties.I import org.eclipse.ui.views.properties.IPropertySource; import org.eclipse.ui.views.properties.TextPropertyDescriptor; -public class RectangleNode extends Node implements IPropertySource, XMLizable +public class RectangleNode + extends Node + implements IPropertySource, XMLizable { // serialization version @@ -172,4 +209,4 @@ public class RectangleNode extends Node str.append(""); return str.toString(); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/model/RectangleNodeFactory.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/model/RectangleNodeFactory.java,v retrieving revision 1.4 diff -u -3 -p -u -r1.4 RectangleNodeFactory.java --- src/nongnu/cashews/eclipse/composer/model/RectangleNodeFactory.java 2005/03/24 16:57:58 1.4 +++ src/nongnu/cashews/eclipse/composer/model/RectangleNodeFactory.java 2005/03/25 00:04:33 @@ -1,8 +1,44 @@ +/* RectangleNodeFactory.java -- Factory for creating rectangle nodes. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.model; -public class RectangleNodeFactory extends NodeFactory +public class RectangleNodeFactory + extends NodeFactory { public RectangleNodeFactory(Class aClass) @@ -16,4 +52,4 @@ public class RectangleNodeFactory extend return new RectangleNode(name); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/model/XMLizable.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/model/XMLizable.java,v retrieving revision 1.2 diff -u -3 -p -u -r1.2 XMLizable.java --- src/nongnu/cashews/eclipse/composer/model/XMLizable.java 2005/03/24 16:57:58 1.2 +++ src/nongnu/cashews/eclipse/composer/model/XMLizable.java 2005/03/25 00:04:33 @@ -1,20 +1,48 @@ -/* - * Created on 16-Mar-2005 - * - * Interface that defines a method called toXML which returns - * XML representation of the class - */ +/* XMLizable.java -- Interface for classes that are serialized as XML. + Copyright (C) 2005 The University of Sheffield. + +This file is part of the CASheW-s editor Eclipse plug-in. + +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.model; /** - * @author Ravish - * - * TODO To change the template for this generated type comment go to Window - - * Preferences - Java - Code Style - Code Templates + * @author Ravish Bhagdev (address@hidden) */ interface XMLizable { + public String toXML(); + } Index: src/nongnu/cashews/eclipse/composer/parts/ConnectionPart.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/parts/ConnectionPart.java,v retrieving revision 1.6 diff -u -3 -p -u -r1.6 ConnectionPart.java --- src/nongnu/cashews/eclipse/composer/parts/ConnectionPart.java 2005/03/24 16:57:58 1.6 +++ src/nongnu/cashews/eclipse/composer/parts/ConnectionPart.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* ConnectionPart.java -- Visible part of the connection. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.parts; import nongnu.cashews.eclipse.composer.model.Connection; @@ -9,7 +44,8 @@ import org.eclipse.draw2d.PolylineConnec import org.eclipse.draw2d.geometry.PointList; import org.eclipse.gef.editparts.AbstractConnectionEditPart; -public class ConnectionPart extends AbstractConnectionEditPart +public class ConnectionPart + extends AbstractConnectionEditPart { // ------------------------------------------------------------------------ @@ -37,4 +73,4 @@ public class ConnectionPart extends Abst figure.setTargetDecoration(decoration); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/parts/DiagramPart.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/parts/DiagramPart.java,v retrieving revision 1.5 diff -u -3 -p -u -r1.5 DiagramPart.java --- src/nongnu/cashews/eclipse/composer/parts/DiagramPart.java 2005/03/24 16:57:58 1.5 +++ src/nongnu/cashews/eclipse/composer/parts/DiagramPart.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* DiagramPart.java -- Displayable part of a diagram. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.parts; import java.beans.PropertyChangeEvent; @@ -17,8 +52,9 @@ import org.eclipse.draw2d.IFigure; import org.eclipse.gef.EditPolicy; import org.eclipse.gef.editparts.AbstractGraphicalEditPart; -public class DiagramPart extends AbstractGraphicalEditPart implements - PropertyChangeListener +public class DiagramPart + extends AbstractGraphicalEditPart + implements PropertyChangeListener { // ------------------------------------------------------------------------ @@ -87,4 +123,4 @@ public class DiagramPart extends Abstrac refreshChildren(); } } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/parts/DiagramTreeEditPart.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/parts/DiagramTreeEditPart.java,v retrieving revision 1.4 diff -u -3 -p -u -r1.4 DiagramTreeEditPart.java --- src/nongnu/cashews/eclipse/composer/parts/DiagramTreeEditPart.java 2005/03/24 16:57:58 1.4 +++ src/nongnu/cashews/eclipse/composer/parts/DiagramTreeEditPart.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* DiagramTreeEditPart.java -- Editable part of the diagram tree. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.parts; import java.beans.PropertyChangeEvent; @@ -10,8 +45,9 @@ import nongnu.cashews.eclipse.composer.m import org.eclipse.gef.editparts.AbstractTreeEditPart; -public class DiagramTreeEditPart extends AbstractTreeEditPart implements - PropertyChangeListener +public class DiagramTreeEditPart + extends AbstractTreeEditPart + implements PropertyChangeListener { public DiagramTreeEditPart(Object model) @@ -40,4 +76,4 @@ public class DiagramTreeEditPart extends { refreshChildren(); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/parts/EllipseNodePart.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/parts/EllipseNodePart.java,v retrieving revision 1.4 diff -u -3 -p -u -r1.4 EllipseNodePart.java --- src/nongnu/cashews/eclipse/composer/parts/EllipseNodePart.java 2005/03/24 16:57:58 1.4 +++ src/nongnu/cashews/eclipse/composer/parts/EllipseNodePart.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* EllipseNodePart.java -- Displayable part of the elliptical node. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.parts; import java.beans.PropertyChangeEvent; @@ -31,8 +66,9 @@ import org.eclipse.gef.RequestConstants; import org.eclipse.gef.tools.DirectEditManager; import org.eclipse.jface.viewers.TextCellEditor; -public class EllipseNodePart extends NodePart implements - PropertyChangeListener, NodeEditPart +public class EllipseNodePart + extends NodePart + implements PropertyChangeListener, NodeEditPart { protected DirectEditManager manager; @@ -189,4 +225,4 @@ public class EllipseNodePart extends Nod super(figure); } } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/parts/NodePart.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/parts/NodePart.java,v retrieving revision 1.5 diff -u -3 -p -u -r1.5 NodePart.java --- src/nongnu/cashews/eclipse/composer/parts/NodePart.java 2005/03/24 16:57:58 1.5 +++ src/nongnu/cashews/eclipse/composer/parts/NodePart.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* NodePart.java -- A node part of the diagram. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.parts; import java.beans.PropertyChangeEvent; @@ -22,8 +57,9 @@ import org.eclipse.gef.Request; import org.eclipse.gef.editparts.AbstractGraphicalEditPart; import org.eclipse.gef.tools.DirectEditManager; -public abstract class NodePart extends AbstractGraphicalEditPart implements - PropertyChangeListener, NodeEditPart +public abstract class NodePart + extends AbstractGraphicalEditPart + implements PropertyChangeListener, NodeEditPart { protected DirectEditManager manager; @@ -155,4 +191,4 @@ public abstract class NodePart extends A super(figure); } } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/parts/NodeTreeEditPart.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/parts/NodeTreeEditPart.java,v retrieving revision 1.4 diff -u -3 -p -u -r1.4 NodeTreeEditPart.java --- src/nongnu/cashews/eclipse/composer/parts/NodeTreeEditPart.java 2005/03/24 16:57:58 1.4 +++ src/nongnu/cashews/eclipse/composer/parts/NodeTreeEditPart.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* NodeTreeEditPart.java -- Editable part of the node tree. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.parts; import java.beans.PropertyChangeEvent; @@ -13,8 +48,9 @@ import nongnu.cashews.eclipse.composer.p import org.eclipse.gef.EditPolicy; import org.eclipse.gef.editparts.AbstractTreeEditPart; -public class NodeTreeEditPart extends AbstractTreeEditPart implements - PropertyChangeListener +public class NodeTreeEditPart + extends AbstractTreeEditPart + implements PropertyChangeListener { public NodeTreeEditPart(Object model) @@ -53,4 +89,4 @@ public class NodeTreeEditPart extends Ab { setWidgetText(((Node) getModel()).getName()); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/parts/PartFactory.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/parts/PartFactory.java,v retrieving revision 1.5 diff -u -3 -p -u -r1.5 PartFactory.java --- src/nongnu/cashews/eclipse/composer/parts/PartFactory.java 2005/03/24 16:57:58 1.5 +++ src/nongnu/cashews/eclipse/composer/parts/PartFactory.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* PartFactory.java -- Factory for creating parts of the diagram. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.parts; import nongnu.cashews.eclipse.composer.model.Connection; @@ -49,4 +84,4 @@ public class PartFactory implements Edit return part; } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/parts/RectangleNodePart.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/parts/RectangleNodePart.java,v retrieving revision 1.2 diff -u -3 -p -u -r1.2 RectangleNodePart.java --- src/nongnu/cashews/eclipse/composer/parts/RectangleNodePart.java 2005/03/24 16:57:58 1.2 +++ src/nongnu/cashews/eclipse/composer/parts/RectangleNodePart.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* RectangleNodePart.java -- Displayable part of the rectangular node. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.parts; import java.beans.PropertyChangeEvent; @@ -188,4 +223,4 @@ public class RectangleNodePart extends N super(figure); } } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/parts/TreePartFactory.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/parts/TreePartFactory.java,v retrieving revision 1.5 diff -u -3 -p -u -r1.5 TreePartFactory.java --- src/nongnu/cashews/eclipse/composer/parts/TreePartFactory.java 2005/03/24 16:57:58 1.5 +++ src/nongnu/cashews/eclipse/composer/parts/TreePartFactory.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* TreePartFactory.java -- Factory for creating displayable tree parts. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.parts; import nongnu.cashews.eclipse.composer.model.Diagram; @@ -8,7 +43,8 @@ import nongnu.cashews.eclipse.composer.m import org.eclipse.gef.EditPart; import org.eclipse.gef.EditPartFactory; -public class TreePartFactory implements EditPartFactory +public class TreePartFactory + implements EditPartFactory { public EditPart createEditPart(EditPart context, Object model) @@ -26,4 +62,4 @@ public class TreePartFactory implements return null; } } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/policies/DiagramLayoutEditPolicy.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/policies/DiagramLayoutEditPolicy.java,v retrieving revision 1.5 diff -u -3 -p -u -r1.5 DiagramLayoutEditPolicy.java --- src/nongnu/cashews/eclipse/composer/policies/DiagramLayoutEditPolicy.java 2005/03/24 16:57:59 1.5 +++ src/nongnu/cashews/eclipse/composer/policies/DiagramLayoutEditPolicy.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* DiagramLayoutEditPolicy.java -- Policy for editing the diagram layout. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.policies; import nongnu.cashews.eclipse.composer.commands.CreateNodeCommand; @@ -20,7 +55,8 @@ import org.eclipse.gef.requests.CreateRe //XYLayoutEditPolicy is a policy that constrains figures by a location and size //This extends it with the capability to change the location -public class DiagramLayoutEditPolicy extends XYLayoutEditPolicy +public class DiagramLayoutEditPolicy + extends XYLayoutEditPolicy { // ------------------------------------------------------------------------ @@ -67,4 +103,4 @@ public class DiagramLayoutEditPolicy ext { return null; // no support for deleting a dependant } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/policies/NodeDirectEditPolicy.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/policies/NodeDirectEditPolicy.java,v retrieving revision 1.6 diff -u -3 -p -u -r1.6 NodeDirectEditPolicy.java --- src/nongnu/cashews/eclipse/composer/policies/NodeDirectEditPolicy.java 2005/03/24 16:57:59 1.6 +++ src/nongnu/cashews/eclipse/composer/policies/NodeDirectEditPolicy.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* DirectEditPolicy.java -- Direct editing policy. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.policies; import nongnu.cashews.eclipse.composer.commands.RenameNodeCommand; @@ -13,7 +48,8 @@ import org.eclipse.gef.commands.Command; import org.eclipse.gef.editpolicies.DirectEditPolicy; import org.eclipse.gef.requests.DirectEditRequest; -public class NodeDirectEditPolicy extends DirectEditPolicy +public class NodeDirectEditPolicy + extends DirectEditPolicy { // ------------------------------------------------------------------------ @@ -42,4 +78,4 @@ public class NodeDirectEditPolicy extend ((EllipseNodeFigure) getHostFigure()).setName(value); } } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/policies/NodeEditPolicy.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/policies/NodeEditPolicy.java,v retrieving revision 1.5 diff -u -3 -p -u -r1.5 NodeEditPolicy.java --- src/nongnu/cashews/eclipse/composer/policies/NodeEditPolicy.java 2005/03/24 16:57:59 1.5 +++ src/nongnu/cashews/eclipse/composer/policies/NodeEditPolicy.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* NodeEditPolicy.java -- Policy for editing nodes. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.policies; import nongnu.cashews.eclipse.composer.commands.DeleteNodeCommand; @@ -11,7 +46,8 @@ import org.eclipse.gef.editpolicies.Comp import org.eclipse.gef.requests.GroupRequest; -public class NodeEditPolicy extends ComponentEditPolicy +public class NodeEditPolicy + extends ComponentEditPolicy { // ------------------------------------------------------------------------ @@ -26,4 +62,4 @@ public class NodeEditPolicy extends Comp deleteCommand.setNode((Node) getHost().getModel()); return deleteCommand; } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/policies/NodeGraphicalNodeEditPolicy.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/policies/NodeGraphicalNodeEditPolicy.java,v retrieving revision 1.4 diff -u -3 -p -u -r1.4 NodeGraphicalNodeEditPolicy.java --- src/nongnu/cashews/eclipse/composer/policies/NodeGraphicalNodeEditPolicy.java 2005/02/24 20:13:33 1.4 +++ src/nongnu/cashews/eclipse/composer/policies/NodeGraphicalNodeEditPolicy.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* NodeGraphicalNodeEditPolicy.java -- Policy for editing graphical nodes. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.policies; import nongnu.cashews.eclipse.composer.commands.ConnectionCreateCommand; @@ -11,7 +46,8 @@ import org.eclipse.gef.editpolicies.Grap import org.eclipse.gef.requests.CreateConnectionRequest; import org.eclipse.gef.requests.ReconnectRequest; -public class NodeGraphicalNodeEditPolicy extends GraphicalNodeEditPolicy +public class NodeGraphicalNodeEditPolicy + extends GraphicalNodeEditPolicy { // ------------------------------------------------------------------------ @@ -48,4 +84,4 @@ public class NodeGraphicalNodeEditPolicy { return null; } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/tools/EllipseNodeCellEditorLocator.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/tools/EllipseNodeCellEditorLocator.java,v retrieving revision 1.4 diff -u -3 -p -u -r1.4 EllipseNodeCellEditorLocator.java --- src/nongnu/cashews/eclipse/composer/tools/EllipseNodeCellEditorLocator.java 2005/03/24 16:57:59 1.4 +++ src/nongnu/cashews/eclipse/composer/tools/EllipseNodeCellEditorLocator.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* EllipseNodeCellEditorLocator.java -- Locator for elliptical nodes. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.tools; import nongnu.cashews.eclipse.composer.figures.EllipseNodeFigure; @@ -11,7 +46,8 @@ import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Point; import org.eclipse.swt.widgets.Text; -public class EllipseNodeCellEditorLocator implements CellEditorLocator +public class EllipseNodeCellEditorLocator + implements CellEditorLocator { private EllipseNodeFigure nodeFigure; @@ -31,4 +67,4 @@ public class EllipseNodeCellEditorLocato Rectangle rect = this.nodeFigure.getTextBounds(); text.setBounds(rect.x - 1, rect.y - 1, pref.x + 1, pref.y + 1); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/tools/EllipseNodeDirectEditManager.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/tools/EllipseNodeDirectEditManager.java,v retrieving revision 1.4 diff -u -3 -p -u -r1.4 EllipseNodeDirectEditManager.java --- src/nongnu/cashews/eclipse/composer/tools/EllipseNodeDirectEditManager.java 2005/03/24 16:57:59 1.4 +++ src/nongnu/cashews/eclipse/composer/tools/EllipseNodeDirectEditManager.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* EllipseNodeDirectEditManager.java -- Manager for direct edits. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.tools; import nongnu.cashews.eclipse.composer.figures.EllipseNodeFigure; @@ -16,10 +51,9 @@ import org.eclipse.draw2d.geometry.Dimen import org.eclipse.gef.GraphicalEditPart; import org.eclipse.gef.tools.CellEditorLocator; import org.eclipse.gef.tools.DirectEditManager; - -//import myEditor.figures.NodeFigure; -public class EllipseNodeDirectEditManager extends DirectEditManager +public class EllipseNodeDirectEditManager + extends DirectEditManager { Font scaledFont; @@ -98,4 +132,4 @@ public class EllipseNodeDirectEditManage text.setFont(scaledFont); text.selectAll(); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/tools/RectangleNodeCellEditorLocator.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/tools/RectangleNodeCellEditorLocator.java,v retrieving revision 1.2 diff -u -3 -p -u -r1.2 RectangleNodeCellEditorLocator.java --- src/nongnu/cashews/eclipse/composer/tools/RectangleNodeCellEditorLocator.java 2005/03/24 16:57:59 1.2 +++ src/nongnu/cashews/eclipse/composer/tools/RectangleNodeCellEditorLocator.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* RectangleNodeCellEditorLocator.java -- Locator for rectangle nodes. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.tools; import nongnu.cashews.eclipse.composer.figures.RectangleNodeFigure; @@ -11,7 +46,8 @@ import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Point; import org.eclipse.swt.widgets.Text; -public class RectangleNodeCellEditorLocator implements CellEditorLocator +public class RectangleNodeCellEditorLocator + implements CellEditorLocator { private RectangleNodeFigure nodeFigure; @@ -31,4 +67,4 @@ public class RectangleNodeCellEditorLoca Rectangle rect = this.nodeFigure.getTextBounds(); text.setBounds(rect.x - 1, rect.y - 1, pref.x + 1, pref.y + 1); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/tools/RectangleNodeDirectEditManager.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/tools/RectangleNodeDirectEditManager.java,v retrieving revision 1.2 diff -u -3 -p -u -r1.2 RectangleNodeDirectEditManager.java --- src/nongnu/cashews/eclipse/composer/tools/RectangleNodeDirectEditManager.java 2005/03/24 16:57:59 1.2 +++ src/nongnu/cashews/eclipse/composer/tools/RectangleNodeDirectEditManager.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* RectangleNodeDirectEditManager.java -- Manager for direct rectangle edits. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.tools; import nongnu.cashews.eclipse.composer.figures.RectangleNodeFigure; @@ -17,8 +52,8 @@ import org.eclipse.gef.GraphicalEditPart import org.eclipse.gef.tools.CellEditorLocator; import org.eclipse.gef.tools.DirectEditManager; -//import myEditor.figures.NodeFigure; -public class RectangleNodeDirectEditManager extends DirectEditManager +public class RectangleNodeDirectEditManager + extends DirectEditManager { Font scaledFont; @@ -97,4 +132,4 @@ public class RectangleNodeDirectEditMana text.setFont(scaledFont); text.selectAll(); } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/ui/DiagramCreationWizard.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/ui/DiagramCreationWizard.java,v retrieving revision 1.5 diff -u -3 -p -u -r1.5 DiagramCreationWizard.java --- src/nongnu/cashews/eclipse/composer/ui/DiagramCreationWizard.java 2005/03/24 16:57:58 1.5 +++ src/nongnu/cashews/eclipse/composer/ui/DiagramCreationWizard.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* DiagramCreationWizard.java -- Wizard for creating the diagram. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.ui; import java.io.InputStream; @@ -17,7 +52,9 @@ import org.eclipse.ui.IWorkbenchWindow; import org.eclipse.ui.dialogs.WizardNewFileCreationPage; import org.eclipse.ui.part.FileEditorInput; -public class DiagramCreationWizard extends Wizard implements INewWizard +public class DiagramCreationWizard + extends Wizard + implements INewWizard { private WizardPage wizardPage; @@ -118,4 +155,4 @@ class WizardPage extends WizardNewFileCr } return istream; } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/ui/DiagramEditor.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/ui/DiagramEditor.java,v retrieving revision 1.4 diff -u -3 -p -u -r1.4 DiagramEditor.java --- src/nongnu/cashews/eclipse/composer/ui/DiagramEditor.java 2005/03/24 16:57:58 1.4 +++ src/nongnu/cashews/eclipse/composer/ui/DiagramEditor.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* DiagramEditor.java -- Representation of the diagram editor. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.ui; import java.io.InputStream; @@ -309,4 +344,4 @@ public class DiagramEditor extends Graph super.dispose(); } } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/ui/PaletteFactory.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/ui/PaletteFactory.java,v retrieving revision 1.7 diff -u -3 -p -u -r1.7 PaletteFactory.java --- src/nongnu/cashews/eclipse/composer/ui/PaletteFactory.java 2005/03/24 16:57:58 1.7 +++ src/nongnu/cashews/eclipse/composer/ui/PaletteFactory.java 2005/03/25 00:04:33 @@ -1,5 +1,40 @@ +/* PaletteFactory.java -- Factory for creating palettes. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ + package nongnu.cashews.eclipse.composer.ui; import java.util.ArrayList; @@ -95,4 +130,4 @@ public class PaletteFactory return paletteRoot; } -} \ No newline at end of file +} Index: src/nongnu/cashews/eclipse/composer/util/Dialogs.java =================================================================== RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/eclipse/composer/util/Dialogs.java,v retrieving revision 1.2 diff -u -3 -p -u -r1.2 Dialogs.java --- src/nongnu/cashews/eclipse/composer/util/Dialogs.java 2005/03/24 16:57:58 1.2 +++ src/nongnu/cashews/eclipse/composer/util/Dialogs.java 2005/03/25 00:04:33 @@ -1,10 +1,39 @@ -/* - * Created on 2005-3-14 - * - * TODO To change the template for this generated file go to - * Window - Preferences - Java - Code Style - Code Templates - */ +/* Dialogs.java -- Diagram editor dialogs. + Copyright (C) 2005 The University of Sheffield. +This file is part of the CASheW-s editor Eclipse plug-in. + +The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, +and redistribute it under the terms of the GNU General Public License +version 2 (or, at your option, any later version), and/or the Eclipse +Public License version 1.0. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +The University of Sheffield makes available all content in this plug-in +("Content"). Unless otherwise indicated below, the Content is provided to +you under the terms and conditions of the Eclipse Public License Version +1.0 ("EPL"). A copy of the EPL is available at +http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, +"Program" will mean the Content. + +If you did not receive this Content directly from the University of Sheffield, +the Content is being redistributed by another party ("Redistributor") and +different terms and conditions may apply to your use of any object code in +the Content. Check the Redistributor's license that was provided with the +Content. If no such license exists, contact the Redistributor. Unless +otherwise indicated below, the terms and conditions of the EPL still apply +to any source code in the Content. + +*/ package nongnu.cashews.eclipse.composer.util;