Changeset 12588 in osm for applications/editors/josm/plugins/pluginmanager
- Timestamp:
- 2008-12-25T19:01:06+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/pluginmanager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pluginmanager/build.xml
r7287 r12588 17 17 <property name="plugin.jar" value="${plugin.name}.jar"/> 18 18 19 <!-- plugin meta data (enter new version number if anything changed!) -->20 <property name="plugin.version" value="0.3.0"/>21 19 <property name="plugin.description" value="Manage plugins and provide update mechanism (V${plugin.version})."/> 22 20 <property name="plugin.class" value="at.dallermassl.josm.plugin.pluginmanager.PluginManagerPlugin"/> … … 45 43 </copy> 46 44 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"/> 47 53 <!-- create jar file --> 48 54 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> … … 50 56 <attribute name="Plugin-Class" value="${plugin.class}" /> 51 57 <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}"/> 54 61 </manifest> 55 62 </jar> -
applications/editors/josm/plugins/pluginmanager/src/at/dallermassl/josm/plugin/pluginmanager/PluginManagerPreference.java
r3335 r12588 50 50 private JList siteList; 51 51 private DefaultListModel siteListModel; 52 52 private boolean requiresRestart = false; 53 53 54 protected DefaultListModel createListModel() { 54 55 Map<String, String> sites = Main.pref.getAllPrefix(PREF_KEY_REMOTE_SITE_PREFIX); … … 103 104 return; 104 105 } 105 gui.requiresRestart = gui.requiresRestart || false;106 106 } 107 107 }); … … 117 117 siteListModel.removeElementAt(selected[i]); 118 118 } 119 gui.requiresRestart = gui.requiresRestart || false;120 119 } 121 120 } … … 142 141 PluginUpdateFrame frame = new PluginUpdateFrame(tr("Plugins"), descriptions); 143 142 frame.setVisible(true); 144 gui.requiresRestart = true;143 requiresRestart = true; 145 144 } 146 145 } … … 167 166 * @see org.openstreetmap.josm.gui.preferences.PreferenceSetting#ok() 168 167 */ 169 // only in 1.6 allowed @Override 170 public void ok() { 168 public boolean ok() { 171 169 // first remove all old entries: 172 170 Map<String, String> keys = Main.pref.getAllPrefix(PREF_KEY_REMOTE_SITE_PREFIX); … … 189 187 } 190 188 } 189 return requiresRestart; 191 190 } 192 193 191 }
Note:
See TracChangeset
for help on using the changeset viewer.