This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 82133
Collapse All | Expand All

(-)src/org/openide/windows/Bundle.properties (+13 lines)
Lines 33-35 Link Here
33
33
34
#TopComponent
34
#TopComponent
35
EXC_UnknownOperation=Unknown close operation
35
EXC_UnknownOperation=Unknown close operation
36
37
38
#
39
# UI Logging
40
#
41
# UI logging of key press
42
# {0} instance of the key
43
# {1} to string of the key
44
# {2} instance of the action
45
# {3} class of the action
46
# {4} display name of the action
47
UI_ACTION_KEY_PRESS=Invoking {4} implemented as {3} with {0}
48
(-)src/org/openide/windows/TopComponent.java (+9 lines)
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 {

Return to bug 82133