1 package org.simantics.interop.browsing;
\r
3 import java.util.Collection;
\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
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