Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » AbstractDocumentProvider.isReadOnly(...)
AbstractDocumentProvider.isReadOnly(...) [message #464009] Thu, 22 February 2007 05:58
Eclipse UserFriend
I took the code from org.eclipse.ui.examples.rcp.texteditor. The SimpledocumentProvider there extends
org.eclipse.ui.texteditor.AbstractDocumentProvider. With the intention to open documents read-only I overrode...

public boolean isReadOnly(Object element)
{
return true;
}

When opening a file in an editor in my RCP-app the status bar shows "read-only". Cut, Paste and <Del> do not work. Fine.

BUT: <Backspace> deletes and all character keys do work as well.

What am I missing there?

Geri
Previous Topic:IFolderLayout persistance
Next Topic:Problem with showing image in about dialog
Goto Forum:
  


Current Time: Sat Mar 15 23:58:05 EDT 2025

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

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

Back to the top