| Summary: | Make org.eclipse.sirius.table.ui.tools.internal.editor.action.RefreshAction API | ||
|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Felix Dorner <felix.dorner> |
| Component: | Table | Assignee: | Pierre Guilet <pierre.guilet> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | laurent.fasani, laurent.redor, pierre-charles.david, stephane.thibaudeau, steve.monnier |
| Version: | 3.1.0 | Keywords: | triaged |
| Target Milestone: | 5.0.0M7 | ||
| Hardware: | PC | ||
| OS: | Windows NT | ||
| See Also: |
https://git.eclipse.org/r/93423 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=e236175a1fd189d405f14e242de4ed892c844b02 https://git.eclipse.org/r/94478 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=96c76f319efea52852791c0ef61eca14014e7140 https://git.eclipse.org/r/96668 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=09de10564816fc9a8c538fa4b9e5b31dda749775 |
||
| Whiteboard: | |||
|
Description
Felix Dorner
Hi Felix, You should be able to refresh a DTable using the API "DialectManager.INSTANCE.refresh()" or by executing a RefreshRepresentationsCommand which is also API and called by the RefreshAction. Regards, Steve I've just had the same thing to do. The RefreshRepresentationsCommand is OK, but it's always a bit verbose to execute the command. Something along the lines of : DialectUIManager.INSTANCE.refreshEditor(DialectEditor, IProgressMonitor) would be perfect. (Credits to Pierre-Charles for the suggestion) (In reply to Stéphane Thibaudeau from comment #2) > I've just had the same thing to do. > > The RefreshRepresentationsCommand is OK, but it's always a bit verbose to > execute the command. > > Something along the lines of : > > DialectUIManager.INSTANCE.refreshEditor(DialectEditor, IProgressMonitor) If I only execute the RefreshRepresentationsCommand, I would miss the tableEditor.enablePropertiesUpdate(false/true) that is executed around it in the Action. Is this of importance? Will this also be called for DialectUIManager.refreshEditor? New Gerrit change created: https://git.eclipse.org/r/93423 Gerrit change https://git.eclipse.org/r/93423 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=e236175a1fd189d405f14e242de4ed892c844b02 Fixed by e236175a1fd189d405f14e242de4ed892c844b02. New Gerrit change created: https://git.eclipse.org/r/94478 Gerrit change https://git.eclipse.org/r/94478 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=96c76f319efea52852791c0ef61eca14014e7140 New Gerrit change created: https://git.eclipse.org/r/96668 Gerrit change https://git.eclipse.org/r/96668 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=09de10564816fc9a8c538fa4b9e5b31dda749775 Available in Sirius 5.0.0, see https://wiki.eclipse.org/Sirius/5.0.0 for details. |