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: * IPDEDropParticipant
14: *
15: */
16: public interface IPDEDropParticipant {
17:
18: /**
19: * @param targetObject The original target object
20: * @param sourceObjects The serialized / deserialized source objects (need to be reconnected)
21: * @param targetLocation ViewerDropAdapter: LOCATION_ON, LOCATION_BEFORE, LOCATION_AFTER
22: */
23: public void doDropCopy(Object targetObject, Object[] sourceObjects,
24: int targetLocation);
25:
26: /**
27: * @param targetObject The original target object
28: * @param sourceObjects The serialized / deserialized source objects (need to be reconnected)
29: * @param targetLocation ViewerDropAdapter: LOCATION_ON, LOCATION_BEFORE, LOCATION_AFTER
30: */
31: public void doDropMove(Object targetObject, Object[] sourceObjects,
32: int targetLocation);
33:
34: /**
35: * @param targetObject The original target object
36: * @param sourceObjects The serialized / deserialized source objects (need to be reconnected)
37: * @param targetLocation ViewerDropAdapter: LOCATION_ON, LOCATION_BEFORE, LOCATION_AFTER
38: */
39: public void doDropLink(Object targetObject, Object[] sourceObjects,
40: int targetLocation);
41:
42: /**
43: * @param targetObject The original target object
44: * @param sourceObjects The original source objects
45: * @param targetLocation ViewerDropAdapter: LOCATION_ON, LOCATION_BEFORE, LOCATION_AFTER
46: * @return
47: */
48: public boolean canDropCopy(Object targetObject,
49: Object[] sourceObjects, int targetLocation);
50:
51: /**
52: * @param targetObject The original target object
53: * @param sourceObjects The original source objects
54: * @param targetLocation ViewerDropAdapter: LOCATION_ON, LOCATION_BEFORE, LOCATION_AFTER
55: * @return
56: */
57: public boolean canDropMove(Object targetObject,
58: Object[] sourceObjects, int targetLocation);
59:
60: /**
61: * @param targetObject The original target object
62: * @param sourceObjects The original source objects
63: * @param targetLocation ViewerDropAdapter: LOCATION_ON, LOCATION_BEFORE, LOCATION_AFTER
64: * @return
65: */
66: public boolean canDropLink(Object targetObject,
67: Object[] sourceObjects, int targetLocation);
68:
69: }
|