Bug 271642 - Drag'n'Drop of AnyExtension needs a specific extension point.
Summary: Drag'n'Drop of AnyExtension needs a specific extension point.
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sca (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Stephane Drapeau CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2009-04-08 10:53 EDT by Maxime Porhel CLA
Modified: 2017-03-30 14:20 EDT (History)
2 users (show)

See Also:


Attachments
DragAndDropAnyExtension extension point (17.02 KB, patch)
2009-04-08 10:56 EDT, Maxime Porhel CLA
Stephane.Drapeau: iplog+
Details | Diff
EditPolicy for the Drag and Drop of AnyExtension through the extension point. (2.05 KB, patch)
2009-04-14 09:57 EDT, Maxime Porhel CLA
Stephane.Drapeau: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Porhel CLA 2009-04-08 10:53:33 EDT
Plugins can provide new Drag'n'Drop implementations for implementation of components and interface of services/references.

These implementation are provided through two extension point : DragAndDropImplementation and DragAndDropInterface.

The SCA metamodel can be extended with new plugins : for exemple new concepts can be added by extending the AnyExtension class.

These new plugin should be able to provide new drag'n'drop implementation, so a new extension point DragAndDropAnyExtension can be added to the designer.

There is now one drop listener which is based on SelectionTransfer, it enavles the drag'n'frop from the following views : Navigator, Package Explorer, ...

Another drop listener based on TextTransfer should be added in order to enable drag'n'drop from other types of view.
Comment 1 Maxime Porhel CLA 2009-04-08 10:56:01 EDT
Created attachment 131296 [details]
DragAndDropAnyExtension extension point

This patch add a new extension point to the SCA Designer : DragAndDropAnyExtension.

It brings a TextTransfer drop listener and an edit policy to treat drop request from provided AnyExtension drag'n'drop.
Comment 2 Stephane Drapeau CLA 2009-04-14 09:38:51 EDT
Hi Maxime,

It appears that org.eclipse.stp.sca.diagram.dnd.DragDropAnyExtensionTypeEditPolicy is missing.
Comment 3 Maxime Porhel CLA 2009-04-14 09:57:04 EDT
Created attachment 131768 [details]
EditPolicy for the Drag and Drop of AnyExtension through the extension point.

Here is the edit policy...
Comment 4 Stephane Drapeau CLA 2009-04-14 11:30:35 EDT
Thanks Maxime for your contribution. Commit #3048
Comment 5 Vincent Zurczak CLA 2011-03-25 08:32:20 EDT
Close old bugs.