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 97973 Details for
Bug 227780
Traditional Rendering refactoring request
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch for AbstractPane.java
AbstractPane.java.patch (text/plain), 3.25 KB, created by
Alain Lee
on 2008-04-29 09:45:26 EDT
(
hide
)
Description:
patch for AbstractPane.java
Filename:
MIME Type:
Creator:
Alain Lee
Created:
2008-04-29 09:45:26 EDT
Size:
3.25 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.dd.debug.memory.renderings >Index: plugins/org.eclipse.dd.debug.memory.renderings.traditional/src/org/eclipse/dd/debug/memory/renderings/traditional/AbstractPane.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.dd.debug.memory.renderings/plugins/org.eclipse.dd.debug.memory.renderings.traditional/src/org/eclipse/dd/debug/memory/renderings/traditional/AbstractPane.java,v >retrieving revision 1.13 >diff -u -r1.13 AbstractPane.java >--- plugins/org.eclipse.dd.debug.memory.renderings.traditional/src/org/eclipse/dd/debug/memory/renderings/traditional/AbstractPane.java 2 Mar 2008 20:43:32 -0000 1.13 >+++ plugins/org.eclipse.dd.debug.memory.renderings.traditional/src/org/eclipse/dd/debug/memory/renderings/traditional/AbstractPane.java 29 Apr 2008 13:43:43 -0000 >@@ -135,6 +135,30 @@ > } > } > >+ class AbstractPaneFocusListener implements FocusListener >+ { >+ public void focusLost(FocusEvent fe) >+ { >+ IPreferenceStore store = TraditionalRenderingPlugin.getDefault().getPreferenceStore(); >+ if(TraditionalRenderingPreferenceConstants.MEM_EDIT_BUFFER_SAVE_ON_ENTER_ONLY >+ .equals(store.getString(TraditionalRenderingPreferenceConstants.MEM_EDIT_BUFFER_SAVE))) >+ { >+ fRendering.getViewportCache().clearEditBuffer(); >+ } >+ else >+ { >+ fRendering.getViewportCache().writeEditBuffer(); >+ } >+ >+ // clear the pane local selection start >+ AbstractPane.this.fSelectionStartAddress = null; >+ } >+ >+ public void focusGained(FocusEvent fe) >+ { >+ } >+ >+ } > class AbstractPaneKeyListener implements KeyListener > { > public void keyPressed(KeyEvent ke) >@@ -272,29 +296,7 @@ > > this.addKeyListener(createKeyListener()); > >- this.addFocusListener(new FocusListener() >- { >- public void focusLost(FocusEvent fe) >- { >- IPreferenceStore store = TraditionalRenderingPlugin.getDefault().getPreferenceStore(); >- if(TraditionalRenderingPreferenceConstants.MEM_EDIT_BUFFER_SAVE_ON_ENTER_ONLY >- .equals(store.getString(TraditionalRenderingPreferenceConstants.MEM_EDIT_BUFFER_SAVE))) >- { >- fRendering.getViewportCache().clearEditBuffer(); >- } >- else >- { >- fRendering.getViewportCache().writeEditBuffer(); >- } >- >- // clear the pane local selection start >- AbstractPane.this.fSelectionStartAddress = null; >- } >- >- public void focusGained(FocusEvent fe) >- { >- } >- }); >+ this.addFocusListener(createFocusListener()); > } > > protected MouseListener createMouseListener(){ >@@ -304,6 +306,10 @@ > protected MouseMoveListener createMouseMoveListener(){ > return new AbstractPaneMouseMoveListener(); > } >+ >+ protected FocusListener createFocusListener() { >+ return new AbstractPaneFocusListener(); >+ } > > protected KeyListener createKeyListener(){ > return new AbstractPaneKeyListener();
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 227780
:
96608
| 97973 |
98342