Skip to content

Commit

Permalink
Make AbstractTool's accessibleStep mechanism accessible for
Browse files Browse the repository at this point in the history
  • Loading branch information
lredor committed Apr 22, 2024
1 parent 451bc1f commit b75f4bc
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions org.eclipse.gef/src/org/eclipse/gef/tools/AbstractTool.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* Copyright (c) 2000, 2024 IBM Corporation and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand Down Expand Up @@ -233,11 +233,22 @@ boolean acceptDragCommit(KeyEvent e) {
return isInState(STATE_ACCESSIBLE_DRAG_IN_PROGRESS) && e.character == 13;
}

int accGetStep() {
/**
* Return the accessible step.
*
* @return The accessible step.
* @since 3.18
*/
protected int accGetStep() {
return accessibleStep;
}

void accStepIncrement() {
/**
* Increment the accessible step.
*
* @since 3.18
*/
protected void accStepIncrement() {
if (accessibleBegin == -1) {
accessibleBegin = new Date().getTime();
accessibleStep = 1;
Expand All @@ -250,7 +261,12 @@ void accStepIncrement() {
}
}

void accStepReset() {
/**
* Reset the accessible step.
*
* @since 3.18
*/
protected void accStepReset() {
accessibleBegin = -1;
}

Expand Down

0 comments on commit b75f4bc

Please sign in to comment.