Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » IFileEditorInput cannot be resolved to a type
IFileEditorInput cannot be resolved to a type [message #336447] Fri, 12 June 2009 13:45 Go to next message
Chris Turner is currently offline Chris TurnerFriend
Messages: 9
Registered: July 2009
Junior Member
Hi Everyone!

I am trying to make my GEF-Editor saveable (or serializable) and I'm using
the sourcecode from the org.eclipse.gef.examples.shapes Example.

But eclipse seems not to find all necessary classes. Here is the code:

ByteArrayOutputStream out = new ByteArrayOutputStream();
try {
IFile file = ((IFileEditorInput) getEditorInput()).getFile();
file.setContents(new ByteArrayInputStream(out.toByteArray()), true,
false, monitor);
} catch (CoreException ce) {
} catch (IOException ioe) {

Eclsipe can't reslove the IFile and the IFileEditorInput.

So does somebody have a clue what i m doing wrong?!

Thanks in advance!
Re: IFileEditorInput cannot be resolved to a type [message #336449 is a reply to message #336447] Fri, 12 June 2009 14:51 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Make sure you depend on the packages or bundles needed for IFileEditorInput. _from_an_Eclipse_plug-in%3F

Paul Webster e.platform.doc.isv/guide/workbench.htm

Previous Topic:Disable a contributed Activity
Next Topic:fire a ResourceChangeEvent programmatically
Goto Forum:

Current Time: Mon Apr 23 04:08:25 GMT 2018

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

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