MCPcopy Create free account
hub / github.com/GateNLP/gate-core / run

Method run

src/main/java/gate/gui/MainFrame.java:5099–5112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5097 public void actionPerformed(ActionEvent e) {
5098 Runnable runnable = new Runnable() {
5099 @Override
5100 public void run() {
5101 javax.swing.ToolTipManager toolTipManager =
5102 ToolTipManager.sharedInstance();
5103 if (toolTipManager.isEnabled()) {
5104 toolTipManager.setEnabled(false);
5105 Gate.getUserConfig().put(
5106 MainFrame.class.getName()+".hidetooltips", false);
5107 } else {
5108 toolTipManager.setEnabled(true);
5109 Gate.getUserConfig().put(
5110 MainFrame.class.getName()+".hidetooltips", true);
5111 }
5112 }
5113 };
5114 Thread thread = new Thread(runnable, "ToggleToolTipsAction");
5115 thread.start();

Callers

nothing calls this directly

Calls 5

getUserConfigMethod · 0.95
getNameMethod · 0.65
isEnabledMethod · 0.45
setEnabledMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected