Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.ICellEditorListener


                    }

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


            private void enableEditing( final FeatureTypeCellModifier featureTypeCellModifier, final Query query, AdaptableFeatureCollection adaptableCollection ) {
                adaptableCollection.addAdapter(featureTypeCellModifier);
                ICellEditorListener[] keyBindingActivators=new ICellEditorListener[query.getPropertyNames().length];
                for( int i = 0; i < keyBindingActivators.length; i++ ) {
                    keyBindingActivators[i]=new ICellEditorListener(){
                        public void applyEditorValue() {
                            ApplicationGIS.getToolManager().registerActionsWithPart(TableView.this);
                        }

                        public void cancelEditor() {
View Full Code Here

  protected Control createContents(Composite cell) {
    _wrapped = createWrappedCellEditor(cell);
    if (_wrapped == null) {
      _wrapped = new TextCellEditor(cell);
    }
    _wrapped.addListener(new ICellEditorListener() {
      public void applyEditorValue() {
        fireApplyEditorValue();
      }

      public void cancelEditor() {
View Full Code Here

  {
  }
   
  private void initCellEditorListener()
  {
    cellEditorListener = new ICellEditorListener()
    {
      public void editorValueChanged(boolean oldValidState,
          boolean newValidState)
      {
        // Ignore.
View Full Code Here

            editor = new org.eclipse.jface.viewers.TextCellEditor(
                    viewer.getTable());

            editor.setValidator(cellEditorValidator);

            editor.addListener(new ICellEditorListener() {

                @Override
                public void editorValueChanged(boolean oldValidState,
                        boolean newValidState) {
                    ((ValueWrapper) element).setValid(editor.isValueValid());
View Full Code Here

    /**
     * Creates a new cell editor listener.
     */
    private void createEditorListener() {
        editorListener = new ICellEditorListener() {
            public void cancelEditor() {
                deactivateCellEditor();
            }

            public void editorValueChanged(boolean oldValidState,
View Full Code Here

        String editedValue = value.toString();
        return editedValue.length() > 0 ? null
            : UIText.ConfigurationEditorComponent_EmptyStringNotAllowed;
      }
    });
    editor.addListener(new ICellEditorListener() {

      public void editorValueChanged(boolean oldValidState,
          boolean newValidState) {
        setErrorMessage(editor.getErrorMessage());
      }
View Full Code Here

            @Override
            public void handleEvent(Event event) {
                fireDirtyAsNecessary();
            }
        };
        cellEditorListener = new ICellEditorListener() {

            @Override
            public void editorValueChanged(boolean oldValidState, boolean newValidState) {
                // not applicable
            }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.viewers.ICellEditorListener

Copyright © 2018 www.massapicom. 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.