OSDN Git Service

ADT: support for editing embedded layouts.
authorXavier Ducrohet <xav@android.com>
Fri, 19 Nov 2010 23:38:35 +0000 (15:38 -0800)
committerXavier Ducrohet <xav@android.com>
Fri, 19 Nov 2010 23:48:12 +0000 (15:48 -0800)
commitcec2581a6b2cdc708a742b2daa4c70d9b2bc82c1
treebdec9e1ee0611edda45d2f99c7c08bb1ac0655be
parent1b89d10d766a511ee5630e66a3064f0cadd162fd
ADT: support for editing embedded layouts.

This is a very first rough changeset. The context in which the layout
is edited is hardcoded until we have the UI for it.

The basics are the following:
- if there's a context, don't pass the parser on top of the model to
  the layout lib.
- instead create a KXml based parser that will return the model-based
parser when queried for a custom parser (if the layout name matches the
file being edited).

Change-Id: I2d106def9c64e82ab50c8fae96cb050338422a85
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ContextPullParser.java [new file with mode: 0644]
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/UiElementPullParser.java
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GraphicalEditorPart.java