Book a Demo

Author Topic: Object/Instance to Classifier (in Browser)  (Read 8499 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Object/Instance to Classifier (in Browser)
« on: May 05, 2008, 05:50:06 pm »
Hi,

Does anyone know of any easy method from getting from an object in a sequence diagram to locating the object's classifier in the browser?

There's a function to open the classifier properties, but you can't do an "alt-G" from there...

What I'm looking for is the equivalent of the (non-existent) key combination: Ctrl-Alt-G Locate Classifier in browser

Which would be active if the element were an instance/object and it had an assigned classifier.

So, before I submit a feature request, is there already a mechanism to do this and if not, is there any support for the idea?

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

thomas.kilian

  • Guest
Re: Object/Instance to Classifier (in Browser)
« Reply #1 on: May 05, 2008, 05:59:38 pm »
When you're at it: I'm missing the reverse function to locate objects that are classified by an object. Currently this only works when the objects are in diagrams where you can distinguish between Link/Classifier. But if (for any reason) the object is not in a diagram you can not find classified elements.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Object/Instance to Classifier (in Browser)
« Reply #2 on: May 05, 2008, 10:14:53 pm »
Perhaps we need something like the 'find in project browser' feature, but it would highlight several instances (in such cases as this).

Would that be appropriate?
No, you can't have it!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Object/Instance to Classifier (in Browser)
« Reply #3 on: May 05, 2008, 10:27:27 pm »
While I've got my mind open to this page...

Is there any way for us to highlight entries in the Project Browser through the API? [At least without opening a diagram or highlighting an element, that is.] Off hand I don't think so, but I might be missing something.

Perhaps that would be a useful feature for a lot of things.

What say ye?
No, you can't have it!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Object/Instance to Classifier (in Browser)
« Reply #4 on: May 06, 2008, 09:26:16 am »
Quote
Does anyone know of any easy method from getting from an object in a sequence diagram to locating the object's classifier in the browser?
Right-click > Find > Locate Classifier in Project Browser (Ctrl+Alt+G)

EDIT: I know of one situation where this doesn't work, and that is when you Add New Element from the Set Element Classifier dialog: the Project Browser doesn't get refreshed so a Ctrl+Alt+G won't find the newly created classifier unless you do a reload (Ctrl+Shift+F11). Someone is working on a fix for this.
« Last Edit: May 06, 2008, 02:38:59 pm by KP »
The Sparx Team
[email protected]

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Object/Instance to Classifier (in Browser)
« Reply #5 on: May 06, 2008, 09:32:01 am »
Quote
Is there any way for us to highlight entries in the Project Browser through the API? [At least without opening a diagram or highlighting an element, that is.] Off hand I don't think so, but I might be missing something.
Maybe Repository.ShowInProjectView is what you need. I haven't used it myself, but the help says:

Quote
Selects a specified object in the Project Browser window.

Parameters:

Item: Object - the object to highlight.
Accepted object types are Package, Element, Diagram, Attribute, and Method. An exception is thrown if the object is of an invalid type.
The Sparx Team
[email protected]

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Object/Instance to Classifier (in Browser)
« Reply #6 on: May 06, 2008, 09:34:50 am »
Quote
When you're at it: I'm missing the reverse function to locate objects that are classified by an object. Currently this only works when the objects are in diagrams where you can distinguish between Link/Classifier. But if (for any reason) the object is not in a diagram you can not find classified elements.
You are correct, Ctrl+U doesn't find classified objects that aren't in diagrams. I'll log the feature request...
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Object/Instance to Classifier (in Browser)
« Reply #7 on: May 06, 2008, 03:37:53 pm »
Quote
Quote
Does anyone know of any easy method from getting from an object in a sequence diagram to locating the object's classifier in the browser?
Right-click > Find > Locate Classifier in Project Browser (Ctrl+Alt+G)
Thanks Neil,

Glad I asked... However the keyboard shortcut doesn't seem to work (that's why I claimed it was non-existent).  Can you or anyone confirm or deny the shortcut does/doesn't work?

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

peter.zrnko

  • EA User
  • **
  • Posts: 253
  • Karma: +0/-0
    • View Profile
Re: Object/Instance to Classifier (in Browser)
« Reply #8 on: May 06, 2008, 04:49:00 pm »
The shortcut Ctrl+Alt+G is working for me. It has found the classifier (in project browser) of an object from a sequence diagram.

I also have problems with one standard shortcut. Ctrl+Alt+A is not working for me. It should change the connector style of selected connector. For me it does nothing. But it is local to my PC, because it works for my colleagues.
Peter

thomas.kilian

  • Guest
Re: Object/Instance to Classifier (in Browser)
« Reply #9 on: May 06, 2008, 07:20:42 pm »
Quote
I'll log the feature request...
Cheers :)
« Last Edit: May 06, 2008, 07:21:48 pm by thomas.kilian »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Object/Instance to Classifier (in Browser)
« Reply #10 on: May 06, 2008, 07:31:38 pm »
Quote
Glad I asked... However the keyboard shortcut doesn't seem to work (that's why I claimed it was non-existent).  Can you or anyone confirm or deny the shortcut does/doesn't work?

Paolo
Looks like it's local to my machine also...

Can anybody suggest where to go looking for the problem/solution?  FWIW I'm running Vistaaagh!

TIA,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

thomas.kilian

  • Guest
Re: Object/Instance to Classifier (in Browser)
« Reply #11 on: May 07, 2008, 04:10:39 am »
For me it's working. Maybe you could try whether other ALT-CTRL shortcuts work (to see whether any combination is sorted out by Windoze before reaching the app).

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Object/Instance to Classifier (in Browser)
« Reply #12 on: May 07, 2008, 08:06:37 am »
Try opening Tools | Customize | Keyboard.

Press Ctrl+Alt+G the new new shortcut key field.  What does it say below.  (For me it says ???? so it's assigned but there isn't a menu associated with it)  But it should say something.  If it doesn't some other application (such as windows display utils) is stealing the combination, but something coming up here isn't a guarantee that it doesn't happen when there is a modal dialog open.

If it comes up with a named item, find that item and give it a different shortcut.


DanG83616

  • EA User
  • **
  • Posts: 180
  • Karma: +0/-0
    • View Profile
Re: Object/Instance to Classifier (in Browser)
« Reply #13 on: May 08, 2008, 05:58:06 am »
I'm creating composite diagrams to show component "assemblies." These assemblies might have more than one instance of a component so I'm dropping instances rather than links. I'm troubled that changes to the classifier do not propagate to the instances thereafter. The relationship does show up in the hierarchy view. Is there a way to cause a synchronization between object and classifier?

thx, Dang

DanG83616

  • EA User
  • **
  • Posts: 180
  • Karma: +0/-0
    • View Profile
Re: Object/Instance to Classifier (in Browser)
« Reply #14 on: May 08, 2008, 07:44:17 am »
Answered my own question... Just set instance type again and any changes will take effect in the instance.