X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2FmodelBrowser%2Fmodel%2FUpdateableNode.java;h=194f1c2cd2356439ce96bc3ce6b4a387de328346;hb=7396956f115b87067970f690588017fc05393e7a;hp=044232330d9e34d714eca2ce3da3e4f0139caadf;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/model/UpdateableNode.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/model/UpdateableNode.java index 044232330..194f1c2cd 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/model/UpdateableNode.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/model/UpdateableNode.java @@ -1,43 +1,43 @@ -/******************************************************************************* - * 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.simantics.db.Resource; - -/** - * A base implementation for an {@link IUpdateable} {@link INode}. - * - * @author Tuukka Lehtonen - */ -@Deprecated -public class UpdateableNode extends Node implements IUpdateable { - - private IChildrenCallback childrenUpdater; - - public UpdateableNode(Resource resource) { - super(resource); - } - - @Override - public void setChildrenCallback(IChildrenCallback childrenUpdater) { - this.childrenUpdater = childrenUpdater; - } - - protected void refreshChildren(Collection newChildren) { - if (childrenUpdater != null) { - childrenUpdater.refreshChildren(newChildren); - } - } - -} +/******************************************************************************* + * 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.simantics.db.Resource; + +/** + * A base implementation for an {@link IUpdateable} {@link INode}. + * + * @author Tuukka Lehtonen + */ +@Deprecated +public class UpdateableNode extends Node implements IUpdateable { + + private IChildrenCallback childrenUpdater; + + public UpdateableNode(Resource resource) { + super(resource); + } + + @Override + public void setChildrenCallback(IChildrenCallback childrenUpdater) { + this.childrenUpdater = childrenUpdater; + } + + protected void refreshChildren(Collection newChildren) { + if (childrenUpdater != null) { + childrenUpdater.refreshChildren(newChildren); + } + } + +}