OSDN Git Service

ADT GLE2: Deal with missing custom view classes.
authorRaphael Moll <ralf@android.com>
Fri, 23 Jul 2010 20:48:12 +0000 (16:48 -0400)
committerRaphael Moll <ralf@android.com>
Fri, 23 Jul 2010 20:48:12 +0000 (16:48 -0400)
commit8e74a1196cc2b6b2479ec060c22bf66df67c9e15
tree47614387fd557e4ec4457fbf13439c2d054d63b5
parentf44b228b4fdf76437992bafd2d98a3a3f9106c0a
ADT GLE2: Deal with missing custom view classes.

- Detect missing view classes and replace them by a MockView.
  (This alone makes the rendering useful instead of not updating it
  on error.)
- Display the name of the missing view classes.
- Make them hot links and display the New Class Wizard to create them.

Change-Id: I20b69db5428751c4a6c1367103462b3867fa9c7d
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ProjectCallback.java
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/CanvasSelection.java
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GraphicalEditorPart.java
layoutlib_api/src/com/android/layoutlib/api/IProjectCallback.java
sdkmanager/libs/sdklib/src/com/android/sdklib/SdkConstants.java