Last change
on this file since 9492 was 9492, checked in by Don-vip, 8 years ago |
presets items: fix sonar issues, add javadoc
|
File size:
1.0 KB
|
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.JPanel;
|
---|
8 | import javax.swing.JSeparator;
|
---|
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 | * Class used to represent a {@link JSeparator} inside tagging preset window.
|
---|
17 | * @since 6198
|
---|
18 | */
|
---|
19 | public class ItemSeparator extends TaggingPresetItem {
|
---|
20 |
|
---|
21 | @Override
|
---|
22 | public boolean addToPanel(JPanel p, Collection<OsmPrimitive> sel, boolean presetInitiallyMatches) {
|
---|
23 | p.add(new JSeparator(), GBC.eol().fill(GBC.HORIZONTAL).insets(0, 5, 0, 5));
|
---|
24 | return false;
|
---|
25 | }
|
---|
26 |
|
---|
27 | @Override
|
---|
28 | public void addCommands(List<Tag> changedTags) {
|
---|
29 | // Do nothing
|
---|
30 | }
|
---|
31 |
|
---|
32 | @Override
|
---|
33 | public String toString() {
|
---|
34 | return "ItemSeparator";
|
---|
35 | }
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.