]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/model/INode2.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / modelBrowser / model / INode2.java
diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/model/INode2.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/model/INode2.java
new file mode 100644 (file)
index 0000000..006a61b
--- /dev/null
@@ -0,0 +1,52 @@
+/*******************************************************************************\r
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ *     VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.modeling.ui.modelBrowser.model;\r
+\r
+import java.util.Collection;\r
+\r
+import org.eclipse.core.runtime.IAdaptable;\r
+import org.eclipse.jface.resource.ImageDescriptor;\r
+import org.simantics.browsing.ui.NodeContext;\r
+import org.simantics.browsing.ui.common.node.DeleteException;\r
+import org.simantics.browsing.ui.common.node.IDeletable;\r
+import org.simantics.browsing.ui.common.node.IModifiable;\r
+import org.simantics.browsing.ui.common.node.IRefreshable;\r
+import org.simantics.browsing.ui.content.Labeler.Modifier;\r
+\r
+/**\r
+ * INode2 represents a node in the background system object model.\r
+ * \r
+ * @see IDeletable\r
+ * @see IModifiable\r
+ * @see IRefreshable\r
+ * @see IOpenable\r
+ * \r
+ * @deprecated <a href="https://www.simantics.org/wiki/index.php/Org.simantics.browsing.ui_Manual">tutorial for new features</a>\r
+ */\r
+@Deprecated\r
+public interface INode2 extends IAdaptable {\r
+    String getLabel(Runnable updater, NodeContext context);\r
+    int getCategory(Runnable updater, NodeContext context);\r
+    Collection<?> getChildren(Runnable updater, NodeContext context);\r
+    boolean hasChildren(Runnable updater, NodeContext context);\r
+    ImageDescriptor getImage(Runnable updater, NodeContext context);\r
+    Modifier getModifier(String columnId);\r
+\r
+    /**\r
+     * Delete node in the background system. The node is considered deletable\r
+     * only if it implements {@link IDeletable}.\r
+     * \r
+     * @throws DeleteException if node could not be deleted\r
+     */\r
+    void handleDelete() throws DeleteException;\r
+\r
+}\r