Recompiling examples [message #197318] |
Mon, 03 October 2005 04:06 |
Eclipse User |
|
|
|
Originally posted by: alextret.yahoo.com
GEF comes with examples (including source code). I have no problem running
them.
However, I'd like to be able to recompile them. This appears to be not
straightforward, as source code for the examples does not include any
project configuration files (it is just Java). I believe, that one has to
know quite a bit about eclipse (and abouth the specific plugin) to
recreate configuration files specifying extension points etc. This
situation is not specific to GEF, it appears to be common for all plugins
available from http://www.eclipse.org
So far, I was unable to find any instructions on how to recompile the
examples. The closest I could get, are the following instructions on how
to recompile the whole of the Eclipse:
http://download.eclipse.org/eclipse/downloads/drops/R-3.1-20 0506271435/srcIncludedBuildInstructions.html
Is their an easy way to recompile Eclipse examples? I did try to use File -
Import in various combinations, but it goes nowhere. To import, I need to
have a project in place. And to create a project, I need to specify all sort
of configuration options ...
|
|
|
Re: Recompiling examples [message #197326 is a reply to message #197318] |
Mon, 03 October 2005 04:07 |
Eclipse User |
|
|
|
Originally posted by: zx.us.ibm.com
Alexei Tretiakov wrote:
> GEF comes with examples (including source code). I have no problem running
> them.
>
> However, I'd like to be able to recompile them. This appears to be not
> straightforward, as source code for the examples does not include any
> project configuration files (it is just Java). I believe, that one has to
> know quite a bit about eclipse (and abouth the specific plugin) to
> recreate configuration files specifying extension points etc. This
> situation is not specific to GEF, it appears to be common for all plugins
> available from http://www.eclipse.org
>
> So far, I was unable to find any instructions on how to recompile the
> examples. The closest I could get, are the following instructions on how
> to recompile the whole of the Eclipse:
> http://download.eclipse.org/eclipse/downloads/drops/R-3.1-20 0506271435/srcIncludedBuildInstructions.html
>
> Is their an easy way to recompile Eclipse examples? I did try to use File -
> Import in various combinations, but it goes nowhere. To import, I need to
> have a project in place. And to create a project, I need to specify all sort
> of configuration options ...
>
>
File a bug for this I think just to be safe. You should be able to just
import the project and have it compile, if I recall, I've had cases
where this wasn't true for some of the samples.
|
|
|
Re: Recompiling examples [message #197342 is a reply to message #197326] |
Mon, 03 October 2005 09:08 |
Eclipse User |
|
|
|
Originally posted by: alextret.yahoo.com
> File a bug for this I think just to be safe. You should be able to just
> import the project and have it compile, if I recall, I've had cases where
> this wasn't true for some of the samples.
I doubt that it is a bug, as with UML2 it is exactly the same situation. It
is a bug in a sense that nobody cares to document some important aspects
(what use are examples if in order to make them work one needs to have an
in-depth understanding of the platform?).
I actually figured out how to "import a project" following
http://eclipsewiki.editme.com/HackingEclipseItself, but it is not much help
as the resulting "project" would not compile or run (I can see Java files as
part of the project, but if I introduce syntactic errors, Build All does not
find them).
|
|
|
|
Re: Recompiling examples [message #197380 is a reply to message #197342] |
Mon, 03 October 2005 15:27 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
You need to import a plug-in, not a project.
"Alexei Tretiakov" <alextret@yahoo.com> wrote in message
news:dhqrdr$p25$1@news.eclipse.org...
>> File a bug for this I think just to be safe. You should be able to just
>> import the project and have it compile, if I recall, I've had cases where
>> this wasn't true for some of the samples.
>
> I doubt that it is a bug, as with UML2 it is exactly the same situation.
> It is a bug in a sense that nobody cares to document some important
> aspects (what use are examples if in order to make them work one needs to
> have an in-depth understanding of the platform?).
>
> I actually figured out how to "import a project" following
> http://eclipsewiki.editme.com/HackingEclipseItself, but it is not much
> help as the resulting "project" would not compile or run (I can see Java
> files as part of the project, but if I introduce syntactic errors, Build
> All does not find them).
>
|
|
|
Re: Recompiling examples [message #197537 is a reply to message #197350] |
Tue, 04 October 2005 10:17 |
Eclipse User |
|
|
|
Originally posted by: alextret.yahoo.com
It did work.
Thank you very much.
"Nicolai Guba" <nicolai_guba@scee.net> wrote in message
news:1128342372.651525@joshua.ni.scee.sony.co.uk...
> Alexei Tretiakov wrote:
>
>> Is their an easy way to recompile Eclipse examples? I did try to use File
>> - Import in various combinations, but it goes nowhere. To import, I need
>> to have a project in place. And to create a project, I need to specify
>> all
>> sort of configuration options ...
>
> Hmmm, what always worked for me was the following
>
> 1. Open Plug-in development perspective
> 2. Select the Plugins tab on the same panel as the Package Explorer
> 3. Select the example and right-click to import as sources
> 4. Sometimes fix minor issues with plugin.xml (had to remove the
> availableAsShortcut property in the <wizard> section to get the latest one
> to work [org.eclipse.gef.examples.logic])
>
> Compiles and runs perfectly inside my Eclipse 3.1.1
>
> Hope this helps...
> --
> Nicolai Guba
> +44.(0)151.282.3709
> Sony Computer Entertainment Europe
> http://www.scee.com
|
|
|
Powered by
FUDForum. Page generated in 0.03149 seconds