Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3674

BaseKit manipulates JTextComponent and NOT in EDT

    XMLWordPrintableJSON

Details

    Description

      In editor.lib/.../BasKit.java a lookup listener does "c.setMap(keymap)". This is required to run in the EventDisplatchThread. KeybindingsAndPreferencesTracker::refreshShortcutsAndActions around line 4125

      For example:
       "Editor-Setting-Files-Tracker-Keybindings"
      at org.netbeans.editor.BaseKit$KeybindingsAndPreferencesTracker.refreshShortcutsAndActions(BaseKit.java:4119)
      at org.netbeans.editor.BaseKit$KeybindingsAndPreferencesTracker.resultChanged(BaseKit.java:4081)
      ...
      at org.netbeans.modules.editor.settings.storage.SettingsProvider$MyLookup.updateContents(SettingsProvider.java:275)
      at org.netbeans.modules.editor.settings.storage.SettingsProvider$MyLookup.propertyChange(SettingsProvider.java:188)
      at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:190)
      ...
      at org.netbeans.modules.editor.settings.storage.keybindings.KeyBindingSettingsImpl$Listener.propertyChange(KeyBindingSettingsImpl.java:320)
      at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
      at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
      at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
      at org.netbeans.modules.editor.settings.storage.api.EditorSettingsStorage$2.call(EditorSettingsStorage.java:104)
      at org.netbeans.modules.editor.settings.storage.api.EditorSettingsStorage$2.call(EditorSettingsStorage.java:102)
      at org.netbeans.modules.editor.settings.storage.StorageImpl.refresh(StorageImpl.java:170)
      at org.netbeans.modules.editor.settings.storage.StorageImpl$FilesystemTracker.run(StorageImpl.java:591)
      at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
      at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
      at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
      at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

      Attachments

        Issue Links

          Activity

            People

              errael Ernie Rael
              errael Ernie Rael
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m