Changeset 22549 in osm for applications/editors/josm/plugins/routing
- Timestamp:
- 2010-08-03T08:17:26+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/routing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routing/build.xml
r21706 r22549 18 18 ** 19 19 ** To build against the core in ../../core, create a correct manifest and deploy to 20 ** SVN, 20 ** SVN, 21 21 ** set the properties commit.message and plugin.main.version 22 22 ** and run … … 28 28 29 29 <property name="commit.message" value="Changed the constructor signature of the plugin main class" /> 30 <property name="plugin.main.version" value=" 2830" />30 <property name="plugin.main.version" value="3408" /> 31 31 32 32 <!-- Define some properties --> … … 106 106 107 107 <!-- 108 ************************** Publishing the plugin *********************************** 109 --> 110 <!-- 111 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 108 ************************** Publishing the plugin *********************************** 109 --> 110 <!-- 111 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 112 112 ** property ${coreversion.info.entry.revision} 113 113 ** … … 158 158 159 159 <!-- 160 ** commits the plugin.jar 160 ** commits the plugin.jar 161 161 --> 162 162 <target name="commit-dist"> 163 163 <echo> 164 164 ***** Properties of published ${plugin.jar} ***** 165 Commit message : '${commit.message}' 165 Commit message : '${commit.message}' 166 166 Plugin-Mainversion: ${plugin.main.version} 167 167 JOSM build version: ${coreversion.info.entry.revision} 168 168 Plugin-Version : ${version.entry.commit.revision} 169 ***** / Properties of published ${plugin.jar} ***** 170 169 ***** / Properties of published ${plugin.jar} ***** 170 171 171 Now commiting ${plugin.jar} ... 172 172 </echo> -
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingLayer.java
r18962 r22549 30 30 import java.awt.BasicStroke; 31 31 import java.awt.Color; 32 import java.awt.Component;33 32 import java.awt.Graphics; 34 33 import java.awt.Graphics2D; … … 39 38 import java.util.List; 40 39 40 import javax.swing.Action; 41 41 import javax.swing.Icon; 42 import javax.swing.JMenuItem;43 import javax.swing.JSeparator;44 42 45 43 import org.apache.log4j.Logger; … … 182 180 */ 183 181 @Override 184 public Component[] getMenuEntries() {185 Collection< Component> components = new ArrayList<Component>();186 components.add( new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)));182 public Action[] getMenuEntries() { 183 Collection<Action> components = new ArrayList<Action>(); 184 components.add(LayerListDialog.getInstance().createShowHideLayerAction()); 187 185 // components.add(new JMenuItem(new LayerListDialog.ShowHideMarkerText(this))); 188 components.add( new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)));189 components.add( new JSeparator());190 components.add(new JMenuItem(newRenameLayerAction(getAssociatedFile(), this)));191 components.add( new JSeparator());192 components.add(new JMenuItem(newLayerListPopup.InfoAction(this)));193 return components.toArray(new Component[0]);186 components.add(LayerListDialog.getInstance().createDeleteLayerAction()); 187 components.add(SeparatorLayerAction.INSTANCE); 188 components.add(new RenameLayerAction(getAssociatedFile(), this)); 189 components.add(SeparatorLayerAction.INSTANCE); 190 components.add(new LayerListPopup.InfoAction(this)); 191 return components.toArray(new Action[0]); 194 192 } 195 193
Note:
See TracChangeset
for help on using the changeset viewer.