Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@

import javax.swing.AbstractAction;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import com.mirth.connect.client.ui.components.MirthTextInterface;

/** Allows for Pasting in text components. */
public class PasteAction extends AbstractAction {

private static final Logger logger = LogManager.getLogger(PasteAction.class);
MirthTextInterface comp;

public PasteAction(MirthTextInterface comp) {
Expand All @@ -46,6 +50,9 @@ public boolean isEnabled() {
return false;
} catch (IllegalStateException e) {
return false;
} catch (Error e) {
logger.warn("Could not check clipboard contents.", e);
return false;
}
} else {
return false;
Expand Down
Loading