Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eclipse is puking, I need to re-check out the whole project. I think.
git-svn-id: https://svn2.assembla.com/svn/romraider/branches/dev_xmlmerge@319 38686702-15cf-42e4-a595-3071df8bf5ea
- Loading branch information
Showing
16 changed files
with
184 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,46 @@ | |||
<?xml version="1.0" encoding="ISO-8859-1"?> | |||
<settings> | |||
<window> | |||
<maximized value="false"/> | |||
<size x="600" y="800"/> | |||
<location x="400" y="150"/> | |||
<splitpane location="150"/> | |||
</window> | |||
<files> | |||
<image_dir path="C:\workspace\romraider\images"/> | |||
</files> | |||
<options> | |||
<obsoletewarning value="true"/> | |||
<calcconflictwarning value="true"/> | |||
<debug value="false"/> | |||
<userlevel value="1"/> | |||
<tableclickcount value="1"/> | |||
<version value="0.5.3 Beta RC7"/> | |||
<savedebugtables value="true"/> | |||
<displayhightables value="true"/> | |||
<valuelimitwarning value="true"/> | |||
</options> | |||
<tabledisplay> | |||
<font face="Arial" size="11" decoration="1"/> | |||
<cellsize height="18" width="42"/> | |||
<colors> | |||
<max r="255" g="102" b="102"/> | |||
<min r="153" g="153" b="255"/> | |||
<highlight r="204" g="204" b="204"/> | |||
<increaseborder r="255" g="0" b="0"/> | |||
<decreaseborder r="0" g="0" b="255"/> | |||
<axis r="255" g="255" b="255"/> | |||
<warning r="255" g="0" b="0"/> | |||
</colors> | |||
</tabledisplay> | |||
<logger> | |||
<serial port="" refresh="true"/> | |||
<maximized value="false"/> | |||
<size x="600" y="1000"/> | |||
<location x="0" y="0"/> | |||
<tabs selected="0" showlist="true"/> | |||
<definition path=""/> | |||
<profile path=""/> | |||
<filelogging path="C:\Users\owner" switchid="S20" active="true" absolutetimestamp="false"/> | |||
</logger> | |||
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,13 @@ | |||
package com.romraider.metadata; | |||
|
|||
public class ScalingMetadata { | |||
private String name; | |||
|
|||
public String getName() { | |||
return name; | |||
} | |||
|
|||
public void setName(String name) { | |||
this.name = name; | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
package com.romraider.metadata; | |||
|
|||
import java.util.ArrayList; | |||
import com.romraider.metadata.exception.ScalingNotFoundException; | |||
|
|||
public class ScalingMetadataList<ScalingMetadata> extends ArrayList<ScalingMetadata> { | |||
|
|||
public ScalingMetadata get(String name) { | |||
for (ScalingMetadata s : this) { | |||
if (s.getName().equalsIgnoreCase(name)) return s; | |||
} | |||
throw new ScalingNotFoundException(); | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
package com.romraider.metadata; | |||
|
|||
import java.util.ArrayList; | |||
|
|||
import com.romraider.metadata.exception.TableNotFoundException; | |||
|
|||
public class TableMetadataList<TableMetadata> extends ArrayList<AbstractTableMetadata> { | |||
|
|||
public AbstractTableMetadata get(String name) throws TableNotFoundException { | |||
for (AbstractTableMetadata t : this) { | |||
if (t.getName().equalsIgnoreCase(name)) return t; | |||
} | |||
throw new TableNotFoundException(); | |||
} | |||
} |
2 changes: 1 addition & 1 deletion
2
...raider/metadata/RomNotFoundException.java → ...adata/exception/RomNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/com/romraider/metadata/exception/ScalingNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,29 @@ | |||
/* | |||
* RomRaider Open-Source Tuning, Logging and Reflashing | |||
* Copyright (C) 2006-2010 RomRaider.com | |||
* | |||
* 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 com.romraider.metadata.exception; | |||
|
|||
public final class ScalingNotFoundException extends Exception { | |||
|
|||
private static final long serialVersionUID = -7492075561444288417L; | |||
|
|||
public String getMessage() { | |||
return "Scaling not found."; | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,37 @@ | |||
action.default=MERGE | |||
|
|||
xpath.path1=/rom/romid/xmlid | |||
action.path1=REPLACE | |||
|
|||
xpath.path2=/rom/romid/internalidaddress | |||
action.path2=REPLACE | |||
|
|||
xpath.path3=/rom/romid/inernalidstring | |||
action.path3=REPLACE | |||
|
|||
xpath.path4=/rom/romid/ecuid | |||
action.path4=REPLACE | |||
|
|||
xpath.path5=/rom/romid/year | |||
action.path5=REPLACE | |||
|
|||
xpath.path6=/rom/romid/market | |||
action.path6=REPLACE | |||
|
|||
xpath.make=/rom/romid/make | |||
action.make=REPLACE | |||
|
|||
xpath.path8=/rom/romid/model | |||
action.path8=REPLACE | |||
|
|||
xpath.path8=/rom/romid/submodel | |||
action.path8=REPLACE | |||
|
|||
xpath.path9=/rom/romid/transmission | |||
action.path1=REPLACE | |||
|
|||
xpath.path9=/rom/romid/memmodel | |||
action.path1=REPLACE | |||
|
|||
xpath.path10=/rom/romid/flashmethod | |||
action.path10=REPLACE |