Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAEditorInput.java')
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAEditorInput.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAEditorInput.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAEditorInput.java
new file mode 100644
index 00000000000..473f303adb1
--- /dev/null
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAEditorInput.java
@@ -0,0 +1,37 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * 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:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.editor;
+
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.BaseArtifactEditorInput;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class SMAEditorInput extends BaseArtifactEditorInput {
+
+ public SMAEditorInput(Artifact artifact) {
+ super(artifact);
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (obj instanceof SMAEditorInput) {
+ return (getArtifact() == ((SMAEditorInput) obj).getArtifact());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return getArtifact().hashCode();
+ }
+}

Back to the top