Package easysm.datatypes.information

Examples of easysm.datatypes.information.LiteralInfo


  @Test
  public void Main_doGenerateStates_OneValidTable_EnumState()
  {
    Set<LiteralInfo> literals = SetFactory.createSet(LiteralInfo.class);
    literals.add(new LiteralInfo(stPino));
    literals.add(new LiteralInfo(stGino));
    EnumerationInfo eInfo = new EnumerationInfo(stTino, literals);
    Enumeration e = new Enumeration(eInfo);
    main.doAddStateObserver(new StateObserverInfo(stGino, Type.enumAsType(e), null));
    List<StateObserver> usedSet = main.stateObservers().soList();
    main.doSelectUsedSO(usedSet);
View Full Code Here


        this.setTitle("Edit an Enumeration");
        jtextfield_name.setText(enumToEdit.name().toString());

        Literal[] l = enumToEdit.literals().toArray(new Literal[0]);
        for (int i = 0; i < enumToEdit.literals().size(); ++i)
          literals.add(new LiteralInfo(l[i].name()));
      }

      setSize(400, 300);
      setLocationRelativeTo(null);
      setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
View Full Code Here

      jtexfield_name.requestFocus();
      return;
    }

    if (literalToMod==null)
      parent.addLiteral(new LiteralInfo(literalName));
    else
      parent.editLiteral(new LiteralInfo(literalName));

   
    dispose();
  }
View Full Code Here

TOP

Related Classes of easysm.datatypes.information.LiteralInfo

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.