diff options
Diffstat (limited to 'org.eclipse.tips.core/src/org/eclipse/tips/core/TipProviderListener.java')
-rw-r--r-- | org.eclipse.tips.core/src/org/eclipse/tips/core/TipProviderListener.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/org.eclipse.tips.core/src/org/eclipse/tips/core/TipProviderListener.java b/org.eclipse.tips.core/src/org/eclipse/tips/core/TipProviderListener.java new file mode 100644 index 000000000..f9d4b59d3 --- /dev/null +++ b/org.eclipse.tips.core/src/org/eclipse/tips/core/TipProviderListener.java @@ -0,0 +1,34 @@ +/******************************************************************************* + * Copyright (c) 2018 Remain Software + * 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: + * wim.jongman@remainsoftware.com - initial API and implementation + *******************************************************************************/ +package org.eclipse.tips.core; + +/** + * Provides notifications on TipProvider events. + * + */ +@FunctionalInterface +public interface TipProviderListener { + + /** + * Event ready. The TipProvider is ready to serve tips. + */ + public static final int EVENT_READY = 1; + + /** + * When the subject is ready to serve tips (e.g. fetched new tips from + * somewhere) it will The provider is ready to serve tips. The default + * implementation does nothing, subclasses may override. + * + * @param provider + * the provider. + */ + public void providerReady(TipProvider provider); +}
\ No newline at end of file |