Lines 45-50
Link Here
|
45 |
import java.util.List; |
45 |
import java.util.List; |
46 |
import java.util.Set; |
46 |
import java.util.Set; |
47 |
import java.util.logging.Level; |
47 |
import java.util.logging.Level; |
|
|
48 |
import java.util.logging.LogRecord; |
48 |
import java.util.logging.Logger; |
49 |
import java.util.logging.Logger; |
49 |
import javax.accessibility.Accessible; |
50 |
import javax.accessibility.Accessible; |
50 |
import javax.accessibility.AccessibleContext; |
51 |
import javax.accessibility.AccessibleContext; |
Lines 57-62
Link Here
|
57 |
import javax.swing.Timer; |
58 |
import javax.swing.Timer; |
58 |
import javax.swing.plaf.basic.BasicHTML; |
59 |
import javax.swing.plaf.basic.BasicHTML; |
59 |
import javax.swing.text.Keymap; |
60 |
import javax.swing.text.Keymap; |
|
|
61 |
import org.openide.awt.Actions; |
60 |
import org.openide.awt.UndoRedo; |
62 |
import org.openide.awt.UndoRedo; |
61 |
import org.openide.nodes.Node; |
63 |
import org.openide.nodes.Node; |
62 |
import org.openide.nodes.NodeAdapter; |
64 |
import org.openide.nodes.NodeAdapter; |
Lines 86-91
Link Here
|
86 |
* @author Jaroslav Tulach, Petr Hamernik, Jan Jancura |
88 |
* @author Jaroslav Tulach, Petr Hamernik, Jan Jancura |
87 |
*/ |
89 |
*/ |
88 |
public class TopComponent extends JComponent implements Externalizable, Accessible, HelpCtx.Provider, Lookup.Provider { |
90 |
public class TopComponent extends JComponent implements Externalizable, Accessible, HelpCtx.Provider, Lookup.Provider { |
|
|
91 |
/** UI logger to notify about invocation of an action */ |
92 |
private static Logger UILOG = Logger.getLogger("org.netbeans.ui.actions"); // NOI18N |
89 |
/** generated Serialized Version UID */ |
93 |
/** generated Serialized Version UID */ |
90 |
static final long serialVersionUID = -3022538025284122942L; |
94 |
static final long serialVersionUID = -3022538025284122942L; |
91 |
/** top component logger */ |
95 |
/** top component logger */ |
Lines 882-887
Link Here
|
882 |
} |
886 |
} |
883 |
|
887 |
|
884 |
if (action.isEnabled()) { |
888 |
if (action.isEnabled()) { |
|
|
889 |
LogRecord rec = new LogRecord(Level.FINER, "UI_ACTION_KEY_PRESS"); // NOI18N |
890 |
rec.setParameters(new Object[] { ks, ks.toString(), action, action.getClass().getName(), action.getValue(Action.NAME) }); |
891 |
rec.setResourceBundle(NbBundle.getBundle(Actions.class)); |
892 |
UILOG.log(rec); |
893 |
|
885 |
ActionEvent ev = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, Utilities.keyToString(ks)); |
894 |
ActionEvent ev = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, Utilities.keyToString(ks)); |
886 |
action.actionPerformed(ev); |
895 |
action.actionPerformed(ev); |
887 |
} else { |
896 |
} else { |