Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342221

Summary: [client] lightweight popup input box
Product: [ECD] Orion Reporter: Susan McCourt <susan>
Component: ClientAssignee: Susan McCourt <susan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.2   
Target Milestone: 0.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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)