From 3bfee6e90f8a897ad448e97cf95e4fe954d42925 Mon Sep 17 00:00:00 2001 From: Tor Norbye Date: Wed, 8 Jun 2011 10:17:40 -0700 Subject: Improve error handling for missing and broken custom view classes When a view class cannot be found during rendering, the error log lists the class as missing, and presents the class as a hyperlink. Clicking the link will open the New Class wizard. This CL changes this such that there are multiple links instead: - "Fix Build Path": This opens the Java Build Path preference page in the Options dialog for the current project where you can fix the build path of the project, since a more common source of missing classes is a problem with the class path. - "Edit XML": This switches to the XML tab where you can edit the name of the custom view tag: A "missing" view is often a typo in the view name - "Create Class": This opens the create class wizard as before. Similarly, for broken classes (where the class is found, but cannot be instantiated correctly) the following hyperlinks are offered: - "Open Class", which shows the class in the editor - "Show Error Log", which will open the IDE error log where you typically can find a full stack trace from the failed invocation. In addition, this CL fixes 14546: Creating a custom view from the error output of the layout editor creates it in gen by ensuring that the gen/ folder is not one of the fragment roots presented to the New Class wizard. Change-Id: I06b8969800caaea719e4b52608a7ed130c91837d --- eclipse/dictionary.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'eclipse/dictionary.txt') diff --git a/eclipse/dictionary.txt b/eclipse/dictionary.txt index 4e1279b..7264f13 100644 --- a/eclipse/dictionary.txt +++ b/eclipse/dictionary.txt @@ -37,6 +37,7 @@ changeset checkbox classloader classpath +clickable clipboard clipboards clueless -- cgit v1.1