From: <aki...@us...> - 2007-03-25 22:04:51
|
Revision: 1983 http://svn.sourceforge.net/gridarta/?rev=1983&view=rev Author: akirschbaum Date: 2007-03-25 15:04:48 -0700 (Sun, 25 Mar 2007) Log Message: ----------- Use MapView instead of MapViewIFrame. Modified Paths: -------------- trunk/crossfire/src/cfeditor/CopyBuffer.java Modified: trunk/crossfire/src/cfeditor/CopyBuffer.java =================================================================== --- trunk/crossfire/src/cfeditor/CopyBuffer.java 2007-03-25 22:02:33 UTC (rev 1982) +++ trunk/crossfire/src/cfeditor/CopyBuffer.java 2007-03-25 22:04:48 UTC (rev 1983) @@ -21,6 +21,7 @@ import cfeditor.gameobject.Archetype; import cfeditor.gameobject.GameObject; +import cfeditor.gui.MapView; import cfeditor.map.MapArchObject; import cfeditor.map.MapControl; import cfeditor.map.MapModel; @@ -315,12 +316,12 @@ if (mapControl == null) { return null; } - final MapViewIFrame mapViewIFrame = mapControl.getMapViewFrame(); + final MapView mapView = mapControl.getMapViewFrame(); final Iterable<MapSquare<GameObject, MapArchObject, Archetype>> mapSquares; - if (mapViewIFrame == null) { + if (mapView == null) { mapSquares = mapControl.getAllSquares(); } else { - final List<MapSquare<GameObject, MapArchObject, Archetype>> selectedMapSquares = mapViewIFrame.getView().getSelectedSquares(); + final List<MapSquare<GameObject, MapArchObject, Archetype>> selectedMapSquares = mapView.getView().getSelectedSquares(); if (selectedMapSquares.isEmpty()) { mapSquares = mapControl.getAllSquares(); } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |