Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mdt-papyrus.dev] Edge creation


  Hi,
  Maybe this can be enhanced by letting the end user choose  the edge creation behavior in a preference ...

  Cedric

TANGUY Yann 176637 a écrit :

Hi Arthur,

 

It’s a permanent enhancement, the change was made in r4587 (org.eclipse.papyrus.diagram.common.service.AspectUnspecifiedTypeConnectionTool::handleButtonUp() method)

 

       /**

       * @see org.eclipse.gef.tools.AbstractTool#handleButtonUp(int)

       */

       protected boolean handleButtonUp(int button) {

             setCtrlKeyDown(getCurrentInput().isControlKeyDown());

 

             if(isInState(STATE_CONNECTION_STARTED)) {

                    setState(STATE_CONNECTION_WAITING_END);

                    return false;

             } else if(isInState(STATE_CONNECTION_WAITING_END)) {

                    handleCreateConnection();

             }

 

             setState(STATE_TERMINAL);

 

             if(isInState(STATE_TERMINAL | STATE_INVALID)) {

                    handleFinished();

             }

 

             return true;

       }

 

instead of

 

       /**

       * @see org.eclipse.gef.tools.AbstractTool#handleButtonUp(int)

       */

       protected boolean handleButtonUp(int button) {

             setCtrlKeyDown(getCurrentInput().isControlKeyDown());

 

             if (isInState(STATE_CONNECTION_STARTED))

                    handleCreateConnection();

             setState(STATE_TERMINAL);

 

             if (isInState(STATE_TERMINAL | STATE_INVALID)) {

                    handleFinished();

             }

 

             return true;

       }

 

Regards,

 

Yann

 

De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx] De la part de DAUSSY Arthur
Envoyé : mercredi 8 juin 2011 10:46
À : mdt-papyrus.dev@xxxxxxxxxxx
Objet : [mdt-papyrus.dev] Edge creation

 

Hi,

            I am currently working on Papyrus and I have just discovered that the edge creation method has changed. Before the edge has to be dragged from one point to another whereas now you have to click on the starting point and on the ending to create it. I would like to know if it’s a permanent enhancement or if it’s just temporary. In fact, it impacts a framework I’m working on. Can someone please confirm that it’s permanent?

 

Thanks for anybody who could help

 

Daussy Arthur


Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.

_______________________________________________ mdt-papyrus.dev mailing list mdt-papyrus.dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev

Back to the top