Examples of Utils


Examples of com.stoof.IM.utils.Utils

    public MenuBar(MainChat chat)
    {
        //I typically dont use "this." since it is implied and not necessary
        //file
      allUtils = new Utils(chat);
        this.file_menu = new JMenu("File");
        //open
        this.open = new JMenuItem("Open");
        this.open.setMnemonic('O');
        this.open.addActionListener(this);
View Full Code Here

Examples of com.sun.enterprise.tools.common.validation.util.Utils

    private Utils utils = null;

   
    /** Creates a new instance of <code>ValidationManager</code> */
    public ValidationManager() {
        utils = new Utils();
    }
View Full Code Here

Examples of com.sun.enterprise.tools.common.validation.util.Utils

    public ValidationManager(String validationFile) {
        if(null != validationFile){
            this.validationFile = validationFile;
        }
       
        utils = new Utils();
    }
View Full Code Here

Examples of com.sun.enterprise.tools.common.validation.util.Utils

    private Utils utils = null;

    /** Creates a new instance of Validator */
    Validator() {
        elementToConstraints = new HashMap();
        utils = new Utils();
    }
View Full Code Here

Examples of com.sun.enterprise.tools.common.validation.util.Utils

///         "enterprise/tools/XYZ/testXYZ.xml";                         //NOI18N
///     System.setProperty("constraints.file", cosntriantsFile);        //NOI18N


        //Create an InpurtStream object
        Utils utils = new Utils();
        InputStream inputStream = utils.getInputStream(fileBeingValidated);

        //Create graph
        if(inputStream != null) {
            try {
                rootElement = RootElement.createGraph(inputStream);
View Full Code Here

Examples of com.sun.enterprise.tools.common.validation.util.Utils


    public void testCreate() {
        String bundleFile = "com/sun/enterprise/tools/" +               //NOI18N
            "common/validation/Bundle.properties";                      //NOI18N
        Utils utils = new Utils();
        boolean fileExists = utils.fileExists(bundleFile);
        String str =
            BundleReader.getValue("MSG_NumberConstraint_Failure");      //NOI18N
       
        if(fileExists){
            assertTrue(!str.equals("MSG_NumberConstraint_Failure"));    //NOI18N
View Full Code Here

Examples of com.sun.enterprise.tools.common.validation.util.Utils

    private Utils utils = null;
   
    /** Creates a new instance of ValidateeImpl */
    public ValidateeImpl(Object baseBean){
        this.baseBean = (BaseBean)baseBean;
        utils = new Utils();
    }
View Full Code Here

Examples of org.eclipse.xtext.xdoc.generator.util.Utils

    langDef.getKeywords().add("bar");
    langDef.getKeywords().add("baz");
    langDef.getKeywords().add("dfsdf");
    langDef.getKeywords().add("wweee");
    langDef.getKeywords().add("dsfsd");
    final Utils utils = new Utils();
    String code = utils.formatCode("/* mein foo ist bar nicht baz.*/", langDef);
    assertEquals("<span class=\"comment\">/*&nbsp;mein&nbsp;foo&nbsp;ist&nbsp;bar&nbsp;nicht&nbsp;baz.*/</span>", code);
  }
View Full Code Here

Examples of org.eclipse.xtext.xdoc.generator.util.Utils

    langDef.getKeywords().add("bar");
    langDef.getKeywords().add("baz");
    langDef.getKeywords().add("dfsdf");
    langDef.getKeywords().add("wweee");
    langDef.getKeywords().add("dsfsd");
    final Utils utils = new Utils();
    String code = utils.formatCode("' mein foo ist bar nicht baz.'", langDef);
    assertEquals("<span class=\"string\">'&nbsp;mein&nbsp;foo&nbsp;ist&nbsp;bar&nbsp;nicht&nbsp;baz.'</span>", code);
  }
View Full Code Here

Examples of org.eclipse.xtext.xdoc.generator.util.Utils

    String code = utils.formatCode("' mein foo ist bar nicht baz.'", langDef);
    assertEquals("<span class=\"string\">'&nbsp;mein&nbsp;foo&nbsp;ist&nbsp;bar&nbsp;nicht&nbsp;baz.'</span>", code);
  }
 
  public void testFormatCode_03() throws Exception {
    final Utils utils = new Utils();
    String code = utils.formatCode("' mein foo ist bar nicht baz.", null);
    assertEquals("<span class=\"string\">'&nbsp;mein&nbsp;foo&nbsp;ist&nbsp;bar&nbsp;nicht&nbsp;baz.</span>", code);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.