1 | void stopTableEditing() {↵ | | 1 | void stopTableEditing() {↵
|
2 | if (table.isEditing()) {↵ | | 2 | if (table.isEditing()) {↵
|
3 | TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn());↵ | | 3 | TableCellEditor cellEditor = table.getCellEditor(table.getEditingRow(), table.getEditingColumn());↵
|
4 | cellEditor.stopCellEditing();↵ | | 4 | cellEditor.stopCellEditing();↵
|
5 | }↵ | | 5 | }↵
|
6 | }↵ | | 6 | }↵
|
|
7 | /**↵ | | 7 | /**↵
|
8 | * Initialize the table model used for the arguments table.↵ | | 8 | * Initialize the table model used for the arguments table.↵
|
9 | */↵ | | 9 | */↵
|
10 | protected void initializeTableModel() {↵ | | 10 | protected void initializeTableModel() {↵
|
11 | tableModel = new ObjectTableModel(new String[] { COLUMN_NAMES_0, COLUMN_NAMES_1 },↵ | | 11 | tableModel = new ObjectTableModel(new String[] { COLUMN_NAMES[0], COLUMN_NAMES[1], COLUMN_NAMES[2] },↵
|
12 | Argument.class,↵ | | 12 | LDAPArgument.class,↵
|
13 | new Functor[] {↵ | | 13 | new Functor[] {↵
|
14 | new Functor("getName"), // $NON-NLS-1$↵ | | 14 | new Functor("getName"), ↵
|
15 | new Functor("getValue") }, // $NON-NLS-1$↵ | | 15 | new Functor("getValue"), new Functor("getOpcode") },↵
|
16 | new Functor[] {↵ | | 16 | new Functor[] {↵
|
17 | new Functor("setName"), // $NON-NLS-1$↵ | | 17 | new Functor("setName"), ↵
|
18 | new Functor("setValue") }, // $NON-NLS-1$↵ | | 18 | new Functor("setValue"), new Functor("setOpcode") },↵
|
19 | new Class[] { String.class, String.class });↵ | | 19 | new Class[] { String.class, String.class, String.class });↵
|
20 | }↵ | | 20 | }↵
|
|
21 | public static boolean testFunctors(){↵ | | 21 | public static boolean testFunctors(){↵
|
22 | ArgumentsPanel instance = new ArgumentsPanel();↵ | | 22 | LDAPArgumentsPanel instance = new LDAPArgumentsPanel();↵
|
23 | instance.initializeTableModel();↵ | | 23 | instance.initializeTableModel();↵
|
24 | return instance.tableModel.checkFunctors(null,instance.getClass());↵ | | 24 | return instance.tableModel.checkFunctors(null,instance.getClass());↵
|
25 | | | 25 |
|