UTJML

edu.utep.cs.utjml.canica.jmleditor
Class BasicEditing

java.lang.Object
  extended by edu.utep.cs.utjml.canica.jmleditor.BasicEditing
All Implemented Interfaces:
BasicEditorable

public class BasicEditing
extends Object
implements BasicEditorable

This class implements the services provided in the BasicEditorable class. (see BasicEditorable).

Author:
Angelica B. Perez, Apr 26, 2006

Constructor Summary
BasicEditing(JMLEditorMDI editor, JFrame frame)
          Constructor
 
Method Summary
 void comment()
          It comments a specific region of text.
 void copy()
          It copies the text selected to the clipboard.
 void cut()
          It cuts the text selected from the editor.
 void delete()
          It deletes the current selected text selection.
 void deleteLine()
          It deletes the current line in the editor.
 void increaseIndent()
          Increases indentation to a line or to a specific region of text previously selected
 void paste()
          It pastes text from the clipboard to editor.
 void redo()
          Goes forward to the next editing text action.
 void reduceIndent()
          Decreases indentation to a line or to a specific region of text previously selected.
 void selectAll()
          It selects (highlight) all text area in the editor.
 void uncomment()
          It should uncomment a specific region of text, or uncomment a complete line of text (if it is commented).
 void undo()
          Goes back to the last editing text action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicEditing

public BasicEditing(JMLEditorMDI editor,
                    JFrame frame)
Constructor

Method Detail

copy

public void copy()
Description copied from interface: BasicEditorable
It copies the text selected to the clipboard.

Specified by:
copy in interface BasicEditorable

cut

public void cut()
Description copied from interface: BasicEditorable
It cuts the text selected from the editor.

Specified by:
cut in interface BasicEditorable

paste

public void paste()
Description copied from interface: BasicEditorable
It pastes text from the clipboard to editor.

Specified by:
paste in interface BasicEditorable

delete

public void delete()
Description copied from interface: BasicEditorable
It deletes the current selected text selection.

Specified by:
delete in interface BasicEditorable

undo

public void undo()
Description copied from interface: BasicEditorable
Goes back to the last editing text action.

Specified by:
undo in interface BasicEditorable

redo

public void redo()
Description copied from interface: BasicEditorable
Goes forward to the next editing text action.

Specified by:
redo in interface BasicEditorable

deleteLine

public void deleteLine()
Description copied from interface: BasicEditorable
It deletes the current line in the editor.

Specified by:
deleteLine in interface BasicEditorable

selectAll

public void selectAll()
Description copied from interface: BasicEditorable
It selects (highlight) all text area in the editor.

Specified by:
selectAll in interface BasicEditorable

comment

public void comment()
Description copied from interface: BasicEditorable
It comments a specific region of text. A line of text will be commented with the following character: //. A specific region of text will be commented starting with /* and ending with

Specified by:
comment in interface BasicEditorable

uncomment

public void uncomment()
Description copied from interface: BasicEditorable
It should uncomment a specific region of text, or uncomment a complete line of text (if it is commented).

Specified by:
uncomment in interface BasicEditorable

increaseIndent

public void increaseIndent()
Description copied from interface: BasicEditorable
Increases indentation to a line or to a specific region of text previously selected

Specified by:
increaseIndent in interface BasicEditorable

reduceIndent

public void reduceIndent()
Description copied from interface: BasicEditorable
Decreases indentation to a line or to a specific region of text previously selected.

Specified by:
reduceIndent in interface BasicEditorable

UTJML

UTJML is Copyright (C) 2004-2006 by University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the JML project.