OSDN Git Service

Move the "Show Included In" menu item
authorTor Norbye <tnorbye@google.com>
Wed, 5 Jan 2011 20:24:58 +0000 (12:24 -0800)
committerTor Norbye <tnorbye@google.com>
Fri, 7 Jan 2011 14:52:41 +0000 (06:52 -0800)
commit16b42ddc372125748c50d94998a355fcb8dbc93d
tree68ceb7a33686e605136689eb0091e4ecd10fb89d
parent79738ce1154481f453934493375a3f2704a579ff
Move the "Show Included In" menu item

The "Show Included In" context menu was grouped as part of the
view-specific actions (setting width, height, orientation,
etc). That's not really a good place since this option is really about
the view as a whole. This changeset moves the item down to the bottom
of the context menu, next to the "Show In" action (which lets you show
the content in another Eclipse view.)

The code was tweaked a bit to be computed lazily (e.g. the contents of
the include list is not computed until the actual Show Included menu
is opened.)

Change-Id: Ic18997271e9ffde491a1a63e337ff015d762a20a
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/DynamicContextMenu.java
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ShowWithinMenuAction.java [new file with mode: 0644]