Package org.apache.geronimo.st.ui.commands

Examples of org.apache.geronimo.st.ui.commands.SetServerInstancePropertyCommand


    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());
        execute(new SetServerInstancePropertyCommand(server, value, "setPingDelay", Integer.class, IGeronimoServer.class));
      }
    });

    // ------- 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());
        execute(new SetServerInstancePropertyCommand(server, value, "setPingInterval", Integer.class, IGeronimoServer.class));
      }
    });
   
    // ------- 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());
        execute(new SetServerInstancePropertyCommand(server, value, "setMaxPings", Integer.class, IGeronimoServer.class));
      }
    });
  }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.st.ui.commands.SetServerInstancePropertyCommand

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.