+/*******************************************************************************\r
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.utils.datastructures.hints;\r
+\r
+import org.simantics.utils.datastructures.hints.IHintContext.Key;\r
+\r
+/**\r
+ * A hint listener that reports all changes to the listened hint through\r
+ * hintChanged instead of hintChanged+hintRemoved. When the hint is removed,\r
+ * a null newValue will be given.\r
+ *\r
+ * <p>\r
+ * This class in only meant to be used in cases where it is ok for the client to\r
+ * receive <code>null</code> as the new hint value. In other cases clients\r
+ * should simply implement IHintListener.\r
+ * </p>\r
+ *\r
+ * @author Tuukka Lehtonen\r
+ */\r
+public abstract class HintListenerAdapter implements IHintListener {\r
+\r
+ @Override\r
+ public void hintRemoved(IHintObservable sender, Key key, Object oldValue) { \r
+ hintChanged(sender, key, oldValue, null);\r
+ }\r
+ \r
+}\r
+\r