| IFileEditorInput cannot be resolved to a type [message #336447] | 
Fri, 12 June 2009 09:45   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 { 
	createOutputStream(out); 
	IFile file = ((IFileEditorInput) getEditorInput()).getFile(); 
	file.setContents(new ByteArrayInputStream(out.toByteArray()), true,  
false, 	monitor); 
	getCommandStack().markSaveLocation(); 
} catch (CoreException ce) {  
   ce.printStackTrace(); 
} catch (IOException ioe) { 
   ioe.printStackTrace(); 
} 
 
Eclsipe can't reslove the IFile and the IFileEditorInput. 
 
So does somebody have a clue what i m doing wrong?! 
 
Thanks in advance! 
Chris
 |  
 |  
  | 
 | 
Powered by 
FUDForum. Page generated in 0.02984 seconds