Ignore:
Timestamp:
2015-06-06T04:32:00+02:00 (9 years ago)
Author:
Don-vip
Message:

javadoc fixes. Removed one duplicated method in exception handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java

    r8308 r8470  
    3535 *
    3636 * The user can click on an object, which gets deleted if possible. When Ctrl is
    37  * pressed when releasing the button, the objects and all its references are
    38  * deleted.
     37 * pressed when releasing the button, the objects and all its references are deleted.
    3938 *
    4039 * If the user did not press Ctrl and the object has any references, the user
     
    4746 */
    4847public class DeleteAction extends MapMode implements ModifierListener {
    49     // Cache previous mouse event (needed when only the modifier keys are
    50     // pressed but the mouse isn't moved)
     48    // Cache previous mouse event (needed when only the modifier keys are pressed but the mouse isn't moved)
    5149    private MouseEvent oldEvent = null;
    5250
     
    181179    /**
    182180     * handles everything related to highlighting primitives and way
    183      * segments for the given pointer position (via MouseEvent) and
    184      * modifiers.
    185      * @param e
    186      * @param modifiers
     181     * segments for the given pointer position (via MouseEvent) and modifiers.
     182     * @param e current mouse event
     183     * @param modifiers mouse modifiers, not necessarly taken from the given mouse event
    187184     */
    188185    private void addHighlighting(MouseEvent e, int modifiers) {
     
    202199            Command delCmd = buildDeleteCommands(e, modifiers, true);
    203200            if(delCmd != null) {
    204                 // all other cases delete OsmPrimitives directly, so we can
    205                 // safely do the following
     201                // all other cases delete OsmPrimitives directly, so we can safely do the following
    206202                for(OsmPrimitive osm : delCmd.getParticipatingPrimitives()) {
    207203                    newHighlights.add(osm);
     
    236232
    237233    /**
    238      * This function handles all work related to updating the cursor and
    239      * highlights
     234     * This function handles all work related to updating the cursor and highlights
    240235     *
    241      * @param e
    242      * @param modifiers
     236     * @param e current mouse event
     237     * @param modifiers mouse modifiers, not necessarly taken from the given mouse event
    243238     */
    244239    private void updateCursor(MouseEvent e, int modifiers) {
     
    260255     * mouse is not moved and only modifier keys are pressed, no mouse event
    261256     * occurs. We can use AWTEvent to catch those but still lack a proper
    262      * mouseevent. Instead we copy the previous event and only update the
    263      * modifiers.
     257     * mouseevent. Instead we copy the previous event and only update the modifiers.
    264258     */
    265259    private void giveUserFeedback(MouseEvent e, int modifiers) {
     
    279273    /**
    280274     * If user clicked with the left button, delete the nearest object.
    281      * position.
    282275     */
    283276    @Override
     
    372365     * @param e MouseEvent from which modifiers and position are taken
    373366     * @param modifiers For explanation, see {@link #updateCursor}
    374      * @param silent Set to true if the user should not be bugged with additional
    375      *        dialogs
     367     * @param silent Set to true if the user should not be bugged with additional dialogs
    376368     * @return delete command
    377369     */
Note: See TracChangeset for help on using the changeset viewer.