Package org.eclipse.ui.forms.widgets

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createText()


        classNameLabel.setLayoutData(defaultGridData.create());

        String description = wrapper.getMBeanInfo().getDescription();

        toolkit.createLabel(body, Messages.description);
        Text descriptionText = toolkit.createText(body, description, SWT.MULTI
                | SWT.WRAP | SWT.READ_ONLY);
        descriptionText.setLayoutData(defaultGridData.create());

        Section notifSection = toolkit.createSection(body, Section.TITLE_BAR
                | Section.TWISTIE | Section.TWISTIE);
View Full Code Here


        // Details Label
        Label detailsLabel = toolkit.createLabel( parent, Messages.getString( "ErrorPage.Details" ) ); //$NON-NLS-1$
        detailsLabel.setLayoutData( new GridData( SWT.NONE, SWT.NONE, false, false, 2, 1 ) );

        // Details Text
        Text detailsText = toolkit.createText( parent, "", SWT.MULTI ); //$NON-NLS-1$
        detailsText.setEditable( false );
        detailsText.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true, 2, 1 ) );
        detailsText.setText( ( ( ServerConfigurationEditor ) getEditor() ).getErrorMessage() );
    }
}
View Full Code Here

    composite.setBackground(null);
    composite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
    Control label = toolkit.createLabel(composite, "Search");
    label.setBackground(null);

    searchText = toolkit.createText(composite, "", SWT.FLAT | SWT.SEARCH); //$NON-NLS-1$
    searchText.setData(FormToolkit.TEXT_BORDER, Boolean.TRUE);
    searchText.setLayoutData(new GridData(200, -1));
    ToolBar cancelBar = new ToolBar(composite, SWT.FLAT);

    final ToolItem clearToolItem = new ToolItem(cancelBar, SWT.NONE);
View Full Code Here

    section.setClient(composite);

    // ------- Label and text field for the http port -------
    createLabel(composite, Messages.httpPort, toolkit);

    httpPort = toolkit.createText(composite, getHTTPPort(), SWT.BORDER);
    httpPort.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
    httpPort.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        execute(new SetHTTPPortCommand(server, httpPort.getText()));
      }
View Full Code Here

    });

    // ------- Label and text field for the rmi port -------
    createLabel(composite, Messages.rmiPort, toolkit);

    rmiPort = toolkit.createText(composite, getRMIPort(), SWT.BORDER);
    rmiPort.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
    rmiPort.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        execute(new SetRMIPortCommand(server, rmiPort.getText()));
      }
View Full Code Here

    composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    section.setClient(composite);

    // ------- Label and text field for the username -------
    createLabel(composite, Messages.username, toolkit);
    username = toolkit.createText(composite, getUserName(), SWT.BORDER);
    username.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
    username.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        execute(new SetUsernameCommand(server, username.getText()));
      }
View Full Code Here

    });

    // ------- Label and text field for the password -------
    createLabel(composite, Messages.password, toolkit);

    password = toolkit.createText(composite, getPassword(), SWT.BORDER | SWT.PASSWORD);
    password.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
    password.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        execute(new SetPasswordCommand(server, password.getText()));
      }
View Full Code Here

    composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    section.setClient(composite);

    // ------- Label and text field for the ping delay -------
    createLabel(composite, Messages.pingDelay, toolkit);
    pingDelay = toolkit.createText(composite, getPingDelay(), SWT.BORDER);
    pingDelay.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
    pingDelay.setToolTipText(Messages.pingDelayTooltip);
    pingDelay.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        Integer value = Integer.valueOf(pingDelay.getText());
View Full Code Here

      }
    });

    // ------- Label and text field for the ping interval -------
    createLabel(composite, Messages.pingInterval, toolkit);
    pingInterval = toolkit.createText(composite, getPingInterval(), SWT.BORDER);
    pingInterval.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
    pingInterval.setToolTipText(Messages.pingIntervalTooltip);
    pingInterval.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        Integer value = Integer.valueOf(pingInterval.getText());
View Full Code Here

      }
    });
   
    // ------- Label and text field for the max pings -------
    createLabel(composite, Messages.maxPings, toolkit);
    maxPings = toolkit.createText(composite, getMaxPings(), SWT.BORDER);
    maxPings.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
    maxPings.setToolTipText(Messages.maxPingsTooltip);
    maxPings.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        Integer value = Integer.valueOf(maxPings.getText());
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.