Package tiled.mapeditor.undo

Examples of tiled.mapeditor.undo.ChangeObjectEdit


        unitHeight.setValue(unit.getHeight());
    }

    protected void buildPropertiesAndDispose() {
        // Make sure the changes to the unit can be undone
        undoSupport.postEdit(new ChangeObjectEdit(unit));

        unit.setName(unitName.getText());
        unit.setType(unitType.getText());
        unit.setWidth(unitWidth.intValue());
        unit.setHeight(unitHeight.intValue());
View Full Code Here


        heightSpinner.setSelection(mapObject.getHeight());
    }

    protected void buildProperties() {
        // Make sure the changes to the object can be undone
        undoSupport.addEdit(new ChangeObjectEdit(mapObject));

        mapObject.setName(nameText.getText());
        mapObject.setType(typeText.getText());
        String sourceFileName = imageSourceText.getText();
        String baseFilename = mapObject.getObjectGroup().getMap().getFilename();
View Full Code Here

TOP

Related Classes of tiled.mapeditor.undo.ChangeObjectEdit

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.