| java.lang.Object org.eclipse.ui.presentations.StackDropResult
StackDropResult | final public class StackDropResult (Code) | | This structure describes a drop event that will cause a dragged part
to be stacked in a position currently occupied by another part.
since: 3.0 |
Constructor Summary | |
public | StackDropResult(Rectangle snapRectangle, Object cookie) Creates a drop result
Parameters: snapRectangle - region that should be highlighted by the trackingrectangle (display coordinates) Parameters: cookie - the presentation may attach an object to this drop result in order to identify the drop location. |
Method Summary | |
public Object | getCookie() Returns the cookie for this drop result. | public Rectangle | getSnapRectangle() Returns a rectangle (screen coordinates) describing the target location
for this drop operation. |
StackDropResult | public StackDropResult(Rectangle snapRectangle, Object cookie)(Code) | | Creates a drop result
Parameters: snapRectangle - region that should be highlighted by the trackingrectangle (display coordinates) Parameters: cookie - the presentation may attach an object to this drop result in order to identify the drop location. This object will be passed back into thepresentation's add method. |
getCookie | public Object getCookie()(Code) | | Returns the cookie for this drop result. This object provided by the presentation,
but is remembered by the workbench. It will be given back to the presentation's add
method to indicate that a part is being added as a result of a drop operation.
the drop cookie for this drop result |
getSnapRectangle | public Rectangle getSnapRectangle()(Code) | | Returns a rectangle (screen coordinates) describing the target location
for this drop operation. While dragging, the tracking rectangle will
snap to this position.
a snap rectangle (not null) |
|
|