Changeset 12588 in osm for applications/editors/josm/plugins/colorscheme
- Timestamp:
- 2008-12-25T19:01:06+01:00 (17 years ago)
- Location:
- applications/editors/josm/plugins/colorscheme
- Files:
-
- 2 edited
-
build.xml (modified) (3 diffs)
-
src/at/dallermassl/josm/plugin/colorscheme/ColorSchemePreference.java (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/colorscheme/build.xml
r7287 r12588 10 10 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/> 11 11 12 <!-- plugin meta data (enter new version number if anything changed!) -->13 <property name="plugin.version" value="0.5.2"/>14 12 <property name="plugin.description" value="Allows the user to create different color schemes and to switch between them. Just change the colors and create a new scheme. Used to switch to a white background with matching colors for better visibility in bright sunlight. See dialog in JOSM's preferences and 'Map Settings' (strange but true :-) (V${plugin.version})."/> 15 13 <property name="plugin.class" value="at.dallermassl.josm.plugin.colorscheme.ColorSchemePlugin"/> … … 38 36 </copy> 39 37 38 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 39 <env key="LANG" value="C"/> 40 <arg value="info"/> 41 <arg value="--xml"/> 42 <arg value="."/> 43 </exec> 44 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 45 <delete file="REVISION"/> 40 46 <!-- create jar file --> 41 47 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> … … 43 49 <attribute name="Plugin-Class" value="${plugin.class}" /> 44 50 <attribute name="Plugin-Description" value="${plugin.description}" /> 45 <attribute name="Plugin-Version" value="${plugin.version}" /> 46 <!--attribute name="Plugin-Dependencies" value="org.eigenheimstrasse.josm" /--> 51 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 52 <attribute name="Plugin-Mainversion" value="1180"/> 53 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 47 54 </manifest> 48 55 </jar> -
applications/editors/josm/plugins/colorscheme/src/at/dallermassl/josm/plugin/colorscheme/ColorSchemePreference.java
r4278 r12588 71 71 JOptionPane.showMessageDialog(Main.parent, tr("Please select a scheme to use.")); 72 72 else { 73 String schemeName = (String) listModel.get(schemesList.getSelectedIndex()); 73 String schemeName = (String) listModel.get(schemesList.getSelectedIndex()); 74 74 getColorPreference().setColorModel(getColorMap(schemeName)); 75 75 } 76 gui.requiresRestart = gui.requiresRestart || false;77 76 } 78 77 }); … … 87 86 listModel.addElement(schemeName); 88 87 saveSchemeNamesToPref(); 89 gui.requiresRestart = gui.requiresRestart || false;90 88 } 91 89 }); … … 101 99 listModel.remove(schemesList.getSelectedIndex()); 102 100 saveSchemeNamesToPref(); 103 gui.requiresRestart = gui.requiresRestart || false;104 101 } 105 102 } … … 135 132 } 136 133 137 public voidok() {138 // nothing to do 134 public boolean ok() { 135 return false;// nothing to do 139 136 } 140 137 … … 179 176 return colorMap; 180 177 } 181 182 public ColorPreference getColorPreference() {178 179 public ColorPreference getColorPreference() { 183 180 if(colorPreference == null) { 184 181 for(PreferenceSetting setting : PreferenceDialog.settings) { … … 190 187 } 191 188 return colorPreference; 192 }189 } 193 190 }
Note:
See TracChangeset
for help on using the changeset viewer.
