import org.eclipse.core.runtime.IAdaptable;\r
import org.eclipse.jface.resource.ImageDescriptor;\r
import org.eclipse.jface.viewers.ISelection;\r
-import org.simantics.browsing.ui.common.node.IDeletable;\r
import org.simantics.browsing.ui.content.Labeler.Modifier;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.Session;\r
-import org.simantics.db.WriteGraph;\r
import org.simantics.db.exception.DatabaseException;\r
\r
public interface INode extends IAdaptable {\r
void handleDrop(Session session, ISelection selection);\r
Modifier getModifier(Session session, String columnId);\r
\r
- /**\r
- * Delete node in the background system. The node is considered deletable\r
- * only if it implements {@link IDeletable}.\r
- */\r
- void handleDelete(WriteGraph graph) throws DatabaseException;\r
+\r
}\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.Resource;\r
import org.simantics.db.Session;\r
-import org.simantics.db.WriteGraph;\r
import org.simantics.db.exception.DatabaseException;\r
import org.simantics.interop.Activator;\r
import org.simantics.interop.stubs.InteropResource;\r
\r
public class ImportNode implements INode {\r
\r
- //private Resource project;\r
private Resource model;\r
\r
public ImportNode(Resource project) {\r
\r
@Override\r
public Modifier getModifier(Session session, String columnId) {\r
- // TODO Auto-generated method stub\r
return null;\r
}\r
\r
- @Override\r
- public void handleDelete(WriteGraph graph) throws DatabaseException {\r
- // TODO Auto-generated method stub\r
- \r
- }\r
\r
@Override\r
public void handleDrop(Session session, ISelection selection) {\r
- // TODO Auto-generated method stub\r
\r
}\r
\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.Resource;\r
import org.simantics.db.Session;\r
-import org.simantics.db.WriteGraph;\r
import org.simantics.db.exception.DatabaseException;\r
import org.simantics.interop.Activator;\r
import org.simantics.interop.stubs.InteropResource;\r
\r
@Override\r
public Modifier getModifier(Session session, String columnId) {\r
- // TODO Auto-generated method stub\r
return null;\r
}\r
\r
- @Override\r
- public void handleDelete(WriteGraph graph) throws DatabaseException {\r
- // TODO Auto-generated method stub\r
- \r
- }\r
+\r
\r
@Override\r
public void handleDrop(Session session, ISelection selection) {\r
- // TODO Auto-generated method stub\r
\r
}\r
\r