Examples of MainFileProvider


Examples of org.sodbeans.api.quorum.MainFileProvider

        ProjectInformation info = ProjectUtils.getInformation(proj);
        String name = info.getName();
        if (name.compareTo(PROJECT_KEY) == 0) { //it's a quorum project
            //so build it!
            MainFileProvider provider =
                    proj.getLookup().lookup(MainFileProvider.class);
            if (provider.getMainFile() == null) {
                return;
            } else {
                setMainFile(provider.getMainFile());
            }
            setProjectFiles(provider.getSourceFiles());
            actuallyDoTheCompilation();
        }
    }
View Full Code Here

Examples of org.sodbeans.api.quorum.MainFileProvider

        return result;
    }
    // Detects whether or not a file is set as the Main File.

    private boolean isMainFile() {
        MainFileProvider prov = (MainFileProvider) getFromProject(MainFileProvider.class);
        boolean result;
        if (prov == null) {
            result = false;
        } else {
            FileObject myFile = getFile();
            result = prov.isMainFile(myFile);
        }
        return result;
    }
View Full Code Here

Examples of org.sodbeans.api.quorum.MainFileProvider

            //Set a display name
            putValue(Action.NAME, "Set Main File");
        }

        public void actionPerformed(ActionEvent ae) {
            MainFileProvider provider = (MainFileProvider) getFromProject(MainFileProvider.class);
            FileObject oldMain = provider.getMainFile();
            provider.setMainFile(getFile());
            fireDisplayNameChange(getDisplayName(), getHtmlDisplayName());
            if (oldMain != null) {
                try {
                    Node oldMainFilesNode = DataObject.find(oldMain).getNodeDelegate();
                    if (oldMainFilesNode instanceof QuorumFileDataNode) {
View Full Code Here

Examples of org.sodbeans.api.quorum.MainFileProvider

            compiler.stopDebugger(true);
        }

        // Get the project the user is referencing
        Project proj = getAppropriateProject(isMainMenuRequest(e));
        MainFileProvider provider = getMainFile(proj);
        if(!isProjectSetupCorrectly(provider)) {
            return;
        }
        compiler.setBuildFolder(provider.getBuildDirectory());
        compiler.setDistributionFolder(provider.getDistributionDirectory());

        //clean the build.
        compiler.clean();
        ProjectInformation info = proj.getLookup().lookup(ProjectInformation.class);
        if (TextToSpeechOptions.isScreenReading())
View Full Code Here

Examples of org.sodbeans.api.quorum.MainFileProvider

        }

        // Get the project the user is referencing
        //Utilities.get
        Project proj = getAppropriateProject(isMainMenuRequest(e));
        MainFileProvider provider = getMainFile(proj);
        if(!isProjectSetupCorrectly(provider)) {
            return;
        }
       
        compiler.setBuildFolder(provider.getBuildDirectory());
        compiler.setDistributionFolder(provider.getDistributionDirectory());
        compiler.clearDependencies();
        addCompilerDependencies(compiler);
        compiler.compile(proj);
        buildRequested = true;
    }
View Full Code Here

Examples of org.sodbeans.api.quorum.MainFileProvider

            compiler.stopDebugger(true);
        }

        // Get the project the user is referencing
        Project proj = getAppropriateProject(isMainMenuRequest(e));
        MainFileProvider provider = getMainFile(proj);
        if(!isProjectSetupCorrectly(provider)) {
            return;
        }
       
        //clean and build
        compiler.setBuildFolder(provider.getBuildDirectory());
        compiler.setDistributionFolder(provider.getDistributionDirectory());
        compiler.clean();
        compiler.clearDependencies();
        SodbeansBuildAction.addCompilerDependencies(compiler);
        compiler.compile(proj);
        buildRequested = true;
View Full Code Here

Examples of org.sodbeans.api.quorum.MainFileProvider

        //    windowService.localVariableWindowStop();
        }

        // Get the project the user is referencing
        Project proj = getAppropriateProject(isMainMenuRequest(e));
        MainFileProvider provider = getMainFile(proj);
        if(!isProjectSetupCorrectly(provider)) {
            return;
        }
        FileObject docs = provider.getDocumentsDirectory();
        compiler.setDocumenationFolder(FileUtil.toFile(docs));
        if(compiler.document()) {
                    //speak some kind of message saying that documentation was generated
            if (TextToSpeechOptions.isScreenReading())
                speech.speak("Documentation was built successfully", SpeechPriority.HIGH);
View Full Code Here

Examples of org.sodbeans.api.quorum.MainFileProvider

        if(project == null && open.getOpenProjects()!= null && open.getOpenProjects().length == 1) {
            project = open.getOpenProjects()[0];
        }
       
        if(project != null) {
            MainFileProvider localProvider =
                project.getLookup().lookup(MainFileProvider.class);
            if (localProvider == null) {
                //either this is not a quorum project or we should return
                return null;
            }
View Full Code Here

Examples of org.sodbeans.api.quorum.MainFileProvider

        if(project == null) {
            project = open.getMainProject();
        }
       
        if(project != null) {
            MainFileProvider localProvider =
                project.getLookup().lookup(MainFileProvider.class);
            if (localProvider == null) {
                //either this is not a quorum project or we should return
                return null;
            }
View Full Code Here

Examples of org.sodbeans.api.quorum.MainFileProvider

     * @param project
     * @return
     */
    public MainFileProvider getMainFile(Project project) {
        if(project != null) {
            MainFileProvider localProvider =
                project.getLookup().lookup(MainFileProvider.class);
            if (localProvider == null) {
                //either this is not a quorum project or we should return
                return null;
            } else {
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.