[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-5314) Smooks Config - Add menu on Java Mapping canvas not appearing consistently

Xue Peng (JIRA) jira-events at lists.jboss.org
Tue Dec 1 03:15:29 EST 2009


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

Xue Peng commented on JBIDE-5314:
---------------------------------

If the "Add child action " of "Add" menu is disable , they won't be added in the Add menu when the popup menu is opening.

When the selection are changed the "Add child action" will update , so the Java mapping cavas is first painted , if uesr right-click in the panel , the selection wasn't change , "Add child action" all are disable , becaues the selection if null, until user left-click on the panel to fire the selection change event.

There is a funny thing : 
If we right-click on the Java Bean figure , it will be selected on and the "selectionChangeEvent" will be trigger , but if we right-click on the panel , the "selectionChangeEvent" can be trigger. Because the "DargTracker" is different : The "DragTracker" of root editpart is MarqueeDragTraker , it doesn't change the selection when right-click up.

I have override the "handleButtonUp" method of MarqueeDragTraker to fire the selection change , it seems that this issue can be resolved in this way.



> Smooks Config - Add menu on Java Mapping canvas not appearing consistently
> --------------------------------------------------------------------------
>
>                 Key: JBIDE-5314
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-5314
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: smooks
>    Affects Versions: 3.1.0.CR1
>            Reporter: Brian Fitzpatrick
>            Assignee: Xue Peng
>             Fix For: 3.1.0.GA
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> When the Java Mapping canvas is first painted, if you right-click on the canvas to add a class you can't do so until you right click repeatedly. Then the "Add" menu is added to the popup.
> Is there something going on to prevent the "Add" menu to be added initially?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list