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

Hi

This email thread should be posted in the GEF newsgroup.
news://news.eclipse.org/eclipse.tools.gef

Cheers...
Anthony
--
Anthony Hunter mailto:anthonyh@xxxxxxxxxx
Software Development Manager: Eclipse Open Source Components
IBM Rational Software: Aurora / Modeling Tools
Phone: 613-591-7037



                                                                           
  From:   sebastian.bota@xxxxxxxxx                                         
                                                                           
  To:     "GEF development" <gef-dev@xxxxxxxxxxx>                          
                                                                           
  Date:   07/05/2007 09:42 AM                                              
                                                                           
  Subject Re: [gef-dev] GEF Editor HOW TO                                  
  :                                                                        
                                                                           




Thank you this helped me but now one more question.
I have my editor opened BUT i dont get the pallete. I mean the Palette is
emty, and i dont get the toolbars as well.
Can you help me on this issue to ?

Thank you !
> -----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-----
>
> _______________________________________________
> gef-dev mailing list
> gef-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/gef-dev
>


_______________________________________________
gef-dev mailing list
gef-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/gef-dev




Back to the top