Package org.solarus.editor

Examples of org.solarus.editor.Map


     * @param map The new map.
     * @param QuestEditorException if this entity cannot exist in the new map.
     */
    public void setMap(Map map) throws QuestEditorException {

        Map oldMap = this.map;
        Tileset oldTileset = oldMap != null ? oldMap.getTileset() : null;
        this.map = map;
        notifyMapChanged(oldMap, map);
        notifyTilesetChanged(oldTileset, map.getTileset());
    }
View Full Code Here


    public MapEditorPanel(EditorWindow mainWindow, String mapId)
        throws QuestEditorException {

        super(mainWindow, getEditorId(mapId));

        map = new Map(mapId);

        setLayout(new BorderLayout());

        // Left panel : the map properties and the tile picker.
        mapPropertiesView = new MapPropertiesView(this);
View Full Code Here

     * @return false if the user canceled.
     */
    public boolean checkCurrentFileSaved() {
        boolean result = true;

        Map map = getMap();
        if (map != null && !map.getHistory().isSaved()) {
            int answer = JOptionPane.showConfirmDialog(this,
                    "Map '" + map.getName() + "' has been modified. Do you want to save it?",
                    "Save the modifications",
                    JOptionPane.YES_NO_CANCEL_OPTION,
                    JOptionPane.WARNING_MESSAGE);
            if (answer == JOptionPane.YES_OPTION) {
                save();
View Full Code Here

TOP

Related Classes of org.solarus.editor.Map

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.