Package easysm.datatypes

Examples of easysm.datatypes.Name


 
  /*
   * Event Handlers
   */
  private void button_okActionPerformed(ActionEvent evt) {
    Name name=null;
   
    try {
          name = new Name(jtexfield_name.getText());
        } catch (InvalidNameException e) {
          updateInputCD.error(Constants.MALFORMED_NAME);
      parent.getError();
          jtexfield_name.selectAll();
          jtexfield_name.requestFocus();
View Full Code Here


  private void jbutton_okActionPerformed(ActionEvent evt)
  {
    Type typeOfOperation = getTypeOfOperation();
    Set<ParameterInfo> parametersOfOperation = getParametersOfOperation();
    Name name = null;

    try {
      name = new Name(jtextfield_name.getText());
    } catch (InvalidNameException e) {
      updateInputCD.error(Constants.MALFORMED_NAME);
      parent.getError();
      jtextfield_name.selectAll();
      jtextfield_name.requestFocus();
View Full Code Here

  }

  public void updateCDElement(Class cl,
                              ClassInfo newClInfo)
  {
    Name newClName = newClInfo.name();
    Type type = getTypeByName(cl.name());
    cl.changeName(newClName);
    type.refreshFromClass(cl);
  }
View Full Code Here

  }

  public void updateCDElement(Enumeration en,
                              EnumerationInfo newEnInfo)
  {
    Name newEnName = newEnInfo.name();
    Type type = getTypeByName(en.name());
    en.changeName(newEnName);
    en.changeLiterals(newEnInfo.literalsInfo());
    type.refreshFromEnum(en);
  }
View Full Code Here

 
  /*
   * Events Handler
   */
  private void jbutton_okActionPerformed(ActionEvent evt) {
    Name name=null;
   
    try {
          name = new Name(jtextfield_name.getText());
        } catch (InvalidNameException e) {
          JOptionPane.showMessageDialog(this,
          Constants.MALFORMED_NAME,
          getTitle(),
              JOptionPane.ERROR_MESSAGE);
View Full Code Here

   * Event Handlers
   */
  private void button_okActionPerformed(ActionEvent evt)
  {
    Type typeOfParam = types[jcombobox_types.getSelectedIndex()];
    Name name = null;

    try {
      name = new Name(jtexfield_name.getText());
    } catch (InvalidNameException e) {
      updateEvents.error(Constants.MALFORMED_NAME);
      gParent.getError();
      jtexfield_name.selectAll();
      jtexfield_name.requestFocus();
View Full Code Here

  private void jbutton_okActionPerformed(ActionEvent evt)
  {
    Set<LiteralInfo> literalsOfNewEnum = getLiterals();

    Name name = null;

    try {
      name = new Name(jtextfield_name.getText());
    } catch (InvalidNameException e) {
      updateInputCD.error(Constants.MALFORMED_NAME);
      parent.getError();
      jtextfield_name.selectAll();
      jtextfield_name.requestFocus();
View Full Code Here

  /*
   * Event Handlers
   */
  private void button_okActionPerformed(ActionEvent evt) {
    Name literalName;
    try {
      literalName = new Name(jtexfield_name.getText());
    } catch (InvalidNameException e) {
      updateInputCD.error(Constants.MALFORMED_NAME);
      gParent.getError();
      jtexfield_name.selectAll();
      jtexfield_name.requestFocus();
View Full Code Here

    return !typeIsUsed(cl.name());
  }
 
  public boolean canUpdate(Class oldClass, ClassInfo newClassInfo)
  {
    Name newClassName = newClassInfo.name();
    if (oldClass.name().equals(newClassName)) {
      return true;
    }
    return !typeExists(newClassName);
  }
View Full Code Here

  {
    if (literalsAreRepeated(newEnumInfo.literalsInfo())) {
      main.inputCDError(Constants.REPEATED_LITERALS);
      return false;
    }
    Name newEnumName = newEnumInfo.name();
    if (oldEnum.name().equals(newEnumName)) {
      return true;
    }
    return !typeExists(newEnumName);
  }
View Full Code Here

TOP

Related Classes of easysm.datatypes.Name

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.