You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(103) |
Jun
(121) |
Jul
(16) |
Aug
(67) |
Sep
(126) |
Oct
(161) |
Nov
(164) |
Dec
(588) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(394) |
Feb
(181) |
Mar
(131) |
Apr
(180) |
May
(255) |
Jun
(11) |
Jul
(79) |
Aug
(70) |
Sep
(274) |
Oct
(138) |
Nov
(195) |
Dec
(8) |
2008 |
Jan
(3) |
Feb
(142) |
Mar
(162) |
Apr
(124) |
May
(148) |
Jun
(157) |
Jul
(425) |
Aug
(373) |
Sep
(264) |
Oct
(315) |
Nov
(225) |
Dec
(6) |
2009 |
Jan
(67) |
Feb
(78) |
Mar
(279) |
Apr
(294) |
May
(92) |
Jun
(65) |
Jul
(134) |
Aug
(41) |
Sep
(138) |
Oct
(125) |
Nov
(126) |
Dec
(122) |
2010 |
Jan
(15) |
Feb
(48) |
Mar
(9) |
Apr
(195) |
May
(373) |
Jun
(507) |
Jul
(42) |
Aug
(16) |
Sep
(38) |
Oct
(81) |
Nov
(64) |
Dec
(18) |
2011 |
Jan
(13) |
Feb
(12) |
Mar
(39) |
Apr
(1) |
May
(2) |
Jun
(27) |
Jul
(27) |
Aug
(31) |
Sep
(14) |
Oct
(102) |
Nov
(20) |
Dec
(37) |
2012 |
Jan
(22) |
Feb
(1) |
Mar
(1) |
Apr
(2) |
May
(2) |
Jun
(18) |
Jul
(6) |
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
(1) |
Feb
(2) |
Mar
(1) |
Apr
(1) |
May
(47) |
Jun
(7) |
Jul
(107) |
Aug
|
Sep
|
Oct
(112) |
Nov
(31) |
Dec
(17) |
2014 |
Jan
(29) |
Feb
(111) |
Mar
(34) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(18) |
Dec
(10) |
From: <aki...@us...> - 2011-08-26 18:51:52
|
Revision: 8960 http://gridarta.svn.sourceforge.net/gridarta/?rev=8960&view=rev Author: akirschbaum Date: 2011-08-26 18:51:45 +0000 (Fri, 26 Aug 2011) Log Message: ----------- Rename field name. Modified Paths: -------------- trunk/src/app/net/sf/gridarta/gui/dialog/plugin/PluginView.java Modified: trunk/src/app/net/sf/gridarta/gui/dialog/plugin/PluginView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/plugin/PluginView.java 2011-08-26 18:50:16 UTC (rev 8959) +++ trunk/src/app/net/sf/gridarta/gui/dialog/plugin/PluginView.java 2011-08-26 18:51:45 UTC (rev 8960) @@ -71,7 +71,7 @@ * The script model. */ @NotNull - private final Iterable<Plugin<G, A, R>> scriptModel; + private final Iterable<Plugin<G, A, R>> pluginModel; @NotNull private final PluginParameterViewFactory<G, A, R> pluginParameterViewFactory; @@ -143,7 +143,7 @@ */ public PluginView(@NotNull final PluginController<G, A, R> pluginController, @NotNull final PluginModel<G, A, R> pluginModel, @NotNull final PluginParameterViewFactory<G, A, R> pluginParameterViewFactory, @NotNull final SystemIcons systemIcons) { this.pluginController = pluginController; - this.scriptModel = pluginModel; + this.pluginModel = pluginModel; this.pluginParameterViewFactory = pluginParameterViewFactory; this.systemIcons = systemIcons; pluginModel.addPluginModelListener(pluginModelListener); @@ -174,7 +174,7 @@ MenuUtils.removeAllToSeparator(tmpMenuScripts); int index = 0; - for (final Plugin<G, A, R> plugin : scriptModel) { + for (final Plugin<G, A, R> plugin : pluginModel) { if (!plugin.isScript()) { continue; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-08-26 18:50:23
|
Revision: 8959 http://gridarta.svn.sourceforge.net/gridarta/?rev=8959&view=rev Author: akirschbaum Date: 2011-08-26 18:50:16 +0000 (Fri, 26 Aug 2011) Log Message: ----------- Copy collection/array parameters or return values. Modified Paths: -------------- trunk/model/src/app/net/sf/gridarta/model/tiles/TileLink.java trunk/model/src/app/net/sf/gridarta/model/validation/errors/BlockedMobOrSpawnPointError.java trunk/src/app/net/sf/gridarta/actions/AttachTiledMaps.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/TypesBoxItemListener.java trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java trunk/src/app/net/sf/gridarta/gui/map/maptilepane/AbstractMapTilePane.java trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractMapRenderer.java Modified: trunk/model/src/app/net/sf/gridarta/model/tiles/TileLink.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/tiles/TileLink.java 2011-08-26 18:28:48 UTC (rev 8958) +++ trunk/model/src/app/net/sf/gridarta/model/tiles/TileLink.java 2011-08-26 18:50:16 UTC (rev 8959) @@ -45,7 +45,7 @@ */ public TileLink(@NotNull final String name, @NotNull final MapLink[] mapLinks, @NotNull final Direction revLink) { this.name = name; - this.mapLinks = mapLinks; + this.mapLinks = mapLinks.clone(); this.revLink = revLink; } Modified: trunk/model/src/app/net/sf/gridarta/model/validation/errors/BlockedMobOrSpawnPointError.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/errors/BlockedMobOrSpawnPointError.java 2011-08-26 18:28:48 UTC (rev 8958) +++ trunk/model/src/app/net/sf/gridarta/model/validation/errors/BlockedMobOrSpawnPointError.java 2011-08-26 18:50:16 UTC (rev 8959) @@ -20,7 +20,9 @@ package net.sf.gridarta.model.validation.errors; import java.awt.Component; +import java.util.ArrayList; import java.util.Collection; +import java.util.Collections; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; @@ -61,8 +63,8 @@ */ public BlockedMobOrSpawnPointError(@NotNull final MapSquare<G, A, R> mapSquare, @NotNull final Collection<G> blockers, @NotNull final Collection<G> mobsOrSpawnPoints) { super(mapSquare); - this.blockers = blockers; - this.mobsOrSpawnPoints = mobsOrSpawnPoints; + this.blockers = new ArrayList<G>(blockers); + this.mobsOrSpawnPoints = new ArrayList<G>(mobsOrSpawnPoints); } /** @@ -71,7 +73,7 @@ */ @NotNull public Collection<G> getBlockers() { - return blockers; + return Collections.unmodifiableCollection(blockers); } /** @@ -80,7 +82,7 @@ */ @NotNull public Collection<G> getMobsOrSpawnPoints() { - return mobsOrSpawnPoints; + return Collections.unmodifiableCollection(mobsOrSpawnPoints); } /** Modified: trunk/src/app/net/sf/gridarta/actions/AttachTiledMaps.java =================================================================== --- trunk/src/app/net/sf/gridarta/actions/AttachTiledMaps.java 2011-08-26 18:28:48 UTC (rev 8958) +++ trunk/src/app/net/sf/gridarta/actions/AttachTiledMaps.java 2011-08-26 18:50:16 UTC (rev 8959) @@ -79,7 +79,7 @@ */ public AttachTiledMaps(@NotNull final MapManager<G, A, R> mapManager, @NotNull final TileLink[] tileLinks, @NotNull final MapPathNormalizer mapPathNormalizer) { this.mapManager = mapManager; - this.tileLinks = tileLinks; + this.tileLinks = tileLinks.clone(); this.mapPathNormalizer = mapPathNormalizer; } Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/TypesBoxItemListener.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/TypesBoxItemListener.java 2011-08-26 18:28:48 UTC (rev 8958) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/TypesBoxItemListener.java 2011-08-26 18:50:16 UTC (rev 8959) @@ -21,6 +21,7 @@ import java.awt.event.ItemEvent; import java.awt.event.ItemListener; +import java.util.ArrayList; import java.util.Collection; import javax.swing.JComboBox; import javax.swing.JOptionPane; @@ -111,7 +112,7 @@ this.gameObject = gameObject; this.type = type; this.archetypeTypeSet = archetypeTypeSet; - this.dialogAttributes = dialogAttributes; + this.dialogAttributes = new ArrayList<DialogAttribute<G, A, R, ?>>(dialogAttributes); this.typeComboBox = typeComboBox; this.archetypeType = archetypeType; ignoreEvent = false; Modified: trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java 2011-08-26 18:28:48 UTC (rev 8958) +++ trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java 2011-08-26 18:50:16 UTC (rev 8959) @@ -432,7 +432,7 @@ this.exitMatcher = exitMatcher; this.mapFileFilter = mapFileFilter; this.selectedSquareModel = selectedSquareModel; - this.directionMap = directionMap; + this.directionMap = directionMap.clone(); this.allowRandomMapParameters = allowRandomMapParameters; this.mapPropertiesDialogFactory = mapPropertiesDialogFactory; this.mapViewSettings = mapViewSettings; Modified: trunk/src/app/net/sf/gridarta/gui/map/maptilepane/AbstractMapTilePane.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/maptilepane/AbstractMapTilePane.java 2011-08-26 18:28:48 UTC (rev 8958) +++ trunk/src/app/net/sf/gridarta/gui/map/maptilepane/AbstractMapTilePane.java 2011-08-26 18:50:16 UTC (rev 8959) @@ -140,7 +140,7 @@ protected AbstractMapTilePane(@NotNull final MapManager<G, A, R> mapManager, @NotNull final GlobalSettings globalSettings, @NotNull final MapModel<G, A, R> mapModel, @NotNull final MapLink[][] tileLink, @NotNull final Direction[] directionMapping, @NotNull final int[] nextFocus, @NotNull final FileFilter mapFileFilter, @NotNull final MapPathNormalizer mapPathNormalizer) { this.globalSettings = globalSettings; this.mapModel = mapModel; - this.nextFocus = nextFocus; + this.nextFocus = nextFocus.clone(); this.mapFileFilter = mapFileFilter; assert tileLink.length == 8; tileLinks = new TileLink[] { newTileLink("mapNorth", tileLink[0], Direction.SOUTH), newTileLink("mapEast", tileLink[1], Direction.WEST), newTileLink("mapSouth", tileLink[2], Direction.NORTH), newTileLink("mapWest", tileLink[3], Direction.EAST), newTileLink("mapNorthEast", tileLink[4], Direction.SOUTH_WEST), newTileLink("mapSouthEast", tileLink[5], Direction.NORTH_WEST), newTileLink("mapSouthWest", tileLink[6], Direction.NORTH_EAST), newTileLink("mapNorthWest", tileLink[7], Direction.SOUTH_EAST), }; Modified: trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractMapRenderer.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractMapRenderer.java 2011-08-26 18:28:48 UTC (rev 8958) +++ trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractMapRenderer.java 2011-08-26 18:50:16 UTC (rev 8959) @@ -24,6 +24,7 @@ import java.io.File; import java.io.IOException; import java.util.Collections; +import java.util.HashMap; import java.util.Map; import javax.imageio.ImageIO; import javax.swing.JComponent; @@ -98,7 +99,7 @@ * errors */ public void setErroneousMapSquares(@NotNull final Map<MapSquare<G, A, R>, ValidationError<G, A, R>> erroneousMapSquares) { - this.erroneousMapSquares = erroneousMapSquares; + this.erroneousMapSquares = new HashMap<MapSquare<G, A, R>, ValidationError<G, A, R>>(erroneousMapSquares); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-08-26 18:28:55
|
Revision: 8958 http://gridarta.svn.sourceforge.net/gridarta/?rev=8958&view=rev Author: akirschbaum Date: 2011-08-26 18:28:48 +0000 (Fri, 26 Aug 2011) Log Message: ----------- Reorganize project file: use libraries. Modified Paths: -------------- trunk/atrinik/atrinik.iml trunk/crossfire/crossfire.iml trunk/daimonin/daimonin.iml trunk/gridarta.iml trunk/gridarta.ipr trunk/model/model.iml trunk/plugin/plugin.iml trunk/preferences/preferences.iml trunk/textedit/textedit.iml trunk/utils/utils.iml Modified: trunk/atrinik/atrinik.iml =================================================================== --- trunk/atrinik/atrinik.iml 2011-08-06 20:09:37 UTC (rev 8957) +++ trunk/atrinik/atrinik.iml 2011-08-26 18:28:48 UTC (rev 8958) @@ -14,87 +14,15 @@ <orderEntry type="module" module-name="model" /> <orderEntry type="module" module-name="plugin" /> <orderEntry type="module" module-name="utils" /> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/annotations.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/bsh-commands-2.0b4.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-action-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-misc-trunk-1398.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-prefs-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-tod-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-util-trunk-1410.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/junit-4.2.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/log4j-1.2.13.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> + <orderEntry type="library" name="annotations" level="project" /> + <orderEntry type="library" name="bsh-commands" level="project" /> + <orderEntry type="library" name="japi-lib-swing-action" level="project" /> + <orderEntry type="library" name="japi-lib-swing-misc" level="project" /> + <orderEntry type="library" name="japi-lib-swing-prefs" level="project" /> + <orderEntry type="library" name="japi-lib-swing-tod" level="project" /> + <orderEntry type="library" name="japi-lib-util" level="project" /> + <orderEntry type="library" name="junit" level="project" /> + <orderEntry type="library" name="log4j" level="project" /> </component> </module> Modified: trunk/crossfire/crossfire.iml =================================================================== --- trunk/crossfire/crossfire.iml 2011-08-06 20:09:37 UTC (rev 8957) +++ trunk/crossfire/crossfire.iml 2011-08-26 18:28:48 UTC (rev 8958) @@ -15,123 +15,19 @@ <orderEntry type="module" module-name="model" /> <orderEntry type="module" module-name="plugin" /> <orderEntry type="module" module-name="utils" /> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/annotations.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/bsh-commands-2.0b4.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/bsh-core-2.0b4.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/bsh-util-2.0b4.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-action-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-misc-trunk-1398.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-prefs-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-tod-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-util-trunk-1410.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/java-getopt-1.0.13.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/jdom.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/junit-4.2.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/log4j-1.2.13.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> + <orderEntry type="library" name="annotations" level="project" /> + <orderEntry type="library" name="bsh-commands" level="project" /> + <orderEntry type="library" name="bsh-core" level="project" /> + <orderEntry type="library" name="bsh-util" level="project" /> + <orderEntry type="library" name="japi-lib-swing-action" level="project" /> + <orderEntry type="library" name="japi-lib-swing-misc" level="project" /> + <orderEntry type="library" name="japi-lib-swing-prefs" level="project" /> + <orderEntry type="library" name="japi-lib-swing-tod" level="project" /> + <orderEntry type="library" name="japi-lib-util" level="project" /> + <orderEntry type="library" name="java-getopt" level="project" /> + <orderEntry type="library" name="jdom" level="project" /> + <orderEntry type="library" name="junit" level="project" /> + <orderEntry type="library" name="log4j" level="project" /> </component> </module> Modified: trunk/daimonin/daimonin.iml =================================================================== --- trunk/daimonin/daimonin.iml 2011-08-06 20:09:37 UTC (rev 8957) +++ trunk/daimonin/daimonin.iml 2011-08-26 18:28:48 UTC (rev 8958) @@ -14,87 +14,15 @@ <orderEntry type="module" module-name="model" /> <orderEntry type="module" module-name="plugin" /> <orderEntry type="module" module-name="utils" /> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/annotations.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/bsh-commands-2.0b4.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-action-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-misc-trunk-1398.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-prefs-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-tod-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-util-trunk-1410.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/junit-4.2.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/log4j-1.2.13.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> + <orderEntry type="library" name="annotations" level="project" /> + <orderEntry type="library" name="bsh-commands" level="project" /> + <orderEntry type="library" name="japi-lib-swing-action" level="project" /> + <orderEntry type="library" name="japi-lib-swing-misc" level="project" /> + <orderEntry type="library" name="japi-lib-swing-prefs" level="project" /> + <orderEntry type="library" name="japi-lib-swing-tod" level="project" /> + <orderEntry type="library" name="japi-lib-util" level="project" /> + <orderEntry type="library" name="junit" level="project" /> + <orderEntry type="library" name="log4j" level="project" /> </component> </module> Modified: trunk/gridarta.iml =================================================================== --- trunk/gridarta.iml 2011-08-06 20:09:37 UTC (rev 8957) +++ trunk/gridarta.iml 2011-08-26 18:28:48 UTC (rev 8958) @@ -23,161 +23,23 @@ <orderEntry type="module" module-name="plugin" /> <orderEntry type="module" module-name="textedit" /> <orderEntry type="module" module-name="utils" /> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/annotations.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/bsh-core-2.0b4.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/bsh-util-2.0b4.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/java-getopt-1.0.13.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/japi-lib-lang-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/japi-lib-swing-about-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/japi-lib-swing-action-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES> - <root url="file://$MODULE_DIR$/../../japi/libs/swing-action/trunk/src/prj" /> - </SOURCES> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/japi-lib-swing-extlib-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/japi-lib-swing-misc-trunk-1398.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/japi-lib-swing-prefs-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/japi-lib-swing-tod-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/japi-lib-util-trunk-1410.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/japi-lib-xml-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/jdom.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/junit-4.2.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/log4j-1.2.13.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/lib/rsyntaxtextarea-1.5.1.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> + <orderEntry type="library" name="annotations" level="project" /> + <orderEntry type="library" name="bsh-core" level="project" /> + <orderEntry type="library" name="bsh-util" level="project" /> + <orderEntry type="library" name="java-getopt" level="project" /> + <orderEntry type="library" name="japi-lib-lang" level="project" /> + <orderEntry type="library" name="japi-lib-swing-about" level="project" /> + <orderEntry type="library" name="japi-lib-swing-action" level="project" /> + <orderEntry type="library" name="japi-lib-swing-extlib" level="project" /> + <orderEntry type="library" name="japi-lib-swing-misc" level="project" /> + <orderEntry type="library" name="japi-lib-swing-prefs" level="project" /> + <orderEntry type="library" name="japi-lib-swing-tod" level="project" /> + <orderEntry type="library" name="japi-lib-util" level="project" /> + <orderEntry type="library" name="japi-lib-xml" level="project" /> + <orderEntry type="library" name="jdom" level="project" /> + <orderEntry type="library" name="junit" level="project" /> + <orderEntry type="library" name="log4j" level="project" /> + <orderEntry type="library" name="rsyntaxtextarea" level="project" /> </component> </module> Modified: trunk/gridarta.ipr =================================================================== --- trunk/gridarta.ipr 2011-08-06 20:09:37 UTC (rev 8957) +++ trunk/gridarta.ipr 2011-08-26 18:28:48 UTC (rev 8958) @@ -2274,6 +2274,134 @@ <component name="com.intellij.profile.ui.ErrorOptionsConfigurable" proportions="" version="1"> <option name="myLastEditedConfigurable" /> </component> + <component name="libraryTable"> + <library name="annotations"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/annotations.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="bsh-commands"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/bsh-commands-2.0b4.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="bsh-core"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/bsh-core-2.0b4.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="bsh-util"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/bsh-util-2.0b4.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="japi-lib-lang"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/japi-lib-lang-0.1.0.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="japi-lib-swing-about"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/japi-lib-swing-about-0.1.0.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="japi-lib-swing-action"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/japi-lib-swing-action-0.1.0.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="japi-lib-swing-extlib"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/japi-lib-swing-extlib-0.1.0.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="japi-lib-swing-misc"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/japi-lib-swing-misc-trunk-1398.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="japi-lib-swing-prefs"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/japi-lib-swing-prefs-0.1.0.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="japi-lib-swing-tod"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/japi-lib-swing-tod-0.1.0.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="japi-lib-util"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/japi-lib-util-trunk-1410.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="japi-lib-xml"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/japi-lib-xml-0.1.0.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="java-getopt"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/java-getopt-1.0.13.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="jdom"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/jdom.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="junit"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/junit-4.2.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="log4j"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/log4j-1.2.13.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + <library name="rsyntaxtextarea"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/rsyntaxtextarea-1.5.1.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </component> <component name="uidesigner-configuration"> <option name="INSTRUMENT_CLASSES" value="false" /> </component> Modified: trunk/model/model.iml =================================================================== --- trunk/model/model.iml 2011-08-06 20:09:37 UTC (rev 8957) +++ trunk/model/model.iml 2011-08-26 18:28:48 UTC (rev 8958) @@ -9,78 +9,14 @@ <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="module" module-name="utils" /> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/annotations.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-action-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-misc-trunk-1398.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-util-trunk-1410.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-xml-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/jdom.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/junit-4.2.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/log4j-1.2.13.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> + <orderEntry type="library" name="annotations" level="project" /> + <orderEntry type="library" name="japi-lib-swing-action" level="project" /> + <orderEntry type="library" name="japi-lib-swing-misc" level="project" /> + <orderEntry type="library" name="japi-lib-util" level="project" /> + <orderEntry type="library" name="japi-lib-xml" level="project" /> + <orderEntry type="library" name="jdom" level="project" /> + <orderEntry type="library" name="junit" level="project" /> + <orderEntry type="library" name="log4j" level="project" /> </component> </module> Modified: trunk/plugin/plugin.iml =================================================================== --- trunk/plugin/plugin.iml 2011-08-06 20:09:37 UTC (rev 8957) +++ trunk/plugin/plugin.iml 2011-08-26 18:28:48 UTC (rev 8958) @@ -10,51 +10,11 @@ <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="module" module-name="model" /> <orderEntry type="module" module-name="utils" /> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/annotations.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/jdom.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/log4j-1.2.13.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/bsh-core-2.0b4.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/bsh-util-2.0b4.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> + <orderEntry type="library" name="annotations" level="project" /> + <orderEntry type="library" name="bsh-core" level="project" /> + <orderEntry type="library" name="bsh-util" level="project" /> + <orderEntry type="library" name="jdom" level="project" /> + <orderEntry type="library" name="log4j" level="project" /> </component> </module> Modified: trunk/preferences/preferences.iml =================================================================== --- trunk/preferences/preferences.iml 2011-08-06 20:09:37 UTC (rev 8957) +++ trunk/preferences/preferences.iml 2011-08-26 18:28:48 UTC (rev 8958) @@ -7,33 +7,9 @@ </content> <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/annotations.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-action-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/log4j-1.2.13.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> + <orderEntry type="library" name="annotations" level="project" /> + <orderEntry type="library" name="japi-lib-swing-action" level="project" /> + <orderEntry type="library" name="log4j" level="project" /> </component> </module> Modified: trunk/textedit/textedit.iml =================================================================== --- trunk/textedit/textedit.iml 2011-08-06 20:09:37 UTC (rev 8957) +++ trunk/textedit/textedit.iml 2011-08-26 18:28:48 UTC (rev 8958) @@ -8,33 +8,9 @@ <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="module" module-name="utils" /> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/annotations.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-action-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/log4j-1.2.13.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> + <orderEntry type="library" name="annotations" level="project" /> + <orderEntry type="library" name="japi-lib-swing-action" level="project" /> + <orderEntry type="library" name="log4j" level="project" /> </component> </module> Modified: trunk/utils/utils.iml =================================================================== --- trunk/utils/utils.iml 2011-08-06 20:09:37 UTC (rev 8957) +++ trunk/utils/utils.iml 2011-08-26 18:28:48 UTC (rev 8958) @@ -7,51 +7,11 @@ </content> <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/annotations.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-swing-action-0.1.0.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/japi-lib-util-trunk-1410.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/junit-4.2.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> - <orderEntry type="module-library"> - <library> - <CLASSES> - <root url="jar://$MODULE_DIR$/../lib/log4j-1.2.13.jar!/" /> - </CLASSES> - <JAVADOC /> - <SOURCES /> - </library> - </orderEntry> + <orderEntry type="library" name="annotations" level="project" /> + <orderEntry type="library" name="japi-lib-swing-action" level="project" /> + <orderEntry type="library" name="japi-lib-util" level="project" /> + <orderEntry type="library" name="junit" level="project" /> + <orderEntry type="library" name="log4j" level="project" /> </component> </module> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-08-06 20:09:44
|
Revision: 8957 http://gridarta.svn.sourceforge.net/gridarta/?rev=8957&view=rev Author: akirschbaum Date: 2011-08-06 20:09:37 +0000 (Sat, 06 Aug 2011) Log Message: ----------- Improve plugin editor. Modified Paths: -------------- trunk/atrinik/ChangeLog trunk/build.xml trunk/crossfire/ChangeLog trunk/daimonin/ChangeLog trunk/gridarta.iml trunk/src/app/net/sf/gridarta/gui/dialog/plugin/PluginEditor.java trunk/src/app/net/sf/gridarta/messages.properties Added Paths: ----------- trunk/lib/rsyntaxtextarea-1.5.1-README trunk/lib/rsyntaxtextarea-1.5.1.jar trunk/lib/rsyntaxtextarea-1.5.1.jar-LICENSE Modified: trunk/atrinik/ChangeLog =================================================================== --- trunk/atrinik/ChangeLog 2011-08-06 14:54:38 UTC (rev 8956) +++ trunk/atrinik/ChangeLog 2011-08-06 20:09:37 UTC (rev 8957) @@ -1,3 +1,7 @@ +2011-08-06 Andreas Kirschbaum + + * Improve plugin editor. + 2011-07-16 Andreas Kirschbaum * Support 'z' attribute for objects within spawn points. Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2011-08-06 14:54:38 UTC (rev 8956) +++ trunk/build.xml 2011-08-06 20:09:37 UTC (rev 8957) @@ -144,6 +144,7 @@ <path id="path.lib.jdom" location="lib/jdom.jar"/> <path id="path.lib.log4j" location="lib/log4j-1.2.13.jar"/> <path id="path.lib.junit" location="lib/junit-4.2.jar"/> + <path id="path.lib.rsyntaxtextarea" location="lib/rsyntaxtextarea-1.5.1.jar"/> <path id="xsltpath"> <fileset dir="lib" includes="**/*.jar"/> @@ -205,6 +206,7 @@ <include name="java-getopt-1.0.13.jar-LICENSE"/> <include name="jdom.jar-LICENSE"/> <include name="log4j-1.2.13.jar-LICENSE"/> + <include name="rsyntaxtextarea-1.5.1.jar-LICENSE"/> </fileset> <fileset dir="resource"/> <fileset dir="atrinik/resource"/> @@ -215,6 +217,7 @@ <zipfileset src="lib/java-getopt-1.0.13.jar"/> <zipfileset src="lib/jdom.jar"/> <zipfileset src="lib/log4j-1.2.13.jar"/> + <zipfileset src="lib/rsyntaxtextarea-1.5.1.jar"/> <zipgroupfileset dir="lib/" includes="japi-*.jar"/> <manifest> <attribute name="Main-Class" value="net.sf.gridarta.var.atrinik.maincontrol.AtrinikEditor"/> @@ -243,6 +246,7 @@ <include name="java-getopt-1.0.13.jar-LICENSE"/> <include name="jdom.jar-LICENSE"/> <include name="log4j-1.2.13.jar-LICENSE"/> + <include name="rsyntaxtextarea-1.5.1.jar-LICENSE"/> </fileset> <fileset dir="resource"/> <fileset dir="crossfire/resource"/> @@ -253,6 +257,7 @@ <zipfileset src="lib/java-getopt-1.0.13.jar"/> <zipfileset src="lib/jdom.jar" excludes="META-INF/**"/> <zipfileset src="lib/log4j-1.2.13.jar"/> + <zipfileset src="lib/rsyntaxtextarea-1.5.1.jar"/> <zipgroupfileset dir="lib/" includes="japi-*.jar"/> <manifest> <attribute name="Main-Class" value="net.sf.gridarta.var.crossfire.maincontrol.CrossfireEditor"/> @@ -281,6 +286,7 @@ <include name="java-getopt-1.0.13.jar-LICENSE"/> <include name="jdom.jar-LICENSE"/> <include name="log4j-1.2.13.jar-LICENSE"/> + <include name="rsyntaxtextarea-1.5.1.jar-LICENSE"/> </fileset> <fileset dir="resource"/> <fileset dir="daimonin/resource"/> @@ -291,6 +297,7 @@ <zipfileset src="lib/java-getopt-1.0.13.jar"/> <zipfileset src="lib/jdom.jar"/> <zipfileset src="lib/log4j-1.2.13.jar"/> + <zipfileset src="lib/rsyntaxtextarea-1.5.1.jar"/> <zipgroupfileset dir="lib/" includes="japi-*.jar"/> <manifest> <attribute name="Main-Class" value="net.sf.gridarta.var.daimonin.maincontrol.DaimoninEditor"/> @@ -445,6 +452,7 @@ <path refid="path.lib.japi-util"/> <path refid="path.lib.jdom"/> <path refid="path.lib.log4j"/> + <path refid="path.lib.rsyntaxtextarea"/> </classpath> <compilerarg line="${javac.args}"/> </javac> Modified: trunk/crossfire/ChangeLog =================================================================== --- trunk/crossfire/ChangeLog 2011-08-06 14:54:38 UTC (rev 8956) +++ trunk/crossfire/ChangeLog 2011-08-06 20:09:37 UTC (rev 8957) @@ -1,3 +1,7 @@ +2011-08-06 Andreas Kirschbaum + + * Improve plugin editor. + 2011-08-04 Andreas Kirschbaum * Add "blessed" attribute for Treasure objects. Modified: trunk/daimonin/ChangeLog =================================================================== --- trunk/daimonin/ChangeLog 2011-08-06 14:54:38 UTC (rev 8956) +++ trunk/daimonin/ChangeLog 2011-08-06 20:09:37 UTC (rev 8957) @@ -1,3 +1,7 @@ +2011-08-06 Andreas Kirschbaum + + * Improve plugin editor. + 2011-07-08 Andreas Kirschbaum * Support 'system_system_object' matcher for auto-insertion mode. Modified: trunk/gridarta.iml =================================================================== --- trunk/gridarta.iml 2011-08-06 14:54:38 UTC (rev 8956) +++ trunk/gridarta.iml 2011-08-06 20:09:37 UTC (rev 8957) @@ -169,6 +169,15 @@ <SOURCES /> </library> </orderEntry> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$MODULE_DIR$/lib/rsyntaxtextarea-1.5.1.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> </component> </module> Added: trunk/lib/rsyntaxtextarea-1.5.1-README =================================================================== --- trunk/lib/rsyntaxtextarea-1.5.1-README (rev 0) +++ trunk/lib/rsyntaxtextarea-1.5.1-README 2011-08-06 20:09:37 UTC (rev 8957) @@ -0,0 +1 @@ +http://fifesoft.com/rsyntaxtextarea/ Property changes on: trunk/lib/rsyntaxtextarea-1.5.1-README ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + LF Added: trunk/lib/rsyntaxtextarea-1.5.1.jar =================================================================== (Binary files differ) Property changes on: trunk/lib/rsyntaxtextarea-1.5.1.jar ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/lib/rsyntaxtextarea-1.5.1.jar-LICENSE =================================================================== --- trunk/lib/rsyntaxtextarea-1.5.1.jar-LICENSE (rev 0) +++ trunk/lib/rsyntaxtextarea-1.5.1.jar-LICENSE 2011-08-06 20:09:37 UTC (rev 8957) @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. Property changes on: trunk/lib/rsyntaxtextarea-1.5.1.jar-LICENSE ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + LF Modified: trunk/src/app/net/sf/gridarta/gui/dialog/plugin/PluginEditor.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/plugin/PluginEditor.java 2011-08-06 14:54:38 UTC (rev 8956) +++ trunk/src/app/net/sf/gridarta/gui/dialog/plugin/PluginEditor.java 2011-08-06 20:09:37 UTC (rev 8957) @@ -43,7 +43,6 @@ import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTabbedPane; -import javax.swing.JTextArea; import javax.swing.SwingConstants; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; @@ -65,6 +64,9 @@ import net.sf.gridarta.utils.SystemIcons; import org.apache.log4j.Category; import org.apache.log4j.Logger; +import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; +import org.fife.ui.rsyntaxtextarea.SyntaxConstants; +import org.fife.ui.rtextarea.RTextScrollPane; import org.jetbrains.annotations.NotNull; public class PluginEditor<G extends GameObject<G, A, R>, A extends MapArchObject<A>, R extends Archetype<G, A, R>> extends JPanel { @@ -87,7 +89,7 @@ private final AbstractButton removeParameter; @NotNull - private final JTextArea code; + private final RSyntaxTextArea code; @NotNull private final PluginParameterFactory<G, A, R> pluginParameterFactory; @@ -301,7 +303,7 @@ paramButtons.add(removeParameter); parameterTab.add(paramButtons, BorderLayout.EAST); tabs.addTab("Manual run parameters", parameterTab); - code = new JTextArea(); + code = new RSyntaxTextArea(); code.setText(plugin.getCode()); code.setFont(new Font("Monospaced", Font.PLAIN, 14)); code.getDocument().addDocumentListener(new DocumentListener() { @@ -321,7 +323,8 @@ plugin.setCode(code.getText()); } }); - final Component scrollPane2 = new JScrollPane(code); + code.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); + final Component scrollPane2 = new RTextScrollPane(code); final Container codePanel = new JPanel(new BorderLayout()); codePanel.add(scrollPane2, BorderLayout.CENTER); final Container codeBottom = new JPanel(new FlowLayout()); Modified: trunk/src/app/net/sf/gridarta/messages.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages.properties 2011-08-06 14:54:38 UTC (rev 8956) +++ trunk/src/app/net/sf/gridarta/messages.properties 2011-08-06 20:09:37 UTC (rev 8957) @@ -948,6 +948,8 @@ license.6.file=jdom.jar-LICENSE license.7.title=GNU getopt license.7.file=java-getopt-1.0.13.jar-LICENSE +license.8.title=RSyntaxTextArea +license.8.file=rsyntaxtextarea-1.5.1.jar-LICENSE ################# This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-08-06 14:54:48
|
Revision: 8956 http://gridarta.svn.sourceforge.net/gridarta/?rev=8956&view=rev Author: akirschbaum Date: 2011-08-06 14:54:38 +0000 (Sat, 06 Aug 2011) Log Message: ----------- Distinguish between editor plugins ('plugin') and game scripts ('script'). Modified Paths: -------------- trunk/atrinik/atrinik.iml trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java trunk/build.xml trunk/crossfire/crossfire.iml trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java trunk/daimonin/daimonin.iml trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java trunk/gridarta.iml trunk/gridarta.ipr trunk/src/app/net/sf/gridarta/gui/dialog/plugin/CloseableTabbedPane.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/ClosingIcon.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/ClosingListener.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/StackLayout.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/ArchComboBox.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/ArchComboBoxCellRenderer.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/ArchComboBoxEditor.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/ArchComboBoxModel.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/ArchParameterView.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/BooleanParameterView.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/DoubleParameterView.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/FilterParameterView.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/IntegerParameterView.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/MapParameterCellRenderer.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/MapParameterComboBoxModel.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/MapParameterView.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/ParameterDescriptionEditor.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/ParameterNameEditor.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/ParameterTypeEditor.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/PluginParameterView.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/PluginParameterViewFactory.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/StringParameterView.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/parameter/TooltipSpinner.java trunk/src/app/net/sf/gridarta/maincontrol/DefaultMainControl.java trunk/src/app/net/sf/gridarta/maincontrol/EditorFactory.java trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java trunk/src/app/net/sf/gridarta/maincontrol/GridartaEditor.java Added Paths: ----------- trunk/plugin/ trunk/plugin/plugin.iml trunk/plugin/src/app/net/sf/gridarta/plugin/ trunk/plugin/src/app/net/sf/gridarta/plugin/BshThread.java trunk/plugin/src/app/net/sf/gridarta/plugin/Plugin.java trunk/plugin/src/app/net/sf/gridarta/plugin/PluginConsole.java trunk/plugin/src/app/net/sf/gridarta/plugin/PluginExecException.java trunk/plugin/src/app/net/sf/gridarta/plugin/PluginExecutor.java trunk/plugin/src/app/net/sf/gridarta/plugin/PluginModel.java trunk/plugin/src/app/net/sf/gridarta/plugin/PluginModelListener.java trunk/plugin/src/app/net/sf/gridarta/plugin/PluginModelLoader.java trunk/plugin/src/app/net/sf/gridarta/plugin/PluginModelParser.java trunk/plugin/src/app/net/sf/gridarta/plugin/PluginParameters.java trunk/plugin/src/app/net/sf/gridarta/plugin/PluginRunMode.java trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/ trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/AbstractPluginParameter.java trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/ArchParameter.java trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/BooleanConfig.java trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/BooleanParameter.java trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/DoubleConfig.java trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/DoubleParameter.java trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/FilterParameter.java trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/IntegerConfig.java trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/IntegerParameter.java trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/MapParameter.java trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/NoSuchParameterException.java trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/PluginParameter.java trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/PluginParameterFactory.java trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/PluginParameterListener.java trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/PluginParameterVisitor.java trunk/plugin/src/app/net/sf/gridarta/plugin/parameter/StringParameter.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/ trunk/src/app/net/sf/gridarta/gui/dialog/plugin/PluginController.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/PluginEditor.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/PluginManager.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/PluginManagerFactory.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/PluginView.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/PluginViewPane.java Removed Paths: ------------- trunk/plugin/script.iml trunk/plugin/src/app/net/sf/gridarta/script/ trunk/script/ trunk/src/app/net/sf/gridarta/gui/dialog/plugin/ScriptController.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/ScriptEditor.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/ScriptManager.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/ScriptManagerFactory.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/ScriptView.java trunk/src/app/net/sf/gridarta/gui/dialog/plugin/ScriptViewPane.java trunk/src/app/net/sf/gridarta/gui/dialog/script/ Modified: trunk/atrinik/atrinik.iml =================================================================== --- trunk/atrinik/atrinik.iml 2011-08-06 13:54:35 UTC (rev 8955) +++ trunk/atrinik/atrinik.iml 2011-08-06 14:54:38 UTC (rev 8956) @@ -12,7 +12,7 @@ <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="module" module-name="gridarta" /> <orderEntry type="module" module-name="model" /> - <orderEntry type="module" module-name="script" /> + <orderEntry type="module" module-name="plugin" /> <orderEntry type="module" module-name="utils" /> <orderEntry type="module-library"> <library> Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java 2011-08-06 13:54:35 UTC (rev 8955) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java 2011-08-06 14:54:38 UTC (rev 8956) @@ -94,10 +94,10 @@ import net.sf.gridarta.model.validation.ValidatorPreferences; import net.sf.gridarta.model.validation.checks.AttributeRangeChecker; import net.sf.gridarta.model.validation.checks.InvalidCheckException; -import net.sf.gridarta.script.ScriptExecutor; -import net.sf.gridarta.script.ScriptModel; -import net.sf.gridarta.script.ScriptParameters; -import net.sf.gridarta.script.parameter.PluginParameterFactory; +import net.sf.gridarta.plugin.PluginExecutor; +import net.sf.gridarta.plugin.PluginModel; +import net.sf.gridarta.plugin.PluginParameters; +import net.sf.gridarta.plugin.parameter.PluginParameterFactory; import net.sf.gridarta.utils.GUIUtils; import net.sf.gridarta.utils.GuiFileFilters; import net.sf.gridarta.utils.IOUtils; @@ -178,8 +178,8 @@ */ @NotNull @Override - public DefaultMainControl<GameObject, MapArchObject, Archetype> newMainControl(final boolean forceReadFromFiles, @NotNull final ErrorView errorView, @NotNull final GlobalSettings globalSettings, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final PathManager pathManager, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final ArchetypeTypeSet archetypeTypeSet, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final AutojoinLists<GameObject, MapArchObject, Archetype> autojoinLists, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final ScriptModel<GameObject, MapArchObject, Archetype> scriptModel, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory, @NotNull final ValidatorPreferences validatorPreferences, @NotNull final MapWriter<GameObject, MapArchObject, Archetype> mapWriter) { - return new DefaultMainControl<GameObject, MapArchObject, Archetype>(GuiFileFilters.pythonFileFilter, ".py", "Python", 0, IGUIConstants.SPELL_FILE, IGUIConstants.SCRIPTS_DIR, errorView, this, forceReadFromFiles, globalSettings, configSourceFactory, pathManager, gameObjectMatchers, gameObjectFactory, archetypeTypeSet, archetypeSet, archetypeChooserModel, autojoinLists, mapManager, scriptModel, validators, scriptedEventEditor, resources, numberSpells, gameObjectSpells, pluginParameterFactory, validatorPreferences, mapWriter); + public DefaultMainControl<GameObject, MapArchObject, Archetype> newMainControl(final boolean forceReadFromFiles, @NotNull final ErrorView errorView, @NotNull final GlobalSettings globalSettings, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final PathManager pathManager, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final ArchetypeTypeSet archetypeTypeSet, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final AutojoinLists<GameObject, MapArchObject, Archetype> autojoinLists, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final PluginModel<GameObject, MapArchObject, Archetype> pluginModel, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory, @NotNull final ValidatorPreferences validatorPreferences, @NotNull final MapWriter<GameObject, MapArchObject, Archetype> mapWriter) { + return new DefaultMainControl<GameObject, MapArchObject, Archetype>(GuiFileFilters.pythonFileFilter, ".py", "Python", 0, IGUIConstants.SPELL_FILE, IGUIConstants.SCRIPTS_DIR, errorView, this, forceReadFromFiles, globalSettings, configSourceFactory, pathManager, gameObjectMatchers, gameObjectFactory, archetypeTypeSet, archetypeSet, archetypeChooserModel, autojoinLists, mapManager, pluginModel, validators, scriptedEventEditor, resources, numberSpells, gameObjectSpells, pluginParameterFactory, validatorPreferences, mapWriter); } /** @@ -469,8 +469,8 @@ */ @NotNull @Override - public GUIMainControl<GameObject, MapArchObject, Archetype> createGUIMainControl(@NotNull final DefaultMainControl<GameObject, MapArchObject, Archetype> mainControl, @NotNull final ErrorView errorView, @NotNull final GUIUtils guiUtils, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<GameObject, MapArchObject, Archetype> rendererFactory, @NotNull final FilterControl<GameObject, MapArchObject, Archetype> filterControl, @NotNull final ScriptExecutor<GameObject, MapArchObject, Archetype> scriptExecutor, @NotNull final ScriptParameters scriptParameters, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final MapManager<GameObject, MapArchObject, Archetype> pickmapManager, @NotNull final MapModelFactory<GameObject, MapArchObject, Archetype> mapModelFactory, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final FaceObjects<GameObject, MapArchObject, Archetype> faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<GameObject, MapArchObject, Archetype> topmostInsertionMode, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final SystemIcons systemIcons, @NotNull final ArchetypeTypeSet archetypeTypeSet, @NotNull final MapArchObjectFactory<MapArchObject> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<GameObject, MapArchObject, Archetype> mapReaderFactory, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ScriptModel<GameObject, MapArchObject, Archetype> scriptModel, @NotNull final AnimationObjects<GameObject, MapArchObject, Archetype> animationObjects, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory) { - return mainControl.createGUIMainControl(GuiFileFilters.pythonFileFilter, ".py", true, mapManager, pickmapManager, archetypeSet, mapModelFactory, guiUtils.getResourceIcon(IGUIConstants.TILE_NORTH), "AtrinikEditor.jar", new int[] { Archetype.TYPE_LOCKED_DOOR, Archetype.TYPE_SPECIAL_KEY, Archetype.TYPE_ALTAR_TRIGGER, Archetype.TYPE_MARKER, Archetype.TYPE_INVENTORY_CHECKER, Archetype.TYPE_SPAWN_POINT, Archetype.TYPE_CONTAINER, }, PREFERENCES_VALIDATOR_AUTO_DEFAULT, IGUIConstants.SPELL_FILE, this, errorView, new SubDirectoryCacheFiles(".dedit"), configSourceFactory, rendererFactory, filterControl, scriptExecutor, scriptParameters, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, -1, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, IGUIConstants.SCRIPTS_DIR, scriptModel, animationObjects, archetypeChooserModel, false, scriptedEventEditor, new Direction[] { Direction.NORTH_EAST, Direction.SOUTH_EAST, Direction.SOUTH_WEST, Direction.NORTH_WEST, Direction.EAST, Direction.SOUTH, Direction.WEST, Direction.NORTH, }, resources, gameObjectSpells, numberSpells, pluginParameterFactory); + public GUIMainControl<GameObject, MapArchObject, Archetype> createGUIMainControl(@NotNull final DefaultMainControl<GameObject, MapArchObject, Archetype> mainControl, @NotNull final ErrorView errorView, @NotNull final GUIUtils guiUtils, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<GameObject, MapArchObject, Archetype> rendererFactory, @NotNull final FilterControl<GameObject, MapArchObject, Archetype> filterControl, @NotNull final PluginExecutor<GameObject, MapArchObject, Archetype> pluginExecutor, @NotNull final PluginParameters pluginParameters, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final MapManager<GameObject, MapArchObject, Archetype> pickmapManager, @NotNull final MapModelFactory<GameObject, MapArchObject, Archetype> mapModelFactory, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final FaceObjects<GameObject, MapArchObject, Archetype> faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<GameObject, MapArchObject, Archetype> topmostInsertionMode, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final SystemIcons systemIcons, @NotNull final ArchetypeTypeSet archetypeTypeSet, @NotNull final MapArchObjectFactory<MapArchObject> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<GameObject, MapArchObject, Archetype> mapReaderFactory, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final PluginModel<GameObject, MapArchObject, Archetype> pluginModel, @NotNull final AnimationObjects<GameObject, MapArchObject, Archetype> animationObjects, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory) { + return mainControl.createGUIMainControl(GuiFileFilters.pythonFileFilter, ".py", true, mapManager, pickmapManager, archetypeSet, mapModelFactory, guiUtils.getResourceIcon(IGUIConstants.TILE_NORTH), "AtrinikEditor.jar", new int[] { Archetype.TYPE_LOCKED_DOOR, Archetype.TYPE_SPECIAL_KEY, Archetype.TYPE_ALTAR_TRIGGER, Archetype.TYPE_MARKER, Archetype.TYPE_INVENTORY_CHECKER, Archetype.TYPE_SPAWN_POINT, Archetype.TYPE_CONTAINER, }, PREFERENCES_VALIDATOR_AUTO_DEFAULT, IGUIConstants.SPELL_FILE, this, errorView, new SubDirectoryCacheFiles(".dedit"), configSourceFactory, rendererFactory, filterControl, pluginExecutor, pluginParameters, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, -1, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, IGUIConstants.SCRIPTS_DIR, pluginModel, animationObjects, archetypeChooserModel, false, scriptedEventEditor, new Direction[] { Direction.NORTH_EAST, Direction.SOUTH_EAST, Direction.SOUTH_WEST, Direction.NORTH_WEST, Direction.EAST, Direction.SOUTH, Direction.WEST, Direction.NORTH, }, resources, gameObjectSpells, numberSpells, pluginParameterFactory); } /** Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2011-08-06 13:54:35 UTC (rev 8955) +++ trunk/build.xml 2011-08-06 14:54:38 UTC (rev 8956) @@ -106,12 +106,12 @@ <pathelement location="${build.dir}/preferences/test"/> </path> - <path id="path.class.script.app"> - <pathelement location="${build.dir}/script/app"/> + <path id="path.class.plugin.app"> + <pathelement location="${build.dir}/plugin/app"/> </path> - <path id="path.class.script.test"> - <path refid="path.class.script.app"/> - <pathelement location="${build.dir}/script/test"/> + <path id="path.class.plugin.test"> + <path refid="path.class.plugin.app"/> + <pathelement location="${build.dir}/plugin/test"/> </path> <path id="path.class.textedit.app"> @@ -191,7 +191,7 @@ <fileset dir="${build.dir}/gridarta/app"/> <fileset dir="${build.dir}/model/app"/> <fileset dir="${build.dir}/preferences/app"/> - <fileset dir="${build.dir}/script/app"/> + <fileset dir="${build.dir}/plugin/app"/> <fileset dir="${build.dir}/textedit/app"/> <fileset dir="${build.dir}/utils/app"/> <fileset dir="${build.dir}" includes="build.properties"/> @@ -229,7 +229,7 @@ <fileset dir="${build.dir}/gridarta/app"/> <fileset dir="${build.dir}/model/app"/> <fileset dir="${build.dir}/preferences/app"/> - <fileset dir="${build.dir}/script/app"/> + <fileset dir="${build.dir}/plugin/app"/> <fileset dir="${build.dir}/textedit/app"/> <fileset dir="${build.dir}/utils/app"/> <fileset dir="${build.dir}" includes="build.properties"/> @@ -267,7 +267,7 @@ <fileset dir="${build.dir}/gridarta/app"/> <fileset dir="${build.dir}/model/app"/> <fileset dir="${build.dir}/preferences/app"/> - <fileset dir="${build.dir}/script/app"/> + <fileset dir="${build.dir}/plugin/app"/> <fileset dir="${build.dir}/textedit/app"/> <fileset dir="${build.dir}/utils/app"/> <fileset dir="${build.dir}" includes="build.properties"/> @@ -315,13 +315,13 @@ </echoproperties> </target> - <target name="compile-atrinik" description="Compiles the atrinik module." depends="compile-gridarta,compile-model,compile-preferences,compile-script,compile-utils"> + <target name="compile-atrinik" description="Compiles the atrinik module." depends="compile-gridarta,compile-model,compile-preferences,compile-plugin,compile-utils"> <mkdir dir="${build.dir}/atrinik/app"/> <javac srcdir="atrinik/src/app" destdir="${build.dir}/atrinik/app" encoding="${build.source.encoding}" source="${build.source.version}" target="${build.target.version}" includeantruntime="false" debug="${debug}"> <classpath> <path refid="path.class.gridarta.app"/> <path refid="path.class.model.app"/> - <path refid="path.class.script.app"/> + <path refid="path.class.plugin.app"/> <path refid="path.class.utils.app"/> <path refid="path.lib.annotations"/> <path refid="path.lib.japi-swing-action"/> @@ -352,13 +352,13 @@ </copy> </target> - <target name="compile-crossfire" description="Compiles the crossfire module." depends="compile-gridarta,compile-model,compile-preferences,compile-script,compile-utils"> + <target name="compile-crossfire" description="Compiles the crossfire module." depends="compile-gridarta,compile-model,compile-preferences,compile-plugin,compile-utils"> <mkdir dir="${build.dir}/crossfire/app"/> <javac srcdir="crossfire/src/app" destdir="${build.dir}/crossfire/app" encoding="${build.source.encoding}" source="${build.source.version}" target="${build.target.version}" includeantruntime="false" debug="${debug}"> <classpath> <path refid="path.class.gridarta.app"/> <path refid="path.class.model.app"/> - <path refid="path.class.script.app"/> + <path refid="path.class.plugin.app"/> <path refid="path.class.utils.app"/> <path refid="path.lib.annotations"/> <path refid="path.lib.japi-swing-action"/> @@ -389,13 +389,13 @@ </copy> </target> - <target name="compile-daimonin" description="Compiles the daimonin module." depends="compile-gridarta,compile-model,compile-script,compile-utils"> + <target name="compile-daimonin" description="Compiles the daimonin module." depends="compile-gridarta,compile-model,compile-plugin,compile-utils"> <mkdir dir="${build.dir}/daimonin/app"/> <javac srcdir="daimonin/src/app" destdir="${build.dir}/daimonin/app" encoding="${build.source.encoding}" source="${build.source.version}" target="${build.target.version}" includeantruntime="false" debug="${debug}"> <classpath> <path refid="path.class.gridarta.app"/> <path refid="path.class.model.app"/> - <path refid="path.class.script.app"/> + <path refid="path.class.plugin.app"/> <path refid="path.class.utils.app"/> <path refid="path.lib.annotations"/> <path refid="path.lib.japi-swing-action"/> @@ -424,13 +424,13 @@ </copy> </target> - <target name="compile-gridarta" description="Compiles the gridarta module." depends="compile-model,compile-preferences,compile-script,compile-textedit,compile-utils"> + <target name="compile-gridarta" description="Compiles the gridarta module." depends="compile-model,compile-preferences,compile-plugin,compile-textedit,compile-utils"> <mkdir dir="${build.dir}/gridarta/app"/> <javac srcdir="src/app" destdir="${build.dir}/gridarta/app" encoding="${build.source.encoding}" source="${build.source.version}" target="${build.target.version}" includeantruntime="false" debug="${debug}"> <classpath> <path refid="path.class.model.app"/> <path refid="path.class.preferences.app"/> - <path refid="path.class.script.app"/> + <path refid="path.class.plugin.app"/> <path refid="path.class.textedit.app"/> <path refid="path.class.utils.app"/> <path refid="path.lib.annotations"/> @@ -530,9 +530,9 @@ </copy> </target> - <target name="compile-script" description="Compiles the script module." depends="compile-model,compile-utils"> - <mkdir dir="${build.dir}/script/app"/> - <javac srcdir="script/src/app" destdir="${build.dir}/script/app" encoding="${build.source.encoding}" source="${build.source.version}" target="${build.target.version}" includeantruntime="false" debug="${debug}"> + <target name="compile-plugin" description="Compiles the plugin module." depends="compile-model,compile-utils"> + <mkdir dir="${build.dir}/plugin/app"/> + <javac srcdir="plugin/src/app" destdir="${build.dir}/plugin/app" encoding="${build.source.encoding}" source="${build.source.version}" target="${build.target.version}" includeantruntime="false" debug="${debug}"> <classpath> <path refid="path.class.model.app"/> <path refid="path.class.utils.app"/> @@ -544,18 +544,18 @@ </classpath> <compilerarg line="${javac.args}"/> </javac> - <copy todir="${build.dir}/script/test"> - <fileset dir="script/src/test" includes="**/*.properties"/> + <copy todir="${build.dir}/plugin/test"> + <fileset dir="plugin/src/test" includes="**/*.properties"/> </copy> - <mkdir dir="${build.dir}/script/test"/> - <javac srcdir="script/src/test" destdir="${build.dir}/script/test" encoding="${build.source.encoding}" source="${build.source.version}" target="${build.target.version}" includeantruntime="false" debug="yes"> + <mkdir dir="${build.dir}/plugin/test"/> + <javac srcdir="plugin/src/test" destdir="${build.dir}/plugin/test" encoding="${build.source.encoding}" source="${build.source.version}" target="${build.target.version}" includeantruntime="false" debug="yes"> <classpath> - <path refid="path.class.script.app"/> + <path refid="path.class.plugin.app"/> </classpath> <compilerarg line="${javac.args}"/> </javac> - <copy todir="${build.dir}/script/app"> - <fileset dir="script/src/app" includes="**/*.properties"/> + <copy todir="${build.dir}/plugin/app"> + <fileset dir="plugin/src/app" includes="**/*.properties"/> </copy> </target> @@ -674,7 +674,7 @@ <path refid="path.class.gridarta.test"/> <path refid="path.class.model.test"/> <path refid="path.class.preferences.test"/> - <path refid="path.class.script.test"/> + <path refid="path.class.plugin.test"/> <path refid="path.class.textedit.test"/> <path refid="path.class.utils.test"/> </sourcepath> @@ -690,8 +690,8 @@ <packageset dir="model/src/test" defaultexcludes="yes"/> <packageset dir="preferences/src/app" defaultexcludes="yes"/> <packageset dir="preferences/src/test" defaultexcludes="yes"/> - <packageset dir="script/src/app" defaultexcludes="yes"/> - <packageset dir="script/src/test" defaultexcludes="yes"/> + <packageset dir="plugin/src/app" defaultexcludes="yes"/> + <packageset dir="plugin/src/test" defaultexcludes="yes"/> <packageset dir="textedit/src/app" defaultexcludes="yes"/> <packageset dir="textedit/src/test" defaultexcludes="yes"/> <packageset dir="utils/src/app" defaultexcludes="yes"/> @@ -877,8 +877,8 @@ <fileset dir="model/src/test" includes="**/*.java"/> <fileset dir="preferences/src/app" includes="**/*.java"/> <fileset dir="preferences/src/test" includes="**/*.java"/> - <fileset dir="script/src/app" includes="**/*.java"/> - <fileset dir="script/src/test" includes="**/*.java"/> + <fileset dir="plugin/src/app" includes="**/*.java"/> + <fileset dir="plugin/src/test" includes="**/*.java"/> <fileset dir="textedit/src/app" includes="**/*.java"/> <fileset dir="textedit/src/test" includes="**/*.java"/> <fileset dir="utils/src/app" includes="**/*.java"/> @@ -917,7 +917,7 @@ <path refid="path.class.gridarta.test"/> <path refid="path.class.model.test"/> <path refid="path.class.preferences.test"/> - <path refid="path.class.script.test"/> + <path refid="path.class.plugin.test"/> <path refid="path.class.textedit.test"/> <path refid="path.class.utils.test"/> </sourcepath> @@ -933,8 +933,8 @@ <packageset dir="model/src/test" defaultexcludes="yes"/> <packageset dir="preferences/src/app" defaultexcludes="yes"/> <packageset dir="preferences/src/test" defaultexcludes="yes"/> - <packageset dir="script/src/app" defaultexcludes="yes"/> - <packageset dir="script/src/test" defaultexcludes="yes"/> + <packageset dir="plugin/src/app" defaultexcludes="yes"/> + <packageset dir="plugin/src/test" defaultexcludes="yes"/> <packageset dir="textedit/src/app" defaultexcludes="yes"/> <packageset dir="textedit/src/test" defaultexcludes="yes"/> <packageset dir="utils/src/app" defaultexcludes="yes"/> @@ -969,7 +969,7 @@ <target name="test" description="Executes all tests." depends="test-junit,test-mapvalidator-atrinik,test-mapvalidator-crossfire,test-mapvalidator-daimonin"/> - <target name="test-junit" description="Executes the junit tests." depends="test-atrinik,test-crossfire,test-daimonin,test-gridarta,test-model,test-preferences,test-script,test-textedit,test-utils"> + <target name="test-junit" description="Executes the junit tests." depends="test-atrinik,test-crossfire,test-daimonin,test-gridarta,test-model,test-preferences,test-plugin,test-textedit,test-utils"> <junitreport todir="${docs.dir}/test"> <fileset dir="${docs.dir}/test"> <include name="TEST-*.xml"/> @@ -1117,16 +1117,16 @@ </junit> </target> - <target name="test-script" depends="compile-script"> + <target name="test-plugin" depends="compile-plugin"> <mkdir dir="${docs.dir}/test"/> <junit printsummary="no" haltonfailure="yes"> <classpath> - <path refid="path.class.script.test"/> + <path refid="path.class.plugin.test"/> </classpath> <formatter type="plain"/> <formatter type="xml"/> <batchtest todir="${docs.dir}/test"> - <fileset dir="${build.dir}/script/test"> + <fileset dir="${build.dir}/plugin/test"> <include name="**/*Test.class"/> <exclude name="**/*$*"/> <exclude name="**/Abstract*Test.class"/> @@ -1176,21 +1176,21 @@ <target name="test-mapvalidator-atrinik" description="Executes the map validator tests using AtrinikEditor.jar." depends="jar-atrinik"> <java jar="AtrinikEditor.jar" failonerror="true" fork="true"> <arg value="--config=test-mapvalidator/atrinik/regtest.conf"/> - <arg value="--script=MapValidator"/> + <arg value="--plugin=MapValidator"/> </java> </target> <target name="test-mapvalidator-crossfire" description="Executes the map validator tests using CrossfireEditor.jar." depends="jar-crossfire"> <java jar="CrossfireEditor.jar" failonerror="true" fork="true"> <arg value="--config=test-mapvalidator/crossfire/regtest.conf"/> - <arg value="--script=MapValidator"/> + <arg value="--plugin=MapValidator"/> </java> </target> <target name="test-mapvalidator-daimonin" description="Executes the map validator tests using DaimoninEditor.jar." depends="jar-daimonin"> <java jar="DaimoninEditor.jar" failonerror="true" fork="true"> <arg value="--config=test-mapvalidator/daimonin/regtest.conf"/> - <arg value="--script=MapValidator"/> + <arg value="--plugin=MapValidator"/> </java> </target> Modified: trunk/crossfire/crossfire.iml =================================================================== --- trunk/crossfire/crossfire.iml 2011-08-06 13:54:35 UTC (rev 8955) +++ trunk/crossfire/crossfire.iml 2011-08-06 14:54:38 UTC (rev 8956) @@ -13,7 +13,7 @@ <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="module" module-name="gridarta" /> <orderEntry type="module" module-name="model" /> - <orderEntry type="module" module-name="script" /> + <orderEntry type="module" module-name="plugin" /> <orderEntry type="module" module-name="utils" /> <orderEntry type="module-library"> <library> Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java 2011-08-06 13:54:35 UTC (rev 8955) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java 2011-08-06 14:54:38 UTC (rev 8956) @@ -89,10 +89,10 @@ import net.sf.gridarta.model.validation.ValidatorPreferences; import net.sf.gridarta.model.validation.checks.AttributeRangeChecker; import net.sf.gridarta.model.validation.checks.InvalidCheckException; -import net.sf.gridarta.script.ScriptExecutor; -import net.sf.gridarta.script.ScriptModel; -import net.sf.gridarta.script.ScriptParameters; -import net.sf.gridarta.script.parameter.PluginParameterFactory; +import net.sf.gridarta.plugin.PluginExecutor; +import net.sf.gridarta.plugin.PluginModel; +import net.sf.gridarta.plugin.PluginParameters; +import net.sf.gridarta.plugin.parameter.PluginParameterFactory; import net.sf.gridarta.utils.ConfigFileUtils; import net.sf.gridarta.utils.GUIUtils; import net.sf.gridarta.utils.GuiFileFilters; @@ -149,8 +149,8 @@ */ @NotNull @Override - public DefaultMainControl<GameObject, MapArchObject, Archetype> newMainControl(final boolean forceReadFromFiles, @NotNull final ErrorView errorView, @NotNull final GlobalSettings globalSettings, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final PathManager pathManager, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final ArchetypeTypeSet archetypeTypeSet, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final AutojoinLists<GameObject, MapArchObject, Archetype> autojoinLists, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final ScriptModel<GameObject, MapArchObject, Archetype> scriptModel, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory, @NotNull final ValidatorPreferences validatorPreferences, @NotNull final MapWriter<GameObject, MapArchObject, Archetype> mapWriter) { - return new DefaultMainControl<GameObject, MapArchObject, Archetype>(GuiFileFilters.pythonFileFilter, ".py", "Python", Archetype.TYPE_SPELL, null, IGUIConstants.SCRIPTS_DIR, errorView, this, false, globalSettings, configSourceFactory, pathManager, gameObjectMatchers, gameObjectFactory, archetypeTypeSet, archetypeSet, archetypeChooserModel, autojoinLists, mapManager, scriptModel, validators, scriptedEventEditor, resources, numberSpells, gameObjectSpells, pluginParameterFactory, validatorPreferences, mapWriter); + public DefaultMainControl<GameObject, MapArchObject, Archetype> newMainControl(final boolean forceReadFromFiles, @NotNull final ErrorView errorView, @NotNull final GlobalSettings globalSettings, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final PathManager pathManager, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final ArchetypeTypeSet archetypeTypeSet, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final AutojoinLists<GameObject, MapArchObject, Archetype> autojoinLists, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final PluginModel<GameObject, MapArchObject, Archetype> pluginModel, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory, @NotNull final ValidatorPreferences validatorPreferences, @NotNull final MapWriter<GameObject, MapArchObject, Archetype> mapWriter) { + return new DefaultMainControl<GameObject, MapArchObject, Archetype>(GuiFileFilters.pythonFileFilter, ".py", "Python", Archetype.TYPE_SPELL, null, IGUIConstants.SCRIPTS_DIR, errorView, this, false, globalSettings, configSourceFactory, pathManager, gameObjectMatchers, gameObjectFactory, archetypeTypeSet, archetypeSet, archetypeChooserModel, autojoinLists, mapManager, pluginModel, validators, scriptedEventEditor, resources, numberSpells, gameObjectSpells, pluginParameterFactory, validatorPreferences, mapWriter); } /** @@ -378,8 +378,8 @@ */ @NotNull @Override - public GUIMainControl<GameObject, MapArchObject, Archetype> createGUIMainControl(@NotNull final DefaultMainControl<GameObject, MapArchObject, Archetype> mainControl, @NotNull final ErrorView errorView, @NotNull final GUIUtils guiUtils, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<GameObject, MapArchObject, Archetype> rendererFactory, @NotNull final FilterControl<GameObject, MapArchObject, Archetype> filterControl, @NotNull final ScriptExecutor<GameObject, MapArchObject, Archetype> scriptExecutor, @NotNull final ScriptParameters scriptParameters, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final MapManager<GameObject, MapArchObject, Archetype> pickmapManager, @NotNull final MapModelFactory<GameObject, MapArchObject, Archetype> mapModelFactory, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final FaceObjects<GameObject, MapArchObject, Archetype> faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<GameObject, MapArchObject, Archetype> topmostInsertionMode, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final SystemIcons systemIcons, @NotNull final ArchetypeTypeSet archetypeTypeSet, @NotNull final MapArchObjectFactory<MapArchObject> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<GameObject, MapArchObject, Archetype> mapReaderFactory, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ScriptModel<GameObject, MapArchObject, Archetype> scriptModel, @NotNull final AnimationObjects<GameObject, MapArchObject, Archetype> animationObjects, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory) { - return mainControl.createGUIMainControl(GuiFileFilters.pythonFileFilter, ".py", false, mapManager, pickmapManager, archetypeSet, mapModelFactory, null, "CrossfireEditor.jar", new int[] { Archetype.TYPE_LOCKED_DOOR, Archetype.TYPE_SPECIAL_KEY, Archetype.TYPE_TRIGGER_ALTAR, Archetype.TYPE_DETECTOR, Archetype.TYPE_TRIGGER_MARKER, Archetype.TYPE_MARKER, Archetype.TYPE_INVENTORY_CHECKER, Archetype.TYPE_CONTAINER, }, PREFERENCES_VALIDATOR_AUTO_DEFAULT, null, this, errorView, new DirectoryCacheFiles(ConfigFileUtils.getHomeFile("thumbnails"), ".png"), configSourceFactory, rendererFactory, filterControl, scriptExecutor, scriptParameters, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, 0, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, IGUIConstants.SCRIPTS_DIR, scriptModel, animationObjects, archetypeChooserModel, true, scriptedEventEditor, new Direction[] { Direction.NORTH, Direction.EAST, Direction.SOUTH, Direction.WEST, Direction.NORTH_EAST, Direction.SOUTH_EAST, Direction.SOUTH_WEST, Direction.NORTH_WEST, }, resources, gameObjectSpells, numberSpells, pluginParameterFactory); + public GUIMainControl<GameObject, MapArchObject, Archetype> createGUIMainControl(@NotNull final DefaultMainControl<GameObject, MapArchObject, Archetype> mainControl, @NotNull final ErrorView errorView, @NotNull final GUIUtils guiUtils, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<GameObject, MapArchObject, Archetype> rendererFactory, @NotNull final FilterControl<GameObject, MapArchObject, Archetype> filterControl, @NotNull final PluginExecutor<GameObject, MapArchObject, Archetype> pluginExecutor, @NotNull final PluginParameters pluginParameters, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final MapManager<GameObject, MapArchObject, Archetype> pickmapManager, @NotNull final MapModelFactory<GameObject, MapArchObject, Archetype> mapModelFactory, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final FaceObjects<GameObject, MapArchObject, Archetype> faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<GameObject, MapArchObject, Archetype> topmostInsertionMode, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final SystemIcons systemIcons, @NotNull final ArchetypeTypeSet archetypeTypeSet, @NotNull final MapArchObjectFactory<MapArchObject> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<GameObject, MapArchObject, Archetype> mapReaderFactory, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final PluginModel<GameObject, MapArchObject, Archetype> pluginModel, @NotNull final AnimationObjects<GameObject, MapArchObject, Archetype> animationObjects, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory) { + return mainControl.createGUIMainControl(GuiFileFilters.pythonFileFilter, ".py", false, mapManager, pickmapManager, archetypeSet, mapModelFactory, null, "CrossfireEditor.jar", new int[] { Archetype.TYPE_LOCKED_DOOR, Archetype.TYPE_SPECIAL_KEY, Archetype.TYPE_TRIGGER_ALTAR, Archetype.TYPE_DETECTOR, Archetype.TYPE_TRIGGER_MARKER, Archetype.TYPE_MARKER, Archetype.TYPE_INVENTORY_CHECKER, Archetype.TYPE_CONTAINER, }, PREFERENCES_VALIDATOR_AUTO_DEFAULT, null, this, errorView, new DirectoryCacheFiles(ConfigFileUtils.getHomeFile("thumbnails"), ".png"), configSourceFactory, rendererFactory, filterControl, pluginExecutor, pluginParameters, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, 0, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, IGUIConstants.SCRIPTS_DIR, pluginModel, animationObjects, archetypeChooserModel, true, scriptedEventEditor, new Direction[] { Direction.NORTH, Direction.EAST, Direction.SOUTH, Direction.WEST, Direction.NORTH_EAST, Direction.SOUTH_EAST, Direction.SOUTH_WEST, Direction.NORTH_WEST, }, resources, gameObjectSpells, numberSpells, pluginParameterFactory); } /** Modified: trunk/daimonin/daimonin.iml =================================================================== --- trunk/daimonin/daimonin.iml 2011-08-06 13:54:35 UTC (rev 8955) +++ trunk/daimonin/daimonin.iml 2011-08-06 14:54:38 UTC (rev 8956) @@ -12,7 +12,7 @@ <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="module" module-name="gridarta" /> <orderEntry type="module" module-name="model" /> - <orderEntry type="module" module-name="script" /> + <orderEntry type="module" module-name="plugin" /> <orderEntry type="module" module-name="utils" /> <orderEntry type="module-library"> <library> Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java 2011-08-06 13:54:35 UTC (rev 8955) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java 2011-08-06 14:54:38 UTC (rev 8956) @@ -94,10 +94,10 @@ import net.sf.gridarta.model.validation.ValidatorPreferences; import net.sf.gridarta.model.validation.checks.AttributeRangeChecker; import net.sf.gridarta.model.validation.checks.InvalidCheckException; -import net.sf.gridarta.script.ScriptExecutor; -import net.sf.gridarta.script.ScriptModel; -import net.sf.gridarta.script.ScriptParameters; -import net.sf.gridarta.script.parameter.PluginParameterFactory; +import net.sf.gridarta.plugin.PluginExecutor; +import net.sf.gridarta.plugin.PluginModel; +import net.sf.gridarta.plugin.PluginParameters; +import net.sf.gridarta.plugin.parameter.PluginParameterFactory; import net.sf.gridarta.utils.GUIUtils; import net.sf.gridarta.utils.GuiFileFilters; import net.sf.gridarta.utils.IOUtils; @@ -178,8 +178,8 @@ */ @NotNull @Override - public DefaultMainControl<GameObject, MapArchObject, Archetype> newMainControl(final boolean forceReadFromFiles, @NotNull final ErrorView errorView, @NotNull final GlobalSettings globalSettings, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final PathManager pathManager, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final ArchetypeTypeSet archetypeTypeSet, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final AutojoinLists<GameObject, MapArchObject, Archetype> autojoinLists, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final ScriptModel<GameObject, MapArchObject, Archetype> scriptModel, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory, @NotNull final ValidatorPreferences validatorPreferences, @NotNull final MapWriter<GameObject, MapArchObject, Archetype> mapWriter) { - return new DefaultMainControl<GameObject, MapArchObject, Archetype>(GuiFileFilters.luaFileFilter, ".lua", "Lua", 0, IGUIConstants.SPELL_FILE, IGUIConstants.SCRIPTS_DIR, errorView, this, forceReadFromFiles, globalSettings, configSourceFactory, pathManager, gameObjectMatchers, gameObjectFactory, archetypeTypeSet, archetypeSet, archetypeChooserModel, autojoinLists, mapManager, scriptModel, validators, scriptedEventEditor, resources, numberSpells, gameObjectSpells, pluginParameterFactory, validatorPreferences, mapWriter); + public DefaultMainControl<GameObject, MapArchObject, Archetype> newMainControl(final boolean forceReadFromFiles, @NotNull final ErrorView errorView, @NotNull final GlobalSettings globalSettings, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final PathManager pathManager, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final ArchetypeTypeSet archetypeTypeSet, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final AutojoinLists<GameObject, MapArchObject, Archetype> autojoinLists, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final PluginModel<GameObject, MapArchObject, Archetype> pluginModel, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory, @NotNull final ValidatorPreferences validatorPreferences, @NotNull final MapWriter<GameObject, MapArchObject, Archetype> mapWriter) { + return new DefaultMainControl<GameObject, MapArchObject, Archetype>(GuiFileFilters.luaFileFilter, ".lua", "Lua", 0, IGUIConstants.SPELL_FILE, IGUIConstants.SCRIPTS_DIR, errorView, this, forceReadFromFiles, globalSettings, configSourceFactory, pathManager, gameObjectMatchers, gameObjectFactory, archetypeTypeSet, archetypeSet, archetypeChooserModel, autojoinLists, mapManager, pluginModel, validators, scriptedEventEditor, resources, numberSpells, gameObjectSpells, pluginParameterFactory, validatorPreferences, mapWriter); } /** @@ -469,8 +469,8 @@ */ @NotNull @Override - public GUIMainControl<GameObject, MapArchObject, Archetype> createGUIMainControl(@NotNull final DefaultMainControl<GameObject, MapArchObject, Archetype> mainControl, @NotNull final ErrorView errorView, @NotNull final GUIUtils guiUtils, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<GameObject, MapArchObject, Archetype> rendererFactory, @NotNull final FilterControl<GameObject, MapArchObject, Archetype> filterControl, @NotNull final ScriptExecutor<GameObject, MapArchObject, Archetype> scriptExecutor, @NotNull final ScriptParameters scriptParameters, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final MapManager<GameObject, MapArchObject, Archetype> pickmapManager, @NotNull final MapModelFactory<GameObject, MapArchObject, Archetype> mapModelFactory, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final FaceObjects<GameObject, MapArchObject, Archetype> faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<GameObject, MapArchObject, Archetype> topmostInsertionMode, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final SystemIcons systemIcons, @NotNull final ArchetypeTypeSet archetypeTypeSet, @NotNull final MapArchObjectFactory<MapArchObject> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<GameObject, MapArchObject, Archetype> mapReaderFactory, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ScriptModel<GameObject, MapArchObject, Archetype> scriptModel, @NotNull final AnimationObjects<GameObject, MapArchObject, Archetype> animationObjects, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory) { - return mainControl.createGUIMainControl(GuiFileFilters.luaFileFilter, ".lua", true, mapManager, pickmapManager, archetypeSet, mapModelFactory, guiUtils.getResourceIcon(IGUIConstants.TILE_NORTH), "DaimoninEditor.jar", new int[] { Archetype.TYPE_LOCKED_DOOR, Archetype.TYPE_SPECIAL_KEY, Archetype.TYPE_ALTAR_TRIGGER, Archetype.TYPE_MARKER, Archetype.TYPE_INVENTORY_CHECKER, Archetype.TYPE_SPAWN_POINT, Archetype.TYPE_CONTAINER, }, PREFERENCES_VALIDATOR_AUTO_DEFAULT, IGUIConstants.SPELL_FILE, this, errorView, new SubDirectoryCacheFiles(".dedit"), configSourceFactory, rendererFactory, filterControl, scriptExecutor, scriptParameters, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, -1, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, IGUIConstants.SCRIPTS_DIR, scriptModel, animationObjects, archetypeChooserModel, false, scriptedEventEditor, new Direction[] { Direction.NORTH_EAST, Direction.SOUTH_EAST, Direction.SOUTH_WEST, Direction.NORTH_WEST, Direction.EAST, Direction.SOUTH, Direction.WEST, Direction.NORTH, }, resources, gameObjectSpells, numberSpells, pluginParameterFactory); + public GUIMainControl<GameObject, MapArchObject, Archetype> createGUIMainControl(@NotNull final DefaultMainControl<GameObject, MapArchObject, Archetype> mainControl, @NotNull final ErrorView errorView, @NotNull final GUIUtils guiUtils, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<GameObject, MapArchObject, Archetype> rendererFactory, @NotNull final FilterControl<GameObject, MapArchObject, Archetype> filterControl, @NotNull final PluginExecutor<GameObject, MapArchObject, Archetype> pluginExecutor, @NotNull final PluginParameters pluginParameters, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final MapManager<GameObject, MapArchObject, Archetype> pickmapManager, @NotNull final MapModelFactory<GameObject, MapArchObject, Archetype> mapModelFactory, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final FaceObjects<GameObject, MapArchObject, Archetype> faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<GameObject, MapArchObject, Archetype> topmostInsertionMode, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final SystemIcons systemIcons, @NotNull final ArchetypeTypeSet archetypeTypeSet, @NotNull final MapArchObjectFactory<MapArchObject> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<GameObject, MapArchObject, Archetype> mapReaderFactory, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final PluginModel<GameObject, MapArchObject, Archetype> pluginModel, @NotNull final AnimationObjects<GameObject, MapArchObject, Archetype> animationObjects, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> nu... [truncated message content] |
From: <aki...@us...> - 2011-08-06 13:54:42
|
Revision: 8955 http://gridarta.svn.sourceforge.net/gridarta/?rev=8955&view=rev Author: akirschbaum Date: 2011-08-06 13:54:35 +0000 (Sat, 06 Aug 2011) Log Message: ----------- Move script package to different location. Modified Paths: -------------- trunk/src/app/net/sf/gridarta/gui/dialog/script/CloseableTabbedPane.java trunk/src/app/net/sf/gridarta/gui/dialog/script/ClosingIcon.java trunk/src/app/net/sf/gridarta/gui/dialog/script/ClosingListener.java trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptController.java trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptEditor.java trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptManager.java trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptManagerFactory.java trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptView.java trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptViewPane.java trunk/src/app/net/sf/gridarta/gui/dialog/script/StackLayout.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ArchComboBox.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ArchComboBoxCellRenderer.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ArchComboBoxEditor.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ArchComboBoxModel.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ArchParameterView.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/BooleanParameterView.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/DoubleParameterView.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/FilterParameterView.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/IntegerParameterView.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/MapParameterCellRenderer.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/MapParameterComboBoxModel.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/MapParameterView.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ParameterDescriptionEditor.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ParameterNameEditor.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ParameterTypeEditor.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/PluginParameterView.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/PluginParameterViewFactory.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/StringParameterView.java trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/TooltipSpinner.java trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java Added Paths: ----------- trunk/src/app/net/sf/gridarta/gui/dialog/script/ Removed Paths: ------------- trunk/src/app/net/sf/gridarta/gui/panel/script/ Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/CloseableTabbedPane.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/CloseableTabbedPane.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/CloseableTabbedPane.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -44,7 +44,7 @@ * */ -package net.sf.gridarta.gui.panel.script; +package net.sf.gridarta.gui.dialog.script; import java.awt.Component; import javax.swing.ImageIcon; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/ClosingIcon.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/ClosingIcon.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/ClosingIcon.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script; +package net.sf.gridarta.gui.dialog.script; import java.awt.Component; import java.awt.Graphics; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/ClosingListener.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/ClosingListener.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/ClosingListener.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script; +package net.sf.gridarta.gui.dialog.script; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptController.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptController.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptController.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script; +package net.sf.gridarta.gui.dialog.script; import java.awt.Component; import java.io.File; @@ -26,8 +26,8 @@ import javax.swing.Action; import javax.swing.JFileChooser; import javax.swing.JOptionPane; +import net.sf.gridarta.gui.dialog.script.parameter.PluginParameterViewFactory; import net.sf.gridarta.gui.filter.FilterControl; -import net.sf.gridarta.gui.panel.script.parameter.PluginParameterViewFactory; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.filter.Filter; import net.sf.gridarta.model.gameobject.GameObject; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptEditor.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptEditor.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptEditor.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script; +package net.sf.gridarta.gui.dialog.script; import java.awt.BorderLayout; import java.awt.Component; @@ -49,11 +49,11 @@ import javax.swing.event.ChangeListener; import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentListener; -import net.sf.gridarta.gui.panel.script.parameter.ParameterDescriptionEditor; -import net.sf.gridarta.gui.panel.script.parameter.ParameterNameEditor; -import net.sf.gridarta.gui.panel.script.parameter.ParameterTypeEditor; -import net.sf.gridarta.gui.panel.script.parameter.PluginParameterView; -import net.sf.gridarta.gui.panel.script.parameter.PluginParameterViewFactory; +import net.sf.gridarta.gui.dialog.script.parameter.ParameterDescriptionEditor; +import net.sf.gridarta.gui.dialog.script.parameter.ParameterNameEditor; +import net.sf.gridarta.gui.dialog.script.parameter.ParameterTypeEditor; +import net.sf.gridarta.gui.dialog.script.parameter.PluginParameterView; +import net.sf.gridarta.gui.dialog.script.parameter.PluginParameterViewFactory; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptManager.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptManager.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptManager.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script; +package net.sf.gridarta.gui.dialog.script; import java.awt.BorderLayout; import java.awt.CardLayout; @@ -41,7 +41,7 @@ import javax.swing.border.LineBorder; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; -import net.sf.gridarta.gui.panel.script.parameter.PluginParameterViewFactory; +import net.sf.gridarta.gui.dialog.script.parameter.PluginParameterViewFactory; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptManagerFactory.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptManagerFactory.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptManagerFactory.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,10 +17,10 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script; +package net.sf.gridarta.gui.dialog.script; import java.awt.Window; -import net.sf.gridarta.gui.panel.script.parameter.PluginParameterViewFactory; +import net.sf.gridarta.gui.dialog.script.parameter.PluginParameterViewFactory; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptView.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptView.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script; +package net.sf.gridarta.gui.dialog.script; import java.awt.BorderLayout; import java.awt.Component; @@ -35,8 +35,8 @@ import javax.swing.JMenuItem; import javax.swing.JOptionPane; import javax.swing.JPanel; -import net.sf.gridarta.gui.panel.script.parameter.PluginParameterView; -import net.sf.gridarta.gui.panel.script.parameter.PluginParameterViewFactory; +import net.sf.gridarta.gui.dialog.script.parameter.PluginParameterView; +import net.sf.gridarta.gui.dialog.script.parameter.PluginParameterViewFactory; import net.sf.gridarta.gui.utils.MenuUtils; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.gameobject.GameObject; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptViewPane.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptViewPane.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/ScriptViewPane.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script; +package net.sf.gridarta.gui.dialog.script; import java.awt.Component; import java.awt.Window; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/StackLayout.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/StackLayout.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/StackLayout.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -21,7 +21,7 @@ * http://www.softbear.com/java/mktview/StackLayout.java */ -package net.sf.gridarta.gui.panel.script; +package net.sf.gridarta.gui.dialog.script; import java.awt.Component; import java.awt.Container; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ArchComboBox.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBox.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ArchComboBox.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import java.awt.Dimension; import javax.swing.JComboBox; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ArchComboBoxCellRenderer.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxCellRenderer.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ArchComboBoxCellRenderer.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import java.awt.Component; import javax.swing.ComboBoxEditor; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ArchComboBoxEditor.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxEditor.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ArchComboBoxEditor.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import java.awt.Color; import java.awt.Component; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ArchComboBoxModel.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxModel.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ArchComboBoxModel.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import java.util.ArrayList; import java.util.Collection; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ArchParameterView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchParameterView.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ArchParameterView.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/BooleanParameterView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/BooleanParameterView.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/BooleanParameterView.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/DoubleParameterView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/DoubleParameterView.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/DoubleParameterView.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import java.awt.Component; import java.awt.event.ActionEvent; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/FilterParameterView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/FilterParameterView.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/FilterParameterView.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import javax.swing.JComponent; import javax.swing.JPanel; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/IntegerParameterView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/IntegerParameterView.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/IntegerParameterView.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/MapParameterCellRenderer.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/MapParameterCellRenderer.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/MapParameterCellRenderer.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import java.awt.Component; import javax.swing.DefaultListCellRenderer; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/MapParameterComboBoxModel.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/MapParameterComboBoxModel.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/MapParameterComboBoxModel.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import java.util.List; import javax.swing.DefaultComboBoxModel; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/MapParameterView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/MapParameterView.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/MapParameterView.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ParameterDescriptionEditor.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ParameterDescriptionEditor.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ParameterDescriptionEditor.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import javax.swing.JTextField; import javax.swing.event.DocumentEvent; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ParameterNameEditor.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ParameterNameEditor.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ParameterNameEditor.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import javax.swing.JTextField; import javax.swing.event.DocumentEvent; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ParameterTypeEditor.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ParameterTypeEditor.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/ParameterTypeEditor.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/PluginParameterView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/PluginParameterView.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/PluginParameterView.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import javax.swing.JComponent; import net.sf.gridarta.model.archetype.Archetype; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/PluginParameterViewFactory.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/PluginParameterViewFactory.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/PluginParameterViewFactory.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import net.sf.gridarta.gui.panel.gameobjectattributes.GameObjectAttributesModel; import net.sf.gridarta.gui.panel.objectchooser.ObjectChooser; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/StringParameterView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/StringParameterView.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/StringParameterView.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import javax.swing.JComponent; import javax.swing.JPanel; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/TooltipSpinner.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/TooltipSpinner.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/gui/dialog/script/parameter/TooltipSpinner.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.script.parameter; +package net.sf.gridarta.gui.dialog.script.parameter; import java.awt.Component; import javax.swing.JComponent; Modified: trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2011-08-06 13:36:28 UTC (rev 8954) +++ trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2011-08-06 13:54:35 UTC (rev 8955) @@ -46,6 +46,8 @@ import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; import net.sf.gridarta.gui.dialog.prefs.AppPreferencesModel; import net.sf.gridarta.gui.dialog.replace.ReplaceDialogManager; +import net.sf.gridarta.gui.dialog.script.ScriptController; +import net.sf.gridarta.gui.dialog.script.parameter.PluginParameterViewFactory; import net.sf.gridarta.gui.dialog.shortcuts.ShortcutsManager; import net.sf.gridarta.gui.exitconnector.ExitConnectorController; import net.sf.gridarta.gui.filter.FilterControl; @@ -101,8 +103,6 @@ import net.sf.gridarta.gui.panel.objectchooser.DefaultObjectChooser; import net.sf.gridarta.gui.panel.pickmapchooser.PickmapChooserControl; import net.sf.gridarta.gui.panel.pickmapchooser.PickmapChooserModel; -import net.sf.gridarta.gui.panel.script.ScriptController; -import net.sf.gridarta.gui.panel.script.parameter.PluginParameterViewFactory; import net.sf.gridarta.gui.panel.selectedsquare.SelectedSquareActions; import net.sf.gridarta.gui.panel.selectedsquare.SelectedSquareControl; import net.sf.gridarta.gui.panel.selectedsquare.SelectedSquareModel; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-08-06 13:36:34
|
Revision: 8954 http://gridarta.svn.sourceforge.net/gridarta/?rev=8954&view=rev Author: akirschbaum Date: 2011-08-06 13:36:28 +0000 (Sat, 06 Aug 2011) Log Message: ----------- Simplify expression. Modified Paths: -------------- trunk/src/app/net/sf/gridarta/gui/panel/script/ClosingIcon.java Modified: trunk/src/app/net/sf/gridarta/gui/panel/script/ClosingIcon.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/ClosingIcon.java 2011-08-06 13:27:41 UTC (rev 8953) +++ trunk/src/app/net/sf/gridarta/gui/panel/script/ClosingIcon.java 2011-08-06 13:36:28 UTC (rev 8954) @@ -96,7 +96,7 @@ * <var>yEvent</var> or both are outside the icon's border). */ public boolean contains(final int xEvent, final int yEvent) { - return !(!(xEvent >= x) || !(xEvent <= x + width)) && !(!(yEvent >= y) || !(yEvent <= y + height)); + return x <= xEvent && xEvent <= x + width && y <= yEvent && yEvent <= y + height; } } // class ClosingIcon This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-08-06 13:27:51
|
Revision: 8953 http://gridarta.svn.sourceforge.net/gridarta/?rev=8953&view=rev Author: akirschbaum Date: 2011-08-06 13:27:41 +0000 (Sat, 06 Aug 2011) Log Message: ----------- Rename package names. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/ConfirmErrorsDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttribute.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeAnimationName.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeBitmask.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeBool.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeBoolSpec.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeFaceName.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeFloat.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeInt.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeInvSpell.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeList.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeLong.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeMapPath.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeScriptFile.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeSpell.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeString.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeText.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeTreasure.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeZSpell.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/GameObjectAttributesDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/GameObjectAttributesDialogFactory.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/GuiInfo.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/HelpActionListener.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/MaskChangeAL.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/ScrollToVisibleFocusListener.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/StringKeyManager.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/TypesBoxItemListener.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/ViewTreasurelistAL.java trunk/src/app/net/sf/gridarta/gui/dialog/golocation/GoLocationDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/golocation/GoLocationDialogManager.java trunk/src/app/net/sf/gridarta/gui/dialog/gomap/GoMapDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/gomap/GoMapDialogManager.java trunk/src/app/net/sf/gridarta/gui/dialog/gomap/MapListCellRenderer.java trunk/src/app/net/sf/gridarta/gui/dialog/mapproperties/MapPropertiesDialogFactory.java trunk/src/app/net/sf/gridarta/gui/dialog/replace/ArchetypeNameMatchCriteria.java trunk/src/app/net/sf/gridarta/gui/dialog/replace/MatchCriteria.java trunk/src/app/net/sf/gridarta/gui/dialog/replace/ObjectNameMatchCriteria.java trunk/src/app/net/sf/gridarta/gui/dialog/replace/ReplaceDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/replace/ReplaceDialogManager.java trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsize/ShrinkMapSizeDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsize/ShrinkMapSizeDialogManager.java trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsize/ShrinkMapSizeUtils.java trunk/src/app/net/sf/gridarta/gui/mainwindow/GameObjectTab.java trunk/src/app/net/sf/gridarta/gui/mainwindow/WarningsTab.java trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java trunk/src/app/net/sf/gridarta/gui/mapcursor/MapCursorActions.java trunk/src/app/net/sf/gridarta/gui/misc/MainViewActions.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/AbstractGameObjectAttributesTab.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/ArchTab.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/ErrorListView.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/ErrorListViewListener.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/EventsTab.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/FaceTab.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesControl.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesControlListener.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesModel.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesModelListener.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesTab.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesTabListener.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/MsgTextTab.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/TextEditorTab.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBox.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxEditor.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchParameterView.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/PluginParameterViewFactory.java trunk/src/app/net/sf/gridarta/gui/panel/selectedsquare/SelectedSquareControl.java trunk/src/app/net/sf/gridarta/mainactions/MainActions.java trunk/src/app/net/sf/gridarta/maincontrol/EditorFactory.java trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java Added Paths: ----------- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/ trunk/src/app/net/sf/gridarta/gui/dialog/golocation/ trunk/src/app/net/sf/gridarta/gui/dialog/gomap/ trunk/src/app/net/sf/gridarta/gui/dialog/mapproperties/ trunk/src/app/net/sf/gridarta/gui/dialog/replace/ trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsize/ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/ Removed Paths: ------------- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/ trunk/src/app/net/sf/gridarta/gui/dialog/golocationdialog/ trunk/src/app/net/sf/gridarta/gui/dialog/gomapdialog/ trunk/src/app/net/sf/gridarta/gui/dialog/mappropertiesdialog/ trunk/src/app/net/sf/gridarta/gui/dialog/replacedialog/ trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsizedialog/ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/ Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java 2011-08-06 13:24:25 UTC (rev 8952) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -22,7 +22,7 @@ import java.awt.Component; import javax.swing.JFrame; import javax.swing.filechooser.FileFilter; -import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; +import net.sf.gridarta.gui.dialog.mapproperties.MapPropertiesDialogFactory; import net.sf.gridarta.model.mapmanager.MapManager; import net.sf.gridarta.model.mapmodel.MapModel; import net.sf.gridarta.model.mappathnormalizer.MapPathNormalizer; Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java 2011-08-06 13:24:25 UTC (rev 8952) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -22,7 +22,7 @@ import java.awt.Component; import java.io.IOException; import java.net.URL; -import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; +import net.sf.gridarta.gui.dialog.mapproperties.MapPropertiesDialogFactory; import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; import net.sf.gridarta.gui.dialog.prefs.AppPreferences; import net.sf.gridarta.gui.dialog.prefs.AppPreferencesModel; Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java 2011-08-06 13:24:25 UTC (rev 8952) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -22,7 +22,7 @@ import java.awt.Component; import javax.swing.JFrame; import javax.swing.filechooser.FileFilter; -import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; +import net.sf.gridarta.gui.dialog.mapproperties.MapPropertiesDialogFactory; import net.sf.gridarta.model.mapmanager.MapManager; import net.sf.gridarta.model.mapmodel.MapModel; import net.sf.gridarta.model.mappathnormalizer.MapPathNormalizer; Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java 2011-08-06 13:24:25 UTC (rev 8952) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -20,7 +20,7 @@ package net.sf.gridarta.var.crossfire.maincontrol; import java.awt.Component; -import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; +import net.sf.gridarta.gui.dialog.mapproperties.MapPropertiesDialogFactory; import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; import net.sf.gridarta.gui.dialog.prefs.AppPreferences; import net.sf.gridarta.gui.dialog.prefs.AppPreferencesModel; Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java 2011-08-06 13:24:25 UTC (rev 8952) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -22,7 +22,7 @@ import java.awt.Component; import javax.swing.JFrame; import javax.swing.filechooser.FileFilter; -import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; +import net.sf.gridarta.gui.dialog.mapproperties.MapPropertiesDialogFactory; import net.sf.gridarta.model.mapmanager.MapManager; import net.sf.gridarta.model.mapmodel.MapModel; import net.sf.gridarta.model.mappathnormalizer.MapPathNormalizer; Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java 2011-08-06 13:24:25 UTC (rev 8952) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -22,7 +22,7 @@ import java.awt.Component; import java.io.IOException; import java.net.URL; -import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; +import net.sf.gridarta.gui.dialog.mapproperties.MapPropertiesDialogFactory; import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; import net.sf.gridarta.gui.dialog.prefs.AppPreferences; import net.sf.gridarta.gui.dialog.prefs.AppPreferencesModel; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/ConfirmErrorsDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/ConfirmErrorsDialog.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/ConfirmErrorsDialog.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import java.awt.Container; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttribute.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttribute.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttribute.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.text.AttributeSet; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeAnimationName.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeAnimationName.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeAnimationName.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.text.Document; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeBitmask.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeBitmask.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeBitmask.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.text.Document; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeBool.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeBool.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeBool.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.AbstractButton; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeBoolSpec.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeBoolSpec.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeBoolSpec.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.AbstractButton; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeFaceName.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeFaceName.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeFaceName.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.text.Document; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeFloat.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeFloat.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeFloat.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.JFormattedTextField; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeInt.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeInt.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeInt.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.JFormattedTextField; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeInvSpell.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeInvSpell.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeInvSpell.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.JComboBox; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeList.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeList.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeList.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.JComboBox; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeLong.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeLong.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeLong.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.JFormattedTextField; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeMapPath.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeMapPath.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeMapPath.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.text.Document; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeScriptFile.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeScriptFile.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeScriptFile.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.text.Document; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeSpell.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeSpell.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeSpell.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.JComboBox; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeString.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeString.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeString.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.text.Document; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeText.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeText.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeText.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.text.Document; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeTreasure.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeTreasure.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeTreasure.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.JOptionPane; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeZSpell.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeZSpell.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/DialogAttributeZSpell.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import javax.swing.JComboBox; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/GameObjectAttributesDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/GameObjectAttributesDialog.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/GameObjectAttributesDialog.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.CardLayout; import java.awt.Color; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/GameObjectAttributesDialogFactory.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/GameObjectAttributesDialogFactory.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/GameObjectAttributesDialogFactory.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Window; import java.util.HashMap; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/GuiInfo.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/GuiInfo.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/GuiInfo.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import net.sf.gridarta.model.archetype.Archetype; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/HelpActionListener.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/HelpActionListener.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/HelpActionListener.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import java.awt.event.ActionEvent; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/MaskChangeAL.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/MaskChangeAL.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/MaskChangeAL.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Container; import java.awt.GridLayout; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/ScrollToVisibleFocusListener.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/ScrollToVisibleFocusListener.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/ScrollToVisibleFocusListener.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import java.awt.Rectangle; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/StringKeyManager.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/StringKeyManager.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/StringKeyManager.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import javax.swing.ComboBoxModel; import javax.swing.JComboBox; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/TypesBoxItemListener.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/TypesBoxItemListener.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/TypesBoxItemListener.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/ViewTreasurelistAL.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/ViewTreasurelistAL.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributes/ViewTreasurelistAL.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributes; import java.awt.Component; import java.awt.event.ActionEvent; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/golocation/GoLocationDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/golocationdialog/GoLocationDialog.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/golocation/GoLocationDialog.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.golocationdialog; +package net.sf.gridarta.gui.dialog.golocation; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/golocation/GoLocationDialogManager.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/golocationdialog/GoLocationDialogManager.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/golocation/GoLocationDialogManager.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.golocationdialog; +package net.sf.gridarta.gui.dialog.golocation; import net.sf.gridarta.gui.map.AbstractPerMapDialogManager; import net.sf.gridarta.gui.map.mapview.MapView; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gomap/GoMapDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gomapdialog/GoMapDialog.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gomap/GoMapDialog.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gomapdialog; +package net.sf.gridarta.gui.dialog.gomap; import java.awt.BorderLayout; import java.awt.Component; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gomap/GoMapDialogManager.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gomapdialog/GoMapDialogManager.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gomap/GoMapDialogManager.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gomapdialog; +package net.sf.gridarta.gui.dialog.gomap; import java.awt.Window; import net.sf.gridarta.gui.map.mapview.MapViewsManager; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gomap/MapListCellRenderer.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gomapdialog/MapListCellRenderer.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gomap/MapListCellRenderer.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.gomapdialog; +package net.sf.gridarta.gui.dialog.gomap; import java.awt.Component; import java.io.File; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/mapproperties/MapPropertiesDialogFactory.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/mappropertiesdialog/MapPropertiesDialogFactory.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/mapproperties/MapPropertiesDialogFactory.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.mappropertiesdialog; +package net.sf.gridarta.gui.dialog.mapproperties; import java.awt.Component; import javax.swing.JFrame; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/replace/ArchetypeNameMatchCriteria.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/replacedialog/ArchetypeNameMatchCriteria.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/replace/ArchetypeNameMatchCriteria.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.replacedialog; +package net.sf.gridarta.gui.dialog.replace; import java.util.regex.Pattern; import net.sf.gridarta.model.archetype.Archetype; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/replace/MatchCriteria.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/replacedialog/MatchCriteria.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/replace/MatchCriteria.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.replacedialog; +package net.sf.gridarta.gui.dialog.replace; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.gameobject.GameObject; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/replace/ObjectNameMatchCriteria.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/replacedialog/ObjectNameMatchCriteria.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/replace/ObjectNameMatchCriteria.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.replacedialog; +package net.sf.gridarta.gui.dialog.replace; import java.util.regex.Pattern; import net.sf.gridarta.model.archetype.Archetype; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/replace/ReplaceDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/replacedialog/ReplaceDialog.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/replace/ReplaceDialog.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.replacedialog; +package net.sf.gridarta.gui.dialog.replace; import java.awt.Component; import java.awt.Container; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/replace/ReplaceDialogManager.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/replacedialog/ReplaceDialogManager.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/replace/ReplaceDialogManager.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.replacedialog; +package net.sf.gridarta.gui.dialog.replace; import java.awt.Component; import net.sf.gridarta.gui.copybuffer.CopyBuffer; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsize/ShrinkMapSizeDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsizedialog/ShrinkMapSizeDialog.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsize/ShrinkMapSizeDialog.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.shrinkmapsizedialog; +package net.sf.gridarta.gui.dialog.shrinkmapsize; import java.awt.Component; import java.awt.Window; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsize/ShrinkMapSizeDialogManager.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsizedialog/ShrinkMapSizeDialogManager.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsize/ShrinkMapSizeDialogManager.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.shrinkmapsizedialog; +package net.sf.gridarta.gui.dialog.shrinkmapsize; import java.util.HashMap; import java.util.Map; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsize/ShrinkMapSizeUtils.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsizedialog/ShrinkMapSizeUtils.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsize/ShrinkMapSizeUtils.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.dialog.shrinkmapsizedialog; +package net.sf.gridarta.gui.dialog.shrinkmapsize; import net.sf.gridarta.model.mapmodel.MapModel; import net.sf.gridarta.utils.Size2D; Modified: trunk/src/app/net/sf/gridarta/gui/mainwindow/GameObjectTab.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/mainwindow/GameObjectTab.java 2011-08-06 13:24:25 UTC (rev 8952) +++ trunk/src/app/net/sf/gridarta/gui/mainwindow/GameObjectTab.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -19,8 +19,8 @@ package net.sf.gridarta.gui.mainwindow; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.GameObjectAttributesControl; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.GameObjectAttributesControlListener; +import net.sf.gridarta.gui.panel.gameobjectattributes.GameObjectAttributesControl; +import net.sf.gridarta.gui.panel.gameobjectattributes.GameObjectAttributesControlListener; import net.sf.gridarta.gui.utils.Severity; import net.sf.gridarta.gui.utils.borderpanel.Location; import net.sf.gridarta.gui.utils.tabbedpanel.Tab; Modified: trunk/src/app/net/sf/gridarta/gui/mainwindow/WarningsTab.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/mainwindow/WarningsTab.java 2011-08-06 13:24:25 UTC (rev 8952) +++ trunk/src/app/net/sf/gridarta/gui/mainwindow/WarningsTab.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -19,8 +19,8 @@ package net.sf.gridarta.gui.mainwindow; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.ErrorListView; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.ErrorListViewListener; +import net.sf.gridarta.gui.panel.gameobjectattributes.ErrorListView; +import net.sf.gridarta.gui.panel.gameobjectattributes.ErrorListViewListener; import net.sf.gridarta.gui.utils.Severity; import net.sf.gridarta.gui.utils.borderpanel.Location; import net.sf.gridarta.gui.utils.tabbedpanel.Tab; Modified: trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java 2011-08-06 13:24:25 UTC (rev 8952) +++ trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -32,8 +32,8 @@ import javax.swing.JOptionPane; import javax.swing.JScrollPane; import javax.swing.filechooser.FileFilter; -import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; -import net.sf.gridarta.gui.dialog.shrinkmapsizedialog.ShrinkMapSizeDialogManager; +import net.sf.gridarta.gui.dialog.mapproperties.MapPropertiesDialogFactory; +import net.sf.gridarta.gui.dialog.shrinkmapsize.ShrinkMapSizeDialogManager; import net.sf.gridarta.gui.map.mapview.MapView; import net.sf.gridarta.gui.map.mapview.MapViewManager; import net.sf.gridarta.gui.map.mapview.MapViewManagerListener; Modified: trunk/src/app/net/sf/gridarta/gui/mapcursor/MapCursorActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/mapcursor/MapCursorActions.java 2011-08-06 13:24:25 UTC (rev 8952) +++ trunk/src/app/net/sf/gridarta/gui/mapcursor/MapCursorActions.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -21,9 +21,9 @@ import java.awt.Point; import javax.swing.Action; -import net.sf.gridarta.gui.dialog.gameobjectattributesdialog.GameObjectAttributesDialogFactory; -import net.sf.gridarta.gui.dialog.golocationdialog.GoLocationDialog; -import net.sf.gridarta.gui.dialog.golocationdialog.GoLocationDialogManager; +import net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialogFactory; +import net.sf.gridarta.gui.dialog.golocation.GoLocationDialog; +import net.sf.gridarta.gui.dialog.golocation.GoLocationDialogManager; import net.sf.gridarta.gui.map.AbstractPerMapDialogManager; import net.sf.gridarta.gui.map.mapview.MapView; import net.sf.gridarta.gui.map.mapview.MapViewManager; Modified: trunk/src/app/net/sf/gridarta/gui/misc/MainViewActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/misc/MainViewActions.java 2011-08-06 13:24:25 UTC (rev 8952) +++ trunk/src/app/net/sf/gridarta/gui/misc/MainViewActions.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -19,9 +19,9 @@ package net.sf.gridarta.gui.misc; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.GameObjectAttributesControl; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.GameObjectAttributesTab; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.TextEditorTab; +import net.sf.gridarta.gui.panel.gameobjectattributes.GameObjectAttributesControl; +import net.sf.gridarta.gui.panel.gameobjectattributes.GameObjectAttributesTab; +import net.sf.gridarta.gui.panel.gameobjectattributes.TextEditorTab; import net.sf.gridarta.gui.utils.tabbedpanel.Tab; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.gameobject.GameObject; Modified: trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/AbstractGameObjectAttributesTab.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/AbstractGameObjectAttributesTab.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/AbstractGameObjectAttributesTab.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.gameobjectattributespanel; +package net.sf.gridarta.gui.panel.gameobjectattributes; import java.awt.Component; import java.awt.event.FocusEvent; Modified: trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/ArchTab.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/ArchTab.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/ArchTab.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.gameobjectattributespanel; +package net.sf.gridarta.gui.panel.gameobjectattributes; import java.awt.Color; import java.awt.Component; Modified: trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/ErrorListView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/ErrorListView.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/ErrorListView.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.gameobjectattributespanel; +package net.sf.gridarta.gui.panel.gameobjectattributes; import java.awt.BorderLayout; import java.awt.Point; Modified: trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/ErrorListViewListener.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/ErrorListViewListener.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/ErrorListViewListener.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.gameobjectattributespanel; +package net.sf.gridarta.gui.panel.gameobjectattributes; import java.util.EventListener; Modified: trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/EventsTab.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/EventsTab.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/EventsTab.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.gameobjectattributespanel; +package net.sf.gridarta.gui.panel.gameobjectattributes; import java.awt.BorderLayout; import java.awt.Container; Modified: trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/FaceTab.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/FaceTab.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/FaceTab.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.gameobjectattributespanel; +package net.sf.gridarta.gui.panel.gameobjectattributes; import java.awt.Component; import java.awt.Container; Modified: trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/GameObjectAttributesControl.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesControl.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.gameobjectattributespanel; +package net.sf.gridarta.gui.panel.gameobjectattributes; import java.awt.BorderLayout; import java.awt.Component; @@ -35,7 +35,7 @@ import javax.swing.JPanel; import javax.swing.JTabbedPane; import javax.swing.SwingConstants; -import net.sf.gridarta.gui.dialog.gameobjectattributesdialog.GameObjectAttributesDialogFactory; +import net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialogFactory; import net.sf.gridarta.gui.panel.objectchooser.ObjectChooser; import net.sf.gridarta.gui.panel.selectedsquare.MapSquareSelection; import net.sf.gridarta.gui.panel.selectedsquare.SelectedSquareModel; Modified: trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesControlListener.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/GameObjectAttributesControlListener.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesControlListener.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.gameobjectattributespanel; +package net.sf.gridarta.gui.panel.gameobjectattributes; import java.util.EventListener; import net.sf.gridarta.gui.utils.Severity; Modified: trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesModel.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/GameObjectAttributesModel.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesModel.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.gameobjectattributespanel; +package net.sf.gridarta.gui.panel.gameobjectattributes; import java.util.ArrayList; import java.util.Collection; Modified: trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesModelListener.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/GameObjectAttributesModelListener.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesModelListener.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.gameobjectattributespanel; +package net.sf.gridarta.gui.panel.gameobjectattributes; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.gameobject.GameObject; Modified: trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesTab.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/GameObjectAttributesTab.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesTab.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.gameobjectattributespanel; +package net.sf.gridarta.gui.panel.gameobjectattributes; import javax.swing.JPanel; import net.sf.gridarta.gui.utils.Severity; Modified: trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesTabListener.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/GameObjectAttributesTabListener.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/GameObjectAttributesTabListener.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.gameobjectattributespanel; +package net.sf.gridarta.gui.panel.gameobjectattributes; import net.sf.gridarta.gui.utils.Severity; import net.sf.gridarta.model.archetype.Archetype; Modified: trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/MsgTextTab.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/MsgTextTab.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/MsgTextTab.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.gameobjectattributespanel; +package net.sf.gridarta.gui.panel.gameobjectattributes; import java.awt.Color; import java.awt.GridLayout; Modified: trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/TextEditorTab.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/TextEditorTab.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributes/TextEditorTab.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.panel.gameobjectattributespanel; +package net.sf.gridarta.gui.panel.gameobjectattributes; import javax.swing.JPanel; import net.sf.gridarta.gui.panel.gameobjecttexteditor.GameObjectTextEditor; Modified: trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBox.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBox.java 2011-08-06 13:24:25 UTC (rev 8952) +++ trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBox.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -22,7 +22,7 @@ import java.awt.Dimension; import javax.swing.JComboBox; import javax.swing.ListCellRenderer; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.GameObjectAttributesModel; +import net.sf.gridarta.gui.panel.gameobjectattributes.GameObjectAttributesModel; import net.sf.gridarta.gui.panel.objectchooser.ObjectChooser; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.archetype.ArchetypeSet; Modified: trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxEditor.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxEditor.java 2011-08-06 13:24:25 UTC (rev 8952) +++ trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxEditor.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -41,7 +41,7 @@ import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentListener; import javax.swing.text.JTextComponent; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.GameObjectAttributesModel; +import net.sf.gridarta.gui.panel.gameobjectattributes.GameObjectAttributesModel; import net.sf.gridarta.gui.panel.objectchooser.ObjectChooser; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.baseobject.BaseObject; Modified: trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchParameterView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchParameterView.java 2011-08-06 13:24:25 UTC (rev 8952) +++ trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchParameterView.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -24,7 +24,7 @@ import javax.swing.JComboBox; import javax.swing.JComponent; import javax.swing.JPanel; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.GameObjectAttributesModel; +import net.sf.gridarta.gui.panel.gameobjectattributes.GameObjectAttributesModel; import net.sf.gridarta.gui.panel.objectchooser.ObjectChooser; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.archetype.ArchetypeSet; Modified: trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/PluginParameterViewFactory.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/PluginParameterViewFactory.java 2011-08-06 13:24:25 UTC (rev 8952) +++ trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/PluginParameterViewFactory.java 2011-08-06 13:27:41 UTC (rev 8953) @@ -19,7 +19,7 @@ package net.sf.gridarta.gui.panel.script.parameter; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.GameObjectAttributesModel; +import net.sf.gridarta.gui.panel.gameobjectattributes.GameObjectAttributesModel; import net.sf.gridarta.gui.panel.objectchooser.ObjectChooser; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.archetype.ArchetypeSet; Modified: trunk/src/app/net/sf/gridarta/... [truncated message content] |
From: <aki...@us...> - 2011-08-06 13:24:32
|
Revision: 8952 http://gridarta.svn.sourceforge.net/gridarta/?rev=8952&view=rev Author: akirschbaum Date: 2011-08-06 13:24:25 +0000 (Sat, 06 Aug 2011) Log Message: ----------- Move tools package to different location. Modified Paths: -------------- trunk/src/app/net/sf/gridarta/gui/mapuserlistener/MapUserListener.java trunk/src/app/net/sf/gridarta/gui/mapuserlistener/MapUserListenerManager.java trunk/src/app/net/sf/gridarta/gui/panel/tools/AbstractTool.java trunk/src/app/net/sf/gridarta/gui/panel/tools/BasicAbstractTool.java trunk/src/app/net/sf/gridarta/gui/panel/tools/DeletionTool.java trunk/src/app/net/sf/gridarta/gui/panel/tools/InsertionTool.java trunk/src/app/net/sf/gridarta/gui/panel/tools/SelectionTool.java trunk/src/app/net/sf/gridarta/gui/panel/tools/Tool.java trunk/src/app/net/sf/gridarta/gui/panel/tools/ToolPalette.java trunk/src/app/net/sf/gridarta/gui/panel/tools/ToolSelector.java trunk/src/app/net/sf/gridarta/gui/panel/tools/VoidTool.java trunk/src/app/net/sf/gridarta/gui/utils/SwingUtils.java trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java Added Paths: ----------- trunk/src/app/net/sf/gridarta/gui/panel/tools/ Removed Paths: ------------- trunk/src/app/net/sf/gridarta/gui/map/tools/ Modified: trunk/src/app/net/sf/gridarta/gui/mapuserlistener/MapUserListener.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/mapuserlistener/MapUserListener.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/mapuserlistener/MapUserListener.java 2011-08-06 13:24:25 UTC (rev 8952) @@ -27,7 +27,7 @@ import net.sf.gridarta.gui.map.event.MouseOpListener; import net.sf.gridarta.gui.map.mapview.MapView; import net.sf.gridarta.gui.map.renderer.MapRenderer; -import net.sf.gridarta.gui.map.tools.ToolPalette; +import net.sf.gridarta.gui.panel.tools.ToolPalette; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; Modified: trunk/src/app/net/sf/gridarta/gui/mapuserlistener/MapUserListenerManager.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/mapuserlistener/MapUserListenerManager.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/mapuserlistener/MapUserListenerManager.java 2011-08-06 13:24:25 UTC (rev 8952) @@ -24,7 +24,7 @@ import net.sf.gridarta.gui.map.mapview.MapView; import net.sf.gridarta.gui.map.mapview.MapViewsListener; import net.sf.gridarta.gui.map.mapview.MapViewsManager; -import net.sf.gridarta.gui.map.tools.ToolPalette; +import net.sf.gridarta.gui.panel.tools.ToolPalette; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; Modified: trunk/src/app/net/sf/gridarta/gui/panel/tools/AbstractTool.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/tools/AbstractTool.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/tools/AbstractTool.java 2011-08-06 13:24:25 UTC (rev 8952) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.map.tools; +package net.sf.gridarta.gui.panel.tools; import net.sf.gridarta.gui.map.event.MouseOpAdapter; import net.sf.gridarta.model.archetype.Archetype; Modified: trunk/src/app/net/sf/gridarta/gui/panel/tools/BasicAbstractTool.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/tools/BasicAbstractTool.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/tools/BasicAbstractTool.java 2011-08-06 13:24:25 UTC (rev 8952) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.map.tools; +package net.sf.gridarta.gui.panel.tools; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.gameobject.GameObject; Modified: trunk/src/app/net/sf/gridarta/gui/panel/tools/DeletionTool.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/tools/DeletionTool.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/tools/DeletionTool.java 2011-08-06 13:24:25 UTC (rev 8952) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.map.tools; +package net.sf.gridarta.gui.panel.tools; import java.awt.Component; import java.awt.Container; @@ -105,7 +105,7 @@ * Action Builder. */ @NotNull - private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta.gui.map.tools"); + private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta.gui.panel.tools"); /** * The map view settings instance. Modified: trunk/src/app/net/sf/gridarta/gui/panel/tools/InsertionTool.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/tools/InsertionTool.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/tools/InsertionTool.java 2011-08-06 13:24:25 UTC (rev 8952) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.map.tools; +package net.sf.gridarta.gui.panel.tools; import java.awt.Component; import java.awt.Container; @@ -82,7 +82,7 @@ * Action Builder. */ @NotNull - private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta.gui.map.tools"); + private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta.gui.panel.tools"); /** * The {@link JComboBox} for selecting the insertion mode. Modified: trunk/src/app/net/sf/gridarta/gui/panel/tools/SelectionTool.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/tools/SelectionTool.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/tools/SelectionTool.java 2011-08-06 13:24:25 UTC (rev 8952) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.map.tools; +package net.sf.gridarta.gui.panel.tools; import java.awt.Component; import java.awt.Container; @@ -82,7 +82,7 @@ * Action Builder. */ @NotNull - private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta.gui.map.tools"); + private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta.gui.panel.tools"); /** * The action for "ignore walls". Modified: trunk/src/app/net/sf/gridarta/gui/panel/tools/Tool.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/tools/Tool.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/tools/Tool.java 2011-08-06 13:24:25 UTC (rev 8952) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.map.tools; +package net.sf.gridarta.gui.panel.tools; import java.awt.Component; import net.sf.gridarta.gui.map.event.MouseOpListener; Modified: trunk/src/app/net/sf/gridarta/gui/panel/tools/ToolPalette.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/tools/ToolPalette.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/tools/ToolPalette.java 2011-08-06 13:24:25 UTC (rev 8952) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.map.tools; +package net.sf.gridarta.gui.panel.tools; import java.awt.BorderLayout; import java.awt.Container; @@ -58,7 +58,7 @@ /** * Action Builder. */ - private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta.gui.map.tools"); + private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta.gui.panel.tools"); /** * The ToolSelector for lmb. Modified: trunk/src/app/net/sf/gridarta/gui/panel/tools/ToolSelector.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/tools/ToolSelector.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/tools/ToolSelector.java 2011-08-06 13:24:25 UTC (rev 8952) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.map.tools; +package net.sf.gridarta.gui.panel.tools; import java.awt.BorderLayout; import java.awt.CardLayout; @@ -65,7 +65,7 @@ /** * The Action Builder. */ - private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta.gui.map.tools"); + private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta.gui.panel.tools"); /** * The pane with the selections. Modified: trunk/src/app/net/sf/gridarta/gui/panel/tools/VoidTool.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/tools/VoidTool.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/panel/tools/VoidTool.java 2011-08-06 13:24:25 UTC (rev 8952) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.map.tools; +package net.sf.gridarta.gui.panel.tools; import java.awt.Component; import net.sf.gridarta.model.archetype.Archetype; Modified: trunk/src/app/net/sf/gridarta/gui/utils/SwingUtils.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/utils/SwingUtils.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/gui/utils/SwingUtils.java 2011-08-06 13:24:25 UTC (rev 8952) @@ -40,7 +40,7 @@ * Action Builder. */ @NotNull - private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta.gui.map.tools"); + private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta.gui.panel.tools"); /** * Private constructor to prevent instantiation. Modified: trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2011-08-06 13:06:46 UTC (rev 8951) +++ trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2011-08-06 13:24:25 UTC (rev 8952) @@ -61,7 +61,6 @@ import net.sf.gridarta.gui.map.renderer.ImageCreator; import net.sf.gridarta.gui.map.renderer.ImageCreator2; import net.sf.gridarta.gui.map.renderer.RendererFactory; -import net.sf.gridarta.gui.map.tools.ToolPalette; import net.sf.gridarta.gui.map.viewaction.ViewActions; import net.sf.gridarta.gui.mapcursor.MapCursorActions; import net.sf.gridarta.gui.mapdesktop.MapDesktop; @@ -108,6 +107,7 @@ import net.sf.gridarta.gui.panel.selectedsquare.SelectedSquareControl; import net.sf.gridarta.gui.panel.selectedsquare.SelectedSquareModel; import net.sf.gridarta.gui.panel.selectedsquare.SelectedSquareView; +import net.sf.gridarta.gui.panel.tools.ToolPalette; import net.sf.gridarta.gui.scripts.ScriptArchDataUtils; import net.sf.gridarta.gui.scripts.ScriptArchEditor; import net.sf.gridarta.gui.scripts.ScriptedEventEditor; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-08-06 13:06:55
|
Revision: 8951 http://gridarta.svn.sourceforge.net/gridarta/?rev=8951&view=rev Author: akirschbaum Date: 2011-08-06 13:06:46 +0000 (Sat, 06 Aug 2011) Log Message: ----------- Consistently format code. Modified Paths: -------------- trunk/atrinik/resource/resource/HelpFiles/treasure_multi.html trunk/crossfire/resource/resource/HelpFiles/map_basic.html trunk/crossfire/resource/resource/HelpFiles/treasure_multi.html trunk/crossfire/resource/resource/HelpFiles/tut_loading.html trunk/daimonin/resource/resource/HelpFiles/treasure_multi.html trunk/model/src/app/net/sf/gridarta/model/anim/DefaultAnimationObject.java trunk/model/src/app/net/sf/gridarta/model/archetypetype/ArchetypeType.java trunk/model/src/app/net/sf/gridarta/model/baseobject/GameObjectContainer.java trunk/model/src/app/net/sf/gridarta/model/filter/Filter.java trunk/model/src/app/net/sf/gridarta/model/index/AbstractIndex.java trunk/model/src/app/net/sf/gridarta/model/index/Index.java trunk/model/src/app/net/sf/gridarta/model/index/IndexListener.java trunk/model/src/app/net/sf/gridarta/model/scripts/UndefinedEventArchetypeException.java trunk/model/src/app/net/sf/gridarta/model/validation/errors/EnvironmentInvError.java trunk/model/src/app/net/sf/gridarta/model/validation/errors/EnvironmentMapError.java trunk/model/src/app/net/sf/gridarta/model/validation/errors/ValidationError.java trunk/model/src/test/net/sf/gridarta/validation/AbstractValidatorTest.java trunk/src/app/net/sf/gridarta/gui/copybuffer/CopyMode.java trunk/src/app/net/sf/gridarta/gui/delayedmapmodel/DelayedMapModelListenerManager.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/MaskChangeAL.java trunk/src/app/net/sf/gridarta/gui/dialog/prefs/MiscPreferences.java trunk/src/app/net/sf/gridarta/gui/filter/BtnPopup.java trunk/src/app/net/sf/gridarta/gui/filter/FilterComponent.java trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java trunk/src/app/net/sf/gridarta/gui/misc/MainView.java trunk/src/app/net/sf/gridarta/gui/panel/connectionview/ConnectionView.java trunk/src/app/net/sf/gridarta/gui/panel/connectionview/Control.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/ErrorListView.java trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptEditor.java trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptManager.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxEditor.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxModel.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchParameterView.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/DoubleParameterView.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/IntegerParameterView.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/MapParameterView.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ParameterDescriptionEditor.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/StringParameterView.java trunk/src/app/net/sf/gridarta/gui/scripts/DefaultScriptArchEditor.java trunk/src/app/net/sf/gridarta/gui/treasurelist/CFTreasureListTree.java trunk/src/app/net/sf/gridarta/gui/utils/AbstractDialogManager.java trunk/src/app/net/sf/gridarta/gui/utils/AnimationComponent.java trunk/src/app/net/sf/gridarta/gui/utils/AsynchronousProgress.java trunk/src/app/net/sf/gridarta/gui/utils/FaceComponent.java trunk/src/app/net/sf/gridarta/gui/utils/GSplitPane.java trunk/src/app/net/sf/gridarta/gui/utils/borderpanel/Location.java trunk/src/app/net/sf/gridarta/gui/utils/tristate/TristateState.java trunk/src/app/net/sf/gridarta/mainactions/DefaultExiter.java trunk/src/test/net/sf/gridarta/gui/utils/GSplitPaneTestApplication.java trunk/textedit/src/app/net/sf/gridarta/textedit/textarea/InputHandler.java trunk/textedit/src/app/net/sf/gridarta/textedit/textarea/JEditTextArea.java trunk/utils/src/app/net/sf/gridarta/MainControl.java trunk/utils/src/app/net/sf/gridarta/utils/ActionUtils.java trunk/utils/src/test/net/sf/gridarta/utils/StringUtilsTest.java Modified: trunk/atrinik/resource/resource/HelpFiles/treasure_multi.html =================================================================== --- trunk/atrinik/resource/resource/HelpFiles/treasure_multi.html 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/atrinik/resource/resource/HelpFiles/treasure_multi.html 2011-08-06 13:06:46 UTC (rev 8951) @@ -54,9 +54,9 @@ There is a 10% chance for the bow to be generated. Now <b>if</b> the bow is generated, automatically arrows are generated too. <br> - There is a 5% chance for the sword to be generated. If that fails, the - short sword has a 10% chance to be generated. If that fails again, there is a - 15% chance for the dagger. + There is a 5% chance for the sword to be generated. If that fails, the short + sword has a 10% chance to be generated. If that fails again, there is a 15% + chance for the dagger. <br> </P> <IMG SRC="treasure4.jpg" WIDTH="277" HEIGHT="366" ALIGN="CENTER"> Modified: trunk/crossfire/resource/resource/HelpFiles/map_basic.html =================================================================== --- trunk/crossfire/resource/resource/HelpFiles/map_basic.html 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/crossfire/resource/resource/HelpFiles/map_basic.html 2011-08-06 13:06:46 UTC (rev 8951) @@ -59,12 +59,12 @@ <H2 align="center">Step 3 - Walls:</H2> -<P>Let's add some walls next. On the - <A HREF="tut_frames.html">Default-Archetype panel</A> (left side) select - "Arch List" - "wall". Now pick one of the wall types. You can enable the - menu "Map->Auto-Joining". This will automatically join the wall parts as you - insert them on the map. Later you can switch off Auto-Joining again and - replace some wall parts with special parts, like a window as seen below.</P> +<P>Let's add some walls next. On the <A HREF="tut_frames.html">Default-Archetype + panel</A> (left side) select "Arch List" - "wall". Now pick one of the wall + types. You can enable the menu "Map->Auto-Joining". This will automatically + join the wall parts as you insert them on the map. Later you can switch off + Auto-Joining again and replace some wall parts with special parts, like a + window as seen below.</P> <P> <center><IMG SRC="map1_walls.jpg" width="224" height="192"></center> @@ -78,7 +78,7 @@ course. An undead map could show some tombstones/mist, pillars belong in a castle, altars in a church, trees/bushes for outdoor maps etc. (At this point I assume you know how to find things in the <A HREF="tut_frames.html">Default-Archetype - panel</A>.) + panel</A>.) <br> You can place some doors between separate rooms. And maybe add a little food, because players are always hungry. Modified: trunk/crossfire/resource/resource/HelpFiles/treasure_multi.html =================================================================== --- trunk/crossfire/resource/resource/HelpFiles/treasure_multi.html 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/crossfire/resource/resource/HelpFiles/treasure_multi.html 2011-08-06 13:06:46 UTC (rev 8951) @@ -58,9 +58,9 @@ <p>There is a 10% chance for the bow to be generated. Now <b>if</b> the bow is generated, automatically arrows are generated too.</p> -<p>There is a 5% chance for the sword to be generated. If that fails, the - short sword has a 10% chance to be generated. If that fails again, there is - a 15% chance for the dagger.</p> +<p>There is a 5% chance for the sword to be generated. If that fails, the short + sword has a 10% chance to be generated. If that fails again, there is a 15% + chance for the dagger.</p> <p> <img src="treasure4.jpg" width="277" height="366" align="center" alt="Treasurelist 'goblin"> Modified: trunk/crossfire/resource/resource/HelpFiles/tut_loading.html =================================================================== --- trunk/crossfire/resource/resource/HelpFiles/tut_loading.html 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/crossfire/resource/resource/HelpFiles/tut_loading.html 2011-08-06 13:06:46 UTC (rev 8951) @@ -50,8 +50,8 @@ <P>Once you've got the arch folder, you must <B>set the path</B> to this folder. Select the menu "File->Options...", un-check the box - "Load Arches from Collection", then enter the path in "Arch". - When you're at it, you can also customize the default map-path.</P> + "Load Arches from Collection", then enter the path in "Arch". When + you're at it, you can also customize the default map-path.</P> <P>Now you're ready to go. Click OK, quit the editor and restart it. This time the archetypes will load from all the individual arch and Modified: trunk/daimonin/resource/resource/HelpFiles/treasure_multi.html =================================================================== --- trunk/daimonin/resource/resource/HelpFiles/treasure_multi.html 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/daimonin/resource/resource/HelpFiles/treasure_multi.html 2011-08-06 13:06:46 UTC (rev 8951) @@ -53,9 +53,9 @@ There is a 10% chance for the bow to be generated. Now <b>if</b> the bow is generated, automatically arrows are generated too. <br> - There is a 5% chance for the sword to be generated. If that fails, the - short sword has a 10% chance to be generated. If that fails again, there is - a 15% chance for the dagger. + There is a 5% chance for the sword to be generated. If that fails, the short + sword has a 10% chance to be generated. If that fails again, there is a 15% + chance for the dagger. </P> <IMG SRC="treasure4.jpg" WIDTH="277" HEIGHT="366" ALIGN="CENTER"> Modified: trunk/model/src/app/net/sf/gridarta/model/anim/DefaultAnimationObject.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/anim/DefaultAnimationObject.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/model/src/app/net/sf/gridarta/model/anim/DefaultAnimationObject.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -85,9 +85,9 @@ /** * Creates a new instance. Therefore animList is parsed. Do not invoke this - * constructor directly, use {@link AnimationObjects#addAnimationObject(String,String,String)} - * instead. If you invoke this constructor directly, the created - * AnimationObject will not be registered. + * constructor directly, use {@link AnimationObjects#addAnimationObject(String, + * String, String)} instead. If you invoke this constructor directly, the + * created AnimationObject will not be registered. * @param animName name of the animation * @param animList list of animation as found between "anim" and "mina", * separated with "\n", including "facings" but including neither "anim" nor Modified: trunk/model/src/app/net/sf/gridarta/model/archetypetype/ArchetypeType.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/archetypetype/ArchetypeType.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/model/src/app/net/sf/gridarta/model/archetypetype/ArchetypeType.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -109,8 +109,8 @@ * @param map whether this archetype type is allowed on maps * @param inv which archetype types allow this archetype type in their * inventories or <code>null</code> for no restrictions - * @param allowsAllInv whether this archetype type allows any inventory game objects, whether - * these types have "inv" specifications + * @param allowsAllInv whether this archetype type allows any inventory game + * objects, whether these types have "inv" specifications * @param description the description * @param use the usage notes * @param sectionNum the number of attribute sections Modified: trunk/model/src/app/net/sf/gridarta/model/baseobject/GameObjectContainer.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/baseobject/GameObjectContainer.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/model/src/app/net/sf/gridarta/model/baseobject/GameObjectContainer.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -88,6 +88,7 @@ private void initData() { contents = new ArrayList<G>(0); recursive = new Iterable<G>() { + /** {@inheritDoc} */ @Override public Iterator<G> iterator() { @@ -95,6 +96,7 @@ } }; reverse = new Iterable<G>() { + /** {@inheritDoc} */ @Override public Iterator<G> iterator() { Modified: trunk/model/src/app/net/sf/gridarta/model/filter/Filter.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/filter/Filter.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/model/src/app/net/sf/gridarta/model/filter/Filter.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -58,7 +58,7 @@ /** * Tells if all the game objects on a square are to be analyzed before a * match result. If all game objects must be analyzed to decide the result - * of a match, the return value of {@link #match(FilterConfig,GameObject)} + * of a match, the return value of {@link #match(FilterConfig, GameObject)} * is ignored and the returning value of {@link #reset(FilterConfig)} is * used as replacement. This should mainly used by complex analyze filters. * @param config the filter configuration to use Modified: trunk/model/src/app/net/sf/gridarta/model/index/AbstractIndex.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/index/AbstractIndex.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/model/src/app/net/sf/gridarta/model/index/AbstractIndex.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -36,8 +36,8 @@ /** * Abstract base class for {@link Index} implementations. + * @param <V> the value's type * @author Andreas Kirschbaum - * @param <V> the value's type */ public class AbstractIndex<V extends Serializable> implements Index<V> { Modified: trunk/model/src/app/net/sf/gridarta/model/index/Index.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/index/Index.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/model/src/app/net/sf/gridarta/model/index/Index.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -35,8 +35,8 @@ * <p/> * All methods are synchronized: concurrent access from multiple threads is * supported. + * @param <V> the value's type * @author Andreas Kirschbaum - * @param <V> the value's type */ public interface Index<V> { Modified: trunk/model/src/app/net/sf/gridarta/model/index/IndexListener.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/index/IndexListener.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/model/src/app/net/sf/gridarta/model/index/IndexListener.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -24,8 +24,8 @@ /** * Interface for listeners interested in {@link Index} related events. + * @param <V> the index's value's type * @author Andreas Kirschbaum - * @param <V> the index's value's type */ public interface IndexListener<V> extends EventListener { Modified: trunk/model/src/app/net/sf/gridarta/model/scripts/UndefinedEventArchetypeException.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/scripts/UndefinedEventArchetypeException.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/model/src/app/net/sf/gridarta/model/scripts/UndefinedEventArchetypeException.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -25,7 +25,7 @@ * The class <code>UndefinedEventArchetypeException</code> is thrown when an * event game object cannot be created. * @author Andreas Kirschbaum - * @noinspection AbstractClassExtendsConcreteClass,AbstractClassWithoutAbstractMethods + * @noinspection AbstractClassExtendsConcreteClass, AbstractClassWithoutAbstractMethods */ public abstract class UndefinedEventArchetypeException extends Exception { Modified: trunk/model/src/app/net/sf/gridarta/model/validation/errors/EnvironmentInvError.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/errors/EnvironmentInvError.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/model/src/app/net/sf/gridarta/model/validation/errors/EnvironmentInvError.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -26,8 +26,8 @@ import org.jetbrains.annotations.Nullable; /** - * Validation error that's used when the EnvironmentChecker detected a - * possible error on the map. + * Validation error that's used when the EnvironmentChecker detected a possible + * error on the map. * @author Andreas Kirschbaum */ public class EnvironmentInvError<G extends GameObject<G, A, R>, A extends MapArchObject<A>, R extends Archetype<G, A, R>> extends GameObjectValidationError<G, A, R> { Modified: trunk/model/src/app/net/sf/gridarta/model/validation/errors/EnvironmentMapError.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/errors/EnvironmentMapError.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/model/src/app/net/sf/gridarta/model/validation/errors/EnvironmentMapError.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -26,8 +26,8 @@ import org.jetbrains.annotations.Nullable; /** - * Validation error that's used when the EnvironmentChecker detected a - * possible error on the map. + * Validation error that's used when the EnvironmentChecker detected a possible + * error on the map. * @author Andreas Kirschbaum */ public class EnvironmentMapError<G extends GameObject<G, A, R>, A extends MapArchObject<A>, R extends Archetype<G, A, R>> extends GameObjectValidationError<G, A, R> { Modified: trunk/model/src/app/net/sf/gridarta/model/validation/errors/ValidationError.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/errors/ValidationError.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/model/src/app/net/sf/gridarta/model/validation/errors/ValidationError.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -308,8 +308,8 @@ /** * Interface for formatting objects. + * @param <O> the object type to format * @author Andreas Kirschbaum - * @param <O> the object type to format */ private interface Formatter<O> extends Comparator<O>, Serializable { Modified: trunk/model/src/test/net/sf/gridarta/validation/AbstractValidatorTest.java =================================================================== --- trunk/model/src/test/net/sf/gridarta/validation/AbstractValidatorTest.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/model/src/test/net/sf/gridarta/validation/AbstractValidatorTest.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -53,6 +53,7 @@ final ValidatorPreferences validatorPreferences = new TestValidatorPreferences(); //noinspection EmptyClass oUT = new AbstractValidator<TestGameObject, TestMapArchObject, TestArchetype>(validatorPreferences, DelegatingMapValidator.DEFAULT_KEY) { + }; } Modified: trunk/src/app/net/sf/gridarta/gui/copybuffer/CopyMode.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/copybuffer/CopyMode.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/copybuffer/CopyMode.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -42,7 +42,6 @@ * Clear the selection. */ DO_CLEAR { - /** {@inheritDoc} */ @Override public <G extends GameObject<G, A, R>, A extends MapArchObject<A>, R extends Archetype<G, A, R>> void prepare(@NotNull final MapModel<G, A, R> mapModel, @NotNull final Size2D mapSize) { @@ -63,7 +62,6 @@ * Cut the selection. */ DO_CUT { - /** {@inheritDoc} */ @Override public <G extends GameObject<G, A, R>, A extends MapArchObject<A>, R extends Archetype<G, A, R>> void prepare(@NotNull final MapModel<G, A, R> mapModel, @NotNull final Size2D mapSize) { @@ -91,7 +89,6 @@ * Copy the selection. */ DO_COPY { - /** {@inheritDoc} */ @Override public <G extends GameObject<G, A, R>, A extends MapArchObject<A>, R extends Archetype<G, A, R>> void prepare(@NotNull final MapModel<G, A, R> mapModel, @NotNull final Size2D mapSize) { Modified: trunk/src/app/net/sf/gridarta/gui/delayedmapmodel/DelayedMapModelListenerManager.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/delayedmapmodel/DelayedMapModelListenerManager.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/delayedmapmodel/DelayedMapModelListenerManager.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -190,6 +190,7 @@ try { SwingUtilities.invokeAndWait(new Runnable() { + /** {@inheritDoc} */ @Override public void run() { Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/MaskChangeAL.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/MaskChangeAL.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/MaskChangeAL.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -78,6 +78,7 @@ */ @NotNull private final ChangeListener singleChangeListener = new ChangeListener() { + @Override public void stateChanged(final ChangeEvent e) { allCheckbox.getTristateModel().setTristateState(getBitState()); @@ -89,6 +90,7 @@ */ @NotNull private final ChangeListener allChangeListener = new ChangeListener() { + @Override public void stateChanged(final ChangeEvent e) { switch (allCheckbox.getTristateModel().getTristateState()) { Modified: trunk/src/app/net/sf/gridarta/gui/dialog/prefs/MiscPreferences.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/dialog/prefs/MiscPreferences.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/dialog/prefs/MiscPreferences.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -220,6 +220,7 @@ preferencesHelper.addComponent(exitArchetypeName); autoCreateExit.addChangeListener(new ChangeListener() { + /** {@inheritDoc} */ @Override public void stateChanged(final ChangeEvent e) { Modified: trunk/src/app/net/sf/gridarta/gui/filter/BtnPopup.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/filter/BtnPopup.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/filter/BtnPopup.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -36,6 +36,7 @@ button = new JButton(name); popupMenu = menu.getPopupMenu(); button.addMouseListener(new MouseAdapter() { + /** * {@inheritDoc} * @noinspection RefusedBequest Modified: trunk/src/app/net/sf/gridarta/gui/filter/FilterComponent.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/filter/FilterComponent.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/filter/FilterComponent.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -50,6 +50,7 @@ active = new JCheckBoxMenuItem("active"); active.getModel().setSelected(this.config.isEnabled()); active.addChangeListener(new ChangeListener() { + @Override public void stateChanged(final ChangeEvent e) { FilterComponent.this.config.setEnabled(active.getModel().isSelected()); @@ -59,6 +60,7 @@ inverted = new JCheckBoxMenuItem("invert"); inverted.getModel().setSelected(this.config.isInverted()); inverted.addChangeListener(new ChangeListener() { + @Override public void stateChanged(final ChangeEvent e) { FilterComponent.this.config.setInverted(inverted.getModel().isSelected()); Modified: trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -521,7 +521,7 @@ * Action method for "tile show". * @return <code>true</code> if adjacent tiles are shown, or * <code>false</code> if not - * @noinspection MethodMayBeStatic,SameReturnValue + * @noinspection MethodMayBeStatic, SameReturnValue */ @ActionMethod public boolean isTileShow() { @@ -935,7 +935,7 @@ * @param tileShow whether adjacent tiles should be shown; ignored unless * <code>performAction</code> is set * @return whether the action was or can be performed - * @noinspection MethodMayBeStatic,UnusedDeclaration,SameReturnValue + * @noinspection MethodMayBeStatic, UnusedDeclaration, SameReturnValue */ private boolean doTileShow(final boolean performAction, final boolean tileShow) { return false; // XXX: not yet implemented Modified: trunk/src/app/net/sf/gridarta/gui/misc/MainView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/misc/MainView.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/misc/MainView.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -106,6 +106,7 @@ this.frame = frame; frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); frame.addWindowListener(new WindowAdapter() { + @Override public void windowClosing(final WindowEvent e) { exitAction.actionPerformed(new ActionEvent(e.getSource(), 0, null)); Modified: trunk/src/app/net/sf/gridarta/gui/panel/connectionview/ConnectionView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/connectionview/ConnectionView.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/panel/connectionview/ConnectionView.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -50,17 +50,18 @@ */ public ConnectionView(@NotNull final MapViewManager<G, A, R> mapViewManager, @NotNull final DelayedMapModelListenerManager<G, A, R> delayedMapModelListenerManager) { super(new Comparator<Integer>() { - @Override - public int compare(@NotNull final Integer o1, @NotNull final Integer o2) { - if (o1 < o2) { - return -1; + + @Override + public int compare(@NotNull final Integer o1, @NotNull final Integer o2) { + if (o1 < o2) { + return -1; + } + if (o1 > o2) { + return +1; + } + return 0; } - if (o1 > o2) { - return +1; - } - return 0; - } - }, new ConnectionCellRenderer(), mapViewManager, delayedMapModelListenerManager); + }, new ConnectionCellRenderer(), mapViewManager, delayedMapModelListenerManager); } /** Modified: trunk/src/app/net/sf/gridarta/gui/panel/connectionview/Control.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/connectionview/Control.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/panel/connectionview/Control.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -54,6 +54,7 @@ this.view = view; view.addListSelectionListener(new ListSelectionListener() { + @Override public void valueChanged(final ListSelectionEvent e) { highlightSelectedEntries(); @@ -61,6 +62,7 @@ }); view.addListMouseListener(new MouseAdapter() { + /** * {@inheritDoc} * @noinspection RefusedBequest Modified: trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/ErrorListView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/ErrorListView.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/ErrorListView.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -235,6 +235,7 @@ errorMsg.setEditable(false); errorList.addListSelectionListener(listSelectionListener); errorList.addMouseListener(new MouseAdapter() { + /** * {@inheritDoc} * @noinspection RefusedBequest Modified: trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptEditor.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptEditor.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptEditor.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -111,6 +111,7 @@ @NotNull private final MouseListener cellMouseListener = new MouseListener() { + @Override public void mouseClicked(final MouseEvent e) { selectTableComponent((Component) e.getSource()); @@ -137,6 +138,7 @@ @NotNull private final FocusListener cellFocusListener = new FocusListener() { + @Override public void focusGained(final FocusEvent e) { selectTableComponent((Component) e.getSource()); @@ -196,6 +198,7 @@ gbc.anchor = GridBagConstraints.WEST; typeAutoRun = new JCheckBox("auto-run at application startup"); typeAutoRun.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { script.setAutoBoot(typeAutoRun.isSelected()); @@ -206,6 +209,7 @@ gbc.gridy = 2; typeFilter = new JCheckBox("reference in the filters list"); typeFilter.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { script.setFilter(typeFilter.isSelected()); @@ -216,6 +220,7 @@ gbc.gridy = 3; typeBash = new JCheckBox("reference in the manual run list"); typeBash.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { script.setScript(typeBash.isSelected()); @@ -228,6 +233,7 @@ final AbstractButton registerButton = new JButton("re-register script"); registerButton.setToolTipText("Force plugin manager to unregister this plugin from filter list, launch the auto-run (if plugin is auto-start) and re-register it (if filter plugin)"); registerButton.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { scriptModel.reRegister(script); @@ -239,6 +245,7 @@ final AbstractButton exportButton = new JButton("Export script..."); exportButton.setToolTipText("Export the specified plugin as XML (for distribution)"); exportButton.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { scriptController.saveScriptAs(script, false); @@ -250,6 +257,7 @@ paramTable = new JPanel(new GridBagLayout()); redrawTable(); script.addChangeListener(new ChangeListener() { + @Override public void stateChanged(final ChangeEvent e) { redrawTable(); @@ -262,6 +270,7 @@ paramButtons.setLayout(new StackLayout(5)); final AbstractButton addParameter = new JButton("Add parameter"); addParameter.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { script.newParameter(); @@ -269,6 +278,7 @@ }); removeParameter = new JButton("Remove parameter"); removeParameter.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { if (selectedRow < 0) { @@ -295,6 +305,7 @@ code.setText(script.getCode()); code.setFont(new Font("Monospaced", Font.PLAIN, 14)); code.getDocument().addDocumentListener(new DocumentListener() { + @Override public void changedUpdate(final DocumentEvent e) { script.setCode(code.getText()); @@ -316,6 +327,7 @@ final Container codeBottom = new JPanel(new FlowLayout()); final AbstractButton test = new JButton("Run Script..."); test.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { scriptController.runScript(script); Modified: trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptManager.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptManager.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptManager.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -156,6 +156,7 @@ }; scripts = new JList(listModel); scripts.addListSelectionListener(new ListSelectionListener() { + @Override public void valueChanged(final ListSelectionEvent e) { if (!e.getValueIsAdjusting()) { @@ -171,6 +172,7 @@ left.add(scripts, BorderLayout.CENTER); final AbstractButton addScriptBtn = new JButton("New..."); addScriptBtn.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { final String name = JOptionPane.showInputDialog(scripts, "Name of the new Beanshell plugin?"); @@ -187,6 +189,7 @@ }); final AbstractButton removeScriptBtn = new JButton("Remove"); removeScriptBtn.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { //JList does not use type parameters Modified: trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxEditor.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxEditor.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxEditor.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -116,6 +116,7 @@ gbc.gridx = 1; final AbstractButton fromSelect = new JButton("From tile selection"); fromSelect.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { final BaseObject<G, A, R, ?> gameObject = objectChooser.getSelection(); @@ -129,6 +130,7 @@ editorPanel.add(fromSelect, gbc); final AbstractButton fromActive = new JButton("From map selection"); fromActive.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { final BaseObject<G, A, R, ?> gameObject = gameObjectAttributesModel.getSelectedGameObject(); @@ -142,6 +144,7 @@ gbc.gridx = 2; editorPanel.add(fromActive, gbc); editor.addMouseListener(new MouseListener() { + @Override public void mouseClicked(final MouseEvent e) { } @@ -177,6 +180,7 @@ }); editor.setEditable(true); editor.getDocument().addDocumentListener(new DocumentListener() { + @Override public void changedUpdate(final DocumentEvent e) { archComboBox.editorEntryChange(); Modified: trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxModel.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxModel.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxModel.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -52,6 +52,7 @@ final Collection<R> archetypes = archetypeSet.getArchetypes(); archList = new ArrayList<Archetype<G, A, R>>(archetypes); Collections.sort(archList, new Comparator<Archetype<G, A, R>>() { + @Override public int compare(final Archetype<G, A, R> o1, final Archetype<G, A, R> o2) { return o1.getArchetypeName().toLowerCase().compareTo(o2.getArchetypeName().toLowerCase()); @@ -116,6 +117,7 @@ @NotNull public Archetype<G, A, R> getNearestMatch(@NotNull final String name) { int pos = Collections.binarySearch(archList, name, new Comparator<Object>() { + @Override public int compare(final Object o1, final Object o2) { final String s1; Modified: trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchParameterView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchParameterView.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchParameterView.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -55,6 +55,7 @@ parameter = param; value.setSelectedItem(param.getValue()); value.addItemListener(new ItemListener() { + @Override public void itemStateChanged(final ItemEvent e) { if (e.getStateChange() == ItemEvent.SELECTED) { Modified: trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/DoubleParameterView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/DoubleParameterView.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/DoubleParameterView.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -58,6 +58,7 @@ } catch (final IllegalArgumentException e) { } value.addChangeListener(new ChangeListener() { + @Override public void stateChanged(final ChangeEvent e) { parameter.setValue((Double) ((SpinnerNumberModel) value.getModel()).getNumber()); Modified: trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/IntegerParameterView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/IntegerParameterView.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/IntegerParameterView.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -56,6 +56,7 @@ } catch (final Exception ignored) { } value.addChangeListener(new ChangeListener() { + @Override public void stateChanged(final ChangeEvent e) { try { Modified: trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/MapParameterView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/MapParameterView.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/MapParameterView.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -50,6 +50,7 @@ value.setModel(myModel); value.setRenderer(new MapParameterCellRenderer(mapManager)); value.addItemListener(new ItemListener() { + @Override public void itemStateChanged(final ItemEvent e) { if (e.getStateChange() == ItemEvent.SELECTED) { Modified: trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ParameterDescriptionEditor.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ParameterDescriptionEditor.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ParameterDescriptionEditor.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -37,6 +37,7 @@ parameter = param; setText(param.getDescription()); getDocument().addDocumentListener(new DocumentListener() { + @Override public void changedUpdate(final DocumentEvent e) { change(); Modified: trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/StringParameterView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/StringParameterView.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/StringParameterView.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -47,6 +47,7 @@ linkedParameter = parameter; final Document d = value.getDocument(); d.addDocumentListener(new DocumentListener() { + private void doIt() { linkedParameter.setValue(value.getText()); } Modified: trunk/src/app/net/sf/gridarta/gui/scripts/DefaultScriptArchEditor.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/scripts/DefaultScriptArchEditor.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/scripts/DefaultScriptArchEditor.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -233,6 +233,7 @@ final AbstractButton browseButton = new JButton("..."); browseButton.setMargin(new Insets(0, 10, 0, 10)); browseButton.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { final File home = mapManager.getLocalMapDir(); Modified: trunk/src/app/net/sf/gridarta/gui/treasurelist/CFTreasureListTree.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/treasurelist/CFTreasureListTree.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/treasurelist/CFTreasureListTree.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -266,6 +266,7 @@ final Container rightSide = new JPanel(); okButton.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { final String result = getSelectedTreasureList(); @@ -277,6 +278,7 @@ rightSide.add(okButton); noneButton.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { // print "none" into the attribute dialog @@ -287,6 +289,7 @@ final AbstractButton cancelButton = new JButton("Cancel"); cancelButton.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { assert frame != null; @@ -297,6 +300,7 @@ final AbstractButton helpButton = new JButton("Help"); helpButton.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { new Help(parent, "treasurelists.html").setVisible(true); Modified: trunk/src/app/net/sf/gridarta/gui/utils/AbstractDialogManager.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/utils/AbstractDialogManager.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/utils/AbstractDialogManager.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -46,29 +46,29 @@ protected AbstractDialogManager(@NotNull final String actionName) { ACTION_BUILDER.initAction(true, new AbstractAction() { - /** - * The serial version UID. - */ - private static final long serialVersionUID = 1L; + /** + * The serial version UID. + */ + private static final long serialVersionUID = 1L; - /** {@inheritDoc} */ - @Override - public void actionPerformed(@NotNull final ActionEvent e) { - showDialog(); - } + /** {@inheritDoc} */ + @Override + public void actionPerformed(@NotNull final ActionEvent e) { + showDialog(); + } - /** {@inheritDoc} */ - @NotNull - @Override - public Object clone() { - try { - return super.clone(); - } catch (@NotNull CloneNotSupportedException ex) { - throw new AssertionError(ex); + /** {@inheritDoc} */ + @NotNull + @Override + public Object clone() { + try { + return super.clone(); + } catch (@NotNull CloneNotSupportedException ex) { + throw new AssertionError(ex); + } } - } - }, actionName); + }, actionName); } /** Modified: trunk/src/app/net/sf/gridarta/gui/utils/AnimationComponent.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/utils/AnimationComponent.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/utils/AnimationComponent.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -78,6 +78,7 @@ final AbstractButton button = new JButton(animTreeChooseAction); button.setMargin(new Insets(0, 1, 0, 1)); textField.addFocusListener(new FocusListener() { + @Override public void focusGained(final FocusEvent e) { // ignore Modified: trunk/src/app/net/sf/gridarta/gui/utils/AsynchronousProgress.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/utils/AsynchronousProgress.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/utils/AsynchronousProgress.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -53,6 +53,7 @@ public void finished() { try { EventQueue.invokeAndWait(new Runnable() { + /** {@inheritDoc} */ @Override public void run() { @@ -80,6 +81,7 @@ @Override public void setLabel(final String msg, final int max) { EventQueue.invokeLater(new Runnable() { + /** {@inheritDoc} */ @Override public void run() { @@ -94,6 +96,7 @@ @Override public void setValue(final int value) { EventQueue.invokeLater(new Runnable() { + /** {@inheritDoc} */ @Override public void run() { Modified: trunk/src/app/net/sf/gridarta/gui/utils/FaceComponent.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/utils/FaceComponent.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/utils/FaceComponent.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -78,6 +78,7 @@ final AbstractButton button = new JButton(faceTreeChooseAction); button.setMargin(new Insets(0, 1, 0, 1)); textField.addFocusListener(new FocusListener() { + @Override public void focusGained(final FocusEvent e) { // ignore Modified: trunk/src/app/net/sf/gridarta/gui/utils/GSplitPane.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/utils/GSplitPane.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/utils/GSplitPane.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -98,6 +98,7 @@ */ @NotNull private final HierarchyListener hierarchyListener = new HierarchyListener() { + @Override public void hierarchyChanged(final HierarchyEvent e) { if ((e.getChangeFlags() & (long) HierarchyEvent.SHOWING_CHANGED) != 0L && isShowing()) { @@ -166,6 +167,7 @@ button.removeActionListener(actionListener); if (actionListeners.size() == 1) { button.addActionListener(new ActionListener() { + /** {@inheritDoc} */ @Override public void actionPerformed(final ActionEvent e) { @@ -175,6 +177,7 @@ }); } else { button.addActionListener(new ActionListener() { + /** {@inheritDoc} */ @Override public void actionPerformed(final ActionEvent e) { Modified: trunk/src/app/net/sf/gridarta/gui/utils/borderpanel/Location.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/utils/borderpanel/Location.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/utils/borderpanel/Location.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -36,7 +36,6 @@ * The location on the top side. */ TOP { - /** * {@inheritDoc} */ @@ -136,7 +135,6 @@ * The location on the bottom side. */ BOTTOM { - /** * {@inheritDoc} */ @@ -236,7 +234,6 @@ * The location on the left side. */ LEFT { - /** * {@inheritDoc} */ @@ -336,7 +333,6 @@ * The location on the right side. */ RIGHT { - /** * {@inheritDoc} */ Modified: trunk/src/app/net/sf/gridarta/gui/utils/tristate/TristateState.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/utils/tristate/TristateState.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/gui/utils/tristate/TristateState.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -31,7 +31,6 @@ * The check box is not selected. */ DESELECTED { - /** * {@inheritDoc} */ @@ -47,7 +46,6 @@ * The check box is in indeterminate state. */ INDETERMINATE { - /** * {@inheritDoc} */ @@ -63,7 +61,6 @@ * The check box is selected. */ SELECTED { - /** * {@inheritDoc} */ Modified: trunk/src/app/net/sf/gridarta/mainactions/DefaultExiter.java =================================================================== --- trunk/src/app/net/sf/gridarta/mainactions/DefaultExiter.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/app/net/sf/gridarta/mainactions/DefaultExiter.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -107,6 +107,7 @@ listener.appExitNotify(); } final Thread thread = new Thread(new Runnable() { + /** {@inheritDoc} */ @Override public void run() { @@ -115,6 +116,7 @@ } try { SwingUtilities.invokeAndWait(new Runnable() { + /** {@inheritDoc} */ @Override public void run() { Modified: trunk/src/test/net/sf/gridarta/gui/utils/GSplitPaneTestApplication.java =================================================================== --- trunk/src/test/net/sf/gridarta/gui/utils/GSplitPaneTestApplication.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/src/test/net/sf/gridarta/gui/utils/GSplitPaneTestApplication.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -61,6 +61,7 @@ */ public static void main(final String[] args) throws InterruptedException, InvocationTargetException { SwingUtilities.invokeAndWait(new Runnable() { + @Override public void run() { final JPanel green = newPanel(MIN_SIZE, MIN_SIZE, Color.GREEN); @@ -74,6 +75,7 @@ final AbstractButton button = new JButton("save divider locations and quit"); final Window frame = new JFrame(); button.addActionListener(new ActionListener() { + @Override public void actionPerformed(final ActionEvent e) { splitPane1.saveLocation(); Modified: trunk/textedit/src/app/net/sf/gridarta/textedit/textarea/InputHandler.java =================================================================== --- trunk/textedit/src/app/net/sf/gridarta/textedit/textarea/InputHandler.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/textedit/src/app/net/sf/gridarta/textedit/textarea/InputHandler.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -214,7 +214,7 @@ /** * If an action implements this interface, it should not be repeated. * Instead, it will handle the repetition itself. - * @noinspection MarkerInterface,PublicInnerClass + * @noinspection MarkerInterface, PublicInnerClass */ public interface NonRepeatable { Modified: trunk/textedit/src/app/net/sf/gridarta/textedit/textarea/JEditTextArea.java =================================================================== --- trunk/textedit/src/app/net/sf/gridarta/textedit/textarea/JEditTextArea.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/textedit/src/app/net/sf/gridarta/textedit/textarea/JEditTextArea.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -1500,6 +1500,7 @@ // the mouse is released /** {@inheritDoc} */ SwingUtilities.invokeLater(new Runnable() { + @Override public void run() { if (e.getAdjustable() == vertical) { Modified: trunk/utils/src/app/net/sf/gridarta/MainControl.java =================================================================== --- trunk/utils/src/app/net/sf/gridarta/MainControl.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/utils/src/app/net/sf/gridarta/MainControl.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -22,7 +22,7 @@ /** * Interface used as preferences location. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> - * @noinspection InterfaceNeverImplemented,MarkerInterface + * @noinspection InterfaceNeverImplemented, MarkerInterface */ public interface MainControl { Modified: trunk/utils/src/app/net/sf/gridarta/utils/ActionUtils.java =================================================================== --- trunk/utils/src/app/net/sf/gridarta/utils/ActionUtils.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/utils/src/app/net/sf/gridarta/utils/ActionUtils.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -190,7 +190,7 @@ /** * Creates new {@link Action} instances. Calls {@link - * #newAction(ActionBuilder,String,Object,String)} for all keys. + * #newAction(ActionBuilder, String, Object, String)} for all keys. * @param actionBuilder the action builder to use * @param category the category to set * @param object the object which defines the action method @@ -204,7 +204,7 @@ /** * Creates a new {@link Action} instance. It is basically the same as {@link - * ActionBuilder#createAction(boolean,String,Object)} except that the + * ActionBuilder#createAction(boolean, String, Object)} except that the * category is set. * @param actionBuilder the action builder to use * @param category the category to set Modified: trunk/utils/src/test/net/sf/gridarta/utils/StringUtilsTest.java =================================================================== --- trunk/utils/src/test/net/sf/gridarta/utils/StringUtilsTest.java 2011-08-06 13:01:20 UTC (rev 8950) +++ trunk/utils/src/test/net/sf/gridarta/utils/StringUtilsTest.java 2011-08-06 13:06:46 UTC (rev 8951) @@ -96,7 +96,8 @@ } /** - * Test case for {@link StringUtils#diffTextString(CharSequence,String,boolean)}. + * Test case for {@link StringUtils#diffTextString(CharSequence, String, + * boolean)}. */ @Test public void testDiffTextString() { @@ -114,7 +115,8 @@ } /** - * Checks two invocations of {@link StringUtils#diffTextString(CharSequence,String,boolean)}. + * Checks two invocations of {@link StringUtils#diffTextString(CharSequence, + * String, boolean)}. * @param base the 'base' parameter to use * @param str the 'str' parameter to use * @param expectedFalse the expected return value if 'ignoreValues' is This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-08-06 13:01:27
|
Revision: 8950 http://gridarta.svn.sourceforge.net/gridarta/?rev=8950&view=rev Author: akirschbaum Date: 2011-08-06 13:01:20 +0000 (Sat, 06 Aug 2011) Log Message: ----------- Order import statements. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java trunk/src/app/net/sf/gridarta/gui/misc/DefaultFileControl.java trunk/src/app/net/sf/gridarta/gui/panel/pickmapchooser/PickmapChooserControl.java trunk/src/app/net/sf/gridarta/mainactions/MainActions.java trunk/src/app/net/sf/gridarta/maincontrol/EditorFactory.java trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java trunk/src/app/net/sf/gridarta/maincontrol/GridartaEditor.java Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java 2011-08-06 12:50:44 UTC (rev 8949) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java 2011-08-06 13:01:20 UTC (rev 8950) @@ -22,12 +22,6 @@ import java.awt.Component; import java.io.IOException; import java.net.URL; -import net.sf.gridarta.gui.filter.FilterControl; -import net.sf.gridarta.gui.map.mapview.DefaultMapViewFactory; -import net.sf.gridarta.gui.map.mapview.MapViewFactory; -import net.sf.gridarta.gui.map.mapview.MapViewsManager; -import net.sf.gridarta.gui.map.renderer.GridMapSquarePainter; -import net.sf.gridarta.gui.map.renderer.RendererFactory; import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; import net.sf.gridarta.gui.dialog.prefs.AppPreferences; @@ -39,6 +33,12 @@ import net.sf.gridarta.gui.dialog.prefs.NetPreferences; import net.sf.gridarta.gui.dialog.prefs.ResPreferences; import net.sf.gridarta.gui.dialog.prefs.UpdatePreferences; +import net.sf.gridarta.gui.filter.FilterControl; +import net.sf.gridarta.gui.map.mapview.DefaultMapViewFactory; +import net.sf.gridarta.gui.map.mapview.MapViewFactory; +import net.sf.gridarta.gui.map.mapview.MapViewsManager; +import net.sf.gridarta.gui.map.renderer.GridMapSquarePainter; +import net.sf.gridarta.gui.map.renderer.RendererFactory; import net.sf.gridarta.gui.scripts.ScriptArchDataUtils; import net.sf.gridarta.gui.scripts.ScriptedEventEditor; import net.sf.gridarta.maincontrol.DefaultMainControl; Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java 2011-08-06 12:50:44 UTC (rev 8949) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java 2011-08-06 13:01:20 UTC (rev 8950) @@ -20,12 +20,6 @@ package net.sf.gridarta.var.crossfire.maincontrol; import java.awt.Component; -import net.sf.gridarta.gui.filter.FilterControl; -import net.sf.gridarta.gui.map.mapview.DefaultMapViewFactory; -import net.sf.gridarta.gui.map.mapview.MapViewFactory; -import net.sf.gridarta.gui.map.mapview.MapViewsManager; -import net.sf.gridarta.gui.map.renderer.GridMapSquarePainter; -import net.sf.gridarta.gui.map.renderer.RendererFactory; import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; import net.sf.gridarta.gui.dialog.prefs.AppPreferences; @@ -37,6 +31,12 @@ import net.sf.gridarta.gui.dialog.prefs.NetPreferences; import net.sf.gridarta.gui.dialog.prefs.ResPreferences; import net.sf.gridarta.gui.dialog.prefs.UpdatePreferences; +import net.sf.gridarta.gui.filter.FilterControl; +import net.sf.gridarta.gui.map.mapview.DefaultMapViewFactory; +import net.sf.gridarta.gui.map.mapview.MapViewFactory; +import net.sf.gridarta.gui.map.mapview.MapViewsManager; +import net.sf.gridarta.gui.map.renderer.GridMapSquarePainter; +import net.sf.gridarta.gui.map.renderer.RendererFactory; import net.sf.gridarta.gui.scripts.ScriptArchDataUtils; import net.sf.gridarta.gui.scripts.ScriptedEventEditor; import net.sf.gridarta.maincontrol.DefaultMainControl; Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java 2011-08-06 12:50:44 UTC (rev 8949) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java 2011-08-06 13:01:20 UTC (rev 8950) @@ -22,12 +22,6 @@ import java.awt.Component; import java.io.IOException; import java.net.URL; -import net.sf.gridarta.gui.filter.FilterControl; -import net.sf.gridarta.gui.map.mapview.DefaultMapViewFactory; -import net.sf.gridarta.gui.map.mapview.MapViewFactory; -import net.sf.gridarta.gui.map.mapview.MapViewsManager; -import net.sf.gridarta.gui.map.renderer.GridMapSquarePainter; -import net.sf.gridarta.gui.map.renderer.RendererFactory; import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; import net.sf.gridarta.gui.dialog.prefs.AppPreferences; @@ -39,6 +33,12 @@ import net.sf.gridarta.gui.dialog.prefs.NetPreferences; import net.sf.gridarta.gui.dialog.prefs.ResPreferences; import net.sf.gridarta.gui.dialog.prefs.UpdatePreferences; +import net.sf.gridarta.gui.filter.FilterControl; +import net.sf.gridarta.gui.map.mapview.DefaultMapViewFactory; +import net.sf.gridarta.gui.map.mapview.MapViewFactory; +import net.sf.gridarta.gui.map.mapview.MapViewsManager; +import net.sf.gridarta.gui.map.renderer.GridMapSquarePainter; +import net.sf.gridarta.gui.map.renderer.RendererFactory; import net.sf.gridarta.gui.scripts.ScriptArchDataUtils; import net.sf.gridarta.gui.scripts.ScriptedEventEditor; import net.sf.gridarta.maincontrol.DefaultMainControl; Modified: trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java 2011-08-06 12:50:44 UTC (rev 8949) +++ trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java 2011-08-06 13:01:20 UTC (rev 8950) @@ -32,13 +32,13 @@ import javax.swing.JOptionPane; import javax.swing.JScrollPane; import javax.swing.filechooser.FileFilter; +import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; +import net.sf.gridarta.gui.dialog.shrinkmapsizedialog.ShrinkMapSizeDialogManager; import net.sf.gridarta.gui.map.mapview.MapView; import net.sf.gridarta.gui.map.mapview.MapViewManager; import net.sf.gridarta.gui.map.mapview.MapViewManagerListener; import net.sf.gridarta.gui.map.mapview.MapViewsManager; -import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; import net.sf.gridarta.gui.panel.selectedsquare.SelectedSquareModel; -import net.sf.gridarta.gui.dialog.shrinkmapsizedialog.ShrinkMapSizeDialogManager; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.direction.Direction; import net.sf.gridarta.model.exitconnector.ExitMatcher; Modified: trunk/src/app/net/sf/gridarta/gui/misc/DefaultFileControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/misc/DefaultFileControl.java 2011-08-06 12:50:44 UTC (rev 8949) +++ trunk/src/app/net/sf/gridarta/gui/misc/DefaultFileControl.java 2011-08-06 13:01:20 UTC (rev 8950) @@ -25,10 +25,10 @@ import javax.swing.JFileChooser; import javax.swing.JOptionPane; import javax.swing.filechooser.FileFilter; +import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; import net.sf.gridarta.gui.map.MapPreviewAccessory; import net.sf.gridarta.gui.map.mapview.MapViewsManager; import net.sf.gridarta.gui.mapimagecache.MapImageCache; -import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; Modified: trunk/src/app/net/sf/gridarta/gui/panel/pickmapchooser/PickmapChooserControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/panel/pickmapchooser/PickmapChooserControl.java 2011-08-06 12:50:44 UTC (rev 8949) +++ trunk/src/app/net/sf/gridarta/gui/panel/pickmapchooser/PickmapChooserControl.java 2011-08-06 13:01:20 UTC (rev 8950) @@ -32,6 +32,7 @@ import javax.swing.JPopupMenu; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; +import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; import net.sf.gridarta.gui.map.mapview.MapView; import net.sf.gridarta.gui.map.mapview.MapViewsManager; import net.sf.gridarta.gui.mapfiles.DuplicatePickmapException; @@ -39,7 +40,6 @@ import net.sf.gridarta.gui.mapfiles.MapFile; import net.sf.gridarta.gui.mapfiles.MapFolder; import net.sf.gridarta.gui.mapfiles.MapFolderTree; -import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; import net.sf.gridarta.gui.panel.objectchooser.ObjectChooserTab; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.gameobject.GameObject; Modified: trunk/src/app/net/sf/gridarta/mainactions/MainActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/mainactions/MainActions.java 2011-08-06 12:50:44 UTC (rev 8949) +++ trunk/src/app/net/sf/gridarta/mainactions/MainActions.java 2011-08-06 13:01:20 UTC (rev 8950) @@ -31,13 +31,13 @@ import javax.swing.JFrame; import net.sf.gridarta.commands.Collector; import net.sf.gridarta.gui.copybuffer.CopyBuffer; +import net.sf.gridarta.gui.dialog.replacedialog.ReplaceDialogManager; import net.sf.gridarta.gui.map.mapview.MapView; import net.sf.gridarta.gui.map.mapview.MapViewBasic; import net.sf.gridarta.gui.map.mapview.MapViewManager; import net.sf.gridarta.gui.map.mapview.MapViewManagerListener; import net.sf.gridarta.gui.misc.ShiftProcessor; import net.sf.gridarta.gui.panel.objectchooser.ObjectChooser; -import net.sf.gridarta.gui.dialog.replacedialog.ReplaceDialogManager; import net.sf.gridarta.gui.utils.AsynchronousProgress; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.archetype.ArchetypeSet; Modified: trunk/src/app/net/sf/gridarta/maincontrol/EditorFactory.java =================================================================== --- trunk/src/app/net/sf/gridarta/maincontrol/EditorFactory.java 2011-08-06 12:50:44 UTC (rev 8949) +++ trunk/src/app/net/sf/gridarta/maincontrol/EditorFactory.java 2011-08-06 13:01:20 UTC (rev 8950) @@ -20,13 +20,13 @@ package net.sf.gridarta.maincontrol; import java.awt.Component; +import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; +import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; +import net.sf.gridarta.gui.dialog.prefs.AppPreferencesModel; import net.sf.gridarta.gui.filter.FilterControl; import net.sf.gridarta.gui.map.mapview.MapViewFactory; import net.sf.gridarta.gui.map.mapview.MapViewsManager; import net.sf.gridarta.gui.map.renderer.RendererFactory; -import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; -import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; -import net.sf.gridarta.gui.dialog.prefs.AppPreferencesModel; import net.sf.gridarta.gui.scripts.ScriptArchDataUtils; import net.sf.gridarta.gui.scripts.ScriptedEventEditor; import net.sf.gridarta.model.anim.AnimationObjects; Modified: trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2011-08-06 12:50:44 UTC (rev 8949) +++ trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2011-08-06 13:01:20 UTC (rev 8950) @@ -35,29 +35,20 @@ import javax.swing.filechooser.FileFilter; import net.sf.gridarta.MainControl; import net.sf.gridarta.actions.ExitConnectorActions; -import net.sf.gridarta.gui.panel.archetypechooser.ArchetypeChooserControl; import net.sf.gridarta.gui.autovalidator.AutoValidator; -import net.sf.gridarta.gui.dialog.bookmarks.BookmarkActions; -import net.sf.gridarta.gui.panel.connectionview.ConnectionControl; -import net.sf.gridarta.gui.panel.connectionview.Control; -import net.sf.gridarta.gui.panel.connectionview.LockedItemsControl; -import net.sf.gridarta.gui.panel.connectionview.MonsterControl; import net.sf.gridarta.gui.copybuffer.CopyBuffer; import net.sf.gridarta.gui.delayedmapmodel.DelayedMapModelListenerManager; -import net.sf.gridarta.gui.exitconnector.ExitConnectorController; -import net.sf.gridarta.gui.filter.FilterControl; +import net.sf.gridarta.gui.dialog.bookmarks.BookmarkActions; import net.sf.gridarta.gui.dialog.findarchetypes.FindArchetypesDialogManager; import net.sf.gridarta.gui.dialog.gameobjectattributesdialog.GameObjectAttributesDialogFactory; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.ArchTab; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.ErrorListView; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.EventsTab; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.FaceTab; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.GameObjectAttributesControl; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.GameObjectAttributesModel; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.MsgTextTab; -import net.sf.gridarta.gui.panel.gameobjectattributespanel.TextEditorTab; -import net.sf.gridarta.gui.panel.gameobjecttexteditor.GameObjectTextEditor; import net.sf.gridarta.gui.dialog.gomapdialog.GoMapDialogManager; +import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; +import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; +import net.sf.gridarta.gui.dialog.prefs.AppPreferencesModel; +import net.sf.gridarta.gui.dialog.replacedialog.ReplaceDialogManager; +import net.sf.gridarta.gui.dialog.shortcuts.ShortcutsManager; +import net.sf.gridarta.gui.exitconnector.ExitConnectorController; +import net.sf.gridarta.gui.filter.FilterControl; import net.sf.gridarta.gui.mainwindow.GameObjectTab; import net.sf.gridarta.gui.mainwindow.GameObjectTextEditorTab; import net.sf.gridarta.gui.mainwindow.WarningsTab; @@ -84,7 +75,6 @@ import net.sf.gridarta.gui.mapmenu.MapMenuManager; import net.sf.gridarta.gui.mapmenu.MapMenuPreferences; import net.sf.gridarta.gui.mapmenu.RecentMapMenuPreferences; -import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; import net.sf.gridarta.gui.mapuserlistener.MapUserListenerManager; import net.sf.gridarta.gui.misc.About; import net.sf.gridarta.gui.misc.DefaultFileControl; @@ -95,22 +85,32 @@ import net.sf.gridarta.gui.misc.MapPreview; import net.sf.gridarta.gui.misc.RecentManager; import net.sf.gridarta.gui.misc.StatusBar; -import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; +import net.sf.gridarta.gui.panel.archetypechooser.ArchetypeChooserControl; +import net.sf.gridarta.gui.panel.connectionview.ConnectionControl; +import net.sf.gridarta.gui.panel.connectionview.Control; +import net.sf.gridarta.gui.panel.connectionview.LockedItemsControl; +import net.sf.gridarta.gui.panel.connectionview.MonsterControl; +import net.sf.gridarta.gui.panel.gameobjectattributespanel.ArchTab; +import net.sf.gridarta.gui.panel.gameobjectattributespanel.ErrorListView; +import net.sf.gridarta.gui.panel.gameobjectattributespanel.EventsTab; +import net.sf.gridarta.gui.panel.gameobjectattributespanel.FaceTab; +import net.sf.gridarta.gui.panel.gameobjectattributespanel.GameObjectAttributesControl; +import net.sf.gridarta.gui.panel.gameobjectattributespanel.GameObjectAttributesModel; +import net.sf.gridarta.gui.panel.gameobjectattributespanel.MsgTextTab; +import net.sf.gridarta.gui.panel.gameobjectattributespanel.TextEditorTab; +import net.sf.gridarta.gui.panel.gameobjecttexteditor.GameObjectTextEditor; import net.sf.gridarta.gui.panel.objectchooser.DefaultObjectChooser; import net.sf.gridarta.gui.panel.pickmapchooser.PickmapChooserControl; import net.sf.gridarta.gui.panel.pickmapchooser.PickmapChooserModel; -import net.sf.gridarta.gui.dialog.prefs.AppPreferencesModel; -import net.sf.gridarta.gui.dialog.replacedialog.ReplaceDialogManager; import net.sf.gridarta.gui.panel.script.ScriptController; import net.sf.gridarta.gui.panel.script.parameter.PluginParameterViewFactory; -import net.sf.gridarta.gui.scripts.ScriptArchDataUtils; -import net.sf.gridarta.gui.scripts.ScriptArchEditor; -import net.sf.gridarta.gui.scripts.ScriptedEventEditor; import net.sf.gridarta.gui.panel.selectedsquare.SelectedSquareActions; import net.sf.gridarta.gui.panel.selectedsquare.SelectedSquareControl; import net.sf.gridarta.gui.panel.selectedsquare.SelectedSquareModel; import net.sf.gridarta.gui.panel.selectedsquare.SelectedSquareView; -import net.sf.gridarta.gui.dialog.shortcuts.ShortcutsManager; +import net.sf.gridarta.gui.scripts.ScriptArchDataUtils; +import net.sf.gridarta.gui.scripts.ScriptArchEditor; +import net.sf.gridarta.gui.scripts.ScriptedEventEditor; import net.sf.gridarta.gui.spells.SpellsUtils; import net.sf.gridarta.gui.treasurelist.CFTreasureListTree; import net.sf.gridarta.gui.undo.UndoControl; Modified: trunk/src/app/net/sf/gridarta/maincontrol/GridartaEditor.java =================================================================== --- trunk/src/app/net/sf/gridarta/maincontrol/GridartaEditor.java 2011-08-06 12:50:44 UTC (rev 8949) +++ trunk/src/app/net/sf/gridarta/maincontrol/GridartaEditor.java 2011-08-06 13:01:20 UTC (rev 8950) @@ -38,10 +38,10 @@ import net.sf.gridarta.commands.SinglePngCommand; import net.sf.gridarta.gui.dialog.errorview.ConsoleErrorView; import net.sf.gridarta.gui.dialog.errorview.DefaultErrorView; +import net.sf.gridarta.gui.dialog.prefs.GUIPreferences; import net.sf.gridarta.gui.filter.DefaultFilterControl; import net.sf.gridarta.gui.filter.FilterControl; import net.sf.gridarta.gui.map.renderer.RendererFactory; -import net.sf.gridarta.gui.dialog.prefs.GUIPreferences; import net.sf.gridarta.gui.scripts.ScriptedEventEditor; import net.sf.gridarta.mainactions.DefaultExiter; import net.sf.gridarta.model.anim.AnimationObjects; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-08-06 12:50:58
|
Revision: 8949 http://gridarta.svn.sourceforge.net/gridarta/?rev=8949&view=rev Author: akirschbaum Date: 2011-08-06 12:50:44 +0000 (Sat, 06 Aug 2011) Log Message: ----------- Distribute gui classes into sub-packages. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/gui/mappropertiesdialog/MapPropertiesDialog.java trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/mappropertiesdialog/MapPropertiesDialog.java trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/gui/mappropertiesdialog/MapPropertiesDialog.java trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java trunk/src/app/net/sf/gridarta/gui/dialog/bookmarks/BookmarkActions.java trunk/src/app/net/sf/gridarta/gui/dialog/bookmarks/BookmarkDirectoryDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/bookmarks/EditBookmarkDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/bookmarks/ManageBookmarksDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/bookmarks/MapMenuEntryIcons.java trunk/src/app/net/sf/gridarta/gui/dialog/errorview/ConsoleErrorView.java trunk/src/app/net/sf/gridarta/gui/dialog/errorview/DefaultErrorView.java trunk/src/app/net/sf/gridarta/gui/dialog/errorview/ErrorEntry.java trunk/src/app/net/sf/gridarta/gui/dialog/findarchetypes/FindArchetypesDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/findarchetypes/FindArchetypesDialogManager.java trunk/src/app/net/sf/gridarta/gui/dialog/findarchetypes/TableModel.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/ConfirmErrorsDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttribute.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeAnimationName.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeBitmask.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeBool.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeBoolSpec.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeFaceName.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeFloat.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeInt.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeInvSpell.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeList.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeLong.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeMapPath.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeScriptFile.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeSpell.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeString.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeText.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeTreasure.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeZSpell.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/GameObjectAttributesDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/GameObjectAttributesDialogFactory.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/GuiInfo.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/HelpActionListener.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/MaskChangeAL.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/ScrollToVisibleFocusListener.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/StringKeyManager.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/TypesBoxItemListener.java trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/ViewTreasurelistAL.java trunk/src/app/net/sf/gridarta/gui/dialog/golocationdialog/GoLocationDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/golocationdialog/GoLocationDialogManager.java trunk/src/app/net/sf/gridarta/gui/dialog/gomapdialog/GoMapDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/gomapdialog/GoMapDialogManager.java trunk/src/app/net/sf/gridarta/gui/dialog/gomapdialog/MapListCellRenderer.java trunk/src/app/net/sf/gridarta/gui/dialog/help/Help.java trunk/src/app/net/sf/gridarta/gui/dialog/help/HtmlPane.java trunk/src/app/net/sf/gridarta/gui/dialog/mappropertiesdialog/MapPropertiesDialogFactory.java trunk/src/app/net/sf/gridarta/gui/dialog/newmap/AbstractMapsizeNewMapDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/newmap/AbstractNewMapDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/newmap/NewMapDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/newmap/NewMapDialogFactory.java trunk/src/app/net/sf/gridarta/gui/dialog/newmap/NewPickmapDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/newmap/NewPickmapFolderDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/prefs/AppPreferences.java trunk/src/app/net/sf/gridarta/gui/dialog/prefs/AppPreferencesModel.java trunk/src/app/net/sf/gridarta/gui/dialog/prefs/DevPreferences.java trunk/src/app/net/sf/gridarta/gui/dialog/prefs/GUIPreferences.java trunk/src/app/net/sf/gridarta/gui/dialog/prefs/MapValidatorPreferences.java trunk/src/app/net/sf/gridarta/gui/dialog/prefs/MiscPreferences.java trunk/src/app/net/sf/gridarta/gui/dialog/prefs/NetPreferences.java trunk/src/app/net/sf/gridarta/gui/dialog/prefs/PreferencesHelper.java trunk/src/app/net/sf/gridarta/gui/dialog/prefs/ResPreferences.java trunk/src/app/net/sf/gridarta/gui/dialog/prefs/UpdatePreferences.java trunk/src/app/net/sf/gridarta/gui/dialog/replacedialog/ArchetypeNameMatchCriteria.java trunk/src/app/net/sf/gridarta/gui/dialog/replacedialog/MatchCriteria.java trunk/src/app/net/sf/gridarta/gui/dialog/replacedialog/ObjectNameMatchCriteria.java trunk/src/app/net/sf/gridarta/gui/dialog/replacedialog/ReplaceDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/replacedialog/ReplaceDialogManager.java trunk/src/app/net/sf/gridarta/gui/dialog/shortcuts/KeyStrokeDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/shortcuts/KeyStrokeField.java trunk/src/app/net/sf/gridarta/gui/dialog/shortcuts/KeyStrokeFieldListener.java trunk/src/app/net/sf/gridarta/gui/dialog/shortcuts/ShortcutsDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/shortcuts/ShortcutsManager.java trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsizedialog/ShrinkMapSizeDialog.java trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsizedialog/ShrinkMapSizeDialogManager.java trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsizedialog/ShrinkMapSizeUtils.java trunk/src/app/net/sf/gridarta/gui/mainwindow/GameObjectTab.java trunk/src/app/net/sf/gridarta/gui/mainwindow/GameObjectTextEditorTab.java trunk/src/app/net/sf/gridarta/gui/mainwindow/WarningsTab.java trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapActions.java trunk/src/app/net/sf/gridarta/gui/map/tools/DeletionTool.java trunk/src/app/net/sf/gridarta/gui/map/tools/InsertionTool.java trunk/src/app/net/sf/gridarta/gui/map/tools/SelectionTool.java trunk/src/app/net/sf/gridarta/gui/map/tools/ToolPalette.java trunk/src/app/net/sf/gridarta/gui/map/tools/ToolSelector.java trunk/src/app/net/sf/gridarta/gui/mapcursor/MapCursorActions.java trunk/src/app/net/sf/gridarta/gui/mapfiles/MapFolderTreeActions.java trunk/src/app/net/sf/gridarta/gui/misc/DefaultFileControl.java trunk/src/app/net/sf/gridarta/gui/misc/HelpActions.java trunk/src/app/net/sf/gridarta/gui/misc/MainViewActions.java trunk/src/app/net/sf/gridarta/gui/panel/archetypechooser/ArchetypeChooserControl.java trunk/src/app/net/sf/gridarta/gui/panel/archetypechooser/ArchetypeChooserView.java trunk/src/app/net/sf/gridarta/gui/panel/archetypechooser/ArchetypeChooserViewListener.java trunk/src/app/net/sf/gridarta/gui/panel/archetypechooser/ArchetypeIconCellRenderer.java trunk/src/app/net/sf/gridarta/gui/panel/archetypechooser/ArchetypeNameCellRenderer.java trunk/src/app/net/sf/gridarta/gui/panel/archetypechooser/ArchetypePanel.java trunk/src/app/net/sf/gridarta/gui/panel/archetypechooser/DirectionPane.java trunk/src/app/net/sf/gridarta/gui/panel/archetypechooser/DisplayMode.java trunk/src/app/net/sf/gridarta/gui/panel/archetypechooser/DisplayNameCellRenderer.java trunk/src/app/net/sf/gridarta/gui/panel/archetypechooser/FolderListCellRenderer.java trunk/src/app/net/sf/gridarta/gui/panel/connectionview/CellRenderer.java trunk/src/app/net/sf/gridarta/gui/panel/connectionview/Connection.java trunk/src/app/net/sf/gridarta/gui/panel/connectionview/ConnectionControl.java trunk/src/app/net/sf/gridarta/gui/panel/connectionview/ConnectionView.java trunk/src/app/net/sf/gridarta/gui/panel/connectionview/Control.java trunk/src/app/net/sf/gridarta/gui/panel/connectionview/LockedItemsControl.java trunk/src/app/net/sf/gridarta/gui/panel/connectionview/LockedItemsView.java trunk/src/app/net/sf/gridarta/gui/panel/connectionview/MonsterCellRenderer.java trunk/src/app/net/sf/gridarta/gui/panel/connectionview/MonsterControl.java trunk/src/app/net/sf/gridarta/gui/panel/connectionview/MonsterView.java trunk/src/app/net/sf/gridarta/gui/panel/connectionview/View.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/AbstractGameObjectAttributesTab.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/ArchTab.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/ErrorListView.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/ErrorListViewListener.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/EventsTab.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/FaceTab.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/GameObjectAttributesControl.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/GameObjectAttributesControlListener.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/GameObjectAttributesModel.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/GameObjectAttributesModelListener.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/GameObjectAttributesTab.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/GameObjectAttributesTabListener.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/MsgTextTab.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/TextEditorTab.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjecttexteditor/GameObjectTextEditor.java trunk/src/app/net/sf/gridarta/gui/panel/gameobjecttexteditor/ScrollingTextPane.java trunk/src/app/net/sf/gridarta/gui/panel/objectchoicedisplay/ObjectChoiceDisplay.java trunk/src/app/net/sf/gridarta/gui/panel/objectchooser/DefaultObjectChooser.java trunk/src/app/net/sf/gridarta/gui/panel/objectchooser/ObjectChooser.java trunk/src/app/net/sf/gridarta/gui/panel/objectchooser/ObjectChooserListener.java trunk/src/app/net/sf/gridarta/gui/panel/objectchooser/ObjectChooserTab.java trunk/src/app/net/sf/gridarta/gui/panel/pickmapchooser/PickmapChooserControl.java trunk/src/app/net/sf/gridarta/gui/panel/pickmapchooser/PickmapChooserModel.java trunk/src/app/net/sf/gridarta/gui/panel/pickmapchooser/PickmapChooserModelListener.java trunk/src/app/net/sf/gridarta/gui/panel/pickmapchooser/PickmapChooserView.java trunk/src/app/net/sf/gridarta/gui/panel/script/CloseableTabbedPane.java trunk/src/app/net/sf/gridarta/gui/panel/script/ClosingIcon.java trunk/src/app/net/sf/gridarta/gui/panel/script/ClosingListener.java trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptController.java trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptEditor.java trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptManager.java trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptManagerFactory.java trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptView.java trunk/src/app/net/sf/gridarta/gui/panel/script/ScriptViewPane.java trunk/src/app/net/sf/gridarta/gui/panel/script/StackLayout.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBox.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxCellRenderer.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxEditor.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchComboBoxModel.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ArchParameterView.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/BooleanParameterView.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/DoubleParameterView.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/FilterParameterView.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/IntegerParameterView.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/MapParameterCellRenderer.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/MapParameterComboBoxModel.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/MapParameterView.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ParameterDescriptionEditor.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ParameterNameEditor.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/ParameterTypeEditor.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/PluginParameterView.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/PluginParameterViewFactory.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/StringParameterView.java trunk/src/app/net/sf/gridarta/gui/panel/script/parameter/TooltipSpinner.java trunk/src/app/net/sf/gridarta/gui/panel/selectedsquare/CellRenderer.java trunk/src/app/net/sf/gridarta/gui/panel/selectedsquare/MapSquareSelection.java trunk/src/app/net/sf/gridarta/gui/panel/selectedsquare/MapSquareSelectionCache.java trunk/src/app/net/sf/gridarta/gui/panel/selectedsquare/MapSquareSelectionListener.java trunk/src/app/net/sf/gridarta/gui/panel/selectedsquare/ModelUpdater.java trunk/src/app/net/sf/gridarta/gui/panel/selectedsquare/SelectedSquareActions.java trunk/src/app/net/sf/gridarta/gui/panel/selectedsquare/SelectedSquareControl.java trunk/src/app/net/sf/gridarta/gui/panel/selectedsquare/SelectedSquareModel.java trunk/src/app/net/sf/gridarta/gui/panel/selectedsquare/SelectedSquareModelListener.java trunk/src/app/net/sf/gridarta/gui/panel/selectedsquare/SelectedSquareView.java trunk/src/app/net/sf/gridarta/gui/treasurelist/CFTreasureListTree.java trunk/src/app/net/sf/gridarta/mainactions/DefaultExiter.java trunk/src/app/net/sf/gridarta/mainactions/MainActions.java trunk/src/app/net/sf/gridarta/maincontrol/EditorFactory.java trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java trunk/src/app/net/sf/gridarta/maincontrol/GridartaEditor.java trunk/src/app/net/sf/gridarta/updater/Updater.java trunk/src/test/net/sf/gridarta/gui/panel/selectedsquare/SelectedSquareActionsTest.java Added Paths: ----------- trunk/src/app/net/sf/gridarta/gui/dialog/ trunk/src/app/net/sf/gridarta/gui/dialog/bookmarks/ trunk/src/app/net/sf/gridarta/gui/dialog/errorview/ trunk/src/app/net/sf/gridarta/gui/dialog/findarchetypes/ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/ trunk/src/app/net/sf/gridarta/gui/dialog/golocationdialog/ trunk/src/app/net/sf/gridarta/gui/dialog/gomapdialog/ trunk/src/app/net/sf/gridarta/gui/dialog/help/ trunk/src/app/net/sf/gridarta/gui/dialog/mappropertiesdialog/ trunk/src/app/net/sf/gridarta/gui/dialog/newmap/ trunk/src/app/net/sf/gridarta/gui/dialog/prefs/ trunk/src/app/net/sf/gridarta/gui/dialog/replacedialog/ trunk/src/app/net/sf/gridarta/gui/dialog/shortcuts/ trunk/src/app/net/sf/gridarta/gui/dialog/shrinkmapsizedialog/ trunk/src/app/net/sf/gridarta/gui/panel/ trunk/src/app/net/sf/gridarta/gui/panel/archetypechooser/ trunk/src/app/net/sf/gridarta/gui/panel/connectionview/ trunk/src/app/net/sf/gridarta/gui/panel/gameobjectattributespanel/ trunk/src/app/net/sf/gridarta/gui/panel/gameobjecttexteditor/ trunk/src/app/net/sf/gridarta/gui/panel/objectchoicedisplay/ trunk/src/app/net/sf/gridarta/gui/panel/objectchooser/ trunk/src/app/net/sf/gridarta/gui/panel/pickmapchooser/ trunk/src/app/net/sf/gridarta/gui/panel/script/ trunk/src/app/net/sf/gridarta/gui/panel/selectedsquare/ trunk/src/test/net/sf/gridarta/gui/panel/ trunk/src/test/net/sf/gridarta/gui/panel/selectedsquare/ Removed Paths: ------------- trunk/src/app/net/sf/gridarta/gui/archetypechooser/ trunk/src/app/net/sf/gridarta/gui/bookmarks/ trunk/src/app/net/sf/gridarta/gui/connectionview/ trunk/src/app/net/sf/gridarta/gui/errorview/ trunk/src/app/net/sf/gridarta/gui/findarchetypes/ trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/ trunk/src/app/net/sf/gridarta/gui/gameobjectattributespanel/ trunk/src/app/net/sf/gridarta/gui/gameobjecttexteditor/ trunk/src/app/net/sf/gridarta/gui/golocationdialog/ trunk/src/app/net/sf/gridarta/gui/gomapdialog/ trunk/src/app/net/sf/gridarta/gui/help/ trunk/src/app/net/sf/gridarta/gui/mappropertiesdialog/ trunk/src/app/net/sf/gridarta/gui/newmap/ trunk/src/app/net/sf/gridarta/gui/objectchoicedisplay/ trunk/src/app/net/sf/gridarta/gui/objectchooser/ trunk/src/app/net/sf/gridarta/gui/pickmapchooser/ trunk/src/app/net/sf/gridarta/gui/prefs/ trunk/src/app/net/sf/gridarta/gui/replacedialog/ trunk/src/app/net/sf/gridarta/gui/script/ trunk/src/app/net/sf/gridarta/gui/selectedsquare/ trunk/src/app/net/sf/gridarta/gui/shortcuts/ trunk/src/app/net/sf/gridarta/gui/shrinkmapsizedialog/ trunk/src/test/net/sf/gridarta/gui/selectedsquare/ Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -22,7 +22,7 @@ import java.awt.Component; import javax.swing.JFrame; import javax.swing.filechooser.FileFilter; -import net.sf.gridarta.gui.mappropertiesdialog.MapPropertiesDialogFactory; +import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; import net.sf.gridarta.model.mapmanager.MapManager; import net.sf.gridarta.model.mapmodel.MapModel; import net.sf.gridarta.model.mappathnormalizer.MapPathNormalizer; Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/gui/mappropertiesdialog/MapPropertiesDialog.java =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/gui/mappropertiesdialog/MapPropertiesDialog.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/gui/mappropertiesdialog/MapPropertiesDialog.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -46,7 +46,7 @@ import javax.swing.border.Border; import javax.swing.border.EmptyBorder; import javax.swing.filechooser.FileFilter; -import net.sf.gridarta.gui.help.Help; +import net.sf.gridarta.gui.dialog.help.Help; import net.sf.gridarta.gui.map.maptilepane.AbstractMapTilePane; import net.sf.gridarta.gui.map.maptilepane.IsoMapTilePane; import net.sf.gridarta.gui.utils.GUIConstants; Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -28,17 +28,17 @@ import net.sf.gridarta.gui.map.mapview.MapViewsManager; import net.sf.gridarta.gui.map.renderer.GridMapSquarePainter; import net.sf.gridarta.gui.map.renderer.RendererFactory; -import net.sf.gridarta.gui.mappropertiesdialog.MapPropertiesDialogFactory; -import net.sf.gridarta.gui.newmap.NewMapDialogFactory; -import net.sf.gridarta.gui.prefs.AppPreferences; -import net.sf.gridarta.gui.prefs.AppPreferencesModel; -import net.sf.gridarta.gui.prefs.DevPreferences; -import net.sf.gridarta.gui.prefs.GUIPreferences; -import net.sf.gridarta.gui.prefs.MapValidatorPreferences; -import net.sf.gridarta.gui.prefs.MiscPreferences; -import net.sf.gridarta.gui.prefs.NetPreferences; -import net.sf.gridarta.gui.prefs.ResPreferences; -import net.sf.gridarta.gui.prefs.UpdatePreferences; +import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; +import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; +import net.sf.gridarta.gui.dialog.prefs.AppPreferences; +import net.sf.gridarta.gui.dialog.prefs.AppPreferencesModel; +import net.sf.gridarta.gui.dialog.prefs.DevPreferences; +import net.sf.gridarta.gui.dialog.prefs.GUIPreferences; +import net.sf.gridarta.gui.dialog.prefs.MapValidatorPreferences; +import net.sf.gridarta.gui.dialog.prefs.MiscPreferences; +import net.sf.gridarta.gui.dialog.prefs.NetPreferences; +import net.sf.gridarta.gui.dialog.prefs.ResPreferences; +import net.sf.gridarta.gui.dialog.prefs.UpdatePreferences; import net.sf.gridarta.gui.scripts.ScriptArchDataUtils; import net.sf.gridarta.gui.scripts.ScriptedEventEditor; import net.sf.gridarta.maincontrol.DefaultMainControl; Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -22,7 +22,7 @@ import java.awt.Component; import javax.swing.JFrame; import javax.swing.filechooser.FileFilter; -import net.sf.gridarta.gui.mappropertiesdialog.MapPropertiesDialogFactory; +import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; import net.sf.gridarta.model.mapmanager.MapManager; import net.sf.gridarta.model.mapmodel.MapModel; import net.sf.gridarta.model.mappathnormalizer.MapPathNormalizer; Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/mappropertiesdialog/MapPropertiesDialog.java =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/mappropertiesdialog/MapPropertiesDialog.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/mappropertiesdialog/MapPropertiesDialog.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -39,7 +39,7 @@ import javax.swing.border.EmptyBorder; import javax.swing.filechooser.FileFilter; import javax.swing.text.JTextComponent; -import net.sf.gridarta.gui.help.Help; +import net.sf.gridarta.gui.dialog.help.Help; import net.sf.gridarta.gui.map.maptilepane.AbstractMapTilePane; import net.sf.gridarta.gui.map.maptilepane.FlatMapTilePane; import net.sf.gridarta.gui.utils.TextComponentUtils; Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -26,17 +26,17 @@ import net.sf.gridarta.gui.map.mapview.MapViewsManager; import net.sf.gridarta.gui.map.renderer.GridMapSquarePainter; import net.sf.gridarta.gui.map.renderer.RendererFactory; -import net.sf.gridarta.gui.mappropertiesdialog.MapPropertiesDialogFactory; -import net.sf.gridarta.gui.newmap.NewMapDialogFactory; -import net.sf.gridarta.gui.prefs.AppPreferences; -import net.sf.gridarta.gui.prefs.AppPreferencesModel; -import net.sf.gridarta.gui.prefs.DevPreferences; -import net.sf.gridarta.gui.prefs.GUIPreferences; -import net.sf.gridarta.gui.prefs.MapValidatorPreferences; -import net.sf.gridarta.gui.prefs.MiscPreferences; -import net.sf.gridarta.gui.prefs.NetPreferences; -import net.sf.gridarta.gui.prefs.ResPreferences; -import net.sf.gridarta.gui.prefs.UpdatePreferences; +import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; +import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; +import net.sf.gridarta.gui.dialog.prefs.AppPreferences; +import net.sf.gridarta.gui.dialog.prefs.AppPreferencesModel; +import net.sf.gridarta.gui.dialog.prefs.DevPreferences; +import net.sf.gridarta.gui.dialog.prefs.GUIPreferences; +import net.sf.gridarta.gui.dialog.prefs.MapValidatorPreferences; +import net.sf.gridarta.gui.dialog.prefs.MiscPreferences; +import net.sf.gridarta.gui.dialog.prefs.NetPreferences; +import net.sf.gridarta.gui.dialog.prefs.ResPreferences; +import net.sf.gridarta.gui.dialog.prefs.UpdatePreferences; import net.sf.gridarta.gui.scripts.ScriptArchDataUtils; import net.sf.gridarta.gui.scripts.ScriptedEventEditor; import net.sf.gridarta.maincontrol.DefaultMainControl; Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/gui/mappropertiesdialog/DefaultMapPropertiesDialogFactory.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -22,7 +22,7 @@ import java.awt.Component; import javax.swing.JFrame; import javax.swing.filechooser.FileFilter; -import net.sf.gridarta.gui.mappropertiesdialog.MapPropertiesDialogFactory; +import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; import net.sf.gridarta.model.mapmanager.MapManager; import net.sf.gridarta.model.mapmodel.MapModel; import net.sf.gridarta.model.mappathnormalizer.MapPathNormalizer; Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/gui/mappropertiesdialog/MapPropertiesDialog.java =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/gui/mappropertiesdialog/MapPropertiesDialog.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/gui/mappropertiesdialog/MapPropertiesDialog.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -47,7 +47,7 @@ import javax.swing.border.Border; import javax.swing.border.EmptyBorder; import javax.swing.filechooser.FileFilter; -import net.sf.gridarta.gui.help.Help; +import net.sf.gridarta.gui.dialog.help.Help; import net.sf.gridarta.gui.map.maptilepane.AbstractMapTilePane; import net.sf.gridarta.gui.map.maptilepane.IsoMapTilePane; import net.sf.gridarta.gui.utils.GUIConstants; Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -28,17 +28,17 @@ import net.sf.gridarta.gui.map.mapview.MapViewsManager; import net.sf.gridarta.gui.map.renderer.GridMapSquarePainter; import net.sf.gridarta.gui.map.renderer.RendererFactory; -import net.sf.gridarta.gui.mappropertiesdialog.MapPropertiesDialogFactory; -import net.sf.gridarta.gui.newmap.NewMapDialogFactory; -import net.sf.gridarta.gui.prefs.AppPreferences; -import net.sf.gridarta.gui.prefs.AppPreferencesModel; -import net.sf.gridarta.gui.prefs.DevPreferences; -import net.sf.gridarta.gui.prefs.GUIPreferences; -import net.sf.gridarta.gui.prefs.MapValidatorPreferences; -import net.sf.gridarta.gui.prefs.MiscPreferences; -import net.sf.gridarta.gui.prefs.NetPreferences; -import net.sf.gridarta.gui.prefs.ResPreferences; -import net.sf.gridarta.gui.prefs.UpdatePreferences; +import net.sf.gridarta.gui.dialog.mappropertiesdialog.MapPropertiesDialogFactory; +import net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory; +import net.sf.gridarta.gui.dialog.prefs.AppPreferences; +import net.sf.gridarta.gui.dialog.prefs.AppPreferencesModel; +import net.sf.gridarta.gui.dialog.prefs.DevPreferences; +import net.sf.gridarta.gui.dialog.prefs.GUIPreferences; +import net.sf.gridarta.gui.dialog.prefs.MapValidatorPreferences; +import net.sf.gridarta.gui.dialog.prefs.MiscPreferences; +import net.sf.gridarta.gui.dialog.prefs.NetPreferences; +import net.sf.gridarta.gui.dialog.prefs.ResPreferences; +import net.sf.gridarta.gui.dialog.prefs.UpdatePreferences; import net.sf.gridarta.gui.scripts.ScriptArchDataUtils; import net.sf.gridarta.gui.scripts.ScriptedEventEditor; import net.sf.gridarta.maincontrol.DefaultMainControl; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/bookmarks/BookmarkActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/bookmarks/BookmarkActions.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/bookmarks/BookmarkActions.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.bookmarks; +package net.sf.gridarta.gui.dialog.bookmarks; import java.awt.Component; import java.io.File; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/bookmarks/BookmarkDirectoryDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/bookmarks/BookmarkDirectoryDialog.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/bookmarks/BookmarkDirectoryDialog.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.bookmarks; +package net.sf.gridarta.gui.dialog.bookmarks; import java.awt.Component; import javax.swing.Box; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/bookmarks/EditBookmarkDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/bookmarks/EditBookmarkDialog.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/bookmarks/EditBookmarkDialog.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.bookmarks; +package net.sf.gridarta.gui.dialog.bookmarks; import java.awt.Component; import javax.swing.Box; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/bookmarks/ManageBookmarksDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/bookmarks/ManageBookmarksDialog.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/bookmarks/ManageBookmarksDialog.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.bookmarks; +package net.sf.gridarta.gui.dialog.bookmarks; import java.awt.Component; import java.awt.Dimension; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/bookmarks/MapMenuEntryIcons.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/bookmarks/MapMenuEntryIcons.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/bookmarks/MapMenuEntryIcons.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.bookmarks; +package net.sf.gridarta.gui.dialog.bookmarks; import javax.swing.Icon; import javax.swing.ImageIcon; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/errorview/ConsoleErrorView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/errorview/ConsoleErrorView.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/errorview/ConsoleErrorView.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.errorview; +package net.sf.gridarta.gui.dialog.errorview; import net.sf.gridarta.model.errorview.ErrorView; import net.sf.gridarta.model.errorview.ErrorViewCategory; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/errorview/DefaultErrorView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/errorview/DefaultErrorView.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/errorview/DefaultErrorView.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.errorview; +package net.sf.gridarta.gui.dialog.errorview; import java.awt.Component; import java.awt.Dialog; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/errorview/ErrorEntry.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/errorview/ErrorEntry.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/errorview/ErrorEntry.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.errorview; +package net.sf.gridarta.gui.dialog.errorview; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultTreeModel; @@ -25,7 +25,7 @@ import org.jetbrains.annotations.NotNull; /** - * An entry in a {@link net.sf.gridarta.gui.errorview.DefaultErrorView}. + * An entry in a {@link net.sf.gridarta.gui.dialog.errorview.DefaultErrorView}. * @author Andreas Kirschbaum */ public class ErrorEntry extends DefaultMutableTreeNode { Modified: trunk/src/app/net/sf/gridarta/gui/dialog/findarchetypes/FindArchetypesDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/findarchetypes/FindArchetypesDialog.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/findarchetypes/FindArchetypesDialog.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.findarchetypes; +package net.sf.gridarta.gui.dialog.findarchetypes; import java.awt.Component; import java.awt.GridBagConstraints; @@ -42,8 +42,8 @@ import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import javax.swing.text.JTextComponent; -import net.sf.gridarta.gui.archetypechooser.ArchetypeChooserControl; -import net.sf.gridarta.gui.objectchooser.ObjectChooser; +import net.sf.gridarta.gui.panel.archetypechooser.ArchetypeChooserControl; +import net.sf.gridarta.gui.panel.objectchooser.ObjectChooser; import net.sf.gridarta.gui.utils.SwingUtils; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.archetypetype.ArchetypeTypeSet; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/findarchetypes/FindArchetypesDialogManager.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/findarchetypes/FindArchetypesDialogManager.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/findarchetypes/FindArchetypesDialogManager.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,11 +17,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.findarchetypes; +package net.sf.gridarta.gui.dialog.findarchetypes; import java.awt.Component; -import net.sf.gridarta.gui.archetypechooser.ArchetypeChooserControl; -import net.sf.gridarta.gui.objectchooser.ObjectChooser; +import net.sf.gridarta.gui.panel.archetypechooser.ArchetypeChooserControl; +import net.sf.gridarta.gui.panel.objectchooser.ObjectChooser; import net.sf.gridarta.gui.utils.AbstractDialogManager; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.archetypetype.ArchetypeTypeSet; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/findarchetypes/TableModel.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/findarchetypes/TableModel.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/findarchetypes/TableModel.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.findarchetypes; +package net.sf.gridarta.gui.dialog.findarchetypes; import java.util.ArrayList; import java.util.Arrays; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/ConfirmErrorsDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/ConfirmErrorsDialog.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/ConfirmErrorsDialog.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import java.awt.Container; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttribute.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttribute.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttribute.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.text.AttributeSet; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeAnimationName.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeAnimationName.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeAnimationName.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.text.Document; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeBitmask.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeBitmask.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeBitmask.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.text.Document; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeBool.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeBool.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeBool.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.AbstractButton; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeBoolSpec.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeBoolSpec.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeBoolSpec.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.AbstractButton; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeFaceName.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeFaceName.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeFaceName.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.text.Document; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeFloat.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeFloat.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeFloat.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.JFormattedTextField; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeInt.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeInt.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeInt.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.JFormattedTextField; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeInvSpell.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeInvSpell.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeInvSpell.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.JComboBox; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeList.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeList.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeList.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.JComboBox; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeLong.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeLong.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeLong.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.JFormattedTextField; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeMapPath.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeMapPath.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeMapPath.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.text.Document; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeScriptFile.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeScriptFile.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeScriptFile.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.text.Document; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeSpell.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeSpell.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeSpell.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.JComboBox; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeString.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeString.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeString.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.text.Document; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeText.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeText.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeText.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.text.Document; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeTreasure.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeTreasure.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeTreasure.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.JOptionPane; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeZSpell.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/DialogAttributeZSpell.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/DialogAttributeZSpell.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import javax.swing.JComboBox; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/GameObjectAttributesDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/GameObjectAttributesDialog.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/GameObjectAttributesDialog.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.CardLayout; import java.awt.Color; @@ -66,7 +66,7 @@ import javax.swing.text.Style; import javax.swing.text.StyleConstants; import javax.swing.text.StyleContext; -import net.sf.gridarta.gui.help.Help; +import net.sf.gridarta.gui.dialog.help.Help; import net.sf.gridarta.gui.map.maptilepane.TilePanel; import net.sf.gridarta.gui.treasurelist.CFTreasureListTree; import net.sf.gridarta.gui.utils.AnimationComponent; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/GameObjectAttributesDialogFactory.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/GameObjectAttributesDialogFactory.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/GameObjectAttributesDialogFactory.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Window; import java.util.HashMap; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/GuiInfo.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/GuiInfo.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/GuiInfo.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import net.sf.gridarta.model.archetype.Archetype; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/HelpActionListener.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/HelpActionListener.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/HelpActionListener.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import java.awt.event.ActionEvent; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/MaskChangeAL.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/MaskChangeAL.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/MaskChangeAL.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Container; import java.awt.GridLayout; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/ScrollToVisibleFocusListener.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/ScrollToVisibleFocusListener.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/ScrollToVisibleFocusListener.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import java.awt.Rectangle; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/StringKeyManager.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/StringKeyManager.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/StringKeyManager.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import javax.swing.ComboBoxModel; import javax.swing.JComboBox; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/TypesBoxItemListener.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/TypesBoxItemListener.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/TypesBoxItemListener.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/ViewTreasurelistAL.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/ViewTreasurelistAL.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/gameobjectattributesdialog/ViewTreasurelistAL.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.gameobjectattributesdialog; +package net.sf.gridarta.gui.dialog.gameobjectattributesdialog; import java.awt.Component; import java.awt.event.ActionEvent; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/golocationdialog/GoLocationDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/golocationdialog/GoLocationDialog.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/golocationdialog/GoLocationDialog.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.golocationdialog; +package net.sf.gridarta.gui.dialog.golocationdialog; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; Modified: trunk/src/app/net/sf/gridarta/gui/dialog/golocationdialog/GoLocationDialogManager.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/golocationdialog/GoLocationDialogManager.java 2011-08-06 12:19:36 UTC (rev 8948) +++ trunk/src/app/net/sf/gridarta/gui/dialog/golocationdialog/GoLocationDialogManager.java 2011-08-06 12:50:44 UTC (rev 8949) @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -package net.sf.gridarta.gui.golocationdialog; +package net.sf.gridarta.gui.dialog.golocationdialog; import net.sf.gridarta.gui.map.AbstractPerMapDialogManager; import net.sf.gridarta.gui.map.mapview.MapView; Modified: trunk/src/app/net/sf/gridarta/g... [truncated message content] |
From: <aki...@us...> - 2011-08-06 12:19:43
|
Revision: 8948 http://gridarta.svn.sourceforge.net/gridarta/?rev=8948&view=rev Author: akirschbaum Date: 2011-08-06 12:19:36 +0000 (Sat, 06 Aug 2011) Log Message: ----------- Move ArchetypeTypeChecks to different package. Modified Paths: -------------- trunk/src/app/net/sf/gridarta/maincontrol/DefaultMainControl.java Added Paths: ----------- trunk/model/src/app/net/sf/gridarta/model/validation/checks/ArchetypeTypeChecks.java Removed Paths: ------------- trunk/src/app/net/sf/gridarta/gui/archetypetype/ Copied: trunk/model/src/app/net/sf/gridarta/model/validation/checks/ArchetypeTypeChecks.java (from rev 8947, trunk/src/app/net/sf/gridarta/gui/archetypetype/ArchetypeTypeChecks.java) =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/checks/ArchetypeTypeChecks.java (rev 0) +++ trunk/model/src/app/net/sf/gridarta/model/validation/checks/ArchetypeTypeChecks.java 2011-08-06 12:19:36 UTC (rev 8948) @@ -0,0 +1,251 @@ +/* + * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games. + * Copyright (C) 2000-2010 The Gridarta Developers. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +package net.sf.gridarta.model.validation.checks; + +import java.util.HashSet; +import java.util.Iterator; +import java.util.Set; +import net.sf.gridarta.model.archetype.Archetype; +import net.sf.gridarta.model.archetypetype.ArchetypeAttribute; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeAnimationName; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeBitmask; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeBool; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeBoolSpec; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeFaceName; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeFixed; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeFloat; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeInt; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeInvSpell; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeList; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeLong; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeMapPath; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeScriptFile; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeSpell; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeString; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeText; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeTreasure; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeVisitor; +import net.sf.gridarta.model.archetypetype.ArchetypeAttributeZSpell; +import net.sf.gridarta.model.archetypetype.ArchetypeType; +import net.sf.gridarta.model.archetypetype.ArchetypeTypeSet; +import net.sf.gridarta.model.archetypetype.AttributeBitmask; +import net.sf.gridarta.model.gameobject.GameObject; +import net.sf.gridarta.model.maparchobject.MapArchObject; +import org.apache.log4j.Category; +import org.apache.log4j.Logger; +import org.jetbrains.annotations.NotNull; + +/** + * Creates checks from {@link ArchetypeType ArchetypeTypes}. + * @author Andreas Kirschbaum + */ +public class ArchetypeTypeChecks { + + /** + * The logger for printing log messages. + */ + private static final Category log = Logger.getLogger(ArchetypeTypeChecks.class); + + /** + * Private constructor to prevent instantiation. + */ + private ArchetypeTypeChecks() { + } + + /** + * Adds attribute range checks for all defined attributes. + * @param attributeRangeChecker the attribute range checker to add to + * @param environmentChecker the environment checker to add to + * @param archetypeTypeSet the archetype type set to use + */ + public static <G extends GameObject<G, A, R>, A extends MapArchObject<A>, R extends Archetype<G, A, R>> void addChecks(@NotNull final ArchetypeTypeSet archetypeTypeSet, @NotNull final AttributeRangeChecker<G, A, R> attributeRangeChecker, @NotNull final EnvironmentChecker<G, A, R> environmentChecker) { + final Set<Integer> allowsAllInvTypes = new HashSet<Integer>(); + for (final ArchetypeType archetypeType : archetypeTypeSet) { + if (archetypeType.isAllowsAllInv()) { + allowsAllInvTypes.add(archetypeType.getTypeNo()); + } + } + for (final ArchetypeType archetypeType : archetypeTypeSet) { + addChecks(archetypeTypeSet, attributeRangeChecker, archetypeType); + if (!archetypeType.isMap()) { + environmentChecker.addNoMap(archetypeType); + } + final int[] types = archetypeType.getInv(); + if (types != null) { + final Set<Integer> tmp = new HashSet<Integer>(allowsAllInvTypes); + for (final int type : types) { + tmp.add(type); + } + final int[] tmp2 = new int[tmp.size()]; + final Iterator<Integer> it = tmp.iterator(); + for (int i = 0; i < tmp2.length; i++) { + tmp2[i] = it.next(); + } + assert !it.hasNext(); + environmentChecker.addInv(archetypeType, tmp2); + } + } + } + + /** + * Adds attribute range checks for all defined attributes of an {@link + * ArchetypeType}. + * @param attributeRangeChecker the attribute range checker to add to + * @param archetypeTypeSet the archetype type set to use + * @param archetypeType the archetype type + */ + private static <G extends GameObject<G, A, R>, A extends MapArchObject<A>, R extends Archetype<G, A, R>> void addChecks(@NotNull final ArchetypeTypeSet archetypeTypeSet, @NotNull final AttributeRangeChecker<G, A, R> attributeRangeChecker, @NotNull final ArchetypeType archetypeType) { + if (archetypeType.hasTypeAttributes()) { + return; // XXX: make such attributes work + } + + final ArchetypeAttributeVisitor archetypeAttributeVisitor = new ArchetypeAttributeVisitor() { + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeAnimationName archetypeAttribute) { + // XXX: missing + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeBitmask archetypeAttribute) { + final AttributeBitmask bitmask = archetypeTypeSet.getBitmask(archetypeAttribute.getBitmaskName()); + if (bitmask != null) { + try { + attributeRangeChecker.add(archetypeType.getTypeNo(), archetypeAttribute.getArchetypeAttributeName(), archetypeAttribute.getAttributeName(), 0, bitmask.getMaxValue()); + } catch (final InvalidCheckException ex) { + log.warn(ex.getMessage() + " in type " + archetypeType.getTypeNo() + "."); + } + } + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeBool archetypeAttribute) { + try { + attributeRangeChecker.add(archetypeType.getTypeNo(), archetypeAttribute.getArchetypeAttributeName(), archetypeAttribute.getAttributeName(), 0, 1); + } catch (final InvalidCheckException ex) { + log.warn(ex.getMessage() + " in type " + archetypeType.getTypeNo() + "."); + } + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeBoolSpec archetypeAttribute) { + // XXX: missing + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeFaceName archetypeAttribute) { + // XXX: missing + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeFixed archetypeAttribute) { + // XXX: missing + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeFloat archetypeAttribute) { + // XXX: missing + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeInt archetypeAttribute) { + try { + attributeRangeChecker.add(archetypeType.getTypeNo(), archetypeAttribute.getArchetypeAttributeName(), archetypeAttribute.getAttributeName(), archetypeAttribute.getMinCheckValue(), archetypeAttribute.getMaxCheckValue()); + } catch (final InvalidCheckException ex) { + log.warn(ex.getMessage() + " in type " + archetypeType.getTypeNo() + "."); + } + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeInvSpell archetypeAttribute) { + // XXX: missing + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeList archetypeAttribute) { + // XXX: missing + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeLong archetypeAttribute) { + // XXX: missing + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeMapPath archetypeAttribute) { + // XXX: missing + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeScriptFile archetypeAttribute) { + // XXX: missing + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeSpell archetypeAttribute) { + // XXX: missing + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeString archetypeAttribute) { + // XXX: missing + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeText archetypeAttribute) { + // XXX: missing + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeTreasure archetypeAttribute) { + // XXX: missing + } + + /** {@inheritDoc} */ + @Override + public void visit(@NotNull final ArchetypeAttributeZSpell archetypeAttribute) { + // XXX: missing + } + + }; + + for (final ArchetypeAttribute archetypeAttribute : archetypeType) { + archetypeAttribute.visit(archetypeAttributeVisitor); + } + } + +} // class ArchetypeTypeChecks Property changes on: trunk/model/src/app/net/sf/gridarta/model/validation/checks/ArchetypeTypeChecks.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + LF Modified: trunk/src/app/net/sf/gridarta/maincontrol/DefaultMainControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/maincontrol/DefaultMainControl.java 2011-08-04 17:49:39 UTC (rev 8947) +++ trunk/src/app/net/sf/gridarta/maincontrol/DefaultMainControl.java 2011-08-06 12:19:36 UTC (rev 8948) @@ -31,7 +31,6 @@ import javax.swing.filechooser.FileFilter; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.ParserConfigurationException; -import net.sf.gridarta.gui.archetypetype.ArchetypeTypeChecks; import net.sf.gridarta.gui.filter.FilterControl; import net.sf.gridarta.gui.map.renderer.RendererFactory; import net.sf.gridarta.gui.scripts.DefaultScriptArchEditor; @@ -93,6 +92,7 @@ import net.sf.gridarta.model.validation.DelegatingMapValidator; import net.sf.gridarta.model.validation.NoSuchValidatorException; import net.sf.gridarta.model.validation.ValidatorPreferences; +import net.sf.gridarta.model.validation.checks.ArchetypeTypeChecks; import net.sf.gridarta.model.validation.checks.AttributeRangeChecker; import net.sf.gridarta.model.validation.checks.EnvironmentChecker; import net.sf.gridarta.model.validation.checks.PaidItemShopSquareChecker; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-08-04 17:49:45
|
Revision: 8947 http://gridarta.svn.sourceforge.net/gridarta/?rev=8947&view=rev Author: akirschbaum Date: 2011-08-04 17:49:39 +0000 (Thu, 04 Aug 2011) Log Message: ----------- Add "blessed" attribute for Treasure objects. [Crossfire] Modified Paths: -------------- trunk/crossfire/ChangeLog trunk/crossfire/resource/resource/conf/types.xml Modified: trunk/crossfire/ChangeLog =================================================================== --- trunk/crossfire/ChangeLog 2011-07-20 22:37:05 UTC (rev 8946) +++ trunk/crossfire/ChangeLog 2011-08-04 17:49:39 UTC (rev 8947) @@ -1,3 +1,7 @@ +2011-08-04 Andreas Kirschbaum + + * Add "blessed" attribute for Treasure objects. + 2011-07-08 Andreas Kirschbaum * Support 'system_system_object' matcher for auto-insertion mode. Modified: trunk/crossfire/resource/resource/conf/types.xml =================================================================== --- trunk/crossfire/resource/resource/conf/types.xml 2011-07-20 22:37:05 UTC (rev 8946) +++ trunk/crossfire/resource/resource/conf/types.xml 2011-08-04 17:49:39 UTC (rev 8947) @@ -5369,6 +5369,9 @@ (Example for comparison: Shop floors generate treasure of <quality level> 5 per default). </attribute> + <attribute arch="blessed" editor="no bad/cursed items" type="bool"> + If checked, no bad or cursed items will be generated. + </attribute> </type> <!--####################################################################--> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-07-20 22:37:11
|
Revision: 8946 http://gridarta.svn.sourceforge.net/gridarta/?rev=8946&view=rev Author: akirschbaum Date: 2011-07-20 22:37:05 +0000 (Wed, 20 Jul 2011) Log Message: ----------- Remove unused parameter. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/resource/DefaultResources.java Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/resource/DefaultResources.java =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/resource/DefaultResources.java 2011-07-16 11:48:32 UTC (rev 8945) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/resource/DefaultResources.java 2011-07-20 22:37:05 UTC (rev 8946) @@ -119,7 +119,7 @@ @Override protected void readFilesInt(@NotNull final GlobalSettings globalSettings, @NotNull final ErrorView errorView, @NotNull final List<GameObject> invObjects) { faceObjectProviders.setNormal(new FilesResourcesReader(globalSettings.getArchDirectory(), globalSettings.getCollectedDirectory(), archetypeSet, archetypeParser, faceObjects, animationObjects, archFaceProvider).read(errorView, invObjects)); - loadArtifacts(errorView, invObjects, globalSettings.getCollectedDirectory(), globalSettings.getMapsDirectory()); + loadArtifacts(errorView, invObjects, globalSettings.getCollectedDirectory()); } /** @@ -128,7 +128,7 @@ @Override protected void readCollectedInt(@NotNull final GlobalSettings globalSettings, @NotNull final ErrorView errorView, @NotNull final List<GameObject> invObjects) { faceObjectProviders.setNormal(new CollectedResourcesReader(globalSettings.getCollectedDirectory(), archetypeSet, archetypeParser, faceObjects, animationObjects).read(errorView, invObjects)); - loadArtifacts(errorView, invObjects, globalSettings.getCollectedDirectory(), globalSettings.getMapsDirectory()); + loadArtifacts(errorView, invObjects, globalSettings.getCollectedDirectory()); } /** @@ -148,9 +148,8 @@ * @param errorView the error view for reporting problems * @param invObjects the created archetypes * @param collectedDirectory the collected directory - * @param mapsDirectory the maps directory */ - private void loadArtifacts(@NotNull final ErrorView errorView, @NotNull final List<GameObject> invObjects, @NotNull final File collectedDirectory, @NotNull final File mapsDirectory) { + private void loadArtifacts(@NotNull final ErrorView errorView, @NotNull final List<GameObject> invObjects, @NotNull final File collectedDirectory) { final ArtifactParser<GameObject, MapArchObject, Archetype> artifactParser = new ArtifactParser<GameObject, MapArchObject, Archetype>(archetypeSet, errorView, archetypeParser, invObjects); final File artifactsFile = new File(collectedDirectory, IGUIConstants.ARTIFACTS_FILE); artifactParser.loadArchesFromArtifacts(artifactsFile, "Artifacts", "artifacts"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-07-16 11:48:38
|
Revision: 8945 http://gridarta.svn.sourceforge.net/gridarta/?rev=8945&view=rev Author: akirschbaum Date: 2011-07-16 11:48:32 +0000 (Sat, 16 Jul 2011) Log Message: ----------- Support 'z' attribute for objects within spawn points. [Atrinik] Modified Paths: -------------- trunk/atrinik/ChangeLog trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java Modified: trunk/atrinik/ChangeLog =================================================================== --- trunk/atrinik/ChangeLog 2011-07-16 11:44:46 UTC (rev 8944) +++ trunk/atrinik/ChangeLog 2011-07-16 11:48:32 UTC (rev 8945) @@ -1,5 +1,7 @@ 2011-07-16 Andreas Kirschbaum + * Support 'z' attribute for objects within spawn points. + * Support 'rotate' attribute in map renderer. 2011-07-08 Andreas Kirschbaum Modified: trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java 2011-07-16 11:44:46 UTC (rev 8944) +++ trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java 2011-07-16 11:48:32 UTC (rev 8945) @@ -582,7 +582,8 @@ if (!inSpawnPoint && isSpawnPoint(head)) { final G mob = head.getFirst(); if (mob != null) { - paintGameObject(g, xStart, yStart, mob, true); + final int yOffset = mob.getAttributeInt(DefaultIsoGameObject.Z); + paintGameObject(g, xStart, yStart - yOffset, mob, true); } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-07-16 11:44:52
|
Revision: 8944 http://gridarta.svn.sourceforge.net/gridarta/?rev=8944&view=rev Author: akirschbaum Date: 2011-07-16 11:44:46 +0000 (Sat, 16 Jul 2011) Log Message: ----------- Disable warning. Modified Paths: -------------- trunk/gridarta.ipr Modified: trunk/gridarta.ipr =================================================================== --- trunk/gridarta.ipr 2011-07-16 11:42:53 UTC (rev 8943) +++ trunk/gridarta.ipr 2011-07-16 11:44:46 UTC (rev 8944) @@ -389,7 +389,7 @@ <inspection_tool class="ConstantNamingConvention" enabled="true" level="WARNING" enabled_by_default="true"> <option name="onlyCheckImmutables" value="true" /> <option name="m_regex" value="[A-Z_\d]*" /> - <option name="m_minLength" value="3" /> + <option name="m_minLength" value="1" /> <option name="m_maxLength" value="64" /> </inspection_tool> <inspection_tool class="ConstantValueVariableUse" enabled="true" level="WARNING" enabled_by_default="true" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-07-16 11:43:02
|
Revision: 8943 http://gridarta.svn.sourceforge.net/gridarta/?rev=8943&view=rev Author: akirschbaum Date: 2011-07-16 11:42:53 +0000 (Sat, 16 Jul 2011) Log Message: ----------- Replace string constants with named constants. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/model/archetype/DefaultArchetype.java trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/model/gameobject/GameObject.java trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/map/renderer/FlatMapRenderer.java trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/map/renderer/SimpleFlatMapRenderer.java trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/map/renderer/SmoothingRenderer.java trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/model/gameobject/GameObject.java trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/model/archetype/DefaultArchetype.java trunk/model/src/app/net/sf/gridarta/model/baseobject/AbstractBaseObject.java trunk/model/src/app/net/sf/gridarta/model/baseobject/BaseObject.java trunk/model/src/app/net/sf/gridarta/model/exitconnector/ExitLocation.java trunk/model/src/app/net/sf/gridarta/model/exitconnector/ExitMatcher.java trunk/model/src/app/net/sf/gridarta/model/gameobject/DefaultIsoGameObject.java trunk/model/src/app/net/sf/gridarta/model/validation/checks/BlockedMatrix.java trunk/model/src/app/net/sf/gridarta/model/validation/checks/BlockedMobOrSpawnPointChecker.java trunk/model/src/app/net/sf/gridarta/model/validation/checks/BlockedSpawnPointChecker.java trunk/model/src/app/net/sf/gridarta/model/validation/checks/BlockedSquareChecker.java trunk/model/src/app/net/sf/gridarta/model/validation/checks/ConnectedPickableChecker.java trunk/model/src/app/net/sf/gridarta/model/validation/checks/DoubleLayerChecker.java trunk/model/src/app/net/sf/gridarta/model/validation/checks/Entry.java trunk/model/src/app/net/sf/gridarta/model/validation/checks/ExitChecker.java trunk/model/src/app/net/sf/gridarta/model/validation/checks/SlayingChecker.java trunk/model/src/app/net/sf/gridarta/model/validation/checks/SysObjectNotOnLayerZeroChecker.java trunk/model/src/app/net/sf/gridarta/model/validation/checks/UnsetSlayingChecker.java trunk/model/src/app/net/sf/gridarta/model/validation/errors/SysObjectNotOnLayerZeroError.java trunk/model/src/test/net/sf/gridarta/model/baseobject/AbstractBaseObjectTest.java trunk/src/app/net/sf/gridarta/gui/connectionview/LockedItemsView.java trunk/src/app/net/sf/gridarta/gui/connectionview/MonsterView.java trunk/src/app/net/sf/gridarta/gui/gameobjectattributespanel/FaceTab.java trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapLocation.java trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java trunk/src/app/net/sf/gridarta/gui/map/renderer/IsoMapRenderer.java trunk/src/app/net/sf/gridarta/gui/map/renderer/IsoPickmapRenderer.java trunk/src/test/net/sf/gridarta/actions/ExitConnectorActionsTest.java trunk/src/test/net/sf/gridarta/actions/UndoActionsTest.java Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/model/archetype/DefaultArchetype.java =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/model/archetype/DefaultArchetype.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/model/archetype/DefaultArchetype.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -62,7 +62,7 @@ */ @Override public boolean usesDirection() { - return getAttributeInt("is_turnable") != 0 || getAttributeInt("is_animated") != 0; + return getAttributeInt(IS_TURNABLE) != 0 || getAttributeInt(IS_ANIMATED) != 0; } /** Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/model/gameobject/GameObject.java =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/model/gameobject/GameObject.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/model/gameobject/GameObject.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -44,12 +44,6 @@ public class GameObject extends DefaultIsoGameObject<GameObject, MapArchObject, Archetype> { /** - * The name of the "z" attribute. - */ - @NotNull - public static final String Z_ATTRIBUTE = "z"; - - /** * The serial version UID. */ private static final long serialVersionUID = 1L; @@ -103,11 +97,11 @@ */ @Override public void propagateElevation(@NotNull final BaseObject<?, ?, ?, ?> gameObject) { - if (getAttributeInt(Z_ATTRIBUTE) == 0) { - final int elevation = gameObject.getAttributeInt(Z_ATTRIBUTE, false); - setAttributeInt(Z_ATTRIBUTE, elevation); + if (getAttributeInt(Z) == 0) { + final int elevation = gameObject.getAttributeInt(Z, false); + setAttributeInt(Z, elevation); } - gameObject.removeAttribute(Z_ATTRIBUTE); + gameObject.removeAttribute(Z); } /** @@ -147,7 +141,7 @@ @NotNull @Override public ImageIcon getImage(@NotNull final MapViewSettings mapViewSettings) { - final boolean drawDouble = getAttributeInt("draw_double_always") != 0 || (mapViewSettings.isDoubleFaces() && getAttributeInt("draw_double") != 0); + final boolean drawDouble = getAttributeInt(DRAW_DOUBLE_ALWAYS) != 0 || (mapViewSettings.isDoubleFaces() && getAttributeInt(DRAW_DOUBLE) != 0); if (mapViewSettings.isAlphaType(getEditType())) { if (drawDouble) { return getTransparentDoubleImage(); Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/map/renderer/FlatMapRenderer.java =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/map/renderer/FlatMapRenderer.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/map/renderer/FlatMapRenderer.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -305,14 +305,14 @@ final int borderOffsetY = getBorderOffsetY(); int layer = -1; for (final GameObject node : square) { - if (node.getAttributeInt("invisible", true) == 0) { + if (node.getAttributeInt(GameObject.INVISIBLE, true) == 0) { layer++; } filterControl.objectInSquare(filterState, node); if (filterControl.canShow(node) && mapViewSettings.isEditType(node)) { paintGameObject(g, x, y, node); - if (node.getAttributeInt("smoothlevel", true) > 0) { - smoothingRenderer.paintSmooth(g, square.getMapX(), square.getMapY(), node.getAttributeInt("smoothlevel", true), layer, false, borderOffsetX, borderOffsetY); + if (node.getAttributeInt(GameObject.SMOOTHLEVEL, true) > 0) { + smoothingRenderer.paintSmooth(g, square.getMapX(), square.getMapY(), node.getAttributeInt(GameObject.SMOOTHLEVEL, true), layer, false, borderOffsetX, borderOffsetY); } } } Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/map/renderer/SimpleFlatMapRenderer.java =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/map/renderer/SimpleFlatMapRenderer.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/map/renderer/SimpleFlatMapRenderer.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -152,7 +152,7 @@ int layer = -1; for (final BaseObject<?, ?, ?, ?> node : mapModel.getMapSquare(point)) { - if (node.getAttributeInt("invisible", true) == 0) { + if (node.getAttributeInt(GameObject.INVISIBLE, true) == 0) { layer++; } final ImageIcon img = node.getNormalImage(); @@ -165,8 +165,8 @@ offset.y = IGUIConstants.SQUARE_HEIGHT * (node.getArchetype().getMultiY() - node.getMinY()); } graphics.drawImage(img.getImage(), point.x * IGUIConstants.SQUARE_WIDTH, point.y * IGUIConstants.SQUARE_HEIGHT, point.x * IGUIConstants.SQUARE_WIDTH + IGUIConstants.SQUARE_WIDTH, point.y * IGUIConstants.SQUARE_HEIGHT + IGUIConstants.SQUARE_HEIGHT, offset.x, offset.y, offset.x + IGUIConstants.SQUARE_WIDTH, offset.y + IGUIConstants.SQUARE_HEIGHT, this); - if (node.getAttributeInt("smoothlevel", true) > 0) { - smoothingRenderer.paintSmooth(graphics, point.x, point.y, node.getAttributeInt("smoothlevel", true), layer, false, 0, 0); + if (node.getAttributeInt(GameObject.SMOOTHLEVEL, true) > 0) { + smoothingRenderer.paintSmooth(graphics, point.x, point.y, node.getAttributeInt(GameObject.SMOOTHLEVEL, true), layer, false, 0, 0); } } if (layer > -1) { Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/map/renderer/SmoothingRenderer.java =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/map/renderer/SmoothingRenderer.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/gui/map/renderer/SmoothingRenderer.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -129,11 +129,11 @@ if (mapArchObject.isPointValid(where)) { int currentLayer = -1; for (final net.sf.gridarta.model.gameobject.GameObject<GameObject, MapArchObject, Archetype> node : mapModel.getMapSquare(where)) { - if (node.getAttributeInt("invisible", true) == 0) { + if (node.getAttributeInt(GameObject.INVISIBLE, true) == 0) { currentLayer++; if (currentLayer == layer) { foundLayer = true; - if (node.getAttributeInt("smoothlevel", true) > 0) { + if (node.getAttributeInt(GameObject.SMOOTHLEVEL, true) > 0) { layerNode[deltaX + 1][deltaY + 1] = node; } break; @@ -154,7 +154,7 @@ //noinspection AssignmentToNull sFaces[i] = null; /*black picture*/ } else { - final int smoothlevel = node.getAttributeInt("smoothlevel", true); + final int smoothlevel = node.getAttributeInt(GameObject.SMOOTHLEVEL, true); if (smoothlevel <= level) { sLevels[i] = 0; //false warning: cannot annotate with @Nullable Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/model/gameobject/GameObject.java =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/model/gameobject/GameObject.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/model/gameobject/GameObject.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -54,6 +54,18 @@ public static final String ELEVATION = "elevation"; /** + * The name of the "invisible" attribute. + */ + @NotNull + public static final String INVISIBLE = "invisible"; + + /** + * The name of the "smoothlevel" attribute. + */ + @NotNull + public static final String SMOOTHLEVEL = "smoothlevel"; + + /** * Creates a new instance. * @param archetype the base archetype * @param faceObjectProviders the face object providers for looking up Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/model/archetype/DefaultArchetype.java =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/model/archetype/DefaultArchetype.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/model/archetype/DefaultArchetype.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -62,7 +62,7 @@ */ @Override public boolean usesDirection() { - return getAttributeInt("is_turnable") != 0 || getAttributeInt("is_animated") != 0; + return getAttributeInt(IS_TURNABLE) != 0 || getAttributeInt(IS_ANIMATED) != 0; } /** Modified: trunk/model/src/app/net/sf/gridarta/model/baseobject/AbstractBaseObject.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/baseobject/AbstractBaseObject.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/baseobject/AbstractBaseObject.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -1043,7 +1043,7 @@ @Override public void setObjectFace() { @Nullable String effectiveAnimName; - if (getAttributeInt("is_animated") == 0 && getAttributeInt("is_turnable") == 0) { + if (getAttributeInt(IS_ANIMATED) == 0 && getAttributeInt(IS_TURNABLE) == 0) { effectiveAnimName = null; faceObjSource = FaceSource.ANIM; } else if (animName != null) { Modified: trunk/model/src/app/net/sf/gridarta/model/baseobject/BaseObject.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/baseobject/BaseObject.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/baseobject/BaseObject.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -71,6 +71,72 @@ String TITLE = "title"; /** + * The attribute name of the "is_animated" flag. + */ + @NotNull + String IS_ANIMATED = "is_animated"; + + /** + * The name of the "is_turnable" attribute. + */ + @NotNull + String IS_TURNABLE = "is_turnable"; + + /** + * The attribute name of the "hp" attribute. + */ + @NotNull + String HP = "hp"; + + /** + * The attribute name of the "sp" attribute. + */ + @NotNull + String SP = "sp"; + + /** + * The name of the "no_pass" attribute. + */ + @NotNull + String NO_PASS = "no_pass"; + + /** + * The name of the "no_pick" attribute. + */ + @NotNull + String NO_PICK = "no_pick"; + + /** + * The name of the "level" attribute. + */ + @NotNull + String LEVEL = "level"; + + /** + * The name of the "slaying" attribute. + */ + @NotNull + String SLAYING = "slaying"; + + /** + * The name of the "last_heal" attribute. + */ + @NotNull + String LAST_HEAL = "last_heal"; + + /** + * The name of the "blocksview" attribute. + */ + @NotNull + String BLOCKSVIEW = "blocksview"; + + /** + * The name of the "anim_speed" attribute. + */ + @NotNull + String ANIM_SPEED = "anim_speed"; + + /** * Returns the type number of this Archetype. * @return the type number of this archetype */ Modified: trunk/model/src/app/net/sf/gridarta/model/exitconnector/ExitLocation.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/exitconnector/ExitLocation.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/exitconnector/ExitLocation.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -109,9 +109,9 @@ mapPath = targetMapPath; } } - gameObject.setAttributeString("slaying", mapPath); - gameObject.setAttributeInt("hp", x); - gameObject.setAttributeInt("sp", y); + gameObject.setAttributeString(BaseObject.SLAYING, mapPath); + gameObject.setAttributeInt(BaseObject.HP, x); + gameObject.setAttributeInt(BaseObject.SP, y); if (updateName) { gameObject.setAttributeString(BaseObject.NAME, mapName); } Modified: trunk/model/src/app/net/sf/gridarta/model/exitconnector/ExitMatcher.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/exitconnector/ExitMatcher.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/exitconnector/ExitMatcher.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -21,6 +21,7 @@ import java.awt.Point; import net.sf.gridarta.model.archetype.Archetype; +import net.sf.gridarta.model.baseobject.BaseObject; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; import net.sf.gridarta.model.mapmodel.MapModel; @@ -135,7 +136,7 @@ * @return whether the game object has "slaying" set */ private boolean isValidExit(@NotNull final GameObject<G, A, R> gameObject) { - return isExit(gameObject) && gameObject.hasAttribute("slaying"); + return isExit(gameObject) && gameObject.hasAttribute(BaseObject.SLAYING); } /** Modified: trunk/model/src/app/net/sf/gridarta/model/gameobject/DefaultIsoGameObject.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/gameobject/DefaultIsoGameObject.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/gameobject/DefaultIsoGameObject.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -39,6 +39,60 @@ private static final long serialVersionUID = 1L; /** + * The name of the "z" attribute. + */ + @NotNull + public static final String Z = "z"; + + /** + * The name of the "layer" attribute. + */ + @NotNull + public static final String LAYER = "layer"; + + /** + * The name of the "sys_object" attribute. + */ + @NotNull + public static final String SYS_OBJECT = "sys_object"; + + /** + * The name of the "draw_double_always" attribute. + */ + @NotNull + public static final String DRAW_DOUBLE_ALWAYS = "draw_double_always"; + + /** + * The name of the "draw_double" attribute. + */ + @NotNull + public static final String DRAW_DOUBLE = "draw_double"; + + /** + * The name of the "align" attribute. + */ + @NotNull + public static final String ALIGN = "align"; + + /** + * The name of the "zoom" attribute. + */ + @NotNull + public static final String ZOOM = "zoom"; + + /** + * The name of the "alpha" attribute. + */ + @NotNull + public static final String ALPHA = "alpha"; + + /** + * The name of the "rotate" attribute. + */ + @NotNull + public static final String ROTATE = "rotate"; + + /** * The {@link FaceObjectProviders} for looking up faces. */ @NotNull @@ -82,7 +136,7 @@ */ @Override public boolean usesDirection() { - return getAttributeInt("is_turnable") != 0 || getAttributeInt("is_animated") != 0; + return getAttributeInt(IS_TURNABLE) != 0 || getAttributeInt(IS_ANIMATED) != 0; } /** Modified: trunk/model/src/app/net/sf/gridarta/model/validation/checks/BlockedMatrix.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/checks/BlockedMatrix.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/validation/checks/BlockedMatrix.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -54,7 +54,7 @@ for (pos.y = 0; pos.y < height; pos.y++) { for (pos.x = 0; pos.x < width; pos.x++) { for (final BaseObject<G, A, R, ?> gameObject : mapModel.getMapSquare(pos)) { - if (gameObject.getAttributeInt("no_pass") != 0) { + if (gameObject.getAttributeInt(BaseObject.NO_PASS) != 0) { blocked[pos.x][pos.y] = true; break; } Modified: trunk/model/src/app/net/sf/gridarta/model/validation/checks/BlockedMobOrSpawnPointChecker.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/checks/BlockedMobOrSpawnPointChecker.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/validation/checks/BlockedMobOrSpawnPointChecker.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -25,6 +25,7 @@ import java.util.HashSet; import java.util.List; import net.sf.gridarta.model.archetype.Archetype; +import net.sf.gridarta.model.baseobject.BaseObject; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; import net.sf.gridarta.model.mapmodel.MapSquare; @@ -78,7 +79,7 @@ for (final G gameObject : mapSquare) { if (typeNumbers.contains(gameObject.getTypeNo())) { mobsOrSpawnPoints.add(gameObject); - } else if (gameObject.getAttributeInt("no_pass", true) == 1) { + } else if (gameObject.getAttributeInt(BaseObject.NO_PASS, true) == 1) { blockers.add(gameObject); } } Modified: trunk/model/src/app/net/sf/gridarta/model/validation/checks/BlockedSpawnPointChecker.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/checks/BlockedSpawnPointChecker.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/validation/checks/BlockedSpawnPointChecker.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -24,6 +24,7 @@ import java.util.Collection; import java.util.HashSet; import net.sf.gridarta.model.archetype.Archetype; +import net.sf.gridarta.model.baseobject.BaseObject; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; import net.sf.gridarta.model.mapmodel.MapModel; @@ -117,7 +118,7 @@ return; } - final int spawnRange = Math.min(head.getAttributeInt("last_heal"), freeArrX.length); + final int spawnRange = Math.min(head.getAttributeInt(BaseObject.LAST_HEAL), freeArrX.length); for (int i = 0; i < spawnRange; i++) { if (!blocked.isBlocked(pos.x + freeArrX[i], pos.y + freeArrY[i])) { return; Modified: trunk/model/src/app/net/sf/gridarta/model/validation/checks/BlockedSquareChecker.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/checks/BlockedSquareChecker.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/validation/checks/BlockedSquareChecker.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -126,10 +126,10 @@ boolean blocksView = false; for (final BaseObject<?, ?, ?, ?> gameObject : square) { if (!noPass) { - noPass = gameObject.getAttributeInt("no_pass") == 1; + noPass = gameObject.getAttributeInt(BaseObject.NO_PASS) == 1; } if (!blocksView) { - blocksView = gameObject.getAttributeInt("blocksview") == 1; + blocksView = gameObject.getAttributeInt(BaseObject.BLOCKSVIEW) == 1; } if (noPass && blocksView) { return true; Modified: trunk/model/src/app/net/sf/gridarta/model/validation/checks/ConnectedPickableChecker.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/checks/ConnectedPickableChecker.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/validation/checks/ConnectedPickableChecker.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -20,6 +20,7 @@ package net.sf.gridarta.model.validation.checks; import net.sf.gridarta.model.archetype.Archetype; +import net.sf.gridarta.model.baseobject.BaseObject; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; import net.sf.gridarta.model.validation.AbstractValidator; @@ -49,7 +50,7 @@ @Override public void validateGameObject(@NotNull final G gameObject, @NotNull final ErrorCollector<G, A, R> errorCollector) { final GameObject<G, A, R> head = gameObject.getHead(); - final boolean pickable = head.getAttributeInt("no_pick", true) == 0; + final boolean pickable = head.getAttributeInt(BaseObject.NO_PICK, true) == 0; final CharSequence connection = head.getAttributeString("connected", true); final boolean connected = connection.length() > 0; if (connected && pickable) { Modified: trunk/model/src/app/net/sf/gridarta/model/validation/checks/DoubleLayerChecker.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/checks/DoubleLayerChecker.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/validation/checks/DoubleLayerChecker.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -22,6 +22,7 @@ import java.util.HashMap; import java.util.Map; import net.sf.gridarta.model.archetype.Archetype; +import net.sf.gridarta.model.gameobject.DefaultIsoGameObject; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; import net.sf.gridarta.model.mapmodel.MapSquare; @@ -55,7 +56,7 @@ final Map<Integer, G> gameObjects = new HashMap<Integer, G>(); final Map<Integer, DoubleLayerError<G, A, R>> errors = new HashMap<Integer, DoubleLayerError<G, A, R>>(); for (final G gameObject : mapSquare) { - final int layer = gameObject.getHead().getAttributeInt("layer", true); + final int layer = gameObject.getHead().getAttributeInt(DefaultIsoGameObject.LAYER, true); if (layer == 0) { // ignore layer 0 } else { Modified: trunk/model/src/app/net/sf/gridarta/model/validation/checks/Entry.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/checks/Entry.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/validation/checks/Entry.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -21,6 +21,7 @@ import java.util.regex.Pattern; import net.sf.gridarta.model.archetype.Archetype; +import net.sf.gridarta.model.baseobject.BaseObject; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; import net.sf.gridarta.model.match.GameObjectMatcher; @@ -68,7 +69,7 @@ return false; } - final CharSequence slaying = gameObject.getAttributeString("slaying", true); + final CharSequence slaying = gameObject.getAttributeString(BaseObject.SLAYING, true); if (!regex.matcher(slaying).matches()) { errorCollector.collect(new EnvironmentSensorSlayingError<G, A, R>(gameObject)); } Modified: trunk/model/src/app/net/sf/gridarta/model/validation/checks/ExitChecker.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/checks/ExitChecker.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/validation/checks/ExitChecker.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -21,6 +21,7 @@ import java.io.File; import net.sf.gridarta.model.archetype.Archetype; +import net.sf.gridarta.model.baseobject.BaseObject; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; import net.sf.gridarta.model.mapmodel.MapSquare; @@ -70,7 +71,7 @@ return; } - final String path = gameObject.getAttributeString("slaying", false); + final String path = gameObject.getAttributeString(BaseObject.SLAYING, false); if (path.length() <= 0 || path.equals("/!") || path.startsWith("/random/")) { return; } Modified: trunk/model/src/app/net/sf/gridarta/model/validation/checks/SlayingChecker.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/checks/SlayingChecker.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/validation/checks/SlayingChecker.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -23,6 +23,7 @@ import java.util.Collection; import java.util.regex.Pattern; import net.sf.gridarta.model.archetype.Archetype; +import net.sf.gridarta.model.baseobject.BaseObject; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; import net.sf.gridarta.model.match.GameObjectMatcher; @@ -86,7 +87,7 @@ } if (useDefaultRegex) { - final CharSequence slaying = gameObject.getAttributeString("slaying", true); + final CharSequence slaying = gameObject.getAttributeString(BaseObject.SLAYING, true); if (!defaultRegex.matcher(slaying).matches()) { errorCollector.collect(new SlayingError<G, A, R>(gameObject)); } Modified: trunk/model/src/app/net/sf/gridarta/model/validation/checks/SysObjectNotOnLayerZeroChecker.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/checks/SysObjectNotOnLayerZeroChecker.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/validation/checks/SysObjectNotOnLayerZeroChecker.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -20,6 +20,7 @@ package net.sf.gridarta.model.validation.checks; import net.sf.gridarta.model.archetype.Archetype; +import net.sf.gridarta.model.gameobject.DefaultIsoGameObject; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; import net.sf.gridarta.model.validation.AbstractValidator; @@ -49,7 +50,7 @@ @Override public void validateGameObject(@NotNull final G gameObject, @NotNull final ErrorCollector<G, A, R> errorCollector) { final GameObject<G, A, R> head = gameObject.getHead(); - if (head.getAttributeInt("sys_object", true) == 1 && head.getAttributeInt("layer", true) != 0) { + if (head.getAttributeInt(DefaultIsoGameObject.SYS_OBJECT, true) == 1 && head.getAttributeInt(DefaultIsoGameObject.LAYER, true) != 0) { errorCollector.collect(new SysObjectNotOnLayerZeroError<G, A, R>(gameObject)); } } Modified: trunk/model/src/app/net/sf/gridarta/model/validation/checks/UnsetSlayingChecker.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/checks/UnsetSlayingChecker.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/validation/checks/UnsetSlayingChecker.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -23,6 +23,7 @@ import java.util.Collection; import java.util.HashSet; import net.sf.gridarta.model.archetype.Archetype; +import net.sf.gridarta.model.baseobject.BaseObject; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; import net.sf.gridarta.model.validation.AbstractValidator; @@ -75,9 +76,9 @@ @Override public void validateGameObject(@NotNull final G gameObject, @NotNull final ErrorCollector<G, A, R> errorCollector) { if (typeNumbers.contains(gameObject.getTypeNo())) { - final String slayingArchetype = gameObject.getArchetype().getAttributeString("slaying"); + final String slayingArchetype = gameObject.getArchetype().getAttributeString(BaseObject.SLAYING); if (!allowedValues.contains(slayingArchetype)) { - final String slayingObject = gameObject.getAttributeString("slaying"); + final String slayingObject = gameObject.getAttributeString(BaseObject.SLAYING); if (slayingArchetype.equals(slayingObject)) { errorCollector.collect(new UnsetSlayingError<G, A, R>(gameObject)); } Modified: trunk/model/src/app/net/sf/gridarta/model/validation/errors/SysObjectNotOnLayerZeroError.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/validation/errors/SysObjectNotOnLayerZeroError.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/app/net/sf/gridarta/model/validation/errors/SysObjectNotOnLayerZeroError.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -22,6 +22,7 @@ import java.awt.Component; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.baseobject.BaseObject; +import net.sf.gridarta.model.gameobject.DefaultIsoGameObject; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; import org.jetbrains.annotations.NotNull; @@ -53,7 +54,7 @@ public void correct(@NotNull final Component parentComponent) { // TODO: Ask user for (final BaseObject<G, A, R, ?> gameObject : getGameObjects()) { - gameObject.setAttributeInt("layer", 0); + gameObject.setAttributeInt(DefaultIsoGameObject.LAYER, 0); } } Modified: trunk/model/src/test/net/sf/gridarta/model/baseobject/AbstractBaseObjectTest.java =================================================================== --- trunk/model/src/test/net/sf/gridarta/model/baseobject/AbstractBaseObjectTest.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/model/src/test/net/sf/gridarta/model/baseobject/AbstractBaseObjectTest.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -57,7 +57,7 @@ final FaceObjectProviders faceObjectProviders = newFaceObjectProviders(); final TestArchetype archetype = newArchetype("arch", null, faceObjectProviders, animationObjects); Assert.assertNull(archetype.getFaceName()); - archetype.setAttributeString(BaseObject.FACE, "arch_face"); + archetype.setAttributeString("face", "arch_face"); Assert.assertEquals("arch_face", archetype.getFaceName()); final GameObject<TestGameObject, TestMapArchObject, TestArchetype> gameObject = newGameObject(archetype, "test", faceObjectProviders, animationObjects); @@ -71,7 +71,7 @@ // set face by text change gameObject.setAttributeString("face1", "face1"); Assert.assertNull(gameObject.getFaceName()); - gameObject.setAttributeString(BaseObject.FACE, "face2"); + gameObject.setAttributeString("face", "face2"); Assert.assertEquals("face2", gameObject.getFaceName()); gameObject.setAttributeString("face2", "face3"); Assert.assertEquals("face2", gameObject.getFaceName()); @@ -253,7 +253,7 @@ } /** - * Checks that caching the {@link BaseObject#TYPE} attribute does work. + * Checks that caching the "type" attribute does work. */ @Test public void testType1() { @@ -262,16 +262,16 @@ final TestArchetype archetype = newArchetype("arch", null, faceObjectProviders, animationObjects); final GameObject<TestGameObject, TestMapArchObject, TestArchetype> gameObject = newGameObject(archetype, "test", faceObjectProviders, animationObjects); checkType(gameObject, 0); - gameObject.setAttributeString(BaseObject.TYPE, "3"); + gameObject.setAttributeString("type", "3"); checkType(gameObject, 3); - gameObject.removeAttribute(BaseObject.TYPE); + gameObject.removeAttribute("type"); checkType(gameObject, 0); gameObject.setObjectText("type 3"); checkType(gameObject, 3); } /** - * Checks that caching the {@link BaseObject#NAME} attribute does work. + * Checks that caching the "type" attribute does work. */ @Test public void testType2() { @@ -280,14 +280,14 @@ final TestArchetype archetype = newArchetype("arch", "type 2", faceObjectProviders, animationObjects); final GameObject<TestGameObject, TestMapArchObject, TestArchetype> gameObject = newGameObject(archetype, "test", faceObjectProviders, animationObjects); checkType(gameObject, 2); - gameObject.setAttributeString(BaseObject.TYPE, "3"); + gameObject.setAttributeString("type", "3"); checkType(gameObject, 3); - gameObject.removeAttribute(BaseObject.TYPE); + gameObject.removeAttribute("type"); checkType(gameObject, 2); } /** - * Checks that caching the {@link BaseObject#TYPE} attribute does work. + * Checks that caching the "type" attribute does work. */ @Test public void testType3() { @@ -299,11 +299,11 @@ checkType(gameObject, 1); gameObject.setArchetype(archetype2); checkType(gameObject, 2); - gameObject.setAttributeString(BaseObject.TYPE, "4"); + gameObject.setAttributeString("type", "4"); checkType(gameObject, 4); gameObject.setArchetype(archetype1); checkType(gameObject, 4); - gameObject.removeAttribute(BaseObject.TYPE); + gameObject.removeAttribute("type"); checkType(gameObject, 1); } @@ -319,7 +319,7 @@ } /** - * Checks that caching the {@link BaseObject#NAME} attribute does work. + * Checks that caching the "name" attribute does work. */ @Test public void testName1() { @@ -328,16 +328,16 @@ final TestArchetype archetype = newArchetype("arch", null, faceObjectProviders, animationObjects); final BaseObject<?, ?, ?, ?> gameObject = new TestGameObject(archetype, faceObjectProviders, animationObjects); checkName(gameObject, "arch", ""); - gameObject.setAttributeString(BaseObject.NAME, "3"); + gameObject.setAttributeString("name", "3"); checkName(gameObject, "3", "3"); - gameObject.removeAttribute(BaseObject.NAME); + gameObject.removeAttribute("name"); checkName(gameObject, "arch", ""); gameObject.setObjectText("name 3"); checkName(gameObject, "3", "3"); } /** - * Checks that caching the {@link BaseObject#NAME} attribute does work. + * Checks that caching the "name" attribute does work. */ @Test public void testName2() { @@ -346,14 +346,14 @@ final TestArchetype archetype = newArchetype("arch", "name 2", faceObjectProviders, animationObjects); final BaseObject<?, ?, ?, ?> gameObject = new TestGameObject(archetype, faceObjectProviders, animationObjects); checkName(gameObject, "2", "2"); - gameObject.setAttributeString(BaseObject.NAME, "3"); + gameObject.setAttributeString("name", "3"); checkName(gameObject, "3", "3"); - gameObject.removeAttribute(BaseObject.NAME); + gameObject.removeAttribute("name"); checkName(gameObject, "2", "2"); } /** - * Checks that caching the {@link BaseObject#NAME} attribute does work. + * Checks that caching the "name" attribute does work. */ @Test public void testName3() { @@ -365,11 +365,11 @@ checkName(gameObject, "1", "1"); gameObject.setArchetype(archetype2); checkName(gameObject, "2", "2"); - gameObject.setAttributeString(BaseObject.NAME, "4"); + gameObject.setAttributeString("name", "4"); checkName(gameObject, "4", "4"); gameObject.setArchetype(archetype1); checkName(gameObject, "4", "4"); - gameObject.removeAttribute(BaseObject.NAME); + gameObject.removeAttribute("name"); checkName(gameObject, "1", "1"); } Modified: trunk/src/app/net/sf/gridarta/gui/connectionview/LockedItemsView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/connectionview/LockedItemsView.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/src/app/net/sf/gridarta/gui/connectionview/LockedItemsView.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -78,7 +78,7 @@ */ private void scanGameObject(@NotNull final GameObject<G, A, R> gameObject) { if (typeNumbers.contains(gameObject.getTypeNo())) { - final String slayingSpec = gameObject.getAttributeString("slaying"); + final String slayingSpec = gameObject.getAttributeString(BaseObject.SLAYING); if (slayingSpec.length() > 0) { addConnection(slayingSpec, gameObject); } Modified: trunk/src/app/net/sf/gridarta/gui/connectionview/MonsterView.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/connectionview/MonsterView.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/src/app/net/sf/gridarta/gui/connectionview/MonsterView.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -24,6 +24,7 @@ import net.sf.gridarta.gui.delayedmapmodel.DelayedMapModelListenerManager; import net.sf.gridarta.gui.map.mapview.MapViewManager; import net.sf.gridarta.model.archetype.Archetype; +import net.sf.gridarta.model.baseobject.BaseObject; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.maparchobject.MapArchObject; import net.sf.gridarta.model.match.GameObjectMatcher; @@ -97,8 +98,8 @@ */ @Override public int compare(@NotNull final GameObject<G, A, R> o1, @NotNull final GameObject<G, A, R> o2) { - final int level1 = o1.getAttributeInt("level"); - final int level2 = o2.getAttributeInt("level"); + final int level1 = o1.getAttributeInt(BaseObject.LEVEL); + final int level2 = o2.getAttributeInt(BaseObject.LEVEL); if (level1 < level2) { return +1; } Modified: trunk/src/app/net/sf/gridarta/gui/gameobjectattributespanel/FaceTab.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributespanel/FaceTab.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/src/app/net/sf/gridarta/gui/gameobjectattributespanel/FaceTab.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -259,9 +259,9 @@ if (gameObject == null) { animated = false; } else { - animated = gameObject.getAttributeInt("is_animated") != 0; + animated = gameObject.getAttributeInt(BaseObject.IS_ANIMATED) != 0; //noinspection UnnecessaryParentheses - if (severity == Severity.DEFAULT && animated != (gameObject.getArchetype().getAttributeInt("is_animated") != 0)) { + if (severity == Severity.DEFAULT && animated != (gameObject.getArchetype().getAttributeInt(BaseObject.IS_ANIMATED) != 0)) { severity = Severity.MODIFIED; } } @@ -270,8 +270,8 @@ if (gameObject == null) { animSpeed = ""; } else { - animSpeed = gameObject.getAttributeString("anim_speed"); - if (severity == Severity.DEFAULT && !gameObject.getArchetype().getAttributeString("anim_speed").equals(animSpeed)) { + animSpeed = gameObject.getAttributeString(BaseObject.ANIM_SPEED); + if (severity == Severity.DEFAULT && !gameObject.getArchetype().getAttributeString(BaseObject.ANIM_SPEED).equals(animSpeed)) { severity = Severity.MODIFIED; } } @@ -345,18 +345,18 @@ gameObject.setAttributeString(BaseObject.ANIMATION, animName2); final boolean isAnimated = animatedCheckBox.isSelected(); - if (isAnimated == (gameObject.getArchetype().getAttributeInt("is_animated") != 0)) { - gameObject.removeAttribute("is_animated"); + if (isAnimated == (gameObject.getArchetype().getAttributeInt(BaseObject.IS_ANIMATED) != 0)) { + gameObject.removeAttribute(BaseObject.IS_ANIMATED); } else { - gameObject.setAttributeInt("is_animated", isAnimated ? 1 : 0); + gameObject.setAttributeInt(BaseObject.IS_ANIMATED, isAnimated ? 1 : 0); } final String animSpeed = animSpeedTextField.getText().trim(); - final String animSpeedAttribute = gameObject.getArchetype().getAttributeString("anim_speed"); + final String animSpeedAttribute = gameObject.getArchetype().getAttributeString(BaseObject.ANIM_SPEED); if (animSpeed.length() == 0 || (animSpeed.equals("0") ? "" : animSpeed).equals(animSpeedAttribute)) { - gameObject.removeAttribute("anim_speed"); + gameObject.removeAttribute(BaseObject.ANIM_SPEED); } else { - gameObject.setAttributeString("anim_speed", animSpeed); + gameObject.setAttributeString(BaseObject.ANIM_SPEED, animSpeed); } } Modified: trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapLocation.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapLocation.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/src/app/net/sf/gridarta/gui/map/mapactions/MapLocation.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -70,7 +70,7 @@ * @throws NoExitPathException if the game object is not a valid exit */ public MapLocation(@NotNull final BaseObject<?, ?, ?, ?> gameObject, final boolean allowRandomMapParameters) throws NoExitPathException { - this(getMapPath(gameObject, allowRandomMapParameters), gameObject.getAttributeInt("hp"), gameObject.getAttributeInt("sp")); + this(getMapPath(gameObject, allowRandomMapParameters), gameObject.getAttributeInt(BaseObject.HP), gameObject.getAttributeInt(BaseObject.SP)); } /** @@ -122,7 +122,7 @@ * @throws NoExitPathException if the game object is not a valid exit */ public static String getMapPath(@NotNull final BaseObject<?, ?, ?, ?> gameObject, final boolean allowRandomMapParameters) throws NoExitPathException { - String path = gameObject.getAttributeString("slaying"); + String path = gameObject.getAttributeString(BaseObject.SLAYING); if (allowRandomMapParameters && (path.equals("/!") || path.startsWith("/random/"))) { // destination is a random map; extract the final non-random map path = getRandomMapParameter(gameObject, "final_map"); Modified: trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -34,6 +34,7 @@ import javax.swing.Icon; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.baseobject.BaseObject; +import net.sf.gridarta.model.gameobject.DefaultIsoGameObject; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.gameobject.IsoMapSquareInfo; import net.sf.gridarta.model.gameobject.MultiPositionData; @@ -535,10 +536,10 @@ private void paintGameObject(@NotNull final Graphics2D g, final int xStart, final int yStart, @NotNull final G gameObject, final boolean inSpawnPoint) { final G head = gameObject.getHead(); final Icon icon = "trans.101".equals(head.getFaceObjName()) ? unknownSquareIcon : head.getImage(mapViewSettings); - final int xOffset = head.getAttributeInt("align"); - final int zoom = head.getAttributeInt("zoom"); + final int xOffset = head.getAttributeInt(DefaultIsoGameObject.ALIGN); + final int zoom = head.getAttributeInt(DefaultIsoGameObject.ZOOM); final double rotate = getRotate(head); - final int alpha = head.getAttributeInt("alpha"); + final int alpha = head.getAttributeInt(DefaultIsoGameObject.ALPHA); final int tmpIconWidth; final int tmpIconHeight; if (zoom == 0 || zoom == 100) { @@ -592,7 +593,7 @@ * @return the rotation angle in radians */ private static double getRotate(@NotNull final BaseObject<?, ?, ?, ?> head) { - final int rotate = -head.getAttributeInt("rotate") % 360; + final int rotate = -head.getAttributeInt(DefaultIsoGameObject.ROTATE) % 360; return (rotate < 0 ? rotate + 360 : rotate) * 2 * Math.PI / 360; } Modified: trunk/src/app/net/sf/gridarta/gui/map/renderer/IsoMapRenderer.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/renderer/IsoMapRenderer.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/src/app/net/sf/gridarta/gui/map/renderer/IsoMapRenderer.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -29,6 +29,7 @@ import net.sf.gridarta.model.filter.FilterConfig; import net.sf.gridarta.model.filter.FilterConfigChangeType; import net.sf.gridarta.model.filter.FilterConfigListener; +import net.sf.gridarta.model.gameobject.DefaultIsoGameObject; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.gameobject.IsoMapSquareInfo; import net.sf.gridarta.model.gameobject.MultiPositionData; @@ -171,11 +172,11 @@ if (filterControl.canShow(node)) { final G head = node.getHead(); final int yOffset; - if (!foundFloor && head.getAttributeInt("layer") == 1) { + if (!foundFloor && head.getAttributeInt(DefaultIsoGameObject.LAYER) == 1) { foundFloor = true; yOffset = 0; } else { - yOffset = head.getAttributeInt("z"); + yOffset = head.getAttributeInt(DefaultIsoGameObject.Z); } paintGameObjectIfVisible(g, x, y - yOffset, node); } Modified: trunk/src/app/net/sf/gridarta/gui/map/renderer/IsoPickmapRenderer.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/renderer/IsoPickmapRenderer.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/src/app/net/sf/gridarta/gui/map/renderer/IsoPickmapRenderer.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -23,6 +23,7 @@ import java.awt.Graphics2D; import javax.swing.Icon; import net.sf.gridarta.model.archetype.Archetype; +import net.sf.gridarta.model.gameobject.DefaultIsoGameObject; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.gameobject.IsoMapSquareInfo; import net.sf.gridarta.model.gameobject.MultiPositionData; @@ -83,11 +84,11 @@ for (final G node : square) { final G head = node.getHead(); final int yOffset; - if (!foundFloor && head.getAttributeInt("layer") == 1) { + if (!foundFloor && head.getAttributeInt(DefaultIsoGameObject.LAYER) == 1) { foundFloor = true; yOffset = 0; } else { - yOffset = head.getAttributeInt("z"); + yOffset = head.getAttributeInt(DefaultIsoGameObject.Z); } paintGameObjectIfVisible(g, x, y - yOffset, node); } Modified: trunk/src/test/net/sf/gridarta/actions/ExitConnectorActionsTest.java =================================================================== --- trunk/src/test/net/sf/gridarta/actions/ExitConnectorActionsTest.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/src/test/net/sf/gridarta/actions/ExitConnectorActionsTest.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -415,9 +415,9 @@ throw new AssertionError(); } - Assert.assertEquals(exitPath, gameObject.getAttributeString("slaying")); - Assert.assertEquals(exitPoint.x, gameObject.getAttributeInt("hp")); - Assert.assertEquals(exitPoint.y, gameObject.getAttributeInt("sp")); + Assert.assertEquals(exitPath, gameObject.getAttributeString(BaseObject.SLAYING)); + Assert.assertEquals(exitPoint.x, gameObject.getAttributeInt(BaseObject.HP)); + Assert.assertEquals(exitPoint.y, gameObject.getAttributeInt(BaseObject.SP)); return; } Modified: trunk/src/test/net/sf/gridarta/actions/UndoActionsTest.java =================================================================== --- trunk/src/test/net/sf/gridarta/actions/UndoActionsTest.java 2011-07-16 10:44:55 UTC (rev 8942) +++ trunk/src/test/net/sf/gridarta/actions/UndoActionsTest.java 2011-07-16 11:42:53 UTC (rev 8943) @@ -65,7 +65,7 @@ final AutojoinListsHelper autojoinListsHelper = mapControlCreator.newAutojoinListsHelper(); for (int i = 0; i < 16; i++) { final TestArchetype a = mapModelCreator.getArchetype("a" + i); - a.setAttributeString("face", "face" + i); + a.setAttributeString(BaseObject.FACE, "face" + i); } autojoinListsHelper.newAutojoinLists("a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "a10", "a11", "a12", "a13", "a14", "a15"); @@ -118,7 +118,7 @@ final MapSquare<?, ?, ?> mapSquare = mapModel.getMapSquare(new Point(x, y)); final BaseObject<?, ?, ?, ?> object = mapSquare.getFirst(); Assert.assertNotNull(object); - Assert.assertEquals(face, object.getAttributeString("face")); + Assert.assertEquals(face, object.getAttributeString(BaseObject.FACE)); } } // class UndoActionsTest This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-07-16 10:45:02
|
Revision: 8942 http://gridarta.svn.sourceforge.net/gridarta/?rev=8942&view=rev Author: akirschbaum Date: 2011-07-16 10:44:55 +0000 (Sat, 16 Jul 2011) Log Message: ----------- Support 'rotate' attribute in map renderer. [Atrinik] Modified Paths: -------------- trunk/atrinik/ChangeLog trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java Modified: trunk/atrinik/ChangeLog =================================================================== --- trunk/atrinik/ChangeLog 2011-07-09 10:23:45 UTC (rev 8941) +++ trunk/atrinik/ChangeLog 2011-07-16 10:44:55 UTC (rev 8942) @@ -1,3 +1,7 @@ +2011-07-16 Andreas Kirschbaum + + * Support 'rotate' attribute in map renderer. + 2011-07-08 Andreas Kirschbaum * Support 'system_system_object' matcher for auto-insertion mode. Modified: trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java 2011-07-09 10:23:45 UTC (rev 8941) +++ trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java 2011-07-16 10:44:55 UTC (rev 8942) @@ -537,15 +537,25 @@ final Icon icon = "trans.101".equals(head.getFaceObjName()) ? unknownSquareIcon : head.getImage(mapViewSettings); final int xOffset = head.getAttributeInt("align"); final int zoom = head.getAttributeInt("zoom"); + final double rotate = getRotate(head); final int alpha = head.getAttributeInt("alpha"); + final int tmpIconWidth; + final int tmpIconHeight; + if (zoom == 0 || zoom == 100) { + tmpIconWidth = icon.getIconWidth(); + tmpIconHeight = icon.getIconHeight(); + } else { + tmpIconWidth = (icon.getIconWidth() * zoom + 50) / 100; + tmpIconHeight = (icon.getIconHeight() * zoom + 50) / 100; + } final int iconWidth; final int iconHeight; - if (zoom == 0 || zoom == 100) { - iconWidth = icon.getIconWidth(); - iconHeight = icon.getIconHeight(); + if (rotate < 0.001) { + iconWidth = tmpIconWidth; + iconHeight = tmpIconHeight; } else { - iconWidth = (icon.getIconWidth() * zoom + 50) / 100; - iconHeight = (icon.getIconHeight() * zoom + 50) / 100; + iconWidth = (int) (Math.abs(Math.cos(rotate) * tmpIconWidth) + 0.5) + (int) (Math.abs(Math.sin(rotate) * tmpIconHeight) + 0.5); + iconHeight = (int) (Math.abs(Math.sin(rotate) * tmpIconWidth) + 0.5) + (int) (Math.abs(Math.cos(rotate) * tmpIconHeight) + 0.5); } if (head.getMultiRefCount() > 0) { final R archetype = gameObject.getArchetype(); @@ -554,7 +564,7 @@ final int multiPartNr = archetype.getMultiPartNr(); final int x = xStart - multiPositionData.getXOffset(headMultiShapeID, multiPartNr) + multiPositionData.getWidth(headMultiShapeID) / 2 - iconWidth / 2; final int y = yStart - multiPositionData.getYOffset(headMultiShapeID, multiPartNr) + isoMapSquareInfo.getYLen() - iconHeight; - paintScaledIcon(g, icon, x + xOffset, y, zoom, alpha); + paintScaledIcon(g, icon, x + xOffset, y, zoom, alpha, rotate, tmpIconWidth, tmpIconHeight, iconWidth, iconHeight); } } else { final int x; @@ -564,7 +574,7 @@ x = xStart; } final int y = yStart + isoMapSquareInfo.getYLen() - iconHeight; - paintScaledIcon(g, icon, x + xOffset, y, zoom, alpha); + paintScaledIcon(g, icon, x + xOffset, y, zoom, alpha, rotate, tmpIconWidth, tmpIconHeight, iconWidth, iconHeight); } // Paint first object (most likely a mob) in spawn points. @@ -577,6 +587,16 @@ } /** + * Returns the rotation angle of a game object. + * @param head the head of the game object + * @return the rotation angle in radians + */ + private static double getRotate(@NotNull final BaseObject<?, ?, ?, ?> head) { + final int rotate = -head.getAttributeInt("rotate") % 360; + return (rotate < 0 ? rotate + 360 : rotate) * 2 * Math.PI / 360; + } + + /** * Paints an icon at a given zoom factor and alpha value. * @param g the graphics to paint into * @param icon the icon to paint @@ -584,16 +604,21 @@ * @param y the y coordinate to paint at * @param zoom the zoom factor in percent * @param alpha the alpha value (0..255) + * @param rotate the rotation angle in radians + * @param oldIconWidth the width of the icon before rotation in pixel + * @param oldIconHeight the height of the icon before rotation in pixel + * @param newIconWidth the width of the icon after rotation in pixel + * @param newIconHeight the height of the icon atfer rotation in pixel */ - private void paintScaledIcon(@NotNull final Graphics2D g, @NotNull final Icon icon, final int x, final int y, final int zoom, final int alpha) { + private void paintScaledIcon(@NotNull final Graphics2D g, @NotNull final Icon icon, final int x, final int y, final int zoom, final int alpha, final double rotate, final int oldIconWidth, final int oldIconHeight, final int newIconWidth, final int newIconHeight) { if (zoom <= 0 || zoom == 100) { - paintAlphaIcon(g, icon, x, y, alpha); + paintAlphaIcon(g, icon, x, y, alpha, rotate, oldIconWidth, oldIconHeight, newIconWidth, newIconHeight); } else { final AffineTransform savedTransform = g.getTransform(); try { g.translate(x, y); g.scale(zoom / 100.0, zoom / 100.0); - paintAlphaIcon(g, icon, 0, 0, alpha); + paintAlphaIcon(g, icon, 0, 0, alpha, rotate, oldIconWidth, oldIconHeight, newIconWidth, newIconHeight); } finally { g.setTransform(savedTransform); } @@ -607,15 +632,20 @@ * @param x the x coordinate to paint at * @param y the y coordinate to paint at * @param alpha the alpha value (0..255) + * @param rotate the rotation angle in radians + * @param oldIconWidth the width of the icon before rotation in pixel + * @param oldIconHeight the height of the icon before rotation in pixel + * @param newIconWidth the width of the icon after rotation in pixel + * @param newIconHeight the height of the icon atfer rotation in pixel */ - private void paintAlphaIcon(@NotNull final Graphics2D g, @NotNull final Icon icon, final int x, final int y, final int alpha) { + private void paintAlphaIcon(@NotNull final Graphics2D g, @NotNull final Icon icon, final int x, final int y, final int alpha, final double rotate, final int oldIconWidth, final int oldIconHeight, final int newIconWidth, final int newIconHeight) { if (alpha <= 0 || alpha >= 255) { - icon.paintIcon(this, g, x, y); + paintRotatedIcon(g, icon, x, y, rotate, oldIconWidth, oldIconHeight, newIconWidth, newIconHeight); } else { final Composite savedComposite = g.getComposite(); try { g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha / 255.0F)); - icon.paintIcon(this, g, x, y); + paintRotatedIcon(g, icon, x, y, rotate, oldIconWidth, oldIconHeight, newIconWidth, newIconHeight); } finally { g.setComposite(savedComposite); } @@ -623,6 +653,34 @@ } /** + * Paints an icon at a given rotation angle. + * @param g the graphics to paint into + * @param icon the icon to paint + * @param x the x coordinate to paint at + * @param y the y coordinate to paint at + * @param rotate the rotation angle in radians + * @param oldIconWidth the width of the icon before rotation in pixel + * @param oldIconHeight the height of the icon before rotation in pixel + * @param newIconWidth the width of the icon after rotation in pixel + * @param newIconHeight the height of the icon atfer rotation in pixel + */ + private void paintRotatedIcon(@NotNull final Graphics2D g, @NotNull final Icon icon, final int x, final int y, final double rotate, final int oldIconWidth, final int oldIconHeight, final int newIconWidth, final int newIconHeight) { + if (rotate < 0.001) { + icon.paintIcon(this, g, x, y); + } else { + final AffineTransform savedTransform = g.getTransform(); + try { + g.translate(x + newIconWidth / 2, y + newIconHeight / 2); + g.rotate(rotate); + g.translate(-oldIconWidth / 2, -oldIconHeight / 2); + icon.paintIcon(this, g, 0, 0); + } finally { + g.setTransform(savedTransform); + } + } + } + + /** * Returns whether the given {@link BaseObject} is a spawn point. * @param gameObject the game object * @return whether it is a spawn point This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-07-09 10:23:52
|
Revision: 8941 http://gridarta.svn.sourceforge.net/gridarta/?rev=8941&view=rev Author: akirschbaum Date: 2011-07-09 10:23:45 +0000 (Sat, 09 Jul 2011) Log Message: ----------- Do not complain about missing game object matcher 'system_system_object'. Modified Paths: -------------- trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java Modified: trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2011-07-09 07:44:26 UTC (rev 8940) +++ trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2011-07-09 10:23:45 UTC (rev 8941) @@ -471,7 +471,7 @@ final GameObjectMatcher wallMatcher = gameObjectMatchers.getMatcher("system_wall", "wall"); final ErrorViewCollector gameObjectMatchersErrorViewCollector = new ErrorViewCollector(errorView, new File(globalSettings.getConfigurationDirectory(), "GameObjectMatchers.xml")); final GameObjectMatcher belowFloorMatcher = gameObjectMatchers.getMatcherWarn(gameObjectMatchersErrorViewCollector, "system_below_floor", "below_floor"); - final GameObjectMatcher systemObjectMatcher = gameObjectMatchers.getMatcherWarn(gameObjectMatchersErrorViewCollector, "system_system_object"); + final GameObjectMatcher systemObjectMatcher = gameObjectMatchers.getMatcher("system_system_object"); final InsertionModeSet<G, A, R> insertionModeSet = new InsertionModeSet<G, A, R>(topmostInsertionMode, floorMatcher, wallMatcher, belowFloorMatcher, systemObjectMatcher); final CopyBuffer<G, A, R> copyBuffer = new CopyBuffer<G, A, R>(mapViewSettings, gameObjectFactory, mapArchObjectFactory, mapModelFactory, insertionModeSet); final ReplaceDialogManager<G, A, R> replaceDialogManager = new ReplaceDialogManager<G, A, R>(mainViewFrame, copyBuffer, objectChooser, mapViewManager, faceObjectProviders, insertionModeSet); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-07-09 07:44:32
|
Revision: 8940 http://gridarta.svn.sourceforge.net/gridarta/?rev=8940&view=rev Author: akirschbaum Date: 2011-07-09 07:44:26 +0000 (Sat, 09 Jul 2011) Log Message: ----------- Disable warning. Modified Paths: -------------- trunk/gridarta.ipr Modified: trunk/gridarta.ipr =================================================================== --- trunk/gridarta.ipr 2011-07-08 18:58:57 UTC (rev 8939) +++ trunk/gridarta.ipr 2011-07-09 07:44:26 UTC (rev 8940) @@ -632,7 +632,6 @@ <inspection_tool class="NonProtectedConstructorInAbstractClass" enabled="true" level="WARNING" enabled_by_default="true"> <option name="m_ignoreNonPublicClasses" value="false" /> </inspection_tool> - <inspection_tool class="NonReproducibleMathCall" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="NonSerializableWithSerialVersionUIDField" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="NonShortCircuitBoolean" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="NonSynchronizedMethodOverridesSynchronizedMethod" enabled="true" level="WARNING" enabled_by_default="true" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-07-08 18:59:04
|
Revision: 8939 http://gridarta.svn.sourceforge.net/gridarta/?rev=8939&view=rev Author: akirschbaum Date: 2011-07-08 18:58:57 +0000 (Fri, 08 Jul 2011) Log Message: ----------- Support 'system_system_object' matcher for auto-insertion mode. Modified Paths: -------------- trunk/atrinik/ChangeLog trunk/crossfire/ChangeLog trunk/daimonin/ChangeLog trunk/model/src/app/net/sf/gridarta/model/mapmodel/AutoInsertionMode.java trunk/model/src/app/net/sf/gridarta/model/mapmodel/InsertionModeSet.java trunk/model/src/test/net/sf/gridarta/model/mapmodel/TestMapModelCreator.java trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java trunk/src/doc/ref/GameObjectMatcher.xhtml Added Paths: ----------- trunk/model/src/test/net/sf/gridarta/model/mapmodel/AutoInsertionModeTest.java Modified: trunk/atrinik/ChangeLog =================================================================== --- trunk/atrinik/ChangeLog 2011-07-08 18:54:18 UTC (rev 8938) +++ trunk/atrinik/ChangeLog 2011-07-08 18:58:57 UTC (rev 8939) @@ -1,5 +1,8 @@ 2011-07-08 Andreas Kirschbaum + * Support 'system_system_object' matcher for auto-insertion mode. + Matching game objects stay on top of the square. + * Support 'zoom' and 'alpha' attributes in map renderer. * Do not reorder game objects when loading map files. Formerly Modified: trunk/crossfire/ChangeLog =================================================================== --- trunk/crossfire/ChangeLog 2011-07-08 18:54:18 UTC (rev 8938) +++ trunk/crossfire/ChangeLog 2011-07-08 18:58:57 UTC (rev 8939) @@ -1,5 +1,8 @@ 2011-07-08 Andreas Kirschbaum + * Support 'system_system_object' matcher for auto-insertion mode. + Matching game objects stay on top of the square. + * Do not reorder game objects when loading map files. Formerly multi-square game objects were moved to top. Modified: trunk/daimonin/ChangeLog =================================================================== --- trunk/daimonin/ChangeLog 2011-07-08 18:54:18 UTC (rev 8938) +++ trunk/daimonin/ChangeLog 2011-07-08 18:58:57 UTC (rev 8939) @@ -1,5 +1,8 @@ 2011-07-08 Andreas Kirschbaum + * Support 'system_system_object' matcher for auto-insertion mode. + Matching game objects stay on top of the square. + * Do not reorder game objects when loading map files. Formerly multi-square game objects were moved to top. Modified: trunk/model/src/app/net/sf/gridarta/model/mapmodel/AutoInsertionMode.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/mapmodel/AutoInsertionMode.java 2011-07-08 18:54:18 UTC (rev 8938) +++ trunk/model/src/app/net/sf/gridarta/model/mapmodel/AutoInsertionMode.java 2011-07-08 18:58:57 UTC (rev 8939) @@ -61,16 +61,27 @@ private final GameObjectMatcher belowFloorGameObjectMatcher; /** + * A {@link GameObjectMatcher} matching system objects that should stay on + * top. + * @serial + */ + @Nullable + private final GameObjectMatcher systemObjectGameObjectMatcher; + + /** * Initializes the class. * @param floorGameObjectMatcher the floor matcher to use * @param wallGameObjectMatcher the wall matcher to use * @param belowFloorGameObjectMatcher the game object to insert below the * floor + * @param systemObjectGameObjectMatcher matches system objects that should + * stay on top */ - public AutoInsertionMode(@Nullable final GameObjectMatcher floorGameObjectMatcher, @Nullable final GameObjectMatcher wallGameObjectMatcher, @Nullable final GameObjectMatcher belowFloorGameObjectMatcher) { + public AutoInsertionMode(@Nullable final GameObjectMatcher floorGameObjectMatcher, @Nullable final GameObjectMatcher wallGameObjectMatcher, @Nullable final GameObjectMatcher belowFloorGameObjectMatcher, @Nullable final GameObjectMatcher systemObjectGameObjectMatcher) { this.floorGameObjectMatcher = floorGameObjectMatcher; this.wallGameObjectMatcher = wallGameObjectMatcher; this.belowFloorGameObjectMatcher = belowFloorGameObjectMatcher; + this.systemObjectGameObjectMatcher = systemObjectGameObjectMatcher; } /** @@ -80,10 +91,11 @@ public void insert(@NotNull final G gameObject, @NotNull final MapSquare<G, A, R> mapSquare) { if (floorGameObjectMatcher != null && floorGameObjectMatcher.isMatching(gameObject)) { replaceFloor(gameObject, mapSquare, mapSquare.getLast(floorGameObjectMatcher)); - } else if (wallGameObjectMatcher != null && wallGameObjectMatcher.isMatching(gameObject)) { - replaceWall(gameObject, mapSquare, mapSquare.getLast(wallGameObjectMatcher)); + } else if (wallGameObjectMatcher != null && wallGameObjectMatcher.isMatching(gameObject) && replaceWall(gameObject, mapSquare, mapSquare.getLast(wallGameObjectMatcher))) { } else if (belowFloorGameObjectMatcher != null && belowFloorGameObjectMatcher.isMatching(gameObject)) { mapSquare.addFirst(gameObject); + } else if (systemObjectGameObjectMatcher != null && !systemObjectGameObjectMatcher.isMatching(gameObject)) { + insertNonSystemObject(gameObject, mapSquare, mapSquare.getFirst(systemObjectGameObjectMatcher)); } else { mapSquare.addLast(gameObject); } @@ -104,7 +116,7 @@ * @param lastFloor the last floor game object within * <code>mapSquare</code> */ - private void replaceFloor(final G gameObject, final MapSquare<G, A, R> mapSquare, final G lastFloor) { + private void replaceFloor(@NotNull final G gameObject, @NotNull final MapSquare<G, A, R> mapSquare, @Nullable final G lastFloor) { // floor exists ==> replace it if (lastFloor != null && !lastFloor.isMulti()) { mapSquare.replace(lastFloor, gameObject); @@ -125,17 +137,30 @@ } /** - * Replace a wall game object. + * Replaces a wall game object. * @param gameObject the game object to insert with * @param mapSquare the map square to modify * @param lastWall the last wall game object within <code>mapSquare</code> + * @return whether an existing wall was replaced */ - private void replaceWall(final G gameObject, final GameObjectContainer<G, A, R> mapSquare, final G lastWall) { + private boolean replaceWall(@NotNull final G gameObject, @NotNull final GameObjectContainer<G, A, R> mapSquare, @Nullable final G lastWall) { if (lastWall != null && !lastWall.isMulti()) { mapSquare.replace(lastWall, gameObject); - } else { - mapSquare.addLast(gameObject); + return true; } + + return false; } + /** + * Inserts a non-system game object. + * @param gameObject the game object to insert + * @param mapSquare the map square to modify + * @param firstSystemObject the first system game object within + * <code>mapSquare</code> + */ + private void insertNonSystemObject(@NotNull final G gameObject, @NotNull final GameObjectContainer<G, A, R> mapSquare, @Nullable final G firstSystemObject) { + mapSquare.insertAfter(firstSystemObject, gameObject); + } + } // class AutoInsertionMode Modified: trunk/model/src/app/net/sf/gridarta/model/mapmodel/InsertionModeSet.java =================================================================== --- trunk/model/src/app/net/sf/gridarta/model/mapmodel/InsertionModeSet.java 2011-07-08 18:54:18 UTC (rev 8938) +++ trunk/model/src/app/net/sf/gridarta/model/mapmodel/InsertionModeSet.java 2011-07-08 18:58:57 UTC (rev 8939) @@ -71,10 +71,12 @@ * game objects * @param belowFloorGameObjectMatcher the game object matcher for selecting * below floor game objects + * @param systemObjectGameObjectMatcher the game object matcher for + * selecting game objects that should stay on top */ - public InsertionModeSet(@NotNull final InsertionMode<G, A, R> topmostInsertionMode, @Nullable final GameObjectMatcher floorGameObjectMatcher, @Nullable final GameObjectMatcher wallGameObjectMatcher, @Nullable final GameObjectMatcher belowFloorGameObjectMatcher) { + public InsertionModeSet(@NotNull final InsertionMode<G, A, R> topmostInsertionMode, @Nullable final GameObjectMatcher floorGameObjectMatcher, @Nullable final GameObjectMatcher wallGameObjectMatcher, @Nullable final GameObjectMatcher belowFloorGameObjectMatcher, @Nullable final GameObjectMatcher systemObjectGameObjectMatcher) { this.topmostInsertionMode = topmostInsertionMode; - autoInsertionMode = new AutoInsertionMode<G, A, R>(floorGameObjectMatcher, wallGameObjectMatcher, belowFloorGameObjectMatcher); + autoInsertionMode = new AutoInsertionMode<G, A, R>(floorGameObjectMatcher, wallGameObjectMatcher, belowFloorGameObjectMatcher, systemObjectGameObjectMatcher); aboveFloorInsertionMode = new AboveFloorInsertionMode<G, A, R>(floorGameObjectMatcher); belowFloorInsertionMode = new BelowFloorInsertionMode<G, A, R>(floorGameObjectMatcher); } Added: trunk/model/src/test/net/sf/gridarta/model/mapmodel/AutoInsertionModeTest.java =================================================================== --- trunk/model/src/test/net/sf/gridarta/model/mapmodel/AutoInsertionModeTest.java (rev 0) +++ trunk/model/src/test/net/sf/gridarta/model/mapmodel/AutoInsertionModeTest.java 2011-07-08 18:58:57 UTC (rev 8939) @@ -0,0 +1,177 @@ +/* + * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games. + * Copyright (C) 2000-2010 The Gridarta Developers. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +package net.sf.gridarta.model.mapmodel; + +import java.awt.Point; +import java.util.Iterator; +import net.sf.gridarta.model.archetype.DuplicateArchetypeException; +import net.sf.gridarta.model.archetype.TestArchetype; +import net.sf.gridarta.model.baseobject.BaseObject; +import net.sf.gridarta.model.gameobject.TestGameObject; +import net.sf.gridarta.model.maparchobject.TestMapArchObject; +import net.sf.gridarta.model.match.GameObjectMatcher; +import net.sf.gridarta.model.match.TypeNrsGameObjectMatcher; +import org.jetbrains.annotations.NotNull; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +/** + * Regression tests for {@link AutoInsertionMode}. + * @author Andreas Kirschbaum + */ +public class AutoInsertionModeTest { + + /** + * The archetype type for floor objects. + */ + private static final int TYPE_FLOOR = 1; + + /** + * The archetype type for wall objects. + */ + private static final int TYPE_WALL = 2; + + /** + * The archetype type for objects to be put below the floor. + */ + private static final int TYPE_BELOW_FLOOR = 3; + + /** + * The archetype type for system objects. + */ + private static final int TYPE_SYSTEM = 4; + + /** + * A {@link GameObjectMatcher} that matches floor objects. + */ + @NotNull + private final GameObjectMatcher floorGameObjectMatcher = new TypeNrsGameObjectMatcher(TYPE_FLOOR); + + /** + * A {@link GameObjectMatcher} that matches wall objects. + */ + @NotNull + private final GameObjectMatcher wallGameObjectMatcher = new TypeNrsGameObjectMatcher(TYPE_WALL); + + /** + * A {@link GameObjectMatcher} that matches objects to be put below the + * floor. + */ + @NotNull + private final GameObjectMatcher belowFloorGameObjectMatcher = new TypeNrsGameObjectMatcher(TYPE_BELOW_FLOOR); + + /** + * A {@link GameObjectMatcher} that matches system objects. + */ + @NotNull + private final GameObjectMatcher systemGameObjectMatcher = new TypeNrsGameObjectMatcher(TYPE_SYSTEM); + + /** + * The auto-insertion mode. + */ + @NotNull + private final InsertionMode<TestGameObject, TestMapArchObject, TestArchetype> autoInsertionMode = new AutoInsertionMode<TestGameObject, TestMapArchObject, TestArchetype>(floorGameObjectMatcher, wallGameObjectMatcher, belowFloorGameObjectMatcher, systemGameObjectMatcher); + + /** + * The topmost-insertion mode. + */ + @NotNull + private final InsertionMode<TestGameObject, TestMapArchObject, TestArchetype> topmostInsertionMode = new TopmostInsertionMode<TestGameObject, TestMapArchObject, TestArchetype>(); + + /** + * The {@link TestMapModelCreator} instance. + */ + private TestMapModelCreator mapModelCreator; + + /** + * Checks that the auto-insertion mode works as expected. + * @throws DuplicateArchetypeException if the test fails + */ + @Test + public void testInsertSystemObject1() throws DuplicateArchetypeException { + final MapModel<TestGameObject, TestMapArchObject, TestArchetype> mapModel = mapModelCreator.newMapModel(1, 1); + mapModel.beginTransaction("test"); + try { + mapModelCreator.addGameObjectToMap(mapModel, "floor", "1", 0, 0, topmostInsertionMode); + mapModelCreator.addGameObjectToMap(mapModel, "wall", "2", 0, 0, topmostInsertionMode); + mapModelCreator.addGameObjectToMap(mapModel, "sys", "3", 0, 0, topmostInsertionMode); + mapModelCreator.addGameObjectToMap(mapModel, "wall", "4", 0, 0, autoInsertionMode); + } finally { + mapModel.endTransaction(); + } + final MapSquare<TestGameObject, TestMapArchObject, TestArchetype> mapSquare = mapModel.getMapSquare(new Point(0, 0)); + final Iterator<TestGameObject> it = mapSquare.iterator(); + Assert.assertTrue(it.hasNext()); + Assert.assertEquals("1", it.next().getBestName()); + Assert.assertTrue(it.hasNext()); + Assert.assertEquals("4", it.next().getBestName()); + Assert.assertTrue(it.hasNext()); + Assert.assertEquals("3", it.next().getBestName()); + Assert.assertFalse(it.hasNext()); + } + + /** + * Checks that the auto-insertion mode works as expected. + */ + @Test + public void testInsertSystemObject2() { + final MapModel<TestGameObject, TestMapArchObject, TestArchetype> mapModel = mapModelCreator.newMapModel(1, 1); + mapModel.beginTransaction("test"); + try { + mapModelCreator.addGameObjectToMap(mapModel, "floor", "1", 0, 0, topmostInsertionMode); + mapModelCreator.addGameObjectToMap(mapModel, "sys", "3", 0, 0, topmostInsertionMode); + mapModelCreator.addGameObjectToMap(mapModel, "wall", "4", 0, 0, autoInsertionMode); + } finally { + mapModel.endTransaction(); + } + final MapSquare<TestGameObject, TestMapArchObject, TestArchetype> mapSquare = mapModel.getMapSquare(new Point(0, 0)); + final Iterator<TestGameObject> it = mapSquare.iterator(); + Assert.assertTrue(it.hasNext()); + Assert.assertEquals("1", it.next().getBestName()); + Assert.assertTrue(it.hasNext()); + Assert.assertEquals("4", it.next().getBestName()); + Assert.assertTrue(it.hasNext()); + Assert.assertEquals("3", it.next().getBestName()); + Assert.assertFalse(it.hasNext()); + } + + /** + * Initializes the tests. + * @throws DuplicateArchetypeException if the test fails + */ + @Before + public void setUp() throws DuplicateArchetypeException { + mapModelCreator = new TestMapModelCreator(false); + + final TestArchetype floorArchetype = mapModelCreator.newArchetype("floor"); + floorArchetype.setAttributeInt(BaseObject.TYPE, TYPE_FLOOR); + mapModelCreator.getArchetypeSet().addArchetype(floorArchetype); + + final TestArchetype wallArchetype = mapModelCreator.newArchetype("wall"); + wallArchetype.setAttributeInt(BaseObject.TYPE, TYPE_WALL); + mapModelCreator.getArchetypeSet().addArchetype(wallArchetype); + + final TestArchetype sysArchetype = mapModelCreator.newArchetype("sys"); + sysArchetype.setAttributeInt(BaseObject.TYPE, TYPE_SYSTEM); + mapModelCreator.getArchetypeSet().addArchetype(sysArchetype); + } + +} Property changes on: trunk/model/src/test/net/sf/gridarta/model/mapmodel/AutoInsertionModeTest.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + LF Modified: trunk/model/src/test/net/sf/gridarta/model/mapmodel/TestMapModelCreator.java =================================================================== --- trunk/model/src/test/net/sf/gridarta/model/mapmodel/TestMapModelCreator.java 2011-07-08 18:54:18 UTC (rev 8938) +++ trunk/model/src/test/net/sf/gridarta/model/mapmodel/TestMapModelCreator.java 2011-07-08 18:58:57 UTC (rev 8939) @@ -146,7 +146,7 @@ archetypeSet = new TestArchetypeSet(archetypeFactory, "archetypes", faceObjectProviders); gameObjectFactory = new TestGameObjectFactory(faceObjectProviders, animationObjects); topmostInsertionMode = new TopmostInsertionMode<TestGameObject, TestMapArchObject, TestArchetype>(); - insertionModeSet = new InsertionModeSet<TestGameObject, TestMapArchObject, TestArchetype>(topmostInsertionMode, new TypeNrsGameObjectMatcher(), new TypeNrsGameObjectMatcher(), new TypeNrsGameObjectMatcher()); + insertionModeSet = new InsertionModeSet<TestGameObject, TestMapArchObject, TestArchetype>(topmostInsertionMode, new TypeNrsGameObjectMatcher(), new TypeNrsGameObjectMatcher(), new TypeNrsGameObjectMatcher(), new TypeNrsGameObjectMatcher()); } /** Modified: trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2011-07-08 18:54:18 UTC (rev 8938) +++ trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2011-07-08 18:58:57 UTC (rev 8939) @@ -471,7 +471,8 @@ final GameObjectMatcher wallMatcher = gameObjectMatchers.getMatcher("system_wall", "wall"); final ErrorViewCollector gameObjectMatchersErrorViewCollector = new ErrorViewCollector(errorView, new File(globalSettings.getConfigurationDirectory(), "GameObjectMatchers.xml")); final GameObjectMatcher belowFloorMatcher = gameObjectMatchers.getMatcherWarn(gameObjectMatchersErrorViewCollector, "system_below_floor", "below_floor"); - final InsertionModeSet<G, A, R> insertionModeSet = new InsertionModeSet<G, A, R>(topmostInsertionMode, floorMatcher, wallMatcher, belowFloorMatcher); + final GameObjectMatcher systemObjectMatcher = gameObjectMatchers.getMatcherWarn(gameObjectMatchersErrorViewCollector, "system_system_object"); + final InsertionModeSet<G, A, R> insertionModeSet = new InsertionModeSet<G, A, R>(topmostInsertionMode, floorMatcher, wallMatcher, belowFloorMatcher, systemObjectMatcher); final CopyBuffer<G, A, R> copyBuffer = new CopyBuffer<G, A, R>(mapViewSettings, gameObjectFactory, mapArchObjectFactory, mapModelFactory, insertionModeSet); final ReplaceDialogManager<G, A, R> replaceDialogManager = new ReplaceDialogManager<G, A, R>(mainViewFrame, copyBuffer, objectChooser, mapViewManager, faceObjectProviders, insertionModeSet); exiter = new DefaultExiter(mainViewFrame); Modified: trunk/src/doc/ref/GameObjectMatcher.xhtml =================================================================== --- trunk/src/doc/ref/GameObjectMatcher.xhtml 2011-07-08 18:54:18 UTC (rev 8938) +++ trunk/src/doc/ref/GameObjectMatcher.xhtml 2011-07-08 18:58:57 UTC (rev 8939) @@ -134,6 +134,11 @@ 'below_floor') matcher for selecting game objects that should be inserted below floors. </li> + <li> + The insertion tool uses the 'system_system_object' matcher for + selecting game objects that should be inserted on top of + non-system objects. + </li> </ul> </dd> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-07-08 18:54:25
|
Revision: 8938 http://gridarta.svn.sourceforge.net/gridarta/?rev=8938&view=rev Author: akirschbaum Date: 2011-07-08 18:54:18 +0000 (Fri, 08 Jul 2011) Log Message: ----------- Disable warning. Modified Paths: -------------- trunk/gridarta.ipr Modified: trunk/gridarta.ipr =================================================================== --- trunk/gridarta.ipr 2011-07-08 18:03:01 UTC (rev 8937) +++ trunk/gridarta.ipr 2011-07-08 18:54:18 UTC (rev 8938) @@ -504,9 +504,6 @@ <option name="m_minLength" value="2" /> <option name="m_maxLength" value="64" /> </inspection_tool> - <inspection_tool class="InstanceVariableInitialization" enabled="true" level="WARNING" enabled_by_default="true"> - <option name="m_ignorePrimitives" value="false" /> - </inspection_tool> <inspection_tool class="InstanceVariableNamingConvention" enabled="true" level="WARNING" enabled_by_default="true"> <option name="m_regex" value="[a-z][A-Za-z\d]*" /> <option name="m_minLength" value="1" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-07-08 18:03:11
|
Revision: 8937 http://gridarta.svn.sourceforge.net/gridarta/?rev=8937&view=rev Author: akirschbaum Date: 2011-07-08 18:03:01 +0000 (Fri, 08 Jul 2011) Log Message: ----------- Support 'alpha' attribute in map renderer. [Atrinik] Modified Paths: -------------- trunk/atrinik/ChangeLog trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java Modified: trunk/atrinik/ChangeLog =================================================================== --- trunk/atrinik/ChangeLog 2011-07-08 17:41:43 UTC (rev 8936) +++ trunk/atrinik/ChangeLog 2011-07-08 18:03:01 UTC (rev 8937) @@ -1,6 +1,6 @@ 2011-07-08 Andreas Kirschbaum - * Support 'zoom' attribute in map renderer. + * Support 'zoom' and 'alpha' attributes in map renderer. * Do not reorder game objects when loading map files. Formerly multi-square game objects were moved to top. Modified: trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java 2011-07-08 17:41:43 UTC (rev 8936) +++ trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java 2011-07-08 18:03:01 UTC (rev 8937) @@ -19,7 +19,9 @@ package net.sf.gridarta.gui.map.renderer; +import java.awt.AlphaComposite; import java.awt.Color; +import java.awt.Composite; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; @@ -535,6 +537,7 @@ final Icon icon = "trans.101".equals(head.getFaceObjName()) ? unknownSquareIcon : head.getImage(mapViewSettings); final int xOffset = head.getAttributeInt("align"); final int zoom = head.getAttributeInt("zoom"); + final int alpha = head.getAttributeInt("alpha"); final int iconWidth; final int iconHeight; if (zoom == 0 || zoom == 100) { @@ -551,7 +554,7 @@ final int multiPartNr = archetype.getMultiPartNr(); final int x = xStart - multiPositionData.getXOffset(headMultiShapeID, multiPartNr) + multiPositionData.getWidth(headMultiShapeID) / 2 - iconWidth / 2; final int y = yStart - multiPositionData.getYOffset(headMultiShapeID, multiPartNr) + isoMapSquareInfo.getYLen() - iconHeight; - paintScaledIcon(g, icon, x + xOffset, y, zoom); + paintScaledIcon(g, icon, x + xOffset, y, zoom, alpha); } } else { final int x; @@ -561,7 +564,7 @@ x = xStart; } final int y = yStart + isoMapSquareInfo.getYLen() - iconHeight; - paintScaledIcon(g, icon, x + xOffset, y, zoom); + paintScaledIcon(g, icon, x + xOffset, y, zoom, alpha); } // Paint first object (most likely a mob) in spawn points. @@ -574,22 +577,23 @@ } /** - * Paints an icon at a given zoom factor. + * Paints an icon at a given zoom factor and alpha value. * @param g the graphics to paint into * @param icon the icon to paint * @param x the x coordinate to paint at * @param y the y coordinate to paint at * @param zoom the zoom factor in percent + * @param alpha the alpha value (0..255) */ - private void paintScaledIcon(@NotNull final Graphics2D g, @NotNull final Icon icon, final int x, final int y, final int zoom) { + private void paintScaledIcon(@NotNull final Graphics2D g, @NotNull final Icon icon, final int x, final int y, final int zoom, final int alpha) { if (zoom <= 0 || zoom == 100) { - icon.paintIcon(this, g, x, y); + paintAlphaIcon(g, icon, x, y, alpha); } else { final AffineTransform savedTransform = g.getTransform(); try { g.translate(x, y); - g.scale(zoom/100.0, zoom/100.0); - icon.paintIcon(this, g, 0, 0); + g.scale(zoom / 100.0, zoom / 100.0); + paintAlphaIcon(g, icon, 0, 0, alpha); } finally { g.setTransform(savedTransform); } @@ -597,6 +601,28 @@ } /** + * Paints an icon at a given alpha value. + * @param g the graphics to paint into + * @param icon the icon to paint + * @param x the x coordinate to paint at + * @param y the y coordinate to paint at + * @param alpha the alpha value (0..255) + */ + private void paintAlphaIcon(@NotNull final Graphics2D g, @NotNull final Icon icon, final int x, final int y, final int alpha) { + if (alpha <= 0 || alpha >= 255) { + icon.paintIcon(this, g, x, y); + } else { + final Composite savedComposite = g.getComposite(); + try { + g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha / 255.0F)); + icon.paintIcon(this, g, x, y); + } finally { + g.setComposite(savedComposite); + } + } + } + + /** * Returns whether the given {@link BaseObject} is a spawn point. * @param gameObject the game object * @return whether it is a spawn point This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2011-07-08 17:41:49
|
Revision: 8936 http://gridarta.svn.sourceforge.net/gridarta/?rev=8936&view=rev Author: akirschbaum Date: 2011-07-08 17:41:43 +0000 (Fri, 08 Jul 2011) Log Message: ----------- Support 'zoom' attribute in map renderer. [Atrinik] Modified Paths: -------------- trunk/atrinik/ChangeLog trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java Modified: trunk/atrinik/ChangeLog =================================================================== --- trunk/atrinik/ChangeLog 2011-07-08 15:22:04 UTC (rev 8935) +++ trunk/atrinik/ChangeLog 2011-07-08 17:41:43 UTC (rev 8936) @@ -1,5 +1,7 @@ 2011-07-08 Andreas Kirschbaum + * Support 'zoom' attribute in map renderer. + * Do not reorder game objects when loading map files. Formerly multi-square game objects were moved to top. Modified: trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java 2011-07-08 15:22:04 UTC (rev 8935) +++ trunk/src/app/net/sf/gridarta/gui/map/renderer/AbstractIsoMapRenderer.java 2011-07-08 17:41:43 UTC (rev 8936) @@ -25,6 +25,7 @@ import java.awt.Graphics2D; import java.awt.Point; import java.awt.Rectangle; +import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage; import java.io.File; import java.util.Set; @@ -533,24 +534,34 @@ final G head = gameObject.getHead(); final Icon icon = "trans.101".equals(head.getFaceObjName()) ? unknownSquareIcon : head.getImage(mapViewSettings); final int xOffset = head.getAttributeInt("align"); + final int zoom = head.getAttributeInt("zoom"); + final int iconWidth; + final int iconHeight; + if (zoom == 0 || zoom == 100) { + iconWidth = icon.getIconWidth(); + iconHeight = icon.getIconHeight(); + } else { + iconWidth = (icon.getIconWidth() * zoom + 50) / 100; + iconHeight = (icon.getIconHeight() * zoom + 50) / 100; + } if (head.getMultiRefCount() > 0) { final R archetype = gameObject.getArchetype(); if (inSpawnPoint || archetype.isLowestPart()) { final int headMultiShapeID = head.getArchetype().getMultiShapeID(); final int multiPartNr = archetype.getMultiPartNr(); - final int x = xStart - multiPositionData.getXOffset(headMultiShapeID, multiPartNr) + multiPositionData.getWidth(headMultiShapeID) / 2 - icon.getIconWidth() / 2; - final int y = yStart - multiPositionData.getYOffset(headMultiShapeID, multiPartNr) + isoMapSquareInfo.getYLen() - icon.getIconHeight(); - icon.paintIcon(this, g, x + xOffset, y); + final int x = xStart - multiPositionData.getXOffset(headMultiShapeID, multiPartNr) + multiPositionData.getWidth(headMultiShapeID) / 2 - iconWidth / 2; + final int y = yStart - multiPositionData.getYOffset(headMultiShapeID, multiPartNr) + isoMapSquareInfo.getYLen() - iconHeight; + paintScaledIcon(g, icon, x + xOffset, y, zoom); } } else { final int x; - if (icon.getIconWidth() > isoMapSquareInfo.getXLen()) { - x = xStart + isoMapSquareInfo.getXLen2() - icon.getIconWidth() / 2; + if (iconWidth > isoMapSquareInfo.getXLen()) { + x = xStart + isoMapSquareInfo.getXLen2() - iconWidth / 2; } else { x = xStart; } - final int y = yStart + isoMapSquareInfo.getYLen() - icon.getIconHeight(); - icon.paintIcon(this, g, x + xOffset, y); + final int y = yStart + isoMapSquareInfo.getYLen() - iconHeight; + paintScaledIcon(g, icon, x + xOffset, y, zoom); } // Paint first object (most likely a mob) in spawn points. @@ -563,6 +574,29 @@ } /** + * Paints an icon at a given zoom factor. + * @param g the graphics to paint into + * @param icon the icon to paint + * @param x the x coordinate to paint at + * @param y the y coordinate to paint at + * @param zoom the zoom factor in percent + */ + private void paintScaledIcon(@NotNull final Graphics2D g, @NotNull final Icon icon, final int x, final int y, final int zoom) { + if (zoom <= 0 || zoom == 100) { + icon.paintIcon(this, g, x, y); + } else { + final AffineTransform savedTransform = g.getTransform(); + try { + g.translate(x, y); + g.scale(zoom/100.0, zoom/100.0); + icon.paintIcon(this, g, 0, 0); + } finally { + g.setTransform(savedTransform); + } + } + } + + /** * Returns whether the given {@link BaseObject} is a spawn point. * @param gameObject the game object * @return whether it is a spawn point This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |