1 /*******************************************************************************
\r
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
\r
3 * in Industry THTH ry.
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.modeling.ui.modelBrowser.model;
\r
14 import java.util.Collection;
\r
16 import org.eclipse.core.runtime.IAdaptable;
\r
17 import org.eclipse.jface.resource.ImageDescriptor;
\r
18 import org.simantics.browsing.ui.NodeContext;
\r
19 import org.simantics.browsing.ui.common.node.DeleteException;
\r
20 import org.simantics.browsing.ui.common.node.IDeletable;
\r
21 import org.simantics.browsing.ui.common.node.IModifiable;
\r
22 import org.simantics.browsing.ui.common.node.IRefreshable;
\r
23 import org.simantics.browsing.ui.content.Labeler.Modifier;
\r
26 * INode2 represents a node in the background system object model.
\r
33 * @deprecated <a href="https://www.simantics.org/wiki/index.php/Org.simantics.browsing.ui_Manual">tutorial for new features</a>
\r
36 public interface INode2 extends IAdaptable {
\r
37 String getLabel(Runnable updater, NodeContext context);
\r
38 int getCategory(Runnable updater, NodeContext context);
\r
39 Collection<?> getChildren(Runnable updater, NodeContext context);
\r
40 boolean hasChildren(Runnable updater, NodeContext context);
\r
41 ImageDescriptor getImage(Runnable updater, NodeContext context);
\r
42 Modifier getModifier(String columnId);
\r
45 * Delete node in the background system. The node is considered deletable
\r
46 * only if it implements {@link IDeletable}.
\r
48 * @throws DeleteException if node could not be deleted
\r
50 void handleDelete() throws DeleteException;
\r