Bug 247663 - outline view displayed garbled text when DS editor overview page displayed
Summary: outline view displayed garbled text when DS editor overview page displayed
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.5 M2   Edit
Assignee: Chris Aniszczyk CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2008-09-17 11:04 EDT by Curtis Windatt CLA
Modified: 2008-09-17 20:26 EDT (History)
2 users (show)

See Also:


Attachments
Patch (1.45 KB, patch)
2008-09-17 13:03 EDT, Curtis Windatt CLA
no flags Details | Diff
mylyn/context/zip (741 bytes, application/octet-stream)
2008-09-17 20:26 EDT, Chris Aniszczyk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Curtis Windatt CLA 2008-09-17 11:04:32 EDT
Opening the component.xml generated by the new DS template, the outline view displays what looks like a toString() value for the overview page.  Other PDE editors have icons and more readable text.
Comment 1 Chris Aniszczyk CLA 2008-09-17 11:05:29 EDT
I'm trying to fix this now but don't have CVS access from the meeting. Here is what needs to be done.
Comment 2 Chris Aniszczyk CLA 2008-09-17 11:05:53 EDT
	public Image getImage(Object obj) {
		if (obj instanceof IDSObject) {
			return getObjectImage((IDSObject) obj);
		}

		// TODO consider changing this
		if (obj instanceof IFormPage)
			return PDEPlugin.getDefault().getLabelProvider().get(
					PDEPluginImages.DESC_PAGE_OBJ);

		return super.getImage(obj);
	}

	public String getText(Object obj) {

		if (obj instanceof IDSObject) {
			return getObjectText((IDSObject) obj);
		}

		if (obj instanceof IFormPage)
			return ((IFormPage) obj).getTitle();

		return super.getText(obj);
	}
Comment 3 Chris Aniszczyk CLA 2008-09-17 11:06:26 EDT
I recommend putting this patch in for M2 if you can Curtis.

I won't have access to CVS (stupid firewalls)
Comment 4 Chris Aniszczyk CLA 2008-09-17 11:06:58 EDT
oh, we basically just need to be cognizant of the IFormPage in the label provider
Comment 5 Curtis Windatt CLA 2008-09-17 13:03:33 EDT
Created attachment 112793 [details]
Patch

It appears that I do not have commit rights to the DS tooling bundles, might have to wait until M3 :)
Comment 6 Curtis Windatt CLA 2008-09-17 13:05:53 EDT
Rafael, if you have been given commit rights and have the time, please commit the patch.
Comment 7 Chris Aniszczyk CLA 2008-09-17 13:06:45 EDT
I'll have time this evening before the last build.
Comment 8 Chris Aniszczyk CLA 2008-09-17 20:26:18 EDT
done.

> 20080917
Comment 9 Chris Aniszczyk CLA 2008-09-17 20:26:30 EDT
Created attachment 112847 [details]
mylyn/context/zip