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

updated a lot

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

Legend:

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

    r7287 r12588  
    1717  <property name="plugin.jar" value="${plugin.name}.jar"/>
    1818 
    19   <!-- plugin meta data (enter new version number if anything changed!) -->
    20   <property name="plugin.version" value="0.3.0"/>
    2119  <property name="plugin.description" value="Manage plugins and provide update mechanism (V${plugin.version})."/>
    2220  <property name="plugin.class" value="at.dallermassl.josm.plugin.pluginmanager.PluginManagerPlugin"/>
     
    4543    </copy>
    4644   
     45    <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     46      <env key="LANG" value="C"/>
     47      <arg value="info"/>
     48      <arg value="--xml"/>
     49      <arg value="."/>
     50    </exec>
     51    <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     52    <delete file="REVISION"/>
    4753    <!-- create jar file -->
    4854    <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     
    5056        <attribute name="Plugin-Class" value="${plugin.class}" />
    5157        <attribute name="Plugin-Description" value="${plugin.description}" />
    52         <attribute name="Plugin-Version" value="${plugin.version}" />
    53         <!--attribute name="Plugin-Dependencies" value="org.eigenheimstrasse.josm" /-->
     58        <attribute name="Plugin-Mainversion" value="1180" />
     59        <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     60        <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    5461      </manifest>
    5562    </jar>
  • applications/editors/josm/plugins/pluginmanager/src/at/dallermassl/josm/plugin/pluginmanager/PluginManagerPreference.java

    r3335 r12588  
    5050    private JList siteList;
    5151    private DefaultListModel siteListModel;
    52    
     52    private boolean requiresRestart = false;
     53
    5354    protected DefaultListModel createListModel() {
    5455        Map<String, String> sites = Main.pref.getAllPrefix(PREF_KEY_REMOTE_SITE_PREFIX);
     
    103104                    return;
    104105                }
    105                 gui.requiresRestart = gui.requiresRestart || false;
    106106            }
    107107        });
     
    117117                        siteListModel.removeElementAt(selected[i]);
    118118                    }
    119                     gui.requiresRestart = gui.requiresRestart || false;
    120119                }
    121120            }
     
    142141                    PluginUpdateFrame frame = new PluginUpdateFrame(tr("Plugins"), descriptions);
    143142                    frame.setVisible(true);
    144                     gui.requiresRestart = true;
     143                    requiresRestart = true;
    145144                }
    146145            }
     
    167166     * @see org.openstreetmap.josm.gui.preferences.PreferenceSetting#ok()
    168167     */
    169     // only in 1.6 allowed @Override
    170     public void ok() {
     168    public boolean ok() {
    171169        // first remove all old entries:
    172170        Map<String, String> keys = Main.pref.getAllPrefix(PREF_KEY_REMOTE_SITE_PREFIX);
     
    189187            }
    190188        }
     189        return requiresRestart;
    191190    }
    192 
    193191}
Note: See TracChangeset for help on using the changeset viewer.