Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.CellEditor.addListener()


                    }

                    return null;
                }
            });
            textEditor.addListener(new ICellEditorListener() {
                @Override
                public void editorValueChanged(boolean oldValidState, boolean newValidState) {
                    if (newValidState) {
                        validate();
                    } else {
View Full Code Here


        for( int i = 0; i < editors.length - offset; i++ ) {
            final CellEditor editor = editors[i + offset];
            if (editor == null)
                continue;
            if (listener != null && listener[i] != null)
                editor.addListener(listener[i]);
            editor.addListener(new DisplayErrorCellListener(editor));
        }
    }

    private void setCellValidators( IAdaptable adaptable ) {
View Full Code Here

            final CellEditor editor = editors[i + offset];
            if (editor == null)
                continue;
            if (listener != null && listener[i] != null)
                editor.addListener(listener[i]);
            editor.addListener(new DisplayErrorCellListener(editor));
        }
    }

    private void setCellValidators( IAdaptable adaptable ) {
        CellEditor[] editors = tableViewer.getCellEditors();
View Full Code Here

            CellEditor cellEditor = descriptor.createPropertyEditor(tree);
            CellEditorListener cellEditorListener = null;
            if (cellEditor != null) {
                cellEditor.setValue(value);
                cellEditorListener = new CellEditorListener(item, descriptor, cellEditor);
                cellEditor.addListener(cellEditorListener);
                CellEditor.LayoutData layout = cellEditor.getLayoutData();
                TreeEditor treeEditor = new TreeEditor(tree);
                treeEditor.horizontalAlignment = layout.horizontalAlignment;
                treeEditor.grabHorizontal = layout.grabHorizontal;
                treeEditor.minimumWidth = layout.minimumWidth;
View Full Code Here

          ed = _inner.createPropertyEditor(parent1);
        else
          ed = new TextCellEditor(parent1);
       
        if (_statusLineManager != null)
          ed.addListener(new StatusBarUpdater(ed));
        return ed;
      }
    };
    return EditorCreator.getInstance().createCellEditorWithWrapper(parent,
        null, holder, _element, null);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.