Last change
on this file since 10378 was 9665, checked in by stoecker, 8 years ago |
fix eol-style issues and similar formating stuff, see #12410
|
File size:
881 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.tagging.presets.items;
|
---|
3 |
|
---|
4 | import java.util.Collection;
|
---|
5 | import java.util.List;
|
---|
6 |
|
---|
7 | import javax.swing.JLabel;
|
---|
8 | import javax.swing.JPanel;
|
---|
9 |
|
---|
10 | import org.openstreetmap.josm.data.osm.OsmPrimitive;
|
---|
11 | import org.openstreetmap.josm.data.osm.Tag;
|
---|
12 | import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetItem;
|
---|
13 | import org.openstreetmap.josm.tools.GBC;
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * Horizontal separator type.
|
---|
17 | */
|
---|
18 | public class Space extends TaggingPresetItem {
|
---|
19 |
|
---|
20 | @Override
|
---|
21 | public boolean addToPanel(JPanel p, Collection<OsmPrimitive> sel, boolean presetInitiallyMatches) {
|
---|
22 | p.add(new JLabel(" "), GBC.eol()); // space
|
---|
23 | return false;
|
---|
24 | }
|
---|
25 |
|
---|
26 | @Override
|
---|
27 | public void addCommands(List<Tag> changedTags) {
|
---|
28 | // Do nothing
|
---|
29 | }
|
---|
30 |
|
---|
31 | @Override
|
---|
32 | public String toString() {
|
---|
33 | return "Space";
|
---|
34 | }
|
---|
35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.