Changeset 22549 in osm for applications/editors/josm/plugins/routing/src
- Timestamp:
- 2010-08-03T08:17:26+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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(new RenameLayerAction(getAssociatedFile(), this)));191 components.add( new JSeparator());192 components.add(new JMenuItem(new LayerListPopup.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.