Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mdt-papyrus.dev] Palette Drag-and-Drop Problem

The solution that you have mentioned :

 

Visual stereotype element type (e.g., Block_2008) specializes

     Stereotype element type (e.g., Block) specializes

         UML element type (e.g., Class) *

     Visual UML element type (e.g., Class_2008) specializes *

         UML element type (e.g., Class) *

 

It runs and sounds nice, we cancapitalize on semantic of our profile, and we can choose the presentation of ours element if the diagram.

Patrick

 

De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx] De la part de Christian W. Damus
Envoyé : lundi 9 mars 2015 14:52
À : Papyrus Project list
Objet : Re: [mdt-papyrus.dev] Palette Drag-and-Drop Problem

 

It is worth noting, however, that the proxy element types mentioned by Patrick actually do implement something like this.  Is you generate your element types for your profile with reference to the core UML semantic types model, then the visual element types are created on the fly by the modelling assistants provider using the proxy types.  These have the dual semantic/visual heritage that you need.

 

Of course, for now it is only the modelling assistants that implement this.  I think it would be nice to have the option to generate that pattern in the models.

 

Christian 

 

 

On Mon, Mar 9, 2015 at 9:39 AM, Christian W. Damus <give.a.damus@xxxxxxxxx> wrote:

Hi, Benoit,

 

This sounds like something I should fix/improve in the generation of element types for profiles.

 

If I understand correctly, what is generated now is something like:

 

  Visual Stereotype element type (e.g., Block_2008) specializes

     Visual UML element type (e.g., Class_2008) specializes

         UML element type  (e.g., Class) *

 

whereas what you need is

 

  Visual stereotype element type (e.g., Block_2008) specializes

     Stereotype element type (e.g., Block) specializes

         UML element type (e.g., Class) *

     Visual UML element type (e.g., Class_2008) specializes *

         UML element type (e.g., Class) *

 

(where the asterisked items are not generated but existing models that referenced are referenced by the generation process)

 

So that, in fact, the generation of element types is in two parts:  generating a semantic element types model for the profile and then, on a per-diagram-basis, generating the visual element types.  This would imply a change in the wizard to ask the user to reference two element types models, not just one:

 

  Generate a profile semantic element types model (or reference an existing one)

  Reference a diagram’s visual element types model

 

Comments?

 

Thanks,

 

Christian

 

 

On Thu, Mar 5, 2015 at 3:48 AM, MAGGI Benoit <Benoit.MAGGI@xxxxxx> wrote:

Hi Önder,

 

I managed to make something works for Sysml 1.4. I followed these steps :

-        Generate the “semantic” element type

-        Generate the “graphical” element type (with hint and visual id at the end of the id)

-        Generate the palette using “graphical” element type (I had to make some change in the generator to group the graphical element by semantic)

 

ð  I can create the elements with the palette (not sure if everything is working fine)

 

It is obviously not the best solution : The “graphical” elements are using the uml “graphical” elements as specialized Types ID (and not the semantic element type created from the profile)

 

However I will stick to this solution to make a first implementation.

Then I will replace the specialized type of “graphical” element type to use the “semantic” one and make some change in the code to keep everything working.  

 

Regards,

Benoit

 

De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx] De la part de GÜRCAN Onder
Envoyé : mercredi 25 février 2015 16:08
À : Papyrus Project list
Objet : [PROVENANCE INTERNET] [mdt-papyrus.dev] Palette Drag-and-Drop Problem

 

Hi,

 

Has anybody have any idea what can be the reason not being able to drag-and-drop an item from a palette to a diagram? I generated a palette for UML-RT (attached), it is loaded well, but I cannot drag-and-drop and there is no exception. Any ideas?

 

Thanks in advance,

 

Best,

 

Önder GÜRCAN

Research Engineer

Commission for Atomic Energy and Alternative Energies (CEA)

Direction of Technological Research (DRT)

Systems and Technology Integration Laboratory (LIST)

Software and Systems Engineering Department (DILS)

Model-driven Engineering for Embedded Systems Laboratory (LISE)

<image001.jpg>

Commissariat à l’énergie atomique et aux énergies alternatives (CEA)

Paris-Saclay Campus - Nano-INNOV | Bât. 862-PC1087 | F-91191 Gif-sur-Yvette Cedex

T. +33 (0)1 69 08 00 07  |  F. +33 (0)1 69 08 83 95  |

Onder.GURCAN@xxxxxx   |  Search Onder  |  LinkedIn  Papyrus

 

 

 


Back to the top