Installing the flow example in M9 [message #134884] |
Sat, 29 May 2004 17:11 |
Eclipse User |
|
|
|
Originally posted by: user.domain.invalid
Howdy,
I am slowly starting to understand how to use Eclipse. I did all sorts
of uhhh less than pretty things to get the examples such that I could
play with the source before I found how to do the following.
I'm sure the directions for adding an example plug-in is available for
M9, but for those of us that have as hard a time with a new tool like
me, here is what I did to get the flow example up in M9.
install Eclipse 3.0 M9
install gef 2.1.3
install the examples for gef 2.1.3
start Eclipse ...
File->Import->External Plug-ins and Fragments
click Next and choose Import As: Project with source folders
select org.eclipse.gef.examples.flow (2.1.2) and click Add-->
you now have the plug-in project with the source to play with
fix the 3.0 migration bug as the help in the from 3.0 porting guide
tells us!
open the project then open
src-flow->org.eclipse.gef.examples.flow.ui (they have the little
error message icons (red box with an 'x') that show the location of the
error
upgrage FlowWizardPage1.java by replacing this
page.openEditor(newFile);
with this
org.eclipse.ui.ide.IDE.openEditor(page, newFile, true);
and you should have a ready to go plug-in
with the project selected, click
Run->Run As->Run Run-time Workbench
when the new copy of Eclipse starts
File->New->Project and give your project a meaningful name
select the project and
New->Other->Examples->GEF (Graphical Editing Framework)->Flow Diagram
and you have an example you can play with
I don't know if that is the 'best' way to get the examples up, but it
worked for me and it was a lot easier than what I was doing before.
Let me know if the above is wrong or messes something up.
Thanks,
Gary
gary.frederick at jsoft.com
|
|
|
Re: Installing the flow example in M9 [message #134965 is a reply to message #134884] |
Sun, 30 May 2004 11:24 |
Antony Messages: 34 Registered: July 2009 |
Member |
|
|
Geez, this sounds complicated! I solved compatibility problems simply
downloading the latest version of GEF and its examples...
But since you seem to know where to put your hands, try to solve this:
I created a new Java Project, with the LogicDesigner sources. I copied the
plugin.xml, the icons and the plugin.properties from the original to mine.
I compiled the plug-in, re-started the Workbench, selected the Logic
Designer Wizard under GEF Examples. But when I click the 'finish' button
Eclipse gives me a java.lang.ExceptionInInitializerError, at line 83 in
the LogicWizardPage1, at the beginning of the getInitialContents method.
It seems like the plug-in doesn't manage to create the IFile... What do
you think?
Gary Frederick wrote:
> Howdy,
> I am slowly starting to understand how to use Eclipse. I did all sorts
> of uhhh less than pretty things to get the examples such that I could
> play with the source before I found how to do the following.
> I'm sure the directions for adding an example plug-in is available for
> M9, but for those of us that have as hard a time with a new tool like
> me, here is what I did to get the flow example up in M9.
> install Eclipse 3.0 M9
> install gef 2.1.3
> install the examples for gef 2.1.3
> start Eclipse ...
> File->Import->External Plug-ins and Fragments
> click Next and choose Import As: Project with source folders
> select org.eclipse.gef.examples.flow (2.1.2) and click Add-->
> you now have the plug-in project with the source to play with
> fix the 3.0 migration bug as the help in the from 3.0 porting guide
> tells us!
> open the project then open
> src-flow->org.eclipse.gef.examples.flow.ui (they have the little
> error message icons (red box with an 'x') that show the location of the
> error
> upgrage FlowWizardPage1.java by replacing this
> page.openEditor(newFile);
> with this
> org.eclipse.ui.ide.IDE.openEditor(page, newFile, true);
> and you should have a ready to go plug-in
> with the project selected, click
> Run->Run As->Run Run-time Workbench
> when the new copy of Eclipse starts
> File->New->Project and give your project a meaningful name
> select the project and
> New->Other->Examples->GEF (Graphical Editing Framework)->Flow Diagram
> and you have an example you can play with
> I don't know if that is the 'best' way to get the examples up, but it
> worked for me and it was a lot easier than what I was doing before.
> Let me know if the above is wrong or messes something up.
> Thanks,
> Gary
> gary.frederick at jsoft.com
|
|
|
Re: Installing the flow example in M9 [message #134991 is a reply to message #134965] |
Sun, 30 May 2004 14:13 |
Eclipse User |
|
|
|
Originally posted by: user.domain.invalid
Antony wrote:
> Geez, this sounds complicated! I solved compatibility problems simply
> downloading the latest version of GEF and its examples...
The way you describe below is what I did before I found the 'easy way',
now it's a few clicks..., edit the small change to V3.0 and I'm up.
I'm just starting to understand. I didn't see anything in
LogicWizardPage1#getInitialContents but it would have to be pretty
obvious for me to see a problem.
Gary
>
> But since you seem to know where to put your hands, try to solve this:
> I created a new Java Project, with the LogicDesigner sources. I copied the
> plugin.xml, the icons and the plugin.properties from the original to mine.
> I compiled the plug-in, re-started the Workbench, selected the Logic
> Designer Wizard under GEF Examples. But when I click the 'finish' button
> Eclipse gives me a java.lang.ExceptionInInitializerError, at line 83 in
> the LogicWizardPage1, at the beginning of the getInitialContents method.
> It seems like the plug-in doesn't manage to create the IFile... What do
> you think?
>
> Gary Frederick wrote:
>
>
>>Howdy,
>
>
>>I am slowly starting to understand how to use Eclipse. I did all sorts
>>of uhhh less than pretty things to get the examples such that I could
>>play with the source before I found how to do the following.
>
>
>>I'm sure the directions for adding an example plug-in is available for
>>M9, but for those of us that have as hard a time with a new tool like
>>me, here is what I did to get the flow example up in M9.
>
>
>>install Eclipse 3.0 M9
>>install gef 2.1.3
>>install the examples for gef 2.1.3
>
>
>>start Eclipse ...
>>File->Import->External Plug-ins and Fragments
>> click Next and choose Import As: Project with source folders
>> select org.eclipse.gef.examples.flow (2.1.2) and click Add-->
>>you now have the plug-in project with the source to play with
>
>
>>fix the 3.0 migration bug as the help in the from 3.0 porting guide
>>tells us!
>
>
>>open the project then open
>> src-flow->org.eclipse.gef.examples.flow.ui (they have the little
>>error message icons (red box with an 'x') that show the location of the
>>error
>> upgrage FlowWizardPage1.java by replacing this
>> page.openEditor(newFile);
>> with this
>> org.eclipse.ui.ide.IDE.openEditor(page, newFile, true);
>
>
>>and you should have a ready to go plug-in
>
>
>>with the project selected, click
>>Run->Run As->Run Run-time Workbench
>
>
>>when the new copy of Eclipse starts
>>File->New->Project and give your project a meaningful name
>>select the project and
>>New->Other->Examples->GEF (Graphical Editing Framework)->Flow Diagram
>
>
>>and you have an example you can play with
>
>
>
>>I don't know if that is the 'best' way to get the examples up, but it
>>worked for me and it was a lot easier than what I was doing before.
>
>
>>Let me know if the above is wrong or messes something up.
>
>
>>Thanks,
>
>
>>Gary
>>gary.frederick at jsoft.com
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03422 seconds