Package org.openide.src

Examples of org.openide.src.ClassElement


     SourceCookie sourcecookie = (SourceCookie)dataobject.getCookie(SourceCookie.class);
     if(sourcecookie == null)
        {
          // when can this option raise up     
        }  
     ClassElement aclasselement[] = sourcecookie.getSource().getClasses();
     try
       {
          if(aclasselement == null || aclasselement.length == 0)
            {
             // what should we do, if the template does not contain a class
            }else
                { //we have to aquire the innner class
                  original_outerclass = (ClassElement) aclasselement[0].clone();
                  customized_outerclass = (ClassElement) aclasselement[0].clone();
                  ClassElement classelement[] = original_outerclass.getClasses() ;
                  ClassElement classelement1[] = customized_outerclass.getClasses() ;
                  original_innerclass = classelement[0];
                  customized_innerclass = classelement1[0];
                  //now we have the all the classes
               
       } catch(Exception e){}
View Full Code Here


        if(sourcecookie == null) {
            //what should we do if the template does not contain a class
            return Collections.singleton(result);
        }
        //here we get the outer class
        ClassElement aclasselement[] = sourcecookie.getSource().getClasses();
        try {
           
            sourcecookie.getSource().addImports(myData.getImports());
            sourcecookie.getSource().removeClass(aclasselement[0]);
            sourcecookie.getSource().addClass(myData.getOuterClass());
View Full Code Here

        if(sourcecookie == null) {
            //what should we do if the template does not contain a class
            return Collections.singleton(result);
        }
        //here we get the outer class
        ClassElement aclasselement[] = sourcecookie.getSource().getClasses();
        try {
           
            sourcecookie.getSource().addImports(myData.getImports());
            sourcecookie.getSource().removeClass(aclasselement[0]);
            sourcecookie.getSource().addClass(myData.getOuterClass());
View Full Code Here

TOP

Related Classes of org.openide.src.ClassElement

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.