Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/editor/model/RectangleShape.java')
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/editor/model/RectangleShape.java58
1 files changed, 58 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/editor/model/RectangleShape.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/editor/model/RectangleShape.java
new file mode 100644
index 00000000000..9802e4952e6
--- /dev/null
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/editor/model/RectangleShape.java
@@ -0,0 +1,58 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2005 Donald G. Dunne and others.
+�* All rights reserved. This program and the accompanying materials
+�* are made available under the terms of the Eclipse Public License v1.0
+�* which accompanies this distribution, and is available at
+�* http://www.eclipse.org/legal/epl-v10.html
+�*
+�* Contributors:
+�*����Donald G. Dunne - initial API and implementation
+�*******************************************************************************/
+package org.eclipse.osee.ats.workflow.editor.model;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransaction;
+import org.eclipse.osee.framework.ui.plugin.util.Result;
+import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+import org.eclipse.swt.graphics.Image;
+
+/**
+ * A rectangular shape.
+ *
+ * @author Donald G. Dunne
+ */
+public class RectangleShape extends Shape {
+ /** A 16x16 pictogram of a rectangular shape. */
+
+ public RectangleShape() {
+ setSize(new Dimension(100, 50));
+ }
+
+ @Override
+ public Result validForSave() throws OseeCoreException {
+ return Result.TrueResult;
+ }
+
+ @Override
+ public Image getIcon() {
+ return ImageManager.getImage(FrameworkImage.RECTANGLE_16);
+ }
+
+ @Override
+ protected String getName() {
+ return null;
+ }
+
+ @Override
+ protected String getToolTip() {
+ return null;
+ }
+
+ @Override
+ public Result doSave(SkynetTransaction transaction) throws OseeCoreException {
+ return Result.TrueResult;
+ }
+
+}

Back to the top