1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

The input member of 'DisassemblyAnnotationModel' can be null.

This commit is contained in:
Mikhail Khodjaiants 2004-05-12 16:13:07 +00:00
parent 0a710a5566
commit 63dc1031e9
2 changed files with 13 additions and 6 deletions

View file

@ -1,3 +1,7 @@
2004-05-12 Mikhail Khodjaiants
The input member of 'DisassemblyAnnotationModel' can be null.
* DisassemblyAnnotationModel.java
2004-05-12 Mikhail Khodjaiants
Do not log CoreException thrown from the 'decrementInstallCount' method.
* CBreakpointUpdater.java

View file

@ -45,8 +45,9 @@ public class DisassemblyAnnotationModel extends AnnotationModel {
}
protected void breakpointsAdded( final IBreakpoint[] breakpoints, final IDocument document ) {
if ( getInput().equals( DisassemblyEditorInput.EMPTY_EDITOR_INPUT ) ||
getInput().equals( DisassemblyEditorInput.PENDING_EDITOR_INPUT ) )
DisassemblyEditorInput input = getInput();
if ( DisassemblyEditorInput.EMPTY_EDITOR_INPUT.equals( input ) ||
DisassemblyEditorInput.PENDING_EDITOR_INPUT.equals( input ) )
return;
asyncExec( new Runnable() {
public void run() {
@ -56,8 +57,9 @@ public class DisassemblyAnnotationModel extends AnnotationModel {
}
protected void breakpointsRemoved( final IBreakpoint[] breakpoints, final IDocument document ) {
if ( getInput().equals( DisassemblyEditorInput.EMPTY_EDITOR_INPUT ) ||
getInput().equals( DisassemblyEditorInput.PENDING_EDITOR_INPUT ) )
DisassemblyEditorInput input = getInput();
if ( DisassemblyEditorInput.EMPTY_EDITOR_INPUT.equals( input ) ||
DisassemblyEditorInput.PENDING_EDITOR_INPUT.equals( input ) )
return;
asyncExec( new Runnable() {
public void run() {
@ -67,8 +69,9 @@ public class DisassemblyAnnotationModel extends AnnotationModel {
}
protected void breakpointsChanged( final IBreakpoint[] breakpoints, final IDocument document ) {
if ( getInput().equals( DisassemblyEditorInput.EMPTY_EDITOR_INPUT ) ||
getInput().equals( DisassemblyEditorInput.PENDING_EDITOR_INPUT ) )
DisassemblyEditorInput input = getInput();
if ( DisassemblyEditorInput.EMPTY_EDITOR_INPUT.equals( input ) ||
DisassemblyEditorInput.PENDING_EDITOR_INPUT.equals( input ) )
return;
asyncExec( new Runnable() {
public void run() {