Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Creating Eclipse projects from the example sources
Creating Eclipse projects from the example sources [message #154243] Fri, 15 October 2004 05:28 Go to next message
Eclipse UserFriend
Originally posted by: ranjit.notMyId.com

Hi,

I wanted to try my hand at modifying the Shapes example so that I can
play around with GEF. However, I am unable to get the project up and
running. I have tried it n times and is really getting frustating for
me. I am missing something silly may be.

This is what I have been trying.

Approach I
1) Create a new Multi-page editor plugin project
2) Remove the default created java classes and replace them with the
shapes src files (the whole org package).
3) Refresh the project to get the new files.
4) Add the GEF/Draw2D and UI-Views plugins as dependencies (also tried
adding them as external jars in build path and not dependencies).
5) Change plugin.xml to reflect the new class names for editor, plugin
and wizard

Approach II
1) Create a simple empty project
2) Get the .project, .classpath, plugin.xml files from the CVS for the
shapes example ( [Tools_Project] / org.eclipse.gef.examples.shapes /)
and copy them into the empty project.
3) Copy the shape src files into the src dir of this project.

In both the above cases I don't get a single error in compilation.
However when I try to run in a new workbench I first get
ExceptionInInitialzerError and then later a NoClassDefFound error for
the Editor.
Similarly I get errors with the wizard.
I removed the shapes plugin from the main eclipse plugin dir and edited
the feature.xml file in the feature/gif-examples dir to make sure that
there isn't a clash between my project and the installed shape example
plugin.

Any clues/suggestions for me?

Thanks
Re: Creating Eclipse projects from the example sources [message #154269 is a reply to message #154243] Fri, 15 October 2004 15:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Use the PDE import wizard to import the source.
Re: Creating Eclipse projects from the example sources [message #154280 is a reply to message #154243] Fri, 15 October 2004 15:47 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
i.e., right-click in Package Explorer, Import -> External plugins and
fragments.
Also, once you've imported it in your workspace, remember that the runtime
target should include the project in the workspace (that has your changes)
and not the one in the plug-ins directory. To fix this, Window ->
Preferences -> Plugin Development -> Target Platform and click on "Not in
workspace."

"Ranjit" <ranjit@notMyId.com> wrote in message
news:cknmqv$oeh$1@eclipse.org...
> Hi,
>
> I wanted to try my hand at modifying the Shapes example so that I can
> play around with GEF. However, I am unable to get the project up and
> running. I have tried it n times and is really getting frustating for
> me. I am missing something silly may be.
>
> This is what I have been trying.
>
> Approach I
> 1) Create a new Multi-page editor plugin project
> 2) Remove the default created java classes and replace them with the
> shapes src files (the whole org package).
> 3) Refresh the project to get the new files.
> 4) Add the GEF/Draw2D and UI-Views plugins as dependencies (also tried
> adding them as external jars in build path and not dependencies).
> 5) Change plugin.xml to reflect the new class names for editor, plugin
> and wizard
>
> Approach II
> 1) Create a simple empty project
> 2) Get the .project, .classpath, plugin.xml files from the CVS for the
> shapes example ( [Tools_Project] / org.eclipse.gef.examples.shapes /)
> and copy them into the empty project.
> 3) Copy the shape src files into the src dir of this project.
>
> In both the above cases I don't get a single error in compilation.
> However when I try to run in a new workbench I first get
> ExceptionInInitialzerError and then later a NoClassDefFound error for
> the Editor.
> Similarly I get errors with the wizard.
> I removed the shapes plugin from the main eclipse plugin dir and edited
> the feature.xml file in the feature/gif-examples dir to make sure that
> there isn't a clash between my project and the installed shape example
> plugin.
>
> Any clues/suggestions for me?
>
> Thanks
Re: Creating Eclipse projects from the example sources [message #154550 is a reply to message #154243] Tue, 19 October 2004 05:19 Go to previous message
Eclipse UserFriend
Originally posted by: ranjit.notMyId.com

Ranjit wrote:
> Hi,
>
> I wanted to try my hand at modifying the Shapes example so that I can
> play around with GEF. However, I am unable to get the project up and
> running. I have tried it n times and is really getting frustating for
> me. I am missing something silly may be.
>

Randy and Pratik,

Thanks for your suggestions, it worked like a charm as you suggested.

-Ranjit
Previous Topic:Compatibility with other versions
Next Topic:Are there some book or article about use Draw2D?
Goto Forum:
  


Current Time: Sat Apr 20 02:22:52 GMT 2024

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

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

Back to the top