]> gerrit.simantics Code Review - simantics/interop.git/blob - org.simantics.interop/src/org/simantics/interop/browsing/INode.java
git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@22034...
[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.content.Labeler.Modifier;\r
9 import org.simantics.db.ReadGraph;\r
10 import org.simantics.db.Session;\r
11 import org.simantics.db.exception.DatabaseException;\r
12 \r
13 public interface INode extends IAdaptable {\r
14     String getLabel(ReadGraph graph) throws DatabaseException;\r
15     int getCategory(ReadGraph graph) throws DatabaseException;\r
16     Collection<?> getChildren(ReadGraph graph) throws DatabaseException;\r
17     boolean hasChildren(ReadGraph graph) throws DatabaseException;\r
18     ImageDescriptor getImage(ReadGraph graph) throws DatabaseException;\r
19     void handleDrop(Session session, ISelection selection);\r
20     Modifier getModifier(Session session, String columnId);\r
21 \r
22 \r
23 }\r