Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » The example in the example of ibm Red book
The example in the example of ibm Red book [message #215078] Wed, 26 April 2006 13:53 Go to next message
comain is currently offline comainFriend
Messages: 2
Registered: July 2009
Junior Member
Exactly, how to change the old code to match eclipse 3.1.2 platform?

For the workflow example, I have got the project compiled but with a bit of
deprecated warnings. What's more, when I launched the project, no wizard
entries appear in the File-new-example folder.

Can anyone give me some help?
Re: The example in the example of ibm Red book [message #215094 is a reply to message #215078] Wed, 26 April 2006 16:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.chris-lott.org

I tried the cleanup also, and suspect I did this in the slowest, most
difficult way possible. Here's what I tried so far; it does not yet run.

1. Create simple project
2. Import entire contents of SAL330RWorkflowModel into it.
3. Right click the project, pick PDE Tools, then Convert Projects to
Plug-in Projects

That gets me to a state where eclipse reports these problems:

Illegal attribute 'availableAsShortcut'. plugin.xml

The method openEditor(IEditorInput, String) in the type IWorkbenchPage is
not applicable for the arguments (IFile) WorkflowModelWizard.java

I confess that I punted on these and simply removed the attribute in
plugin.xml, and commented out the entire try/catch in the java file. This
was enough to get the plugin to contribute to the New -> Examples wizard,
but it doesn't work right (doesn't launch) on a foo.flow file.

Next I right-clicked the project again, PDE Tools, then picked "Migrate to
3.0". This adds the runtime compatability dependency. That is not
enough either to make it run!

Maybe I have to create a MANIFEST.MF file using the plugin.xml manifest
editor.

chris...
Re: The example in the example of ibm Red book [message #215125 is a reply to message #215094] Thu, 27 April 2006 01:31 Go to previous messageGo to next message
comain is currently offline comainFriend
Messages: 2
Registered: July 2009
Junior Member
IDE.openEditor(page,modelFile,true);
I think the open editor can be replaced as above. But I have not yet tested.
"Chris Lott" <eclipse@chris-lott.org>
??????:ac53681be41d1a80a6b66a63036261a0$1@www.eclipse.org...
>I tried the cleanup also, and suspect I did this in the slowest, most
>difficult way possible. Here's what I tried so far; it does not yet run.
>
> 1. Create simple project
> 2. Import entire contents of SAL330RWorkflowModel into it.
> 3. Right click the project, pick PDE Tools, then Convert Projects to
> Plug-in Projects
>
> That gets me to a state where eclipse reports these problems:
>
> Illegal attribute 'availableAsShortcut'. plugin.xml
> The method openEditor(IEditorInput, String) in the type IWorkbenchPage is
> not applicable for the arguments (IFile) WorkflowModelWizard.java
> I confess that I punted on these and simply removed the attribute in
> plugin.xml, and commented out the entire try/catch in the java file. This
> was enough to get the plugin to contribute to the New -> Examples wizard,
> but it doesn't work right (doesn't launch) on a foo.flow file.
> Next I right-clicked the project again, PDE Tools, then picked "Migrate to
> 3.0". This adds the runtime compatability dependency. That is not
> enough either to make it run!
>
> Maybe I have to create a MANIFEST.MF file using the plugin.xml manifest
> editor.
> chris...
>
>
Re: The example in the example of ibm Red book [message #215315 is a reply to message #215125] Sat, 29 April 2006 00:47 Go to previous message
Paul Allen is currently offline Paul AllenFriend
Messages: 10
Registered: July 2009
Junior Member
comain wrote:

> IDE.openEditor(page,modelFile,true);
> I think the open editor can be replaced as above. But I have not yet tested.

That gets it working for me. The thing throws an EOFException when it
first starts up on an empty file, but it otherwise appears to run.

Paul Allen
Previous Topic:suggestions for visual clues of "cut" items
Next Topic:Help: Error , thread with GEF
Goto Forum:
  


Current Time: Thu Apr 25 04:18:24 GMT 2024

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

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

Back to the top