Package org.eclipse.swt.widgets

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


    @Override
    protected void initCellEditor() {
        Text text = (Text) getCellEditor().getControl();
        String name = ((NodeGraphicalEditPart) getEditPart()).getModel().getName();
        getCellEditor().setValue(name);
        text.selectAll();
    }

}
View Full Code Here


                    updateButtons();
                }
            });
        }
        if (createMode) {
            nameField.selectAll();
        }
        return area;
    }

    private void updateButtons() {
View Full Code Here

                    name = nameField.getText().replaceAll(" ", "_");
                    updateButtons();
                }
            });
            nameField.setFocus();
            nameField.selectAll();
        }
       
        final Label labelType = new Label(composite, SWT.NONE);
        labelType.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        labelType.setText(Messages.getString("Variable.property.format") + ":");
View Full Code Here

        }
       
        final GOIMGameExecuteCommands cmd = (GOIMGameExecuteCommands)item.getData();
        final Text command = new Text(executeCommandsTable,SWT.NONE);
        command.setText(cmd.command);
        command.selectAll();
        command.setFocus();
       
        cmdEditor.setEditor(command, item, 0);
       
        final Combo type = new Combo(executeCommandsTable,SWT.DROP_DOWN | SWT.READ_ONLY);
View Full Code Here

   * Eines der Textfelder erhielt den Focus.
   * @see org.eclipse.swt.events.FocusListener#focusGained(org.eclipse.swt.events.FocusEvent)
   */
  public void focusGained(FocusEvent e) {
    Text t = (Text) e.widget;
    t.selectAll();
  }

  /**
   * Eines der Textfelder verlor den Focus.
   * @see org.eclipse.swt.events.FocusListener#focusLost(org.eclipse.swt.events.FocusEvent)
View Full Code Here

            // Transfer any text from the cell to the Text control,
            // set the color to match this row, select the text,
            // and set focus to the control
            text.setText(item.getText(column));
            text.setForeground(item.getForeground());
            text.selectAll();
            text.setFocus();

            // Recalculate the minimum width for the editor
            editor.minimumWidth = text.getBounds().width;
View Full Code Here

            // Transfer any text from the cell to the Text control,
            // set the color to match this row, select the text,
            // and set focus to the control
            text.setText(item.getText(column));
            text.setForeground(item.getForeground());
            text.selectAll();
            text.setFocus();

            // Recalculate the minimum width for the editor
            editor.minimumWidth = text.getBounds().width;
View Full Code Here

  */
  protected void initCellEditor()
  {
    getCellEditor().setValue(model.getText());
    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

                    };
                    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

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.