feat(ui): add switchable tabular view for resource bundles (1.2.0)#60
feat(ui): add switchable tabular view for resource bundles (1.2.0)#60Copilot wants to merge 4 commits into
Conversation
Add a switchable table view for editing all keys/locales in one grid, remember the preferred view, bump version 1.1.1 -> 1.2.0, update CHANGELOG and READMEs with a help/feature overview. Agent-Logs-Url: https://github.com/tlcsdm/eclipse-rbe/sessions/e0c19a4e-162f-4c31-af56-da01136558da Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
|
…, EPL-2.0 headers, and copilot instructions update - Add editor.view.form/table toggle strings to all 11 non-default locales (de, es, fa, fr, it, ja, nn_NO, no, pt, zh_HK, zh_TW) - Revert README.md / README_zh.md to original state - Create Eclipse help system (help/toc.xml + 4 HTML pages) and register org.eclipse.help.toc extension in plugin.xml - Add org.eclipse.help to Require-Bundle in MANIFEST.MF - Replace Apache 2.0 headers in I18nTableView.java and I18nPageEditor.java with EPL-2.0 header - Document EPL-2.0 license header convention in .github/copilot-instructions.md Agent-Logs-Url: https://github.com/tlcsdm/eclipse-rbe/sessions/308c0394-0eb7-4522-a931-51f3522aec88 Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
Done in commit
|
|
@copilot |
….xml for F1 help, fix duplicate license header - Add `<import plugin="org.eclipse.help"/>` to feature.xml <requires> - Create help/contexts.xml with 9 context IDs (view_toggle, key_tree, value_editor, table_view, new_locale, prefs_general, prefs_formatting, prefs_performance, wizard) - Register org.eclipse.help.contexts extension in plugin.xml - Wire PlatformUI.getHelpSystem().setHelp() for toolbar, i18nPage and i18nTableView in I18nPageEditor.createPartControl - Remove duplicate Apache 2.0 header left in I18nPageEditor.java (keep only EPL-2.0) Agent-Logs-Url: https://github.com/tlcsdm/eclipse-rbe/sessions/a4f77378-f3d2-42f7-a035-90955492ef4e Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
Done in commit
Also fixed a leftover duplicate Apache 2.0 block in |
Adds an alternative table-based layout to the i18n editor (rows = keys, columns = locales), togglable from the form view and persisted across sessions. Bumps the plugin to 1.2.0 and integrates an Eclipse help system with comprehensive UI documentation and context-sensitive F1 help.
Changes
I18nTableView– newTableViewer-backed composite with a Key column plus one editable column per sorted locale. Cell edits go throughBundleGroup.addBundleEntry, preserving comment/commented state and reusing existing dirty/save plumbing.I18nPageEditor– wraps the i18n page in aGridLayoutwith a top toolbar (Form view/Table viewtoggles) over aStackLayoutthat swapsI18nPage↔I18nTableView. Initial selection is read from preferences; clicking a toggle writes it back. Context-sensitive F1 help is wired viaPlatformUI.getHelpSystem().setHelp()for the toolbar, form view, and table view.ResourceBundleEditor– holds anI18nPageEditorreference and calls a newrefreshActiveView()on page change, resource-change events, andaddResource(...), so the table reflects external edits and newly added locales.TABLE_VIEWkey (defaultfalse) withgetTableView()/setTableView()onRBEPreferences; default registered inRBEPreferenceInitializer.editor.view.form{,.tooltip},editor.view.table{,.tooltip},editor.view.table.keyadded to all 13 locale files (en, zh, de, es, fa, fr, it, ja, nn_NO, no, pt, zh_HK, zh_TW).1.1.1→1.2.0inMANIFEST.MF,feature.xml, parentpom.xml, and sitepom.xml.org.eclipse.help.toc:help/toc.xml(table of contents) + four HTML pages covering the Overview, Editor UI (form view, key tree, value editors, table view, source editors, new-locale page), all Preferences, and the New ResourceBundle Wizard.org.eclipse.helpadded toRequire-BundleinMANIFEST.MFand to<requires>infeature.xml.org.eclipse.help.contexts:help/contexts.xmldefines 9 context IDs (view_toggle,key_tree,value_editor,table_view,new_locale,prefs_general,prefs_formatting,prefs_performance,wizard) each linked to the relevant help page. Pressing F1 on the editor toolbar or view panels opens the matching topic directly.CHANGELOG.mdgains a[1.2.0]entry.I18nTableView.java,I18nPageEditor.java) carry the correct EPL-2.0 header instead of the legacy Apache 2.0 header. The EPL-2.0 header template is documented in.github/copilot-instructions.mdfor future contributors.Notes for reviewers
BundleGroup(not the per-localeBundleEntryComposite), so similar/duplicate detection and source-editor sync continue to work via existing model listeners.org.eclipse.helpis available in the target platform viaorg.eclipse.platform.feature.group; no new p2 repositories required.