X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.utils.datastructures%2Fsrc%2Forg%2Fsimantics%2Futils%2Fdatastructures%2Fhints%2FIHintTracker.java;fp=bundles%2Forg.simantics.utils.datastructures%2Fsrc%2Forg%2Fsimantics%2Futils%2Fdatastructures%2Fhints%2FIHintTracker.java;h=c80f46a66ffebfc997180bb7e2420ee9bfb89034;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=48c7dd637db2f1e2c5ddfd37efcd148da0b69ff1;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/hints/IHintTracker.java b/bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/hints/IHintTracker.java index 48c7dd637..c80f46a66 100644 --- a/bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/hints/IHintTracker.java +++ b/bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/hints/IHintTracker.java @@ -1,51 +1,51 @@ -/******************************************************************************* - * 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.utils.datastructures.hints; - -/** - * IHintTracker is an interface for tracking any hints of a single IHintContext. - * - *

- * The main purpose of this interface is to enable very easy switching of the - * tracked hint context. Only a call to the {@link #track(IHintContext)} method - * is required. All hint listeners registered into the tracked will - * automatically be switched to listen to the new context instead. Hint - * listeners can be added or removed while tracking an IHintContext. - *

- * - *

- * Always be sure to {@link #untrack()} any IHintContext that you're tracking - * after the tracker is no longer needed. Otherwise you will most likely have - * invalid listeners within the tracked IHintContext resulting in erroneous - * behavior. - *

- * - * @author Tuukka Lehtonen - */ -public interface IHintTracker extends IHintObservable { - - /** - * Start tracking the specified IHintContext with all the listeners - * registered into this IHintObservable. Tracking of any previous - * IHintContext will be discontinued. - * - * @param ctx the new IHintContext to track - */ - public void track(IHintContext ctx); - - /** - * A call to this method should have the same implications as a - * track(null) call. - */ - void untrack(); - -} +/******************************************************************************* + * 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.utils.datastructures.hints; + +/** + * IHintTracker is an interface for tracking any hints of a single IHintContext. + * + *

+ * The main purpose of this interface is to enable very easy switching of the + * tracked hint context. Only a call to the {@link #track(IHintContext)} method + * is required. All hint listeners registered into the tracked will + * automatically be switched to listen to the new context instead. Hint + * listeners can be added or removed while tracking an IHintContext. + *

+ * + *

+ * Always be sure to {@link #untrack()} any IHintContext that you're tracking + * after the tracker is no longer needed. Otherwise you will most likely have + * invalid listeners within the tracked IHintContext resulting in erroneous + * behavior. + *

+ * + * @author Tuukka Lehtonen + */ +public interface IHintTracker extends IHintObservable { + + /** + * Start tracking the specified IHintContext with all the listeners + * registered into this IHintObservable. Tracking of any previous + * IHintContext will be discontinued. + * + * @param ctx the new IHintContext to track + */ + public void track(IHintContext ctx); + + /** + * A call to this method should have the same implications as a + * track(null) call. + */ + void untrack(); + +}