Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 6111 Details for
Bug 36420
[KeyBindings] Imported key preferences have no effect until you look at the page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch to PreferenceCommandRegistry
org.eclipse.ui.workbench-Bug36420.patch (text/plain), 1.54 KB, created by
Douglas Pollock
on 2003-09-16 12:13:03 EDT
(
hide
)
Description:
Patch to PreferenceCommandRegistry
Filename:
MIME Type:
Creator:
Douglas Pollock
Created:
2003-09-16 12:13:03 EDT
Size:
1.54 KB
patch
obsolete
>Index: Eclipse UI/org/eclipse/ui/internal/commands/PreferenceCommandRegistry.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/PreferenceCommandRegistry.java,v >retrieving revision 1.4 >diff -u -r1.4 PreferenceCommandRegistry.java >--- Eclipse UI/org/eclipse/ui/internal/commands/PreferenceCommandRegistry.java 25 Aug 2003 01:49:04 -0000 1.4 >+++ Eclipse UI/org/eclipse/ui/internal/commands/PreferenceCommandRegistry.java 16 Sep 2003 15:56:24 -0000 >@@ -20,6 +20,8 @@ > import java.util.List; > > import org.eclipse.jface.preference.IPreferenceStore; >+import org.eclipse.jface.util.IPropertyChangeListener; >+import org.eclipse.jface.util.PropertyChangeEvent; > import org.eclipse.ui.IMemento; > import org.eclipse.ui.WorkbenchException; > import org.eclipse.ui.XMLMemento; >@@ -34,6 +36,22 @@ > PreferenceCommandRegistry(IPreferenceStore preferenceStore) { > if (preferenceStore == null) > throw new NullPointerException(); >+ >+ /* Attach a listener to make sure that a re-load is performed if the >+ * underlying preferences changes. >+ */ >+ preferenceStore.addPropertyChangeListener(new IPropertyChangeListener() { >+ public final void propertyChange(final PropertyChangeEvent event) { >+ final String property = event.getProperty(); >+ if ((property != null) && (KEY.equals(property))) { >+ try { >+ load(); >+ } catch (final IOException e) { >+ e.printStackTrace(); >+ } >+ } >+ } >+ }); > > this.preferenceStore = preferenceStore; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 36420
: 6111