Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Type Selection Dialog Issues(Oddities and suggestion for improving Type Selection Dialog)
Type Selection Dialog Issues [message #954118] Mon, 22 October 2012 16:05 Go to next message
Michael Swiercz is currently offline Michael Swiercz
Messages: 2
Registered: October 2012
Junior Member
I truly appreciate the convenience of the Recent selections list in Papyrus's Type selection dialog, letting me quickly select previously used types when adding Operation parameters. Unfortunately, this only seems to work with types defined within the current model and does not apply to imported package elements (e.g. Java Primitives, other models, etc.)

Steps to repeat problem with Java Primitive Types
1. Add an operation to a class or interface.
2. Click Add Elements from Owned parameters.
3. Give parameter a name and edit the reference type by clicking ... for Type.
4. Traverse the model to the boolean Java primitive (e.g. model-> <Package Import> Java Primitive Types -> importedPackage(1) -> <<ModelLibrary>> JavaPrimitiveTypes->boolean)
5. Click OK and OK once more.
6. Click Add Elements again.
7. Assign another element name and edit its reference type.
8. boolean will be listed in Recent selections. Issue: Upon selecting boolean in the list the OK button remains disabled. The only recourse is to re-traverse the model tree to its definition.

Interestingly, when adding properties setting their type as "bool" and using CTRL-SHIFT finds its primitive declaration without a hitch. Edit: I have a sneaking suspicion that Recent Sections only retains the main model component's name rather than the full path to the component.

Feature Suggestion for Type selection dialog

1) It would be a time saver if the dialog remembered what model tree nodes were expanded rather than having to repeatedly drill down into multi-level packages.

2) When specifying a Filter value, the model tree immediately displays matching entries similar to Eclipse's Preference filter.

[Updated on: Wed, 24 October 2012 02:27]

Report message to a moderator

Re: Type Selection Dialog Issues [message #985252 is a reply to message #954118] Thu, 15 November 2012 04:04 Go to previous messageGo to next message
Andy Key is currently offline Andy Key
Messages: 3
Registered: July 2009
Junior Member
Has anyone found a workaround to this?
Re: Type Selection Dialog Issues [message #985666 is a reply to message #985252] Thu, 15 November 2012 11:12 Go to previous message
Camille Letavernier is currently offline Camille Letavernier
Messages: 415
Registered: February 2011
Senior Member
Quote:
Edit: I have a sneaking suspicion that Recent Sections only retains the main model component's name rather than the full path to the component.


No ; that's actually a bug in the search/reveal algorithm. The history retains the full URI to the selected element. However, the search algorithm is not able to browse the "import package" links, and cannot retrieve the imported libraries.

It should be fixed in Juno SR2.
Previous Topic:Guards on control flow edge
Next Topic:three files of PaPyrus model
Goto Forum:
  


Current Time: Tue Jul 22 03:36:17 EDT 2014

Powered by FUDForum. Page generated in 0.03042 seconds