]> gerrit.simantics Code Review - simantics/interop.git/blob - org.simantics.interop/src/org/simantics/interop/browsing/INode.java
Removed os.modelling.ui.modelBrowser.model.INode dependency.
[simantics/interop.git] / org.simantics.interop / src / org / simantics / interop / browsing / INode.java
1 package org.simantics.interop.browsing;\r
2 \r
3 import java.util.Collection;\r
4 \r
5 import org.eclipse.core.runtime.IAdaptable;\r
6 import org.eclipse.jface.resource.ImageDescriptor;\r
7 import org.eclipse.jface.viewers.ISelection;\r
8 import org.simantics.browsing.ui.common.node.IDeletable;\r
9 import org.simantics.browsing.ui.content.Labeler.Modifier;\r
10 import org.simantics.db.ReadGraph;\r
11 import org.simantics.db.Session;\r
12 import org.simantics.db.WriteGraph;\r
13 import org.simantics.db.exception.DatabaseException;\r
14 \r
15 public interface INode extends IAdaptable {\r
16     String getLabel(ReadGraph graph) throws DatabaseException;\r
17     int getCategory(ReadGraph graph) throws DatabaseException;\r
18     Collection<?> getChildren(ReadGraph graph) throws DatabaseException;\r
19     boolean hasChildren(ReadGraph graph) throws DatabaseException;\r
20     ImageDescriptor getImage(ReadGraph graph) throws DatabaseException;\r
21     void handleDrop(Session session, ISelection selection);\r
22     Modifier getModifier(Session session, String columnId);\r
23 \r
24     /**\r
25      * Delete node in the background system. The node is considered deletable\r
26      * only if it implements {@link IDeletable}.\r
27      */\r
28     void handleDelete(WriteGraph graph) throws DatabaseException;\r
29 }\r