The Nebula team may be interested in this potentially.
---------- Forwarded message ----------
From:
<bugzilla-daemon@xxxxxxxxxxx>
Date: Wed, Jan 28, 2009 at 4:54 PM
Subject: [Bug 262846] New: "TokenViewer" API
To:
zx@xxxxxxxxxxxxxxxxxhttps://bugs.eclipse.org/bugs/show_bug.cgi?id=262846
Product/Component: Platform / UI
Summary: "TokenViewer" API
Product: Platform
Version: 3.5
Platform: PC
URL:
http://eclipseblog.ostroukhovs.com/2009/01/29/tokenviewe
r-basics/
OS/Version: Mac OS X
Status: NEW
Severity: enhancement
Priority: P3
Component: UI
AssignedTo:
Platform-UI-Inbox@xxxxxxxxxxx
ReportedBy:
eugene@xxxxxxxxxxxx
I created a new JFace viewer that has API similar to TreeViewer. It is a text
field with content assist support. Usage example:
TokenViewer tokenViewer = new TokenViewer(root);
tokenViewer.setContentProvider(new BaseWorkbenchContentProvider());
tokenViewer.setLabelProvider(new WorkbenchLabelProvider());
tokenViewer.setInput(workspaceRoot);
This will create a text field for entering workspace path (you can see such
fields all over IDE). The viewer also has more advanced API for more complex
tasks. I provided a more detailed overview here -
http://eclipseblog.ostroukhovs.com/2009/01/29/tokenviewer-basics/
I opened this enhancement request for following reasons:
1. I can contribute this code if it is considered useful. I will maintain
(enhancements and bugfixes) it at least through one Eclipse release cycle.
2. I would need more requirements. Simple "can I create a field that shows X
and does Y?" would be enough.
--
Configure bugmail: https://bugs.eclipse.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.