mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Bug 315774 - Allow force refresh of Disassembly view.
Change-Id: I8900528d1051f37d470e53800ad0ad60821ae8f4 Signed-off-by: Deep Amin <deep.amin@intel.com>
This commit is contained in:
parent
3cea021ecd
commit
35afa5764c
2 changed files with 14 additions and 2 deletions
|
@ -105,4 +105,9 @@ public interface IDisassemblyPartCallback {
|
|||
|
||||
/** Thread-safe */
|
||||
void asyncExec(Runnable runnable);
|
||||
|
||||
/**
|
||||
* Refreshes associated Disassembly part.
|
||||
* Thread-safe */
|
||||
void refresh();
|
||||
}
|
||||
|
|
|
@ -418,8 +418,7 @@ public abstract class DisassemblyPart extends WorkbenchPart
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
fPCLastAddress = getTopAddress();
|
||||
refreshView(10);
|
||||
refresh();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3275,4 +3274,12 @@ public abstract class DisassemblyPart extends WorkbenchPart
|
|||
}
|
||||
return bottomAddress;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void refresh() {
|
||||
asyncExec(() -> {
|
||||
fPCLastAddress = getTopAddress();
|
||||
refreshView(10);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue