Package org.joshy.sketch.actions

Examples of org.joshy.sketch.actions.OpenAction


        this.setBoxAlign(Align.Stretch);
        this.add(grid,1);

        this.add(new Button("Open Existing Document").onClicked(new Callback<ActionEvent>() {
            public void call(ActionEvent actionEvent) throws Exception {
                new OpenAction(main).execute();
                if (!main.getContexts().isEmpty()) {
                    stage.hide();
                }
            }
        }));
View Full Code Here


    @Test public void versionN1to0Test() throws Exception {
        u.p("running a version upgrade test");
        VectorModeHelper helper = new VectorModeHelper(null);
        VectorDocContext context = helper.createDocContext(null);
        SketchCanvas canvas = new SketchCanvas(context);
        OpenAction action = new OpenAction(null);
        u.p("Url = " + this.getClass().getResource("oldVersion_-1.xml"));
        action.load(this.getClass().getResourceAsStream("oldVersion_-1.xml"),null,"oldVersion_-1.xml",null);
        SketchDocument doc = canvas.getDocument();
        u.p("canvas doc = " + doc);
        for(SNode shape : doc.getCurrentPage().getNodes()) {
            u.p("shape = " + shape);
        }
View Full Code Here

TOP

Related Classes of org.joshy.sketch.actions.OpenAction

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.