Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 42700 - Add support for editing values in Externalize Strings wizard
Summary: Add support for editing values in Externalize Strings wizard
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Randy Faust CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-08 10:06 EDT by Randy Faust CLA
Modified: 2003-09-10 10:54 EDT (History)
2 users (show)

See Also:


Attachments
proposed enhancements. (19.31 KB, patch)
2003-09-08 10:09 EDT, Randy Faust CLA
no flags Details | Diff
proposed fix. (19.61 KB, patch)
2003-09-09 05:52 EDT, Randy Faust CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Faust CLA 2003-09-08 10:06:01 EDT
 
Comment 1 Randy Faust CLA 2003-09-08 10:09:55 EDT
Created attachment 6015 [details]
proposed enhancements.

+ Adds ability value editing to the Externalize Strings Wizard TableViewer.
+ Chanes Edit Key dialog to allow editing of both key and value, and changes
button label to "Edit Key and Value..."
+ Removes quotes around values displayed in the table viewer, so that when
editing, user doesn't have to remember to add these in. They were removed
anyway in the properties file, so the behavior is not changed.
Comment 2 Dirk Baeumer CLA 2003-09-09 05:06:40 EDT
The review of the patch:
- after applying the patch the NLSRefactoringTests have compile errors
- button "Edit Key and Value..." should be named "Edit..."
- the edit dialog is missing mnemonics for the to entry fields.
  (you can set a mnemonic for the label)
- when using public fields (like in KeyValuePair) we usually don't prefix
  the name with an f.
- NLSInputDialog: can you please comment on the TODO tag. This seems duplicated
  code.
- OpenEditButton: why do you send out two fViewer.update message instead of 
  one containing both properties.

And a question: the inserting of an entry into the properties file in 
a "sorted" manner will be provided as a separate patch ?
Comment 3 Randy Faust CLA 2003-09-09 05:52:32 EDT
Created attachment 6036 [details]
proposed fix.

+ NLSRefactoringTests just tests removing quotes, which is no longer desired
behavior in dialog. Suggest removing these test cases.
+ Renamed button to Edit with 'd' as a mnemonic.
+ Added Mnemonics for entry fields in NLSinputdialog (k/v)
+ Change public fields to private and encapsulated (KeyValuePair)
+ Removed TODO tag and replaced with validation method to ensure there are no
white spaces in keys.
+ Sends one update msg. instead of multiple to viewer.

* Inserting of entries into a sorted manner in the properties file should be
put into a separate patch.
Comment 4 Dirk Baeumer CLA 2003-09-10 10:54:08 EDT
Patch released to HEAD.