Class ExternalTextTableau

  • All Implemented Interfaces:
    java.lang.Cloneable, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    public class ExternalTextTableau
    extends TextEditorTableau
    A tableau representing an external text editor (for now emacs only, with the gnuserv package installed).

    This is just a demo form. TextEditorTableau should really be made abstract and have different implementations depending on user preferences. ExternalTextTableau should not really derive from the java swing Frame based TextEditorTableau. The interface of the abstract TextEditorTableau should support both swing JFrame based editor and external text editor classes. Note that one could send signals (events) back to this class for example if the buffer associated with this "tableau" is deleted or updated or "Saved As". This could be achieved by adding special "hooks" to emacs' file operation hook lists...

    Since:
    Ptolemy II 2.1
    Version:
    $Id$
    Author:
    Zoltan Kemenczy, Research in Motion Limited
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Method Detail

      • setEditable

        public void setEditable​(boolean flag)
        Make the tableau editable or uneditable. Notice that this does not change whether the effigy is modifiable, so other tableaux on the same effigy may still modify the associated file.
        Overrides:
        setEditable in class TextEditorTableau
        Parameters:
        flag - False to make the tableau uneditable.
        See Also:
        Tableau.isEditable()
      • show

        public void show()
        Make this tableau visible - by calling show() on the container (ExternalTextEffigy).
        Overrides:
        show in class TextEditorTableau