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.simantics.db.ReadGraph;
\r
8 import org.simantics.db.exception.DatabaseException;
\r
10 public interface INode extends IAdaptable {
\r
11 String getLabel(ReadGraph graph) throws DatabaseException;
\r
12 int getCategory(ReadGraph graph) throws DatabaseException;
\r
13 Collection<?> getChildren(ReadGraph graph) throws DatabaseException;
\r
14 boolean hasChildren(ReadGraph graph) throws DatabaseException;
\r
15 ImageDescriptor getImage(ReadGraph graph) throws DatabaseException;
\r