mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix for bug 26693.
This commit is contained in:
parent
daade7e2fd
commit
d66eda2a42
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2002-11-19 Mikhail Khodjaiants
|
||||||
|
Fix for bug 26693.
|
||||||
|
* SwitchToDisassemblyActionDelegate.java
|
||||||
|
|
||||||
2002-11-19 Mikhail Khodjaiants
|
2002-11-19 Mikhail Khodjaiants
|
||||||
Fix for bug 26401.
|
Fix for bug 26401.
|
||||||
* ExpressionDialog.java: Highlight the content of the expression field on intialization.
|
* ExpressionDialog.java: Highlight the content of the expression field on intialization.
|
||||||
|
|
|
@ -9,10 +9,12 @@ import org.eclipse.cdt.debug.core.sourcelookup.ISourceMode;
|
||||||
import org.eclipse.cdt.debug.internal.core.model.CDebugElement;
|
import org.eclipse.cdt.debug.internal.core.model.CDebugElement;
|
||||||
import org.eclipse.debug.core.DebugEvent;
|
import org.eclipse.debug.core.DebugEvent;
|
||||||
import org.eclipse.debug.core.DebugException;
|
import org.eclipse.debug.core.DebugException;
|
||||||
|
import org.eclipse.debug.ui.AbstractDebugView;
|
||||||
import org.eclipse.jface.action.IAction;
|
import org.eclipse.jface.action.IAction;
|
||||||
import org.eclipse.jface.viewers.ISelection;
|
import org.eclipse.jface.viewers.ISelection;
|
||||||
import org.eclipse.jface.viewers.ISelectionChangedListener;
|
import org.eclipse.jface.viewers.ISelectionChangedListener;
|
||||||
import org.eclipse.jface.viewers.IStructuredSelection;
|
import org.eclipse.jface.viewers.IStructuredSelection;
|
||||||
|
import org.eclipse.jface.viewers.Viewer;
|
||||||
import org.eclipse.ui.IViewPart;
|
import org.eclipse.ui.IViewPart;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -38,13 +40,14 @@ public class SwitchToDisassemblyActionDelegate extends AbstractListenerActionDel
|
||||||
((CDebugElement)element).fireChangeEvent( DebugEvent.CLIENT_REQUEST );
|
((CDebugElement)element).fireChangeEvent( DebugEvent.CLIENT_REQUEST );
|
||||||
if ( fViewPart != null && fViewPart instanceof ISelectionChangedListener )
|
if ( fViewPart != null && fViewPart instanceof ISelectionChangedListener )
|
||||||
{
|
{
|
||||||
final ISelectionChangedListener view = (ISelectionChangedListener)fViewPart;
|
final AbstractDebugView view = (AbstractDebugView)fViewPart;
|
||||||
fViewPart.getViewSite().getShell().getDisplay().asyncExec(
|
fViewPart.getViewSite().getShell().getDisplay().asyncExec(
|
||||||
new Runnable()
|
new Runnable()
|
||||||
{
|
{
|
||||||
public void run()
|
public void run()
|
||||||
{
|
{
|
||||||
view.selectionChanged( null );
|
Viewer viewer = view.getViewer();
|
||||||
|
viewer.setSelection( viewer.getSelection() );
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue