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