Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [gef-dev] GEF Editor HOW TO

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
you can try to declare an  Extensions for
"org.eclipse.core.contenttype.contentTypes" in which define your
"content-type", and then you must associate the identifier for the
content-type to your editor, so you associate the double-click on
resource with your editor opening.

But I usually use the following code to open the editor from another
point of my application:
...
Activator.getActiveWorkbenchWindow().getActivePage().openEditor(new
FileEditorInput((IFile) object), ID_EDITOR);
...

and I have never had problems.

Bye bye

sebastian.bota@xxxxxxxxx wrote:
> Hello people.
> I have created a GEF Editor and it works inside eclipse. Now, i have an
> eclipse RCP application . Iside the application i have a tree that
> represents a project and some files.
> Can anyone tell me how to open the GEF editor when double click-ing on the
> tree ?
> I tryed this:
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(....);
> BUT it does not work at all.
> can you please tell me how to open this kind of editor simply ????
> I mention that the editor is another plugin in my project.
> THANK YOU !!!!
>
> _______________________________________________
> gef-dev mailing list
> gef-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/gef-dev

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFGPxEoJDRPjKlSMUYRAtXMAJ42fsM++kRCfRI3iFUbZMJwJQAtTgCfSYKx
2aG0rtmrD8ENI+SkC6dpDXs=
=wQ9z
-----END PGP SIGNATURE-----



Back to the top