Package net.charabia.jsmoothgen.application

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


        jar.setEnabled(b);
    }
   
    private void setModelJar(String jarfile) {
        System.out.println("[DEBUG] Setting jarfile to: " + jarfile);
        JSmoothModelBean jsmodel = getApplication().getModelBean();
        jsmodel.setJarLocation(jarfile);
    }
View Full Code Here


        jsmodel.setJarLocation(jarfile);
    }
   
    private void setModelUsejar(boolean b) {
        System.out.println("[DEBUG] Setting use embedded jar to: " + b);
        JSmoothModelBean jsmodel = getApplication().getModelBean();
        jsmodel.setEmbeddedJar(b);
    }
View Full Code Here

        jsmodel.setEmbeddedJar(b);
    }
   
    private void setModelArguments(String args) {
        System.out.println("[DEBUG] Setting argument to: " + args);
        JSmoothModelBean jsmodel = getApplication().getModelBean();
        jsmodel.setArguments(args);
    }
View Full Code Here

        setImage(JSmoothResources.IMG_SWITCHER_APPLICATION);
        setToolTip("Java Application");
    }

    public void load() {
        JSmoothModelBean jsmodel = getApplication().getModelBean();
        String[] classpath = jsmodel.getClassPath();
        if (classpath == null) classpath = new String[0];
        this.classpath.setItems(classpath);
       
        boolean usejar = jsmodel.getEmbeddedJar();
        this.usejar.setSelection(usejar);
        LISTENER_USEJAR.widgetSelected(null);
       
        String mainclass = jsmodel.getMainClassName();
        if (mainclass == null) mainclass = "";
        this.mainclass.setText(mainclass);
       
        String jar = jsmodel.getJarLocation();
        if (jar == null) jar = "";
        this.jar.setText(jar);
       
        String args = jsmodel.getArguments();
        if (args == null) args = "";
        this.args.setText(args);
    }
View Full Code Here

       
        return top;
    }

    public void load() {
        JSmoothModelBean jsmodel = getApplication().getModelBean();
    }
View Full Code Here

        this.skeletonList = new SkeletonList(new File("skeletons"));
    }
   
    public void newProject() {
        // Create a new empty JSmoothModelBean
        jsmodel = new JSmoothModelBean();
        jsmodel.setSkeletonName(getInitialSkeletonName());
        setSkeletonProperties(getInititalSkeletonProperties());
        jsmodel.setExecutableName("");
        jsmodel.setArguments("");
        jsmodel.setBundledJVMPath("");
View Full Code Here

    }
   
    public boolean openProject(String projectfile) {
        System.out.println("[DEBUG] Opening project : " + projectfile);
        File file = new File(projectfile);
        JSmoothModelBean jsmodel = null;
        try {
            jsmodel = JSmoothModelPersistency.load(file);
        } catch (IOException e) {
            System.out.println("[ERROR] Failed opening project : " + e.getMessage());
            return false;
View Full Code Here

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.PROPERTY: {
            Property property = (Property) theEObject;
            T result = caseProperty(property);
            if (result == null)
                result = caseItemAwareElement(property);
            if (result == null)
                result = caseBaseElement(property);
View Full Code Here

                    MetafacadeConstants.NAMESPACE_SCOPE_OPERATOR,
                    true);
            if (modelElement instanceof Type)
            {
                Type element = (Type)modelElement;
                final Property property = umlClass.createOwnedAttribute(
                        name,
                        element,
                        1,
                        1);
                VisibilityKind kind = VisibilityKind.PUBLIC_LITERAL;
                if (visibility.equalsIgnoreCase("package"))
                {
                    kind = VisibilityKind.PACKAGE_LITERAL;
                }
                if (visibility.equalsIgnoreCase("private"))
                {
                    kind = VisibilityKind.PRIVATE_LITERAL;
                }
                if (visibility.equalsIgnoreCase("protected"))
                {
                    kind = VisibilityKind.PROTECTED_LITERAL;
                }
                property.setVisibility(kind);
                Stereotype stereotype =
                    UmlUtilities.findApplicableStereotype(
                        property,
                        UMLProfile.STEREOTYPE_IDENTIFIER);
                if (stereotype == null)
                {
                    throw new MetafacadeException("Could not apply '" + UMLProfile.STEREOTYPE_IDENTIFIER + "' to " +
                        property + ", the stereotype could not be found");
                }
                property.apply(stereotype);
            }
        }
    }
View Full Code Here

    public boolean equals(final Object obj)
    {
        if (obj instanceof Attribute)
        {
            Property other = ((AttributeImpl)obj).property;
            return this.property.equals(other);
        }
        if (obj instanceof AssociationEnd)
        {
            Property other = ((AssociationEndImpl)obj).property;
            return this.property.equals(other);
        }
        return this.property.equals(obj);
    }
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.