org.formaria.editor.netbeans.project
Class ProjectEditorSupport

java.lang.Object
  extended by DataEditorSupport
      extended by org.formaria.editor.netbeans.project.ProjectEditorSupport
All Implemented Interfaces:
Notifiable

public class ProjectEditorSupport
extends DataEditorSupport
implements Notifiable

Support for editing a data object as text.


Constructor Summary
ProjectEditorSupport(ProjectDataObject obj)
          Create a new editor support.
 
Method Summary
 boolean canClose()
           
protected  CloneableTopComponent createCloneableTopComponent()
           
 boolean notifyModified()
          Called when the document is modified.
 void notifyUnmodified()
          Called when the document becomes unmodified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectEditorSupport

public ProjectEditorSupport(ProjectDataObject obj)
Create a new editor support.

Parameters:
obj - the data object whose primary file will be edited as text
Method Detail

createCloneableTopComponent

protected CloneableTopComponent createCloneableTopComponent()

canClose

public boolean canClose()

notifyModified

public boolean notifyModified()
Called when the document is modified. Here, adding a save cookie to the object and marking it modified.

Specified by:
notifyModified in interface Notifiable
Returns:
true if the modification is acceptable

notifyUnmodified

public void notifyUnmodified()
Called when the document becomes unmodified. Here, removing the save cookie from the object and marking it unmodified.

Specified by:
notifyUnmodified in interface Notifiable