From: Mathieu Baudier Date: Tue, 20 Mar 2018 11:15:30 +0000 (+0100) Subject: Add part selection listener to pseudo eclipse forms X-Git-Tag: argeo-commons-2.1.73~30 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;h=c68507479e5322cb152a89df9d97350c9186cfcd;p=lgpl%2Fargeo-commons.git Add part selection listener to pseudo eclipse forms --- diff --git a/org.argeo.cms.ui/src/org/argeo/cms/ui/eclipse/forms/IPartSelectionListener.java b/org.argeo.cms.ui/src/org/argeo/cms/ui/eclipse/forms/IPartSelectionListener.java new file mode 100644 index 000000000..0f557d41f --- /dev/null +++ b/org.argeo.cms.ui/src/org/argeo/cms/ui/eclipse/forms/IPartSelectionListener.java @@ -0,0 +1,23 @@ +package org.argeo.cms.ui.eclipse.forms; + +import org.eclipse.jface.viewers.ISelection; + +/** + * Form parts can implement this interface if they want to be + * notified when another part on the same form changes selection + * state. + * + * @see IFormPart + * @since 1.0 + */ +public interface IPartSelectionListener { + /** + * Called when the provided part has changed selection state. + * + * @param part + * the selection source + * @param selection + * the new selection + */ + public void selectionChanged(IFormPart part, ISelection selection); +}