mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix for PR 38788: Ctrl-X, Ctrl-C, Ctrl-V, Ctrl-A, Ctrl-Z and Ctrl-Y keys don't work in the address field of the Memory view.
Note: Ctrl-Z still doesn't work because there is no support of it in the Text widget.
This commit is contained in:
parent
729fbe3c68
commit
56d196d558
4 changed files with 51 additions and 11 deletions
|
@ -1,3 +1,11 @@
|
|||
2003-06-13 Mikhail Khodjaiants
|
||||
Fix for PR 38788: Ctrl-X, Ctrl-C, Ctrl-V, Ctrl-A, Ctrl-Z and Ctrl-Y keys don't work
|
||||
in the address field of the Memory view.
|
||||
Note: Ctrl-Z still doesn't work because there is no support of it in the Text widget.
|
||||
* MemoryViewAction.java: moved to the org.eclipse.cdt.debug.internal.ui.views.memory package.
|
||||
* MemoryControlArea.java
|
||||
* MemoryView.java
|
||||
|
||||
2003-06-12 Mikhail Khodjaiants
|
||||
Fixing "trivial" PR 38788: Ctrl-X, Ctrl-C, Ctrl-V, Ctrl-A, Ctrl-Z and Ctrl-Y keys don't work
|
||||
in the address field of the Memory view.
|
||||
|
|
|
@ -21,8 +21,12 @@ import org.eclipse.swt.custom.CTabFolder;
|
|||
import org.eclipse.swt.custom.CTabItem;
|
||||
import org.eclipse.swt.events.FocusEvent;
|
||||
import org.eclipse.swt.events.FocusListener;
|
||||
import org.eclipse.swt.events.KeyEvent;
|
||||
import org.eclipse.swt.events.KeyListener;
|
||||
import org.eclipse.swt.events.ModifyEvent;
|
||||
import org.eclipse.swt.events.ModifyListener;
|
||||
import org.eclipse.swt.events.MouseEvent;
|
||||
import org.eclipse.swt.events.MouseListener;
|
||||
import org.eclipse.swt.events.SelectionAdapter;
|
||||
import org.eclipse.swt.events.SelectionEvent;
|
||||
import org.eclipse.swt.events.TraverseEvent;
|
||||
|
@ -135,6 +139,43 @@ public class MemoryControlArea extends Composite implements ITextOperationTarget
|
|||
fMemoryView.updateObjects();
|
||||
}
|
||||
} );
|
||||
text.addModifyListener( new ModifyListener()
|
||||
{
|
||||
public void modifyText( ModifyEvent e )
|
||||
{
|
||||
handleAddressModification();
|
||||
}
|
||||
} );
|
||||
text.addKeyListener( new KeyListener()
|
||||
{
|
||||
public void keyPressed( KeyEvent e )
|
||||
{
|
||||
fMemoryView.updateObjects();
|
||||
}
|
||||
|
||||
public void keyReleased( KeyEvent e )
|
||||
{
|
||||
fMemoryView.updateObjects();
|
||||
}
|
||||
} );
|
||||
text.addMouseListener( new MouseListener()
|
||||
{
|
||||
public void mouseDoubleClick( MouseEvent e )
|
||||
{
|
||||
fMemoryView.updateObjects();
|
||||
}
|
||||
|
||||
public void mouseDown( MouseEvent e )
|
||||
{
|
||||
fMemoryView.updateObjects();
|
||||
}
|
||||
|
||||
public void mouseUp( MouseEvent e )
|
||||
{
|
||||
fMemoryView.updateObjects();
|
||||
}
|
||||
} );
|
||||
|
||||
fEvaluateButton = new Button( composite, SWT.PUSH );
|
||||
fEvaluateButton.setText( "Evaluate" );
|
||||
fEvaluateButton.setToolTipText( "Evaluate expression to address" );
|
||||
|
@ -145,14 +186,6 @@ public class MemoryControlArea extends Composite implements ITextOperationTarget
|
|||
evaluateAddressExpression();
|
||||
}
|
||||
} );
|
||||
|
||||
text.addModifyListener( new ModifyListener()
|
||||
{
|
||||
public void modifyText( ModifyEvent e )
|
||||
{
|
||||
handleAddressModification();
|
||||
}
|
||||
} );
|
||||
return text;
|
||||
}
|
||||
|
||||
|
@ -527,7 +560,7 @@ public class MemoryControlArea extends Composite implements ITextOperationTarget
|
|||
fAddressText.paste();
|
||||
break;
|
||||
case SELECT_ALL:
|
||||
fAddressText.setSelection( 0, fAddressText.getCharCount() );
|
||||
fAddressText.selectAll();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@ import org.eclipse.cdt.debug.internal.ui.actions.MemoryActionSelectionGroup;
|
|||
import org.eclipse.cdt.debug.internal.ui.actions.MemoryFormatAction;
|
||||
import org.eclipse.cdt.debug.internal.ui.actions.MemoryNumberOfColumnAction;
|
||||
import org.eclipse.cdt.debug.internal.ui.actions.MemorySizeAction;
|
||||
import org.eclipse.cdt.debug.internal.ui.actions.MemoryViewAction;
|
||||
import org.eclipse.cdt.debug.internal.ui.actions.RefreshMemoryAction;
|
||||
import org.eclipse.cdt.debug.internal.ui.actions.ShowAsciiAction;
|
||||
import org.eclipse.cdt.debug.internal.ui.preferences.ICDebugPreferenceConstants;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.internal.ui.actions;
|
||||
package org.eclipse.cdt.debug.internal.ui.views.memory;
|
||||
|
||||
import org.eclipse.core.runtime.IAdaptable;
|
||||
import org.eclipse.jface.action.Action;
|
Loading…
Add table
Reference in a new issue