Changeset 10082 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2016-03-30T02:55:55+02:00 (9 years ago)
Author:
Don-vip
Message:

remove useless code

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TagTable.java

    r10070 r10082  
    3838import org.openstreetmap.josm.data.osm.Relation;
    3939import org.openstreetmap.josm.data.osm.Tag;
    40 import org.openstreetmap.josm.gui.dialogs.relation.RunnableAction;
    4140import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionList;
    4241import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionManager;
     
    162161     *
    163162     */
    164     class DeleteAction extends RunnableAction implements ListSelectionListener {
     163    class DeleteAction extends AbstractAction implements ListSelectionListener {
    165164
    166165        DeleteAction() {
     
    197196
    198197        @Override
    199         public void run() {
     198        public void actionPerformed(ActionEvent e) {
    200199            if (!isEnabled())
    201200                return;
     
    251250     *
    252251     */
    253     class AddAction extends RunnableAction implements PropertyChangeListener {
     252    class AddAction extends AbstractAction implements PropertyChangeListener {
    254253        AddAction() {
    255254            putValue(SMALL_ICON, ImageProvider.get("dialogs", "add"));
     
    260259
    261260        @Override
    262         public void run() {
     261        public void actionPerformed(ActionEvent e) {
    263262            CellEditor editor = getCellEditor();
    264263            if (editor != null) {
     
    285284     * Action to be run when the user wants to paste tags from buffer
    286285     */
    287     class PasteAction extends RunnableAction implements PropertyChangeListener {
     286    class PasteAction extends AbstractAction implements PropertyChangeListener {
    288287        PasteAction() {
    289288            putValue(SMALL_ICON, ImageProvider.get("", "pastetags"));
     
    294293
    295294        @Override
    296         public void run() {
     295        public void actionPerformed(ActionEvent e) {
    297296            Relation relation = new Relation();
    298297            model.applyToPrimitive(relation);
     
    333332
    334333    /** the delete action */
    335     private RunnableAction deleteAction;
     334    private DeleteAction deleteAction;
    336335
    337336    /** the add action */
    338     private RunnableAction addAction;
     337    private AddAction addAction;
    339338
    340339    /** the tag paste action */
    341     private RunnableAction pasteAction;
    342 
    343     /**
    344      *
     340    private PasteAction pasteAction;
     341
     342    /**
     343     * Returns the delete action.
    345344     * @return the delete action used by this table
    346345     */
    347     public RunnableAction getDeleteAction() {
     346    public DeleteAction getDeleteAction() {
    348347        return deleteAction;
    349348    }
    350349
    351     public RunnableAction getAddAction() {
     350    /**
     351     * Returns the add action.
     352     * @return the add action used by this table
     353     */
     354    public AddAction getAddAction() {
    352355        return addAction;
    353356    }
    354357
    355     public RunnableAction getPasteAction() {
     358    /**
     359     * Returns the paste action.
     360     * @return the paste action used by this table
     361     */
     362    public PasteAction getPasteAction() {
    356363        return pasteAction;
    357364    }
     
    429436                //
    430437                return super.processKeyBinding(ks, e, condition, pressed);
    431             getDeleteAction().run();
     438            getDeleteAction().actionPerformed(null);
    432439        }
    433440        return super.processKeyBinding(ks, e, condition, pressed);
Note: See TracChangeset for help on using the changeset viewer.