X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2FmodelBrowser%2Fmodel%2FINode2.java;h=b8a5044dc5673b711db1fe71715abd73adaf3d3d;hp=006a61b86db1a07ae69919e37cad58c4c0ec57f8;hb=refs%2Fchanges%2F38%2F238%2F2;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 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 index 006a61b86..b8a5044dc 100644 --- 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 @@ -1,52 +1,52 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.modeling.ui.modelBrowser.model; - -import java.util.Collection; - -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.jface.resource.ImageDescriptor; -import org.simantics.browsing.ui.NodeContext; -import org.simantics.browsing.ui.common.node.DeleteException; -import org.simantics.browsing.ui.common.node.IDeletable; -import org.simantics.browsing.ui.common.node.IModifiable; -import org.simantics.browsing.ui.common.node.IRefreshable; -import org.simantics.browsing.ui.content.Labeler.Modifier; - -/** - * INode2 represents a node in the background system object model. - * - * @see IDeletable - * @see IModifiable - * @see IRefreshable - * @see IOpenable - * - * @deprecated tutorial for new features - */ -@Deprecated -public interface INode2 extends IAdaptable { - String getLabel(Runnable updater, NodeContext context); - int getCategory(Runnable updater, NodeContext context); - Collection getChildren(Runnable updater, NodeContext context); - boolean hasChildren(Runnable updater, NodeContext context); - ImageDescriptor getImage(Runnable updater, NodeContext context); - Modifier getModifier(String columnId); - - /** - * Delete node in the background system. The node is considered deletable - * only if it implements {@link IDeletable}. - * - * @throws DeleteException if node could not be deleted - */ - void handleDelete() throws DeleteException; - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.modeling.ui.modelBrowser.model; + +import java.util.Collection; + +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.jface.resource.ImageDescriptor; +import org.simantics.browsing.ui.NodeContext; +import org.simantics.browsing.ui.common.node.DeleteException; +import org.simantics.browsing.ui.common.node.IDeletable; +import org.simantics.browsing.ui.common.node.IModifiable; +import org.simantics.browsing.ui.common.node.IRefreshable; +import org.simantics.browsing.ui.content.Labeler.Modifier; + +/** + * INode2 represents a node in the background system object model. + * + * @see IDeletable + * @see IModifiable + * @see IRefreshable + * @see IOpenable + * + * @deprecated tutorial for new features + */ +@Deprecated +public interface INode2 extends IAdaptable { + String getLabel(Runnable updater, NodeContext context); + int getCategory(Runnable updater, NodeContext context); + Collection getChildren(Runnable updater, NodeContext context); + boolean hasChildren(Runnable updater, NodeContext context); + ImageDescriptor getImage(Runnable updater, NodeContext context); + Modifier getModifier(String columnId); + + /** + * Delete node in the background system. The node is considered deletable + * only if it implements {@link IDeletable}. + * + * @throws DeleteException if node could not be deleted + */ + void handleDelete() throws DeleteException; + +}