|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.windows.CloneableOpenSupport org.openide.text.CloneableEditorSupport org.netbeans.modules.vcscore.versioning.RevisionEditorSupport
Support for associating an editor and a Swing Document
to a revision object.
This is a modification of org.openide.text.DataEditorSupport
Nested Class Summary | |
static class |
RevisionEditorSupport.Env
Environment that connects the data object and the CloneableEditorSupport. |
Nested classes inherited from class org.openide.text.CloneableEditorSupport |
CloneableEditorSupport.Pane |
Nested classes inherited from class org.openide.cookies.EditorCookie |
EditorCookie.Observable |
Field Summary |
Fields inherited from class org.openide.text.CloneableEditorSupport |
EDITOR_MODE |
Fields inherited from class org.openide.windows.CloneableOpenSupport |
allEditors, env |
Fields inherited from interface org.openide.cookies.EditorCookie.Observable |
PROP_DOCUMENT, PROP_MODIFIED, PROP_OPENED_PANES |
Constructor Summary | |
RevisionEditorSupport(RevisionList list,
RevisionItem revisionItem)
Editor support for a given data object. |
Method Summary | |
protected StyledDocument |
createStyledDocument(EditorKit kit)
Let's the super method create the document and also annotates it with Title and StreamDescription properities. |
FileObject |
getFileObject()
Getter of the file object that this support is associated with. |
String |
getRevision()
Getter of the revision that this support is associated with. |
protected void |
initializeCloneableEditor(CloneableEditor editor)
Annotates the editor with icon from the data object and also sets appropriate selected node. |
protected String |
messageName()
Constructs message that should be used to name the editor component. |
protected String |
messageOpened()
Message to display when an object has been opened. |
protected String |
messageOpening()
Message to display when an object is being opened. |
protected String |
messageSave()
Constructs message that should be displayed when the data object is modified and is being closed. |
protected String |
messageToolTip()
Text to use as tooltip for component. |
Methods inherited from class org.openide.windows.CloneableOpenSupport |
close, edit, openCloneableTopComponent, view |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openide.cookies.EditorCookie.Observable |
addPropertyChangeListener, removePropertyChangeListener |
Methods inherited from interface org.openide.cookies.EditorCookie |
close, getDocument, getOpenedPanes, isModified, open, openDocument, prepareDocument, saveDocument |
Methods inherited from interface org.openide.cookies.LineCookie |
getLineSet |
Methods inherited from interface org.openide.cookies.OpenCookie |
open |
Methods inherited from interface org.openide.cookies.ViewCookie |
view |
Methods inherited from interface org.openide.cookies.PrintCookie |
print |
Methods inherited from interface org.openide.cookies.CloseCookie |
close |
Constructor Detail |
public RevisionEditorSupport(RevisionList list, RevisionItem revisionItem)
Method Detail |
public final FileObject getFileObject()
public final String getRevision()
protected String messageOpening()
protected String messageOpened()
protected String messageSave()
protected String messageName()
protected String messageToolTip()
protected void initializeCloneableEditor(CloneableEditor editor)
editor
- the editor that has been created and should be annotatedprotected StyledDocument createStyledDocument(EditorKit kit)
kit
- kit to user to create the document
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |