Skip to content

Commit

Permalink
Refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
albertus82 committed May 25, 2024
1 parent aed9465 commit 40efe88
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
import org.eclipse.swt.widgets.Text;

import io.github.albertus82.jface.closeable.CloseableClipboard;
import lombok.AccessLevel;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor(access = AccessLevel.PROTECTED)
public abstract class TextListener {

@NonNull
protected final Text text;

protected TextListener(@NonNull final Text text) {
this.text = text;
}

protected void copySelection() {
if (!text.isDisposed()) {
final String selectionText = text.getSelectionText();
Expand Down

0 comments on commit 40efe88

Please sign in to comment.