OSDN Git Service

Make the error text participate in select all and copy
authorTor Norbye <tnorbye@google.com>
Mon, 10 Jan 2011 14:56:18 +0000 (06:56 -0800)
committerTor Norbye <tnorbye@google.com>
Tue, 11 Jan 2011 20:45:28 +0000 (12:45 -0800)
commit55554e7b43ec0b1a5ceacc789ad5631a8754640e
tree55b5af9c3950c0b29d8d9968635b6f62cb073f3c
parent6fc53860bc1aeee689ebf977a781eb39b6de3a57
Make the error text participate in select all and copy

When there are rendering errors, the error messages are listed in a
StyledText widget which opens up at the bottom of the layout editor.

This changeset makes it possible to copy & paste the error message. It
does this by:

- Making the global Select All action operate on the error label when
  the error label has focus

- Make the global Copy action operate on the error label if the error
  label has selected text (which could have been made selected either
  by the Select All action above, or by a manual mouse selection)

Change-Id: Ia7f267737a0d43a54dce8cf6b5f5802aef038881
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ClipboardSupport.java
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GraphicalEditorPart.java
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java