| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.ecf.presence.ui"> |
| <annotation> |
| <appInfo> |
| <meta.schema plugin="org.eclipse.ecf.presence.ui" id="rosterViewerDropTarget" name="Roster Viewer Drop Target"/> |
| </appInfo> |
| <documentation> |
| This extension point allows drop targets to be specified for the MultiRosterView. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <complexType> |
| <sequence> |
| <element ref="dropTarget" minOccurs="1" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="point" type="string" use="required"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| <appInfo> |
| <meta.attribute translatable="true"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="dropTarget"> |
| <annotation> |
| <documentation> |
| Drop target element. |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="class" type="string" use="required"> |
| <annotation> |
| <documentation> |
| Class for roster viewer drop target. Must implement <b>org.eclipse.ecf.presence.ui.dnd.IRosterViewerDropTarget</b>. Required. |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="java" basedOn="org.eclipse.ecf.presence.ui.dnd.IRosterViewerDropTarget"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="since"/> |
| </appInfo> |
| <documentation> |
| 1.0.0 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="examples"/> |
| </appInfo> |
| <documentation> |
| <pre> |
| <extension |
| point="org.eclipse.ecf.presence.ui.rosterViewerDropTarget"> |
| <dropTarget |
| class="org.eclipse.ecf.presence.collab.ui.TextRosterViewerDropTarget"> |
| </dropTarget> |
| </extension> |
| |
| </pre> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="apiInfo"/> |
| </appInfo> |
| <documentation> |
| <pre> |
| /** |
| * Roster viewer drop target. This interface defines the |
| * required methods for implementers of the rosterViewerDropTarget |
| * extension point. |
| */ |
| public interface IRosterViewerDropTarget { |
| |
| /** |
| * Validates dropping on the given roster item. This method is called whenever some |
| * aspect of the drop operation changes. |
| * |
| * @param target the object that the mouse is currently hovering over, or |
| * <code>null</code> if the mouse is hovering over empty space |
| * @param operation the current drag operation (copy, move, etc.) |
| * @param transferType the current transfer type |
| * @return <code>true</code> if the drop is valid, and <code>false</code> |
| * otherwise |
| */ |
| public boolean validateDrop(IRosterItem rosterItem, int operation, |
| TransferData transferType); |
| |
| /** |
| * Performs any work associated with the drop. |
| * |
| * @param data the drop data |
| * @return <code>true</code> if the drop was successful, and |
| * <code>false</code> otherwise |
| */ |
| |
| public boolean performDrop(Object data); |
| } |
| |
| </pre> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="implementation"/> |
| </appInfo> |
| <documentation> |
| No supplied implementation. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="copyright"/> |
| </appInfo> |
| <documentation> |
| Copyright (c) 2004 Composent, Inc. and others. |
| 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: Composent, Inc. - initial API and implementation |
| </documentation> |
| </annotation> |
| |
| </schema> |