From: luukkainen Date: Fri, 2 Sep 2011 08:11:22 +0000 (+0000) Subject: git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@22034... X-Git-Tag: v1.31.0~118 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=c392c83299b02de622e1c7aa2c5ca3701c7e157d;p=simantics%2Finterop.git git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@22034 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.interop/src/org/simantics/interop/browsing/INode.java b/org.simantics.interop/src/org/simantics/interop/browsing/INode.java index b849a02..fdb1800 100644 --- a/org.simantics.interop/src/org/simantics/interop/browsing/INode.java +++ b/org.simantics.interop/src/org/simantics/interop/browsing/INode.java @@ -5,11 +5,9 @@ import java.util.Collection; import org.eclipse.core.runtime.IAdaptable; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.viewers.ISelection; -import org.simantics.browsing.ui.common.node.IDeletable; import org.simantics.browsing.ui.content.Labeler.Modifier; import org.simantics.db.ReadGraph; import org.simantics.db.Session; -import org.simantics.db.WriteGraph; import org.simantics.db.exception.DatabaseException; public interface INode extends IAdaptable { @@ -21,9 +19,5 @@ public interface INode extends IAdaptable { void handleDrop(Session session, ISelection selection); Modifier getModifier(Session session, String columnId); - /** - * Delete node in the background system. The node is considered deletable - * only if it implements {@link IDeletable}. - */ - void handleDelete(WriteGraph graph) throws DatabaseException; + } diff --git a/org.simantics.interop/src/org/simantics/interop/browsing/ImportNode.java b/org.simantics.interop/src/org/simantics/interop/browsing/ImportNode.java index af39f89..386dbf5 100644 --- a/org.simantics.interop/src/org/simantics/interop/browsing/ImportNode.java +++ b/org.simantics.interop/src/org/simantics/interop/browsing/ImportNode.java @@ -10,14 +10,12 @@ import org.simantics.browsing.ui.content.Labeler.Modifier; import org.simantics.db.ReadGraph; import org.simantics.db.Resource; import org.simantics.db.Session; -import org.simantics.db.WriteGraph; import org.simantics.db.exception.DatabaseException; import org.simantics.interop.Activator; import org.simantics.interop.stubs.InteropResource; public class ImportNode implements INode { - //private Resource project; private Resource model; public ImportNode(Resource project) { @@ -48,19 +46,12 @@ public class ImportNode implements INode { @Override public Modifier getModifier(Session session, String columnId) { - // TODO Auto-generated method stub return null; } - @Override - public void handleDelete(WriteGraph graph) throws DatabaseException { - // TODO Auto-generated method stub - - } @Override public void handleDrop(Session session, ISelection selection) { - // TODO Auto-generated method stub } diff --git a/org.simantics.interop/src/org/simantics/interop/browsing/ImportNode2.java b/org.simantics.interop/src/org/simantics/interop/browsing/ImportNode2.java index f746a9f..e1f81d0 100644 --- a/org.simantics.interop/src/org/simantics/interop/browsing/ImportNode2.java +++ b/org.simantics.interop/src/org/simantics/interop/browsing/ImportNode2.java @@ -10,7 +10,6 @@ import org.simantics.browsing.ui.content.Labeler.Modifier; import org.simantics.db.ReadGraph; import org.simantics.db.Resource; import org.simantics.db.Session; -import org.simantics.db.WriteGraph; import org.simantics.db.exception.DatabaseException; import org.simantics.interop.Activator; import org.simantics.interop.stubs.InteropResource; @@ -47,19 +46,13 @@ public class ImportNode2 implements INode { @Override public Modifier getModifier(Session session, String columnId) { - // TODO Auto-generated method stub return null; } - @Override - public void handleDelete(WriteGraph graph) throws DatabaseException { - // TODO Auto-generated method stub - - } + @Override public void handleDrop(Session session, ISelection selection) { - // TODO Auto-generated method stub }