Menu integration into container components

Issue #352 resolved
Former user created an issue

The actual menu has to be integrated into container views which contains options (like classes, features, goals,...). It will make the GUI coherent with the actual menu.

  • The menu will be attached to a container component because it will be easier to use and reuse it into the application.
  • There will be a line which will link the menu to the component in order to see which component actions are related to.
  • Developer who will use the container component will have to specify if he wants the menu (at the construction), and actions in the menu (like for the global menu).

EDIT : Interface for integration is done. Menu is integrated into containers of Structural view. Integration into containers of other views/scenes remain. To integrate, handler of the container must only implements ILinkedMenuListener.

Comments (26)

  1. Matthias Schoettle
    • removed milestone

    I think it would be good if the menu is not part of the container component, so that OperationView and ParameterView (for example) can have a menu too without making them one.

    So perhaps there could be some IMenuSupport interface or something similar that these views can implement and then have to provide certain implementations for the menu. And a generic handler implementation (that all these handlers need to extend) would be able to take care of showing/creating the menu.

  2. Former user Account Deleted reporter

    References #352-Menu-Container-Component: New Menu linked + integration into BaseView and childs + refactor BaseView and childs (actionPerformed into handler) + RamRectangle.getParent(type) + replace addSelector (RamAbstractView) by addComponent to add LinkedMenu

    → <<cset d49ffc97cc5b>>

  3. Former user Account Deleted reporter

    References #352-Menu-Container-Component: temporary components like selectors or linked menus are removed when switching views in aspect scene.

    → <<cset f86f121a4b90>>

  4. Former user Account Deleted reporter

    References #352-Menu-Container-Component: integration of linked menu into attribute and operation. Refactor operation creation in controller. RAMModelUtils contains methods to extract getter and setter and to know if getter/setter of an attribuate already exists.

    → <<cset 18979a67c967>>

  5. Former user Account Deleted reporter

    References #352-Menu-Container-Component: Add menu on parameters + add handler on parameter + update MT4j to send notification when a component is translated

    → <<cset 871cc270d61b>>

  6. Former user Account Deleted reporter

    References #352-Menu-Container-Component: RamLinkedMenu listen to parent of linked rectangle in order to translate de link when the diagram is moved.

    → <<cset 86ae5fd9fd1a>>

  7. Former user Account Deleted reporter

    References #352-Menu-Container-Component: Fix bug ImplementationView with a non editable linked menu + Add menu for EnumLiteral + Remove previous edit mode and tap&hold on names + javadoc

    → <<cset 889ce5cc8d18>>

  8. Former user Account Deleted reporter

    References #352-Menu-Container-Component: menu action is initialized with the updateMenu method + parameter can add other parameters before and after + remove tap&hold in name handlers.

    → <<cset 6a9361c0b926>>

  9. Former user Account Deleted reporter

    References #352-Menu-Container-Component: switch to abstract button in class can't be disabled and shows a popup when the action is not possible + Fix issue when user drop on disabled button from sub-menu.

    → <<cset 1a3409a16884>>

  10. Former user Account Deleted reporter

    References #352-Menu-Container-Component: fix issue when operation became abstract and the button abstract in classview toggle.

    → <<cset e987f972fae9>>

  11. Former user Account Deleted reporter

    References #352-Menu-Container-Component: modification of static/not_static icon + fix bug duraction shown when tap&hold linked menu + fix bug multi-user modifying same operation signature.

    → <<cset 8a7d14d4a7c1>>

  12. Former user Account Deleted reporter

    References #352-Menu-Container-Component: fix issue add parameter before and after another parameter. Always bug when removing it.

    → <<cset 719fd6a36eac>>

  13. Former user Account Deleted reporter

    References #352-Menu-Container-Component: disable create operation/constructor of class which contains generic types if generic is not set + fix label position on linkedMenu + fix bug link not updated (translate notification sent to all childs).

    → <<cset 92a93df23ceb>>

  14. Former user Account Deleted reporter

    References #352: javadocs + clear merged javadoc + fix checkstyle errors + removed parameter delimiter when only one parameter + fix parameter delimiter position for first parameter (which crashed the app) + fix bug which doesn't show the class menu after deletion if it's not selected + multiple constructors and destructors allowed

    → <<cset ec5111cdf4f4>>

  15. Log in to comment