eliminated some unnecessary comments i had left in there
This commit is contained in:
parent
a39d5c2ba3
commit
c4f4288d2f
1 changed files with 6 additions and 4 deletions
|
@ -1023,8 +1023,11 @@ 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. */
|
||||||
deleteCurrentSelection();
|
// Respect setEditable(boolean):
|
||||||
paste(getSelectionStart());
|
if (this.isEditable()) {
|
||||||
|
deleteCurrentSelection();
|
||||||
|
paste(getSelectionStart());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1047,10 +1050,9 @@ public void paste(int offset)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Transferable contents = rtfBoard.getContents(this);
|
Transferable contents = rtfBoard.getContents(this);
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue