Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Problems with IStorageEditorInput
Problems with IStorageEditorInput [message #242774] Thu, 08 May 2008 16:24 Go to next message
Eclipse UserFriend
Originally posted by: 14.08.99.gmx.de

Hi,

My little GEF-editor is embedded in an RCP. I want to save my Diagrams
in a database. So I decided to implement the interface
IStorageEditorInput in MyEditorInput (bad idea???).

The editor is called via an action in a package of the RCP.

***
MyEditorInput editorInput = new MyEditorInput();
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().openEditor((IEditorInput)
editorInput,MyEditor.ID);
***

Now I get an error. Eclipse wants me to configure the build path, but I
don't know in wich way... "The type org.eclipse.ui.IStorageEditorInput
cannot be resolved. It is indirectly referenced from
required .class files"

I tried some other interfaces. With IPathEditorInput (not useable for
storage in db) i got no probs...

Any ideas?

br,
Guido
Re: Problems with IStorageEditorInput [message #242785 is a reply to message #242774] Thu, 08 May 2008 17:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Guido,

In the plugin that's complaining, you need to add a dependency on the
org.eclipse.ui.ide plugin in the MANIFEST.MF's dependencies tab, but
that's the Eclipse IDE plugin, so not sure if you want to do that...


Guido Schwab wrote:
> Hi,
>
> My little GEF-editor is embedded in an RCP. I want to save my Diagrams
> in a database. So I decided to implement the interface
> IStorageEditorInput in MyEditorInput (bad idea???).
>
> The editor is called via an action in a package of the RCP.
>
> ***
> MyEditorInput editorInput = new MyEditorInput();
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().openEditor((IEditorInput)
> editorInput,MyEditor.ID);
> ***
>
> Now I get an error. Eclipse wants me to configure the build path, but
> I don't know in wich way... "The type
> org.eclipse.ui.IStorageEditorInput cannot be resolved. It is
> indirectly referenced from
> required .class files"
>
> I tried some other interfaces. With IPathEditorInput (not useable for
> storage in db) i got no probs...
>
> Any ideas?
>
> br,
> Guido
Re: Problems with IStorageEditorInput [message #242814 is a reply to message #242785] Fri, 09 May 2008 06:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 14.08.99.gmx.de

Ed Merks schrieb:
> In the plugin that's complaining, you need to add a dependency on the
> org.eclipse.ui.ide plugin in the MANIFEST.MF's dependencies tab, but
> that's the Eclipse IDE plugin, so not sure if you want to do that...

You're right, I don't want to do that. Is there no other possiblity? Do
I have to write my own implementation of IEditorInput?

br,
Guido
Re: Problems with IStorageEditorInput [message #242827 is a reply to message #242814] Fri, 09 May 2008 10:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Guido,

Yes, I suspect that writing your own implementation is best. If you're
using EFS, I suppose maybe something based directly of IFileStore might
make sense. Or you might use IURIEditorInput and your application would
now how to interpret the URI with respect to the database.


Guido Schwab wrote:
> Ed Merks schrieb:
>> In the plugin that's complaining, you need to add a dependency on the
>> org.eclipse.ui.ide plugin in the MANIFEST.MF's dependencies tab, but
>> that's the Eclipse IDE plugin, so not sure if you want to do that...
>
> You're right, I don't want to do that. Is there no other possiblity?
> Do I have to write my own implementation of IEditorInput?
>
> br,
> Guido
dNdYkkZzJYL [message #244170 is a reply to message #242827] Tue, 08 July 2008 11:15 Go to previous message
Eclipse UserFriend
Originally posted by: ewxwyk.sjvzvw.com

rt6ZII <a href="http://nlcsldgpkkhm.com/">nlcsldgpkkhm</a>,
kkmcyqzafriz,
fngvtjhppfhp[/link],
http://smmkqcrtcgac.com/
Previous Topic:Draggable text on connections
Next Topic:Getting Started
Goto Forum:
  


Current Time: Sat Nov 22 00:31:39 GMT 2014

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

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