Package org.apache.hdt.core.launch

Examples of org.apache.hdt.core.launch.ConfProp


     * @return a SWT Text field
     */
    private Text createConfNameEditor(ModifyListener listener, Composite parent, String propName, String labelText) {

        {
            ConfProp prop = location.getConfPropForName(propName);
            if (prop != null)
                return createConfLabelText(listener, parent, prop, labelText);
        }

        Label label = new Label(parent, SWT.NONE);
View Full Code Here


         * @param source
         * @param propName
         * @param propValue
         */
        void notifyChange(TabListener source, String propName, String propValue) {
            ConfProp prop = location.getConfPropForName(propName);
            if (prop != null)
                notifyChange(source, prop, propValue);
            else
                location.setConfPropValue(propName, propValue);
        }
View Full Code Here

        }

        /* @inheritDoc */
        public void modifyText(ModifyEvent e) {
            final Text text = (Text) e.widget;
            final ConfProp prop = (ConfProp) text.getData("hProp");
            Display.getDefault().syncExec(new Runnable() {
                public void run() {
                    mediator.notifyChange(TabMain.this, prop, text.getText());
                }
            });
View Full Code Here

        }

        /* @inheritDoc */
        public void widgetSelected(SelectionEvent e) {
            final Button button = (Button) e.widget;
            final ConfProp prop = (ConfProp) button.getData("hProp");

            Display.getDefault().syncExec(new Runnable() {
                public void run() {
                    // We want to receive the update also!
                    mediator.notifyChange(null, prop, button.getSelection() ? "yes" : "no");
View Full Code Here

        }

        public void modifyText(ModifyEvent e) {
            final Text text = (Text) e.widget;
            Object hProp = text.getData("hProp");
            final ConfProp prop = (hProp != null) ? (ConfProp) hProp : null;
            Object hPropName = text.getData("hPropName");
            final String propName = (hPropName != null) ? (String) hPropName : null;

            Display.getDefault().syncExec(new Runnable() {
                public void run() {
View Full Code Here

      text.setText(location.getConfPropValue(ConfProp.PI_LOCATION_NAME));
      text.addModifyListener(new ModifyListener() {
        @Override
        public void modifyText(ModifyEvent e) {
          final Text text = (Text) e.widget;
          final ConfProp prop = (ConfProp) text.getData("hProp");
          Display.getDefault().syncExec(new Runnable() {
            public void run() {
              uiConfigurationBuilder.notifyChange(ConfProp.PI_LOCATION_NAME,text.getText());
            }
          });
View Full Code Here

   * @return a SWT Text field
   */
  private Text createConfNameEditor(ModifyListener listener, Composite parent, String propName, String labelText) {

    {
      ConfProp prop = location.getConfPropForName(propName);
      if (prop != null)
        return createConfLabelText(listener, parent, prop, labelText);
    }

    Label label = new Label(parent, SWT.NONE);
View Full Code Here

     * @param source
     * @param propName
     * @param propValue
     */
    void notifyChange(ChangeListener source, String propName, String propValue) {
      ConfProp prop = location.getConfPropForName(propName);
      if (prop != null)
        notifyChange(source, prop, propValue);
      else
        location.setConfPropValue(propName, propValue);
    }
View Full Code Here

    }

    /* @inheritDoc */
    public void modifyText(ModifyEvent e) {
      final Text text = (Text) e.widget;
      final ConfProp prop = (ConfProp) text.getData("hProp");
      Display.getDefault().syncExec(new Runnable() {
        public void run() {
          mediator.notifyChange(TabMain.this, prop, text.getText());
        }
      });
View Full Code Here

    }

    /* @inheritDoc */
    public void widgetSelected(SelectionEvent e) {
      final Button button = (Button) e.widget;
      final ConfProp prop = (ConfProp) button.getData("hProp");

      Display.getDefault().syncExec(new Runnable() {
        public void run() {
          // We want to receive the update also!
          mediator.notifyChange(null, prop, button.getSelection() ? "yes" : "no");
View Full Code Here

TOP

Related Classes of org.apache.hdt.core.launch.ConfProp

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.