Examples of ElementHandle


Examples of org.netbeans.api.java.source.ElementHandle

                        });

                        Collection<ElementHandle<TypeElement>> main = SourceUtils.getMainClasses(_current);
                        String newMainClass = null;
                        if (!main.isEmpty()) {
                            ElementHandle mainHandle = main.iterator().next();
                            newMainClass = mainHandle.getQualifiedName();
                        }
                        if (newMainClass != null && !newMainClass.equals(oldMainClass) && helper.requestUpdate() && // XXX ##84806: ideally should update nbproject/configs/*.properties in this case:
                                eval.getProperty(J2SEConfigurationProvider.PROP_CONFIG) == null) {
                            final String newMainClassFinal = newMainClass;
                            ProjectManager.mutex().writeAccess(new Mutex.ExceptionAction<Void>() {
View Full Code Here

Examples of org.netbeans.modules.csl.api.ElementHandle

     *
     * @return a binary name of class or null if no class with the main method is selected
     */   
    @SuppressWarnings("unchecked")
    public String getSelectedMainClass () {
        ElementHandle te = null;
        if (isValidMainClassName (jMainClassList.getSelectedValue ())) {
            te = (ElementHandle)jMainClassList.getSelectedValue();
        }
        if (te instanceof AstDfn) {
            return ((AstDfn) te).qualifiedName();
        }
        return te == null ? null : te.getName();
    }
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.