Package net.charabia.jsmoothgen.application

Examples of net.charabia.jsmoothgen.application.JSmoothModelBean$Property


        StringBuffer url = request.getRequestURL().replace(index, request.getRequestURL().length(), newContext);
        applicationController.subscribeUserAndCreateStatistic(Long.valueOf(applicationVersionId), request);

        String itmsURL = "itms-services://?action=download-manifest&url=" + url.toString();

        Property property = new Property();
        property.setKey("URL");
        property.setValue(itmsURL);

        return property;
    }
View Full Code Here


    @RequestMapping(value = "/statistics", method = RequestMethod.GET, produces = contentType)
    public
    @ResponseBody
    Properties viewSystemManagementPage(HttpServletRequest request) {
        Property[] properties = new Property[3];
        properties[0] = new Property(SystemStatistics.ORGANIZATION_COUNT.name(), Long.toString(organizationService.countAll()), SystemStatistics.ORGANIZATION_COUNT.getDescription());
        properties[1] = new Property(SystemStatistics.USER_COUNT.name(), Long.toString(userService.countAll()), SystemStatistics.USER_COUNT.getDescription());
        properties[2] = new Property(SystemStatistics.APPLICATION_COUNT.name(), Long.toString(applicationService.countAll()), SystemStatistics.APPLICATION_COUNT.getDescription());

        Properties props = new Properties();
        props.setProperties(properties);

        return props;
View Full Code Here

        return top;
    }

    private void setModelCurrentdir(String dir) {
        System.out.println("[DEBUG] Setting current directory to: " + dir);
        JSmoothModelBean jsmodel = getApplication().getModelBean();
        jsmodel.setCurrentDirectory(dir);
    }
View Full Code Here

        jsmodel.setCurrentDirectory(dir);
    }

    private void setModelExename(String exename) {
        System.out.println("[DEBUG] Setting exe name to: " + exename);
        JSmoothModelBean jsmodel = getApplication().getModelBean();
        jsmodel.setExecutableName(exename);
    }
View Full Code Here

        return true;
    }
   
    private void setModelIcon(String iconfile) {
        System.out.println("[DEBUG] Setting icon file to: " + iconfile);
        JSmoothModelBean jsmodel = getApplication().getModelBean();
        jsmodel.setIconLocation(iconfile);
    }
View Full Code Here

        setImage(JSmoothResources.IMG_SWITCHER_EXECUTABLE);
        setToolTip("Windows Executable");
    }

    public void load() {
        JSmoothModelBean jsmodel = getApplication().getModelBean();
        String exename = jsmodel.getExecutableName();
        if (exename == null) exename = "";
        this.exe.setText(exename);
       
        String iconfile = jsmodel.getIconLocation();
        setIcon(iconfile);
       
        String dirname = jsmodel.getCurrentDirectory();
        if (dirname == null) dirname = "";
        this.dir.setText(dirname);
    }
View Full Code Here

        return top;
    }
   
    public void setSkeletonName(String name) {
        System.out.println("[DEBUG] Setting skeleton name: " + name);
        JSmoothModelBean jsmodel = getApplication().getModelBean();
        jsmodel.setSkeletonName(name);
        getApplication().setSkeletonProperties(getApplication().getInititalSkeletonProperties());
    }
View Full Code Here

        if (!app.hasProjectFile()) {
            app.consoleMessage("Cannot run without a project file. Please save the project or load a new one, then try again.");
            return false;
        }
       
        JSmoothModelBean jsmodel = app.getModelBean();
        String basedir = app.getProjectFile().getParent();
        File exe = new File (basedir, jsmodel.getExecutableName());
        app.consoleMessage("Running exe " + exe.getAbsolutePath());
        return Program.launch(exe.getAbsolutePath());
    }
View Full Code Here

        return top;
    }
   
    private void setModelMainclass(String mainclass) {
        System.out.println("[DEBUG] Setting mainclass to: " + mainclass);
        JSmoothModelBean jsmodel = getApplication().getModelBean();
        jsmodel.setMainClassName(mainclass);
    }
View Full Code Here

    }
   
    private void setModelClasspath(String[] classpath) {
        String classpathString = Arrays.asList(classpath).toString();
        System.out.println("[DEBUG] Setting classpath to: " + classpathString);
        JSmoothModelBean jsmodel = getApplication().getModelBean();
        jsmodel.setClassPath(classpath);
    }
View Full Code Here

TOP

Related Classes of net.charabia.jsmoothgen.application.JSmoothModelBean$Property

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.