Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Text.selectAll()


                    };
                    text.addListener(SWT.FocusOut, textListener);
                    text.addListener(SWT.Traverse, textListener);
                    editor.setEditor(text, item, i);
                    text.setText(item.getText(i));
                    text.selectAll();
                    text.setFocus();
                    return;
                  }
                  if (!visible && rect.intersects(clientArea)) {
                    visible = true;
View Full Code Here


                {
                    closeTableEditor();
                }
            }
        } );
        newEditor.selectAll();
        newEditor.setFocus();
        tableEditor.setEditor( newEditor, item, 0 );
        Activator.getDefault().getWorkbench().getDisplay().addFilter( SWT.Traverse, returnKeyListener );
    }
View Full Code Here

                    };
                    text.addListener(SWT.FocusOut, textListener);
                    text.addListener(SWT.Traverse, textListener);
                    editor.setEditor(text, item, i);
                    text.setText(item.getText(i));
                    text.selectAll();
                    text.setFocus();
                    return;
                  }
                  if (!visible && rect.intersects(clientArea)) {
                    visible = true;
View Full Code Here

  protected void initCellEditor() {
    Text text = (Text) getCellEditor().getControl();
    TrayEditPart part = (TrayEditPart) getEditPart();
    String initialLabelText = part.getDirectEditLabel().getText();
    getCellEditor().setValue(initialLabelText);
    text.selectAll();
  }
}
View Full Code Here

      if (id.equals(ActionFactory.PASTE.getId())) {
        text.paste();
        return true;
      }
      if (id.equals(ActionFactory.SELECT_ALL.getId())) {
        text.selectAll();
        return true;
      }
      if (id.equals(ActionFactory.DELETE.getId())) {
        int count = text.getSelectionCount();
        if (count == 0) {
View Full Code Here

      if (id.equals(ActionFactory.PASTE.getId())) {
        text.paste();
        return true;
      }
      if (id.equals(ActionFactory.SELECT_ALL.getId())) {
        text.selectAll();
        return true;
      }
      if (id.equals(ActionFactory.DELETE.getId())) {
        int count = text.getSelectionCount();
        if (count == 0) {
View Full Code Here

    }

    protected void initCellEditor() {
        getCellEditor().setValue(element.getName());
        Text text = (Text) getCellEditor().getControl();
        text.selectAll();
    }
}
View Full Code Here

                    };
                    text.addListener(SWT.FocusOut, textListener);
                    text.addListener(SWT.Traverse, textListener);
                    editor.setEditor(text, item, i);
                    text.setText(item.getText(i));
                    text.selectAll();
                    text.setFocus();
                    return;
                  }
                  if (!visible && rect.intersects(clientArea)) {
                    visible = true;
View Full Code Here

                {
                    closeTableEditor();
                }
            }
        } );
        newEditor.selectAll();
        newEditor.setFocus();
        tableEditor.setEditor( newEditor, item, 0 );
        display.addFilter( SWT.Traverse, returnKeyListener );
    }
View Full Code Here

      Label label = new Label(dialog, SWT.NONE);
      label.setText(PaintExample.getResourceString("tool.Text.dialog.message"));
      label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
      final Text field = new Text(dialog, SWT.SINGLE | SWT.BORDER);
      field.setText(drawText);
      field.selectAll();
      field.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
      Composite buttons = new Composite(dialog, SWT.NONE);
      GridLayout layout = new GridLayout(2, true);
      layout.marginWidth = 0;
      buttons.setLayout(layout);
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.