|Re: [EMF Forms] Custom table control [message #1698969 is a reply to message #1698907]
||Fri, 19 June 2015 08:29
| Eugen Neufeld
Registered: May 2015
Hi Tobi, |
to get checkboxes instead of true/false, open the emfforms update site: EMF Forms Features -> EMFForms Table UI SWT Additional Cell Editors (non-RAP)
This feature is available since 1.6.
For everything else:
As far as I understand it, you want to change the way specific features are rendered inside a table.
To do so on a plain SWT Table you would need to provide CellEditors. You can do the same with EMFForms.
You will need 2 classes:
The CellEditor: It must extend the CellEditor (or a subclass of it) and the ECPCellEditor
The Tester: it must extends ECPCellEditorTester
The tester is used for determining which cell editor should be used, this way you can provide very specific cell renderer.
Then you have to provide those using the "org.eclipse.emf.ecp.edit.swt.cellEditor" extension point.
You can look at the implementation of the checkbox cell editor here: https://git.eclipse.org/c/emfclient/org.eclipse.emf.ecp.core.git/tree/bundles/org.eclipse.emf.ecp.view.table.celleditor.rcp
I don't really get this part: "values that can be changed inside the table without opening it in a new dialogue" .
The Table always allows inline editing. You need to select the row and then click inside a cell. The cell will probably change a bit the way it looks and thus get into an editable state.
You can additionally activate the option to edit the values in a dialog.
I think we don't have a tutorial about customizing tables yet.
Get professional Eclipse developer support:
Powered by FUDForum
. Page generated in 0.02487 seconds