01: /*******************************************************************************
02: * Copyright (c) 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.ui.editor;
11:
12: /**
13: * IPDEDragParticipant
14: *
15: */
16: public interface IPDEDragParticipant {
17:
18: /**
19: * @param sourceObjects The original source objects
20: * @return
21: */
22: public boolean canDragCopy(Object[] sourceObjects);
23:
24: /**
25: * @param sourceObjects The original source objects
26: * @return
27: */
28: public boolean canDragMove(Object[] sourceObjects);
29:
30: /**
31: * @param sourceObjects The original source objects
32: * @return
33: */
34: public boolean canDragLink(Object[] sourceObjects);
35:
36: /**
37: * @param sourceObjects The serialized / deserialized source objects (need to be reconnected)
38: */
39: public void doDragRemove(Object[] sourceObjects);
40:
41: /**
42: * @return
43: */
44: public int getSupportedDNDOperations();
45:
46: }
|