Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Paolo F Cantoni on May 05, 2008, 05:50:06 pm

Title: Object/Instance to Classifier (in Browser)
Post by: Paolo F Cantoni 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
Title: Re: Object/Instance to Classifier (in Browser)
Post by: thomas.kilian 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.
Title: Re: Object/Instance to Classifier (in Browser)
Post by: «Midnight» 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?
Title: Re: Object/Instance to Classifier (in Browser)
Post by: «Midnight» 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?
Title: Re: Object/Instance to Classifier (in Browser)
Post by: KP 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.
Title: Re: Object/Instance to Classifier (in Browser)
Post by: KP 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.
Title: Re: Object/Instance to Classifier (in Browser)
Post by: KP 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...
Title: Re: Object/Instance to Classifier (in Browser)
Post by: Paolo F Cantoni 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
Title: Re: Object/Instance to Classifier (in Browser)
Post by: peter.zrnko 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.
Title: Re: Object/Instance to Classifier (in Browser)
Post by: thomas.kilian on May 06, 2008, 07:20:42 pm
Quote
I'll log the feature request...
Cheers :)
Title: Re: Object/Instance to Classifier (in Browser)
Post by: Paolo F Cantoni 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
Title: Re: Object/Instance to Classifier (in Browser)
Post by: thomas.kilian 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).
Title: Re: Object/Instance to Classifier (in Browser)
Post by: Eve 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.

Title: Re: Object/Instance to Classifier (in Browser)
Post by: DanG83616 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
Title: Re: Object/Instance to Classifier (in Browser)
Post by: DanG83616 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.
Title: Re: Object/Instance to Classifier (in Browser)
Post by: DanG83616 on May 08, 2008, 08:45:15 am
Well, I gave myself a bad answer. Setting the instance type again wiped out all the flows I had previously connected. It also stacked all the ports in the default location (next to each other in the upper left of the component box). So, I'm still looking for a nice way to use component instances in composite diagrams AND allow for iteration.
Title: Re: Object/Instance to Classifier (in Browser)
Post by: Paolo F Cantoni on May 08, 2008, 11:33:14 am
Quote
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.

Thanks SImon... Tracked it down...  When I try to enter Ctrl+Alt+G EA recognizes the Ctrl+Alt but when I hit G, stays as Ctrl+Alt  - same thing in UltraEdit.

Ctrl+Alt+G appears to be "snaffled" by Google desktop!  I had a quick look at the preferences for Google Desktop to stop it... But I couldn't see how...  Does anyone know?

TIA,
Paolo
Title: Re: Object/Instance to Classifier (in Browser)
Post by: Eve on May 08, 2008, 02:58:02 pm
Good to hear you've worked it out.

Sorry I can't help with Google Desktop.  I've never used it.
Title: Ctrl+Alt+G "snaffled" by Google Desktop - FIX!
Post by: Paolo F Cantoni on May 08, 2008, 08:47:06 pm
Form the Google Desktop support section:

- Ctrl-Alt-G or Windows-G
This keyboard shortcut places the cursor in the search box of your Google Desktop Deskbar, sidebar, or Floating Deskbar. You can also press the G-Windows keys.

If you'd like to disable this shortcut, you can do so by editing the Windows system registry. Please note that editing the Windows registry is an advanced process, so you might want to contact your system administrator. If you decide to edit the registry, please follow these steps:

1. In "HKEY_CURRENT_USER\Software\Google\Google Desktop\Preferences," create a DWORD value named "hot_key_flags."
2. Set this value to "2" to disable only Ctrl-Alt-G, to "1" to disable only Windows-G, or to "0" to disable both Ctrl-Alt-G and Windows-G.
3. Restart your computer.

Enjoy...
Paolo