VP.BrowseContext.IsIncludedIn MOD.ModelingBrowseContext\r
\r
INTEROP.INodeType <T VP.NodeType\r
- @L0.assert VP.HasContentType "org.simantics.modeling.ui.modelBrowser.model.INode"\r
+ @L0.assert VP.HasContentType "org.simantics.interop.browsing.INode"\r
\r
IBC.InteropNode : INTEROP.INodeType\r
IBC.InteropChildRule : VP.ChildRule\r
\r
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.content.Labeler.Modifier;\r
import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Session;\r
import org.simantics.db.exception.DatabaseException;\r
\r
public interface INode extends IAdaptable {\r
Collection<?> getChildren(ReadGraph graph) throws DatabaseException;\r
boolean hasChildren(ReadGraph graph) throws DatabaseException;\r
ImageDescriptor getImage(ReadGraph graph) throws DatabaseException;\r
- void handleDrop(Session session, ISelection selection);\r
- Modifier getModifier(Session session, String columnId);\r
\r
\r
}\r
\r
import org.eclipse.jface.resource.ImageDescriptor;\r
import org.simantics.browsing.ui.BuiltinKeys;\r
-import org.simantics.browsing.ui.DataSource;\r
-import org.simantics.browsing.ui.NodeContext;\r
-import org.simantics.browsing.ui.PrimitiveQueryUpdater;\r
import org.simantics.browsing.ui.BuiltinKeys.ImagerKey;\r
import org.simantics.browsing.ui.BuiltinKeys.LabelerKey;\r
import org.simantics.browsing.ui.BuiltinKeys.ViewpointKey;\r
-import org.simantics.browsing.ui.GraphExplorer.ModificationContext;\r
+import org.simantics.browsing.ui.DataSource;\r
+import org.simantics.browsing.ui.NodeContext;\r
+import org.simantics.browsing.ui.PrimitiveQueryUpdater;\r
import org.simantics.browsing.ui.common.ColumnKeys;\r
-import org.simantics.browsing.ui.common.EvaluatorImpl;\r
import org.simantics.browsing.ui.common.EvaluatorData.Evaluator;\r
+import org.simantics.browsing.ui.common.EvaluatorImpl;\r
import org.simantics.browsing.ui.common.comparators.AlphanumericComparatorFactory;\r
import org.simantics.browsing.ui.common.imagers.ContainerImager;\r
import org.simantics.browsing.ui.content.Imager;\r
import org.simantics.modeling.ui.modelBrowser.model.IChildrenCallback;\r
import org.simantics.modeling.ui.modelBrowser.model.IDisposable;\r
import org.simantics.modeling.ui.modelBrowser.model.IUpdateable;\r
-import org.simantics.ui.SimanticsUI;\r
import org.simantics.utils.datastructures.Callable;\r
import org.simantics.utils.datastructures.Callback;\r
\r
((INode) context.getConstant(BuiltinKeys.INPUT)).getLabel(graph));\r
}\r
\r
- @Override\r
- public Modifier getModifier(ModificationContext sourcePart, String key) {\r
- return ((INode) context.getConstant(BuiltinKeys.INPUT)).getModifier(SimanticsUI.getSession(), key);\r
- }\r
-\r
- @Override\r
- public int category(ReadGraph graph) throws DatabaseException {\r
- return ((INode) context.getConstant(BuiltinKeys.INPUT)).getCategory(graph);\r
- }\r
+// @Override\r
+// public Modifier getModifier(ModificationContext sourcePart, String key) {\r
+// return ((INode) context.getConstant(BuiltinKeys.INPUT)).getModifier(SimanticsUI.getSession(), key);\r
+// }\r
+//\r
+// @Override\r
+// public int category(ReadGraph graph) throws DatabaseException {\r
+// return ((INode) context.getConstant(BuiltinKeys.INPUT)).getCategory(graph);\r
+// }\r
};\r
}\r
}\r
import java.util.List;\r
\r
import org.eclipse.jface.resource.ImageDescriptor;\r
-import org.eclipse.jface.viewers.ISelection;\r
-import org.simantics.browsing.ui.content.Labeler.Modifier;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.Resource;\r
-import org.simantics.db.Session;\r
import org.simantics.db.exception.DatabaseException;\r
import org.simantics.interop.Activator;\r
import org.simantics.interop.stubs.InteropResource;\r
public Object getAdapter(Class adapter) {\r
return null;\r
}\r
- \r
- @Override\r
- public int getCategory(ReadGraph graph) throws DatabaseException {\r
- return 0;\r
- }\r
- \r
+\r
\r
@Override\r
public ImageDescriptor getImage(ReadGraph graph) throws DatabaseException {\r
public String getLabel(ReadGraph graph) throws DatabaseException {\r
return "Imports";\r
}\r
- \r
- @Override\r
- public Modifier getModifier(Session session, String columnId) {\r
- return null;\r
- }\r
- \r
- \r
- @Override\r
- public void handleDrop(Session session, ISelection selection) {\r
- \r
- }\r
+\r
\r
@Override\r
public boolean hasChildren(ReadGraph graph) throws DatabaseException {\r
\r
}\r
\r
+ @Override\r
+ public int getCategory(ReadGraph graph) throws DatabaseException {\r
+ return 0;\r
+ }\r
+ \r
\r
}\r
import java.util.List;\r
\r
import org.eclipse.jface.resource.ImageDescriptor;\r
-import org.eclipse.jface.viewers.ISelection;\r
-import org.simantics.browsing.ui.content.Labeler.Modifier;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.Resource;\r
-import org.simantics.db.Session;\r
import org.simantics.db.exception.DatabaseException;\r
import org.simantics.interop.Activator;\r
import org.simantics.interop.stubs.InteropResource;\r
public Object getAdapter(Class adapter) {\r
return null;\r
}\r
- \r
- @Override\r
- public int getCategory(ReadGraph graph) throws DatabaseException {\r
- return 0;\r
- }\r
+\r
\r
\r
@Override\r
return "Imports";\r
}\r
\r
- @Override\r
- public Modifier getModifier(Session session, String columnId) {\r
- return null;\r
- }\r
- \r
-\r
- \r
- @Override\r
- public void handleDrop(Session session, ISelection selection) {\r
- \r
- }\r
- \r
@Override\r
public boolean hasChildren(ReadGraph graph) throws DatabaseException {\r
return getChildren(graph).size() > 0;\r
\r
}\r
\r
+ @Override\r
+ public int getCategory(ReadGraph graph) throws DatabaseException {\r
+ return 0;\r
+ }\r
+ \r
\r
}\r