Ignore:
Timestamp:
2008-12-25T19:01:06+01:00 (17 years ago)
Author:
stoecker
Message:

updated a lot

Location:
applications/editors/josm/plugins/colorscheme
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/colorscheme/build.xml

    r7287 r12588  
    1010  <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    1111 
    12   <!-- plugin meta data (enter new version number if anything changed!) -->
    13   <property name="plugin.version" value="0.5.2"/>
    1412  <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})."/>
    1513  <property name="plugin.class" value="at.dallermassl.josm.plugin.colorscheme.ColorSchemePlugin"/>
     
    3836    </copy>
    3937   
     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"/>
    4046    <!-- create jar file -->
    4147    <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     
    4349        <attribute name="Plugin-Class" value="${plugin.class}" />
    4450        <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}"/>
    4754      </manifest>
    4855    </jar>
  • applications/editors/josm/plugins/colorscheme/src/at/dallermassl/josm/plugin/colorscheme/ColorSchemePreference.java

    r4278 r12588  
    7171                    JOptionPane.showMessageDialog(Main.parent, tr("Please select a scheme to use."));
    7272                else {
    73                     String schemeName = (String) listModel.get(schemesList.getSelectedIndex());                   
     73                    String schemeName = (String) listModel.get(schemesList.getSelectedIndex());
    7474                    getColorPreference().setColorModel(getColorMap(schemeName));
    7575                }
    76                 gui.requiresRestart = gui.requiresRestart || false;
    7776            }
    7877        });
     
    8786                                listModel.addElement(schemeName);
    8887                saveSchemeNamesToPref();
    89                 gui.requiresRestart = gui.requiresRestart || false;
    9088                        }
    9189                });
     
    10199                                    listModel.remove(schemesList.getSelectedIndex());
    102100                                    saveSchemeNamesToPref();
    103                     gui.requiresRestart = gui.requiresRestart || false;
    104101                                }
    105102                        }
     
    135132        }
    136133
    137         public void ok() {
    138             // nothing to do
     134        public boolean ok() {
     135            return false;// nothing to do
    139136        }
    140137       
     
    179176            return colorMap;
    180177        }
    181        
    182         public ColorPreference getColorPreference() {
     178
     179    public ColorPreference getColorPreference() {
    183180        if(colorPreference == null) {
    184181            for(PreferenceSetting setting : PreferenceDialog.settings) {
     
    190187        }
    191188        return colorPreference;
    192         }
     189    }
    193190}
Note: See TracChangeset for help on using the changeset viewer.