[jbosstools-issues] [JBoss JIRA] (JBIDE-15499) Support drag'n'drop of links to "connectors" similar to marketplace to central for auto install

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Mon Sep 23 05:48:06 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-15499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12806361#comment-12806361 ] 

Snjezana Peco commented on JBIDE-15499:
---------------------------------------

{quoute}
which mechanism is it you would use to register DND ?
{quote}

{code}
DropTarget target = new DropTarget(control, DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK);
target.setTransfer(new Transfer[] { URLTransfer.getInstance() });
...
target.addDropListener(...);
{code}		

{quote}
looks like DropTarget is a bit tricky but they seem to have added api to get listeners - at least that is what https://bugs.eclipse.org/bugs/show_bug.cgi?id=215388 documents.
{quote}

We would use that API if the MPC client used it too. However, the MPC client doesn't use the API so if our plugin would register DND before the MPC client, the MPC client would throw an annoying exception that would propose to shutdown Eclipse. We can't control the order in which DNDs are registered.
I can create a bug against MPC and add a patch if you want.

I have created a PR.
 
If you don't have the MPC plugin, you will be able to drag an url to an Eclipse instance (the toolbar, menu, or a view or editor that doesn't have a drop target).
Otherwise, you can drag it to the JBoss Central editor. The MPC plugin will work as usual.

The installation works as follows:

- if some connector can't be found or is already installed, Eclipse will show a dialog with those informations and allows a user to continue or stop the installation.

If the user wants to continue with the installation, Eclipse will call the standard P2's install wizard (including the Remediation page). I will fix JBIDE-14794 immediately after applying this PR.

See http://screencast.com/t/e6lmfJktil. The screencast uses the https://devstudio.jboss.com/central/install?connector=org.tigris.subversion.subclipse.mylyn,org.jboss.tools.arquillian,org.eclipse.m2e url.
                
> Support drag'n'drop of links to "connectors" similar to marketplace to central for auto install
> -----------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-15499
>                 URL: https://issues.jboss.org/browse/JBIDE-15499
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: central
>            Reporter: Max Rydahl Andersen
>            Assignee: Snjezana Peco
>            Priority: Blocker
>             Fix For: 4.1.1.Beta1
>
>
> usecase is that you can have a link to a connector, such as JBDS-IS could be installed by drag'n'drop to jboss tools or jbds.
> Similar to eclipse marketplace for marketplace urls something like:
> * https://devstudio.jboss.com/central/install?connector=com.jbds.integration-stack.bpel,org.eclipse.m2e or 
> * http://download.jboss.org/jbosstools/central/install?CID=com.jbds.integration-stack.bpel,org.eclipse.m2e
> would install the two connectors named "com.jbds.integration-stack.bpel" and "org.eclipse.m2e"
> This would allow drag'n'drop install from html docs.
> Consider also supporting this from any clipboard object (eg., dragged from an Acrobat Reader PDF or Microsoft Office doc). Would need to ensure we do lots of platform testing.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list