001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.gui.tagging.presets.items;
003
004import static org.openstreetmap.josm.tools.I18n.tr;
005
006import java.util.Collection;
007
008import javax.swing.JLabel;
009import javax.swing.JPanel;
010
011import org.openstreetmap.josm.data.osm.OsmPrimitive;
012import org.openstreetmap.josm.tools.GBC;
013
014public class Optional extends TextItem {
015
016    // TODO: Draw a box around optional stuff
017    @Override
018    public boolean addToPanel(JPanel p, Collection<OsmPrimitive> sel, boolean presetInitiallyMatches) {
019        initializeLocaleText(tr("Optional Attributes:"));
020        p.add(new JLabel(" "), GBC.eol()); // space
021        p.add(new JLabel(locale_text), GBC.eol());
022        p.add(new JLabel(" "), GBC.eol()); // space
023        return false;
024    }
025}