Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » UML editor in Editor Registry
UML editor in Editor Registry [message #477741] Mon, 22 September 2008 15:37 Go to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi,

I've tried to use
PlatformUI.getWorkbench().getEditorRegistry().getDefaultEdit or( ".../somemodel.uml")
to get a hold of the default editor for UML models but it returns null
(I have UML installed - the version that ships with the Ganymede
modeling distribution - and on double-click the UML tree editor pops up
as expected).

I've iterated through the entries in the editor registry
(PlatformUI.getWorkbench().getEditorRegistry()) but there doensn't seem
to be one for "uml". Does the UML editor use an alternative way of
binding the extension to the editor?

Cheers,
Dimitris
Re: UML editor in Editor Registry [message #477742 is a reply to message #477741] Mon, 22 September 2008 16:36 Go to previous message
Rafael Chaves is currently offline Rafael ChavesFriend
Messages: 362
Registered: July 2009
Senior Member
Dimitrios,

I tried both getDefaultEditor("foo.uml") and getEditors("foo.uml") and
both return the UML tree editor (as part of the results, in the second
case). If I inspect the editor registry internals
(contentTypeToEditorMappings), I see the UML editor associated to the
multiple content types contributed by UML2.

Are you sure you have the UML2 plug-ins in your target platform? When
you tried to open an editor for a *.uml file, did you that in your dev
Eclipse instance or from the same instance where your own code is running?

Cheers,

Rafael

Dimitrios Kolovos wrote:
> Hi,
>
> I've tried to use
> PlatformUI.getWorkbench().getEditorRegistry().getDefaultEdit or( ".../somemodel.uml")
> to get a hold of the default editor for UML models but it returns null
> (I have UML installed - the version that ships with the Ganymede
> modeling distribution - and on double-click the UML tree editor pops up
> as expected).
>
> I've iterated through the entries in the editor registry
> (PlatformUI.getWorkbench().getEditorRegistry()) but there doensn't seem
> to be one for "uml". Does the UML editor use an alternative way of
> binding the extension to the editor?
>
> Cheers,
> Dimitris
Re: UML editor in Editor Registry [message #626941 is a reply to message #477741] Mon, 22 September 2008 16:36 Go to previous message
Rafael Chaves is currently offline Rafael ChavesFriend
Messages: 362
Registered: July 2009
Senior Member
Dimitrios,

I tried both getDefaultEditor("foo.uml") and getEditors("foo.uml") and
both return the UML tree editor (as part of the results, in the second
case). If I inspect the editor registry internals
(contentTypeToEditorMappings), I see the UML editor associated to the
multiple content types contributed by UML2.

Are you sure you have the UML2 plug-ins in your target platform? When
you tried to open an editor for a *.uml file, did you that in your dev
Eclipse instance or from the same instance where your own code is running?

Cheers,

Rafael

Dimitrios Kolovos wrote:
> Hi,
>
> I've tried to use
> PlatformUI.getWorkbench().getEditorRegistry().getDefaultEdit or( ".../somemodel.uml")
> to get a hold of the default editor for UML models but it returns null
> (I have UML installed - the version that ships with the Ganymede
> modeling distribution - and on double-click the UML tree editor pops up
> as expected).
>
> I've iterated through the entries in the editor registry
> (PlatformUI.getWorkbench().getEditorRegistry()) but there doensn't seem
> to be one for "uml". Does the UML editor use an alternative way of
> binding the extension to the editor?
>
> Cheers,
> Dimitris
Previous Topic:UML editor in Editor Registry
Next Topic:[Announce] MDT UML2 2.2.1 is available
Goto Forum:
  


Current Time: Fri Apr 19 22:36:16 GMT 2024

Powered by FUDForum. Page generated in 0.03353 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top