示例#1
0
 @Override
 public void setBinding(Binding impl) {
   if (impl instanceof CamelSqlBindingType) {
     this._binding = (CamelSqlBindingType) impl;
     setInUpdate(true);
     if (this._binding.getQuery() != null) {
       _queryText.setText(this._binding.getQuery());
     }
     if (this._binding.getDataSourceRef() != null) {
       _dataSourceRefText.setText(this._binding.getDataSourceRef());
     }
     if (this._binding.getPlaceholder() != null) {
       _placeholderText.setText(this._binding.getPlaceholder());
     }
     _batchCheckbox.setSelection(this._binding.isBatch());
     populateOperationCombo();
     String opName = CamelBindingUtil.getOperationNameForStaticOperationSelector(this._binding);
     if (opName != null) {
       setTextValue(_operationSelectionCombo, opName);
     }
     super.setTabsBinding(_binding);
     setInUpdate(false);
     validate();
   } else {
     this._binding = null;
     populateOperationCombo();
   }
   addObservableListeners();
 }
  @Override
  protected Control createDialogArea(Composite shell) {
    setTitle(TITLE);
    setMessage(DEFAULT_MESSAGE);

    Composite parent = (Composite) super.createDialogArea(shell);
    Composite c = new Composite(parent, SWT.BORDER);
    c.setLayout(new GridLayout(2, false));
    c.setLayoutData(new GridData(GridData.FILL_BOTH));

    createLabel(c, "Filter Name:");
    mFilterNameText = new Text(c, SWT.BORDER);
    mFilterNameText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    mFilterNameText.setText(mFilterName);

    createSeparator(c);

    createLabel(c, "by Log Tag:");
    mTagFilterText = new Text(c, SWT.BORDER);
    mTagFilterText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    mTagFilterText.setText(mTag);

    createLabel(c, "by Log Message:");
    mTextFilterText = new Text(c, SWT.BORDER);
    mTextFilterText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    mTextFilterText.setText(mText);

    createLabel(c, "by PID:");
    mPidFilterText = new Text(c, SWT.BORDER);
    mPidFilterText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    mPidFilterText.setText(mPid);

    createLabel(c, "by Application Name:");
    mAppNameFilterText = new Text(c, SWT.BORDER);
    mAppNameFilterText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    mAppNameFilterText.setText(mAppName);

    createLabel(c, "by Log Level:");
    mLogLevelCombo = new Combo(c, SWT.READ_ONLY | SWT.DROP_DOWN);
    mLogLevelCombo.setItems(getLogLevels().toArray(new String[0]));
    mLogLevelCombo.select(getLogLevels().indexOf(mLogLevel));

    /* call validateDialog() whenever user modifies any text field */
    ModifyListener m =
        new ModifyListener() {
          @Override
          public void modifyText(ModifyEvent arg0) {
            DialogStatus status = validateDialog();
            mOkButton.setEnabled(status.valid);
            setErrorMessage(status.message);
          }
        };
    mFilterNameText.addModifyListener(m);
    mTagFilterText.addModifyListener(m);
    mTextFilterText.addModifyListener(m);
    mPidFilterText.addModifyListener(m);
    mAppNameFilterText.addModifyListener(m);

    return c;
  }
示例#3
0
  private void getTableName() {
    DatabaseMeta inf = null;
    // New class: SelectTableDialog
    int connr = wConnection.getSelectionIndex();
    if (connr >= 0) inf = transMeta.getDatabase(connr);

    if (inf != null) {
      log.logDebug(
          toString(),
          Messages.getString("UpdateDialog.Log.LookingAtConnection")
              + inf.toString()); // $NON-NLS-1$

      DatabaseExplorerDialog std =
          new DatabaseExplorerDialog(shell, SWT.NONE, inf, transMeta.getDatabases());
      std.setSelectedSchema(wSchema.getText());
      std.setSelectedTable(wTable.getText());
      std.setSplitSchemaAndTable(true);
      if (std.open() != null) {
        wSchema.setText(Const.NVL(std.getSchemaName(), ""));
        wTable.setText(Const.NVL(std.getTableName(), ""));
      }
    } else {
      MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR);
      mb.setMessage(
          Messages.getString("UpdateDialog.InvalidConnection.DialogMessage")); // $NON-NLS-1$
      mb.setText(Messages.getString("UpdateDialog.InvalidConnection.DialogTitle")); // $NON-NLS-1$
      mb.open();
    }
  }
 /**
  * {@inheritDoc}
  *
  * @see droid.parts.ResourceAccessPropertiesEditionPart#setPackage_(String newValue)
  */
 public void setPackage_(String newValue) {
   if (newValue != null) {
     package_.setText(newValue);
   } else {
     package_.setText(""); // $NON-NLS-1$
   }
 }
  private void initControls() {
    IConnectionProfile profile = getConnectionProfile();
    Properties props = profile.getBaseProperties();
    if (null != props.get(IWSProfileConstants.PARAMETER_MAP)
        & !props.get(IWSProfileConstants.PARAMETER_MAP).equals(StringUtilities.EMPTY_STRING)) {
      this.parameterMap = ((Map) props.get(IWSProfileConstants.PARAMETER_MAP));
    }
    if (null != props.get(ICredentialsCommon.USERNAME_PROP_ID)) {
      usernameText.setText((String) props.get(ICredentialsCommon.USERNAME_PROP_ID));
    }
    if (null != props.get(ICredentialsCommon.PASSWORD_PROP_ID)) {
      passwordText.setText((String) props.get(ICredentialsCommon.PASSWORD_PROP_ID));
    }
    String url = ConnectionInfoHelper.readEndPointProperty(props);
    if (null != url) {
      urlText.setText(url);
    }
    if (null != props.get(ICredentialsCommon.SECURITY_TYPE_ID)) {
      securityText.setText((String) props.get(ICredentialsCommon.SECURITY_TYPE_ID));
    }

    for (Object key : props.keySet()) {
      String keyStr = (String) key;
      if (ICredentialsCommon.PASSWORD_PROP_ID.equalsIgnoreCase(keyStr)
          || ICredentialsCommon.SECURITY_TYPE_ID.equalsIgnoreCase(keyStr)
          || ICredentialsCommon.USERNAME_PROP_ID.equalsIgnoreCase(keyStr)
          || IWSProfileConstants.END_POINT_URI_PROP_ID.equalsIgnoreCase(keyStr)) {
        // do nothing;
      } else {
        extraProperties.put(key, props.get(key));
      }
    }
  }
  protected Control createDialogArea(Composite parent) {
    Composite dialogArea1 = (Composite) super.createDialogArea(parent);
    PlatformUI.getWorkbench()
        .getHelpSystem()
        .setHelp(dialogArea1, XMLCommonUIContextIds.XCUI_PROCESSING_DIALOG);

    Composite composite = new Composite(dialogArea1, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 2;
    layout.marginWidth = 0;
    composite.setLayout(layout);
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));

    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    gd.widthHint = 250;

    Label targetLabel = new Label(composite, SWT.NONE);
    targetLabel.setText(XMLUIMessages._UI_LABEL_TARGET_COLON);

    targetField = new Text(composite, SWT.SINGLE | SWT.BORDER);
    targetField.setLayoutData(gd);
    targetField.setText(getDisplayValue(target));

    Label dataLabel = new Label(composite, SWT.NONE);
    dataLabel.setText(XMLUIMessages._UI_LABEL_DATA_COLON);

    dataField = new Text(composite, SWT.SINGLE | SWT.BORDER);
    dataField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    dataField.setText(getDisplayValue(data));

    return dialogArea1;
  }
 /*
  * The key listeners we add workaround a bug int Text that don't repaint
  * properly when they have background images.
  */
 protected void createChatControl(Widget item) throws Exception {
   CTabItem tabItem = new CTabItem(tabFolder, SWT.NONE);
   tabItem.setText("Chat with " + ((TreeItem) item).getText());
   SashForm textForm = new SashForm(tabFolder, SWT.VERTICAL);
   final Text text1 = new Text(textForm, SWT.MULTI);
   text1.setData("id", "output");
   text1.setText(OUTPUT_TEXT);
   text1.addKeyListener(
       new KeyAdapter() {
         public void keyPressed(KeyEvent arg0) {
           text1.redraw();
         }
       });
   final Text text2 = new Text(textForm, SWT.MULTI);
   text2.setData("id", "input");
   text2.setText(INPUT_TEXT);
   text2.addKeyListener(
       new KeyAdapter() {
         public void keyPressed(KeyEvent arg0) {
           text2.redraw();
         }
       });
   tabItem.setControl(textForm);
   textForm.setWeights(new int[] {80, 20});
   getCSSEngine().applyStyles(textForm, false);
   tabFolder.setSelection(tabItem);
 }
 /**
  * {@inheritDoc}
  *
  * @see net.certware.argument.aml.parts.ReliabilityPropertiesEditionPart#setSymbol(String
  *     newValue)
  */
 public void setSymbol(String newValue) {
   if (newValue != null) {
     symbol.setText(newValue);
   } else {
     symbol.setText(""); // $NON-NLS-1$
   }
 }
示例#9
0
  void setInitialParameters() {
    if (security != null) {
      symbol.setText(getSecuritySymbol(security));
      symbolDescription.setText(security.getName());
    }

    if (position != null) {
      quantity.setText(numberFormat.format(position));
    }

    if (limitPrice != null) {
      price.setText(priceFormat.format(limitPrice));
    }

    if (broker != null) {
      IStructuredSelection selection = new StructuredSelection(broker);
      brokerCombo.setSelection(selection);
    } else {
      IBroker[] brokers = tradingService.getBrokers();
      if (brokers.length != 0) {
        brokerCombo.setSelection(new StructuredSelection(brokers[0]));
      }
    }
    handleBrokerSelection((IStructuredSelection) brokerCombo.getSelection());

    if (account != null) {
      accountCombo.setSelection(new StructuredSelection(account));
    }

    if (orderSide != null) {
      sideCombo.setSelection(new StructuredSelection(orderSide));
    }
  }
 /**
  * {@inheritDoc}
  *
  * @see net.certware.argument.aml.parts.ReliabilityPropertiesEditionPart#setLabel(String newValue)
  */
 public void setLabel(String newValue) {
   if (newValue != null) {
     label.setText(newValue);
   } else {
     label.setText(""); // $NON-NLS-1$
   }
 }
 /**
  * {@inheritDoc}
  *
  * @see net.certware.argument.aml.parts.ReliabilityPropertiesEditionPart#setOrdinal(String
  *     newValue)
  */
 public void setOrdinal(String newValue) {
   if (newValue != null) {
     ordinal.setText(newValue);
   } else {
     ordinal.setText(""); // $NON-NLS-1$
   }
 }
  /** Copy information from the meta-data input to the dialog fields. */
  public void getData() {
    if (isDebug())
      logDebug(toString(), BaseMessages.getString(PKG, "GetTableNamesDialog.Log.GettingKeyInfo"));

    if (input.getDatabase() != null) wConnection.setText(input.getDatabase().getName());
    else if (transMeta.nrDatabases() == 1) {
      wConnection.setText(transMeta.getDatabase(0).getName());
    }
    if (input.getSchemaName() != null) wschemaname.setText(input.getSchemaName());
    if (input.getTablenameFieldName() != null)
      wTablenameField.setText(input.getTablenameFieldName());
    if (input.getObjectTypeFieldName() != null)
      wObjectTypeField.setText(input.getObjectTypeFieldName());
    if (input.isSystemObjectFieldName() != null)
      wisSystemObjectField.setText(input.isSystemObjectFieldName());
    if (input.getSQLCreationFieldName() != null)
      wSQLCreationField.setText(input.getSQLCreationFieldName());
    wincludeCatalog.setSelection(input.isIncludeCatalog());
    wincludeSchema.setSelection(input.isIncludeSchema());
    wincludeTable.setSelection(input.isIncludeTable());
    wincludeView.setSelection(input.isIncludeView());
    wincludeProcedure.setSelection(input.isIncludeProcedure());
    wincludeSynonym.setSelection(input.isIncludeSynonym());
    waddSchemaInOutput.setSelection(input.isAddSchemaInOut());

    wdynamicSchema.setSelection(input.isDynamicSchema());
    if (input.getSchemaFieldName() != null) wSchemaField.setText(input.getSchemaFieldName());

    wStepname.selectAll();
    wStepname.setFocus();
  }
 private void logout() {
   getJiraManager().logout();
   usernameText.setText(StringUtil.EMPTY);
   passwordText.setText(StringUtil.EMPTY);
   usernameText.setFocus();
   layout();
 }
示例#14
0
  @Override
  protected void performDefaults() {
    textMaxLineWidth.setText(Integer.toString(CorePlugin.ECL_EDITOR_LINE_WIDTH_DEFAULT));
    textIndent.setText(Integer.toString(CorePlugin.ECL_EDITOR_INDENT_DEFAULT));

    super.performDefaults();
  }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.cinematic.flow.parts.ViewStatePropertiesEditionPart#setDescription(String
  *     newValue)
  */
 public void setDescription(String newValue) {
   if (newValue != null) {
     description.setText(newValue);
   } else {
     description.setText(""); // $NON-NLS-1$
   }
 }
  /** Copy information from the meta-data input to the dialog fields. */
  public void getData() {
    wStepname.setText(stepname);

    for (int i = 0; i < input.getFieldCCType().length; i++) {
      TableItem item = wFields.table.getItem(i);
      String type = input.getFieldCCType()[i];
      String len = input.getFieldCCLength()[i];
      String size = input.getFieldCCSize()[i];

      if (type != null) item.setText(1, type);
      if (len != null) item.setText(2, len);
      if (size != null) item.setText(3, size);
    }

    wFields.setRowNums();
    wFields.optWidth(true);

    if (input.getCardNumberFieldName() != null)
      wCCNumberField.setText(input.getCardNumberFieldName());
    if (input.getCardTypeFieldName() != null) wCCTypeField.setText(input.getCardTypeFieldName());
    if (input.getCardLengthFieldName() != null)
      wCCLengthField.setText(input.getCardLengthFieldName());

    wStepname.selectAll();
  }
  @Override
  public void refresh() {
    initiatorText.removeFocusListener(listener);
    formKeyText.removeFocusListener(listener);
    PictogramElement pe = getSelectedPictogramElement();
    if (pe != null) {
      Object bo = getBusinessObject(pe);
      // the filter assured, that it is a EClass
      if (bo == null) return;

      StartEvent startEvent = ((StartEvent) bo);

      if (startEvent.getInitiator() != null) {
        initiatorText.setText(startEvent.getInitiator());
      } else {
        initiatorText.setText("");
      }

      if (startEvent.getFormKey() != null) {

        String condition = startEvent.getFormKey();
        formKeyText.setText(condition);
      } else {
        formKeyText.setText("");
      }
    }
    initiatorText.addFocusListener(listener);
    formKeyText.addFocusListener(listener);
  }
 /** @param text */
 @SuppressWarnings("deprecation")
 protected void updateDeviceIpPort(String selectedDeviceName) {
   if (selectedDeviceName.equals(savedJtagDevice)) {
     return;
   }
   GDBJtagDeviceContribution[] availableDevices =
       GDBJtagDeviceContributionFactory.getInstance().getGDBJtagDeviceContribution();
   IGDBJtagDevice selectedDevice = null;
   for (int i = 0; i < availableDevices.length; i++) {
     String name = availableDevices[i].getDeviceName();
     if (name.equals(selectedDeviceName)) {
       selectedDevice = availableDevices[i].getDevice();
       if (selectedDevice != null) {
         if (selectedDevice instanceof IGDBJtagConnection) {
           IGDBJtagConnection connectionDevice = (IGDBJtagConnection) selectedDevice;
           connection.setText(connectionDevice.getDefaultDeviceConnection());
         } else {
           // support for deprecated TCP/IP based methods
           ipAddress.setText(selectedDevice.getDefaultIpAddress());
           portNumber.setText(selectedDevice.getDefaultPortNumber());
         }
         useRemoteChanged();
         updateLaunchConfigurationDialog();
         break;
       }
     }
   }
 }
 public void DisplayMessageContents(
     MessageSenderHighlevelClass.XMLMessageRootClass messageObject) {
   senderNameText.setText(messageObject.InfoList.get(0));
   recepientNameText.setText(messageObject.InfoList.get(1));
   messageIDText.setText(messageObject.InfoList.get(2));
   ticketText.setText(messageObject.InfoList.get(3));
 }
示例#20
0
  protected void buttonPressed(int buttonId) {
    if (buttonId == RESET_ID) {
      usernameField.setText(""); // $NON-NLS-1$
      passwordField.setText(""); // $NON-NLS-1$
    } else {
      if (buttonId == Window.OK) {
        if (!workspaceCombo.getEnabled()) {
          portalStatus.setText(Messages.TAUPortalUploadDialog_ErrorNoWorkspace);
          return;
        }
        if (workspaceCombo.getSelectionIndex() == -1) {
          portalStatus.setText(Messages.TAUPortalUploadDialog_ErrorNoWorkspace);
          return;
        }

        try {
          String success =
              uploadPPK(
                  url, uname, pwd, workspaceCombo.getItem(workspaceCombo.getSelectionIndex()), ppk);
          if (success.indexOf(Messages.TAUPortalUploadDialog_Error) >= 0) {
            portalStatus.setText(success);
            return;
          }
        } catch (Exception e) {
          e.printStackTrace();
          portalStatus.setText(Messages.TAUPortalUploadDialog_UploadError);
          return;
        }
      }
      super.buttonPressed(buttonId);
    }
  }
示例#21
0
  /**
   * Creates and returns the content of the information area.
   *
   * @param composite The parent composite to contain the information area
   */
  private Composite createInfoArea(Composite composite) {
    Group group = new Group(composite, SWT.CENTER);
    group.setText("Info");
    GridLayout layout = new GridLayout(2, false);
    group.setLayout(layout);

    Label dateLabel = new Label(group, SWT.LEFT);
    dateLabel.setText("Date");
    GridData gd = new GridData(SWT.FILL, SWT.CENTER, true, false);
    dateLabel.setLayoutData(gd);
    dateText = new Text(group, SWT.SINGLE | SWT.BORDER);
    final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    final TimeZone local = TimeZone.getDefault();
    sdf.setTimeZone(local);
    // new Date() gets current date/elapsedTime
    final String dateString = sdf.format(new Date());
    dateText.setText(dateString);
    gd = new GridData(SWT.FILL, SWT.CENTER, true, false);
    dateText.setLayoutData(gd);

    Label authorLabel = new Label(group, SWT.LEFT);
    authorLabel.setText("Author");
    gd = new GridData(SWT.FILL, SWT.CENTER, true, false);
    authorLabel.setLayoutData(gd);
    authorText = new Text(group, SWT.SINGLE | SWT.BORDER);
    // should look in preferences...
    authorText.setText(
        Activator.getDefault()
            .getPreferenceStore()
            .getString(ProfileDefinitionPreferenceConstants.PREF_AUTHOR_NAME));
    gd = new GridData(SWT.FILL, SWT.CENTER, true, false);
    authorText.setLayoutData(gd);

    return group;
  }
示例#22
0
  @Override
  public void initializeFrom(ILaunchConfiguration configuration) {
    SDBGLaunchConfigWrapper dartLauncher = new SDBGLaunchConfigWrapper(configuration);

    htmlText.setText(dartLauncher.appendQueryParams(dartLauncher.getApplicationName()));
    argumentText.setText(dartLauncher.getArguments());
  }
 /**
  * {@inheritDoc}
  *
  * @see droid.parts.ResourceAccessPropertiesEditionPart#setExternalResource(String newValue)
  */
 public void setExternalResource(String newValue) {
   if (newValue != null) {
     externalResource.setText(newValue);
   } else {
     externalResource.setText(""); // $NON-NLS-1$
   }
 }
示例#24
0
  /*
   * (non-Javadoc)
   *
   * @see
   * org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt
   * .events.SelectionEvent)
   */
  public void widgetSelected(final SelectionEvent e) {
    ErlLogger.debug("widgetSelected: e.item = " + e.item);
    ErlLogger.debug("widgetSelected: e.widget = " + e.widget);

    if (e.widget == removeFunctionBtn) {
      final TableItem itemsToRemove[] = fTable.getSelection();
      for (final TableItem element : itemsToRemove) {
        fTable.remove(fTable.indexOf(element));
        if (element == fEditingItem) {
          fEditingItem = null;
        }
      }

    } else if (e.widget == editFunctionBtn) {
      if (fEditingItem != null) {
        removeEdit();
      }
      final int selectedIndex = fTable.getSelectionIndex();
      final TableItem selectedItem = fTable.getItem(selectedIndex);
      if (!"".equals(selectedItem.getText(0))) {
        fEditingItem = selectedItem;
        functionNameText.setText(selectedItem.getText(0));
        arityText.setText(selectedItem.getText(1));
        exportButtonBtn.setSelection(selectedItem.getChecked());
        fEditingItem.setText(0, selectedItem.getText(0) + "<<Being Edited>>");
      }
      // } else if (e.widget == addState) {

    }
    dialogChanged();
  }
示例#25
0
 /** @see org.eclipse.jface.preference.PreferencePage#performDefaults() */
 protected void performDefaults() {
   IPreferenceStore prefs = getPreferenceStore();
   showGeneratedBy.setSelection(
       prefs.getDefaultBoolean(MsgEditorPreferences.SHOW_SUPPORT_ENABLED));
   convertUnicodeToEncoded.setSelection(
       prefs.getDefaultBoolean(MsgEditorPreferences.UNICODE_ESCAPE_ENABLED));
   convertUnicodeToEncoded.setSelection(
       prefs.getDefaultBoolean(MsgEditorPreferences.UNICODE_ESCAPE_UPPERCASE));
   alignEqualSigns.setSelection(
       prefs.getDefaultBoolean(MsgEditorPreferences.ALIGN_EQUALS_ENABLED));
   alignEqualSigns.setSelection(
       prefs.getDefaultBoolean(MsgEditorPreferences.SPACES_AROUND_EQUALS_ENABLED));
   groupKeys.setSelection(prefs.getDefaultBoolean(MsgEditorPreferences.GROUP_KEYS_ENABLED));
   groupLevelDeep.setText(prefs.getDefaultString(MsgEditorPreferences.GROUP_LEVEL_DEEP));
   groupLineBreaks.setText(
       prefs.getDefaultString(MsgEditorPreferences.GROUP_SEP_BLANK_LINE_COUNT));
   groupAlignEqualSigns.setSelection(
       prefs.getDefaultBoolean(MsgEditorPreferences.GROUP_ALIGN_EQUALS_ENABLED));
   wrapLines.setSelection(prefs.getDefaultBoolean(MsgEditorPreferences.WRAP_LINES_ENABLED));
   wrapCharLimit.setText(prefs.getDefaultString(MsgEditorPreferences.WRAP_LINE_LENGTH));
   wrapAlignEqualSigns.setSelection(
       prefs.getDefaultBoolean(MsgEditorPreferences.WRAP_ALIGN_EQUALS_ENABLED));
   wrapIndentSpaces.setText(prefs.getDefaultString(MsgEditorPreferences.WRAP_INDENT_LENGTH));
   wrapNewLine.setSelection(prefs.getDefaultBoolean(MsgEditorPreferences.NEW_LINE_NICE));
   newLineTypeForce.setSelection(
       prefs.getDefaultBoolean(MsgEditorPreferences.FORCE_NEW_LINE_TYPE));
   newLineTypes[Math.min(prefs.getDefaultInt(MsgEditorPreferences.NEW_LINE_STYLE) - 1, 0)]
       .setSelection(true);
   keepEmptyFields.setSelection(prefs.getDefaultBoolean(MsgEditorPreferences.KEEP_EMPTY_FIELDS));
   sortKeys.setSelection(prefs.getDefaultBoolean(MsgEditorPreferences.SORT_KEYS));
   refreshEnabledStatuses();
   super.performDefaults();
 }
  /**
   * Create contents of the dialog.
   *
   * @param parent
   */
  @Override
  protected Control createDialogArea(Composite parent) {
    setMessage(title);
    setTitle("Tadpole Message");
    Composite area = (Composite) super.createDialogArea(parent);
    Composite container = new Composite(area, SWT.NONE);
    container.setLayout(new GridLayout(2, false));
    container.setLayoutData(new GridData(GridData.FILL_BOTH));

    lblDate = new Label(container, SWT.NONE);
    lblDate.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblDate.setText("Date");

    text = new Text(container, SWT.BORDER);
    text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
    text.setText(head);

    lblMessage = new Label(container, SWT.NONE);
    lblMessage.setText("Message");
    new Label(container, SWT.NONE);

    textMessage =
        new Text(
            container,
            SWT.BORDER | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);
    textMessage.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));
    textMessage.setText(message);

    return area;
  }
  @Override
  public void refresh() {
    _inUpdate = true;
    try {
      org.eclipse.soa.sca.sca1_1.model.sca.Composite composite = getTargetObject();
      if (composite != null) {
        _businessObject = composite;
        if (_nameListener == null) {
          _nameListener = new NameListener();
        }
        composite.eAdapters().add(_nameListener);

        if (_nameText != null && !_nameText.isDisposed()) {
          String name = composite.getName();
          _nameText.setText(name == null ? "" : name); // $NON-NLS-1$
        }
        if (_targetNamespaceText != null && !_targetNamespaceText.isDisposed()) {
          // update TNS text box based on SY/composite settings
          String tns = composite.getTargetNamespace();
          _targetNamespaceText.setText(tns);
        }
      }
    } finally {
      _inUpdate = false;
    }
  }
  protected Control createDialogArea(Composite parent) {
    Composite composite = (Composite) super.createDialogArea(parent);
    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 2;
    composite.setLayout(gridLayout);

    Work work = (Work) getValue();

    Label nameLabel = new Label(composite, SWT.NONE);
    nameLabel.setText("Name: ");
    Text nameText = new Text(composite, SWT.NONE);
    nameText.setEditable(false);
    GridData gridData = new GridData();
    gridData.grabExcessHorizontalSpace = true;
    gridData.horizontalAlignment = GridData.FILL;
    nameText.setLayoutData(gridData);
    String name = work.getName();
    nameText.setText(name == null ? "" : name);

    Set<ParameterDefinition> parameters = workDefinition.getParameters();
    for (ParameterDefinition param : parameters) {
      Label label = new Label(composite, SWT.NONE);
      label.setText(param.getName() + ": ");
      Text text = new Text(composite, SWT.NONE);
      gridData = new GridData();
      gridData.grabExcessHorizontalSpace = true;
      gridData.horizontalAlignment = GridData.FILL;
      text.setLayoutData(gridData);
      texts.put(param.getName(), text);
      Object value = work.getParameter(param.getName());
      text.setText(value == null ? "" : value.toString());
    }

    return composite;
  }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.eclipse.amalgam.tutorials.emf.droid.parts.BooleanVDPropertiesEditionPart#setValue(String
  *     newValue)
  */
 public void setValue(String newValue) {
   if (newValue != null) {
     value.setText(newValue);
   } else {
     value.setText(""); // $NON-NLS-1$
   }
 }
  public void initialize() {
    String modifierString =
        fStore.getString(
            AbstractDecoratedTextEditorPreferenceConstants.EDITOR_HYPERLINK_KEY_MODIFIER);
    if (computeStateMask(modifierString) == -1) {
      // Fix possible illegal modifier string
      int stateMask =
          fStore.getInt(
              AbstractDecoratedTextEditorPreferenceConstants.EDITOR_HYPERLINK_KEY_MODIFIER_MASK);
      if (stateMask == -1) fHyperlinkDefaultKeyModifierText.setText(""); // $NON-NLS-1$
      else fHyperlinkDefaultKeyModifierText.setText(getModifierString(stateMask));
    } else fHyperlinkDefaultKeyModifierText.setText(modifierString);
    boolean isEnabled =
        fStore.getBoolean(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_HYPERLINKS_ENABLED);
    fHyperlinksEnabledCheckBox.setSelection(isEnabled);
    fHyperlinkKeyModifierText.setEnabled(isEnabled);
    fHyperlinkDefaultKeyModifierText.setEnabled(isEnabled);

    fListModel = createListModel();
    fHyperlinkDetectorsViewer.setInput(fListModel);
    fHyperlinkDetectorsViewer.setAllChecked(false);
    fHyperlinkDetectorsViewer.setCheckedElements(getCheckedItems());
    fHyperlinkDetectorsViewer.getTable().setEnabled(isEnabled);

    fHyperlinkKeyModifierText.setText(""); // $NON-NLS-1$

    handleListSelection();
  }