Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342221 - [client] lightweight popup input box
Summary: [client] lightweight popup input box
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: Susan McCourt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-07 17:09 EDT by Susan McCourt CLA
Modified: 2011-09-01 11:41 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Susan McCourt CLA 2011-04-07 17:09:37 EDT
We use a lightweight edit popup in several cases now in the UI:
- edit favorites
- add a favorite by typing a URL

And I want to use it in other places such as renaming files, collecting file and folder names inline, etc.

We should take the existing code and make it reusable (even if it's just a utility method).  The kinds of things we want to control are:

- initial text (if any)
- the dom element it is placed after
- whether the referenced element should be hidden while box is up
- function to call when the string is collected
Comment 1 Susan McCourt CLA 2011-04-07 17:43:13 EDT
fixed.  API is

eclipse.util.getUserText(textBoxId, refNode, shouldHideRefNode, 
    initialText, onComplete, /* optional */ onEditDestroy)