eliminated some unnecessary comments i had left in there

This commit is contained in:
eg3p 2004-08-19 19:51:21 +00:00
parent a39d5c2ba3
commit c4f4288d2f

View file

@ -1023,9 +1023,12 @@ public class DuffPane extends TibetanPane implements FocusListener {
public void paste() { public void paste() {
/* added by AM. If we are pasting over selected text, such text /* added by AM. If we are pasting over selected text, such text
such be substituted by the text to be pasted. */ such be substituted by the text to be pasted. */
// Respect setEditable(boolean):
if (this.isEditable()) {
deleteCurrentSelection(); deleteCurrentSelection();
paste(getSelectionStart()); paste(getSelectionStart());
} }
}
/** /**
* Pastes the contents of the system clipboard into this object's * Pastes the contents of the system clipboard into this object's
@ -1050,7 +1053,6 @@ public void paste(int offset)
if (contents.isDataFlavorSupported(rtfFlavor)) if (contents.isDataFlavorSupported(rtfFlavor))
{ {
InputStream in = (InputStream)contents.getTransferData(rtfFlavor); InputStream in = (InputStream)contents.getTransferData(rtfFlavor);
int p1 = offset; int p1 = offset;