Skip to content

Commit

Permalink
rename DelegatingDocument into DocumentImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
koentsje committed Mar 25, 2014
1 parent 9d72e46 commit c1b0abc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
import org.jboss.tools.aesh.core.document.Style;
import org.jboss.tools.aesh.ui.internal.AeshUIPlugin;

public class DelegatingDocument implements org.jboss.tools.aesh.core.document.Document {
public class DocumentImpl implements org.jboss.tools.aesh.core.document.Document {

private Document delegate;
private StyleImpl currentStyle;
private int savedCursor = 0;
private int cursorOffset = 0;
private Set<CursorListener> cursorListeners = new HashSet<CursorListener>();

public DelegatingDocument() {
public DocumentImpl() {
this.delegate = new Document();
this.currentStyle = StyleImpl.getDefault();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
import org.eclipse.swt.widgets.Display;
import org.jboss.tools.aesh.core.console.Console;
import org.jboss.tools.aesh.ui.internal.document.CursorListener;
import org.jboss.tools.aesh.ui.internal.document.DelegatingDocument;
import org.jboss.tools.aesh.ui.internal.document.DocumentImpl;
import org.jboss.tools.aesh.ui.internal.document.StyleImpl;
import org.jboss.tools.aesh.ui.internal.util.CharacterConstants;
import org.jboss.tools.aesh.ui.internal.util.FontManager;

public abstract class AeshTextViewer extends TextViewer {

private Console console;
private DelegatingDocument aeshDocument;
private DocumentImpl aeshDocument;

private CursorListener cursorListener = new CursorListener() {
@Override
Expand Down Expand Up @@ -139,7 +139,7 @@ private void initializeConsole() {
}

private void initializeDocument() {
aeshDocument = new DelegatingDocument();
aeshDocument = new DocumentImpl();
aeshDocument.addCursorListener(cursorListener);
aeshDocument.getDelegate().addDocumentListener(documentListener);
}
Expand Down

0 comments on commit c1b0abc

Please sign in to comment.