Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Best Way To Load GEF Example Source?
Best Way To Load GEF Example Source? [message #217743] Mon, 12 June 2006 18:17 Go to next message
Eclipse UserFriend
Originally posted by: Daniel.Rozeboom.cda.canon.com

Hey there,

I commented on this in a recent post but I haven't heard back about it,
and I would really like to get the GEF samples up and running. What is the
best way to import the GEF example source code as a project? I'm extremely
confused about all the different forms it takes. I guess I can install a
GEF examples source code plug-in, but that doesn't seem to do anything.
The only way I have found to actually access the source code is to open
up this plug-in's src folder in Explorer and extract the ZIP files found
therein. However, there are just java files here; no documentation,
plugin.xml, or project files. I tried to load it up in a new Eclipse
project and after manually adding all the plug-in dependency jar's in my
Eclipse directory, I'm still not sure it's even loading properly. Can
anyone enlighten me as to what I'm doing wrong, or if there's a better way
to go about all this?
With Eclipse I'm used to being able to do things like right-click a
sample and say "Import source as project" or the like; however, I haven't
found a way to do that with these GEF samples. It seems like it's very easy
to install and *run* them in my primary copy of my IDE, but I want to see
the source code and tinker around with them. Thanks in advance.

- Daniel
Re: Best Way To Load GEF Example Source? [message #217750 is a reply to message #217743] Mon, 12 June 2006 19:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Daniel.Rozeboom.cda.canon.com

Well I found my own answer. I feel a little silly because the import is
pretty easy to do; on the other hand, I could not find this documented
anywhere. It seems that if you have the GEF examples loaded up as a running
plug-in along with the source plug-in itself, Eclipse enables you to
right-click a particular example plug-in and import it as a source project.
I guess somehow it knows the source plug-in is there and hooks in to open up
the zip file. Anyway, if anyone else was running into that same problem -
there ya go.

- Daniel

"Daniel Rozeboom" <Daniel.Rozeboom@cda.canon.com> wrote in message
news:e6kb30$4nl$1@utils.eclipse.org...
> Hey there,
>
> I commented on this in a recent post but I haven't heard back about it,
> and I would really like to get the GEF samples up and running. What is
> the best way to import the GEF example source code as a project? I'm
> extremely confused about all the different forms it takes. I guess I can
> install a GEF examples source code plug-in, but that doesn't seem to do
> anything.
> The only way I have found to actually access the source code is to open
> up this plug-in's src folder in Explorer and extract the ZIP files found
> therein. However, there are just java files here; no documentation,
> plugin.xml, or project files. I tried to load it up in a new Eclipse
> project and after manually adding all the plug-in dependency jar's in my
> Eclipse directory, I'm still not sure it's even loading properly. Can
> anyone enlighten me as to what I'm doing wrong, or if there's a better way
> to go about all this?
> With Eclipse I'm used to being able to do things like right-click a
> sample and say "Import source as project" or the like; however, I haven't
> found a way to do that with these GEF samples. It seems like it's very
> easy to install and *run* them in my primary copy of my IDE, but I want to
> see the source code and tinker around with them. Thanks in advance.
>
> - Daniel
>
Re: Best Way To Load GEF Example Source? [message #217759 is a reply to message #217750] Mon, 12 June 2006 21:45 Go to previous messageGo to next message
Steven R. Shaw is currently offline Steven R. ShawFriend
Messages: 128
Registered: July 2009
Senior Member
We're looking at making the GEF example source more accessible in 3.2.1.

Take a look at:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=140557

-Steve

"Daniel Rozeboom" <Daniel.Rozeboom@cda.canon.com> wrote in message
news:e6kh3s$dkc$1@utils.eclipse.org...
> Well I found my own answer. I feel a little silly because the import is
> pretty easy to do; on the other hand, I could not find this documented
> anywhere. It seems that if you have the GEF examples loaded up as a
running
> plug-in along with the source plug-in itself, Eclipse enables you to
> right-click a particular example plug-in and import it as a source
project.
> I guess somehow it knows the source plug-in is there and hooks in to open
up
> the zip file. Anyway, if anyone else was running into that same problem -
> there ya go.
>
> - Daniel
>
> "Daniel Rozeboom" <Daniel.Rozeboom@cda.canon.com> wrote in message
> news:e6kb30$4nl$1@utils.eclipse.org...
> > Hey there,
> >
> > I commented on this in a recent post but I haven't heard back about
it,
> > and I would really like to get the GEF samples up and running. What is
> > the best way to import the GEF example source code as a project? I'm
> > extremely confused about all the different forms it takes. I guess I
can
> > install a GEF examples source code plug-in, but that doesn't seem to do
> > anything.
> > The only way I have found to actually access the source code is to
open
> > up this plug-in's src folder in Explorer and extract the ZIP files found
> > therein. However, there are just java files here; no documentation,
> > plugin.xml, or project files. I tried to load it up in a new Eclipse
> > project and after manually adding all the plug-in dependency jar's in my
> > Eclipse directory, I'm still not sure it's even loading properly. Can
> > anyone enlighten me as to what I'm doing wrong, or if there's a better
way
> > to go about all this?
> > With Eclipse I'm used to being able to do things like right-click a
> > sample and say "Import source as project" or the like; however, I
haven't
> > found a way to do that with these GEF samples. It seems like it's very
> > easy to install and *run* them in my primary copy of my IDE, but I want
to
> > see the source code and tinker around with them. Thanks in advance.
> >
> > - Daniel
> >
>
>
Re: Best Way To Load GEF Example Source? [message #217766 is a reply to message #217759] Mon, 12 June 2006 22:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Daniel.Rozeboom.cda.canon.com

Mmk...At the very least, I think it would be good to have a document up
somewhere (since the 3.1 release is still widely available for download)
explaining how to import the source under the current scheme. Now that I've
figured out how to do it, it seems straightforward *enough*, but when I was
just starting to look at the samples, I could not find any information on
how to load them in that way. It seems like in general, running a GEF
sample application can be done quickly and easily, but the idea of "creating
a new GEF editor" isn't available to an end-user (for example, there's no
"File -> New GEF Editor..."). Perhaps I'm not entirely clear on the role of
GEF in the process of application development, but it seems like there is
mostly just documentation for how pre-existing GEF editors work (particuarly
the underlying MVC relationships) instead of how to actually create a new
editor based on the GEF architecture. Anyway, that's just my two cents.
Thanks for getting back to me.

- Daniel

"Steven Shaw" <steveshaw@ca.ibm.com> wrote in message
news:e6kn38$801$1@utils.eclipse.org...
> We're looking at making the GEF example source more accessible in 3.2.1.
>
> Take a look at:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=140557
>
> -Steve
>
> "Daniel Rozeboom" <Daniel.Rozeboom@cda.canon.com> wrote in message
> news:e6kh3s$dkc$1@utils.eclipse.org...
>> Well I found my own answer. I feel a little silly because the import is
>> pretty easy to do; on the other hand, I could not find this documented
>> anywhere. It seems that if you have the GEF examples loaded up as a
> running
>> plug-in along with the source plug-in itself, Eclipse enables you to
>> right-click a particular example plug-in and import it as a source
> project.
>> I guess somehow it knows the source plug-in is there and hooks in to open
> up
>> the zip file. Anyway, if anyone else was running into that same
>> problem -
>> there ya go.
>>
>> - Daniel
>>
>> "Daniel Rozeboom" <Daniel.Rozeboom@cda.canon.com> wrote in message
>> news:e6kb30$4nl$1@utils.eclipse.org...
>> > Hey there,
>> >
>> > I commented on this in a recent post but I haven't heard back about
> it,
>> > and I would really like to get the GEF samples up and running. What is
>> > the best way to import the GEF example source code as a project? I'm
>> > extremely confused about all the different forms it takes. I guess I
> can
>> > install a GEF examples source code plug-in, but that doesn't seem to do
>> > anything.
>> > The only way I have found to actually access the source code is to
> open
>> > up this plug-in's src folder in Explorer and extract the ZIP files
>> > found
>> > therein. However, there are just java files here; no documentation,
>> > plugin.xml, or project files. I tried to load it up in a new Eclipse
>> > project and after manually adding all the plug-in dependency jar's in
>> > my
>> > Eclipse directory, I'm still not sure it's even loading properly. Can
>> > anyone enlighten me as to what I'm doing wrong, or if there's a better
> way
>> > to go about all this?
>> > With Eclipse I'm used to being able to do things like right-click a
>> > sample and say "Import source as project" or the like; however, I
> haven't
>> > found a way to do that with these GEF samples. It seems like it's very
>> > easy to install and *run* them in my primary copy of my IDE, but I want
> to
>> > see the source code and tinker around with them. Thanks in advance.
>> >
>> > - Daniel
>> >
>>
>>
>
>
Re: Best Way To Load GEF Example Source? [message #217897 is a reply to message #217766] Wed, 14 June 2006 17:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mcglinn.cs.tcd.ie

Hey Daniel,

I was reading your e-mail and I am trying to do pretty much the same
thing as you did, unfortunately I dont quite understand exactly how you
went about it. I want to import the source code as my own project so
that I can mess around with the code. I have tried file->import->plugins
and fragments. But after that I am not exactly sure what to do.

You mention that eclipse enables you to right-click on a particular
example plug-in and import it as a source project, how do you go about
that exactly?

Any help is much appreciated,

Thanks,

Kris.

Daniel Rozeboom wrote:
> Mmk...At the very least, I think it would be good to have a document up
> somewhere (since the 3.1 release is still widely available for download)
> explaining how to import the source under the current scheme. Now that I've
> figured out how to do it, it seems straightforward *enough*, but when I was
> just starting to look at the samples, I could not find any information on
> how to load them in that way. It seems like in general, running a GEF
> sample application can be done quickly and easily, but the idea of "creating
> a new GEF editor" isn't available to an end-user (for example, there's no
> "File -> New GEF Editor..."). Perhaps I'm not entirely clear on the role of
> GEF in the process of application development, but it seems like there is
> mostly just documentation for how pre-existing GEF editors work (particuarly
> the underlying MVC relationships) instead of how to actually create a new
> editor based on the GEF architecture. Anyway, that's just my two cents.
> Thanks for getting back to me.
>
> - Daniel
>
> "Steven Shaw" <steveshaw@ca.ibm.com> wrote in message
> news:e6kn38$801$1@utils.eclipse.org...
>> We're looking at making the GEF example source more accessible in 3.2.1.
>>
>> Take a look at:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=140557
>>
>> -Steve
>>
>> "Daniel Rozeboom" <Daniel.Rozeboom@cda.canon.com> wrote in message
>> news:e6kh3s$dkc$1@utils.eclipse.org...
>>> Well I found my own answer. I feel a little silly because the import is
>>> pretty easy to do; on the other hand, I could not find this documented
>>> anywhere. It seems that if you have the GEF examples loaded up as a
>> running
>>> plug-in along with the source plug-in itself, Eclipse enables you to
>>> right-click a particular example plug-in and import it as a source
>> project.
>>> I guess somehow it knows the source plug-in is there and hooks in to open
>> up
>>> the zip file. Anyway, if anyone else was running into that same
>>> problem -
>>> there ya go.
>>>
>>> - Daniel
>>>
>>> "Daniel Rozeboom" <Daniel.Rozeboom@cda.canon.com> wrote in message
>>> news:e6kb30$4nl$1@utils.eclipse.org...
>>>> Hey there,
>>>>
>>>> I commented on this in a recent post but I haven't heard back about
>> it,
>>>> and I would really like to get the GEF samples up and running. What is
>>>> the best way to import the GEF example source code as a project? I'm
>>>> extremely confused about all the different forms it takes. I guess I
>> can
>>>> install a GEF examples source code plug-in, but that doesn't seem to do
>>>> anything.
>>>> The only way I have found to actually access the source code is to
>> open
>>>> up this plug-in's src folder in Explorer and extract the ZIP files
>>>> found
>>>> therein. However, there are just java files here; no documentation,
>>>> plugin.xml, or project files. I tried to load it up in a new Eclipse
>>>> project and after manually adding all the plug-in dependency jar's in
>>>> my
>>>> Eclipse directory, I'm still not sure it's even loading properly. Can
>>>> anyone enlighten me as to what I'm doing wrong, or if there's a better
>> way
>>>> to go about all this?
>>>> With Eclipse I'm used to being able to do things like right-click a
>>>> sample and say "Import source as project" or the like; however, I
>> haven't
>>>> found a way to do that with these GEF samples. It seems like it's very
>>>> easy to install and *run* them in my primary copy of my IDE, but I want
>> to
>>>> see the source code and tinker around with them. Thanks in advance.
>>>>
>>>> - Daniel
>>>>
>>>
>>
>
>
Re: Best Way To Load GEF Example Source? [message #218125 is a reply to message #217897] Mon, 19 June 2006 21:01 Go to previous message
Eclipse UserFriend
Originally posted by: Daniel.Rozeboom.cda.canon.com

Hi Kris,

The way you import it isn't using the File menu (i.e., not File /
Import... or File / New Project). Once you have the source plug-in and the
GEF example plug-in running in your main IDE, go to Window -> Show View ->
Other... -> PDE -> Plug-ins. Then find the sample plug-in in that list,
right-click it, and choose Import -> Source Project. That should load it
up; let me know if that doesn't work.

- Daniel

P.S. - Sorry I didn't reply to this earlier, I'd stopped checking the
newsgroup.

"Kris McGlinn" <mcglinn@cs.tcd.ie> wrote in message
news:e6pg7s$u8$1@utils.eclipse.org...
> Hey Daniel,
>
> I was reading your e-mail and I am trying to do pretty much the same thing
> as you did, unfortunately I dont quite understand exactly how you went
> about it. I want to import the source code as my own project so that I can
> mess around with the code. I have tried file->import->plugins and
> fragments. But after that I am not exactly sure what to do.
>
> You mention that eclipse enables you to right-click on a particular
> example plug-in and import it as a source project, how do you go about
> that exactly?
>
> Any help is much appreciated,
>
> Thanks,
>
> Kris.
>
> Daniel Rozeboom wrote:
>> Mmk...At the very least, I think it would be good to have a document
>> up somewhere (since the 3.1 release is still widely available for
>> download) explaining how to import the source under the current scheme.
>> Now that I've figured out how to do it, it seems straightforward
>> *enough*, but when I was just starting to look at the samples, I could
>> not find any information on how to load them in that way. It seems like
>> in general, running a GEF sample application can be done quickly and
>> easily, but the idea of "creating a new GEF editor" isn't available to an
>> end-user (for example, there's no "File -> New GEF Editor..."). Perhaps
>> I'm not entirely clear on the role of GEF in the process of application
>> development, but it seems like there is mostly just documentation for how
>> pre-existing GEF editors work (particuarly the underlying MVC
>> relationships) instead of how to actually create a new editor based on
>> the GEF architecture. Anyway, that's just my two cents. Thanks for
>> getting back to me.
>>
>> - Daniel
>>
>> "Steven Shaw" <steveshaw@ca.ibm.com> wrote in message
>> news:e6kn38$801$1@utils.eclipse.org...
>>> We're looking at making the GEF example source more accessible in 3.2.1.
>>>
>>> Take a look at:
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=140557
>>>
>>> -Steve
>>>
>>> "Daniel Rozeboom" <Daniel.Rozeboom@cda.canon.com> wrote in message
>>> news:e6kh3s$dkc$1@utils.eclipse.org...
>>>> Well I found my own answer. I feel a little silly because the import
>>>> is
>>>> pretty easy to do; on the other hand, I could not find this documented
>>>> anywhere. It seems that if you have the GEF examples loaded up as a
>>> running
>>>> plug-in along with the source plug-in itself, Eclipse enables you to
>>>> right-click a particular example plug-in and import it as a source
>>> project.
>>>> I guess somehow it knows the source plug-in is there and hooks in to
>>>> open
>>> up
>>>> the zip file. Anyway, if anyone else was running into that same
>>>> problem -
>>>> there ya go.
>>>>
>>>> - Daniel
>>>>
>>>> "Daniel Rozeboom" <Daniel.Rozeboom@cda.canon.com> wrote in message
>>>> news:e6kb30$4nl$1@utils.eclipse.org...
>>>>> Hey there,
>>>>>
>>>>> I commented on this in a recent post but I haven't heard back about
>>> it,
>>>>> and I would really like to get the GEF samples up and running. What
>>>>> is
>>>>> the best way to import the GEF example source code as a project? I'm
>>>>> extremely confused about all the different forms it takes. I guess I
>>> can
>>>>> install a GEF examples source code plug-in, but that doesn't seem to
>>>>> do
>>>>> anything.
>>>>> The only way I have found to actually access the source code is to
>>> open
>>>>> up this plug-in's src folder in Explorer and extract the ZIP files
>>>>> found
>>>>> therein. However, there are just java files here; no documentation,
>>>>> plugin.xml, or project files. I tried to load it up in a new Eclipse
>>>>> project and after manually adding all the plug-in dependency jar's in
>>>>> my
>>>>> Eclipse directory, I'm still not sure it's even loading properly. Can
>>>>> anyone enlighten me as to what I'm doing wrong, or if there's a better
>>> way
>>>>> to go about all this?
>>>>> With Eclipse I'm used to being able to do things like right-click a
>>>>> sample and say "Import source as project" or the like; however, I
>>> haven't
>>>>> found a way to do that with these GEF samples. It seems like it's
>>>>> very
>>>>> easy to install and *run* them in my primary copy of my IDE, but I
>>>>> want
>>> to
>>>>> see the source code and tinker around with them. Thanks in advance.
>>>>>
>>>>> - Daniel
>>>>>
>>>>
>>>
>>
Previous Topic:image memory release problem in palette
Next Topic:After changing figure, bounding box of old figure is still drawn
Goto Forum:
  


Current Time: Thu Sep 26 20:41:45 GMT 2024

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

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

Back to the top