mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Added the handlers for the 'Create' and 'Terminate' events to the 'Shared Libraries' view.
This commit is contained in:
parent
c1817cbacb
commit
f53cdf9a79
2 changed files with 14 additions and 9 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2003-01-17 Mikhail Khodjaiants
|
||||||
|
Added the handlers for the 'Create' and 'Terminate' events to the 'Shared Libraries' view.
|
||||||
|
* SharedLibrariesViewEventHandler.java
|
||||||
|
|
||||||
2003-01-17 Mikhail Khodjaiants
|
2003-01-17 Mikhail Khodjaiants
|
||||||
Implementation of the shared library view.
|
Implementation of the shared library view.
|
||||||
* LoadSymbolsActionDelegate.java
|
* LoadSymbolsActionDelegate.java
|
||||||
|
|
|
@ -9,6 +9,7 @@ import org.eclipse.cdt.debug.core.model.ICSharedLibrary;
|
||||||
import org.eclipse.debug.core.DebugEvent;
|
import org.eclipse.debug.core.DebugEvent;
|
||||||
import org.eclipse.debug.core.DebugPlugin;
|
import org.eclipse.debug.core.DebugPlugin;
|
||||||
import org.eclipse.debug.core.IDebugEventSetListener;
|
import org.eclipse.debug.core.IDebugEventSetListener;
|
||||||
|
import org.eclipse.debug.core.model.IDebugTarget;
|
||||||
import org.eclipse.debug.ui.AbstractDebugView;
|
import org.eclipse.debug.ui.AbstractDebugView;
|
||||||
import org.eclipse.jface.viewers.TableViewer;
|
import org.eclipse.jface.viewers.TableViewer;
|
||||||
|
|
||||||
|
@ -65,21 +66,21 @@ public class SharedLibrariesViewEventHandler implements IDebugEventSetListener
|
||||||
for( int i = 0; i < events.length; i++ )
|
for( int i = 0; i < events.length; i++ )
|
||||||
{
|
{
|
||||||
DebugEvent event = events[i];
|
DebugEvent event = events[i];
|
||||||
if ( event.getSource() instanceof ICSharedLibrary )
|
|
||||||
{
|
|
||||||
switch( event.getKind() )
|
switch( event.getKind() )
|
||||||
{
|
{
|
||||||
case DebugEvent.CREATE:
|
case DebugEvent.CREATE:
|
||||||
case DebugEvent.TERMINATE:
|
case DebugEvent.TERMINATE:
|
||||||
|
if ( event.getSource() instanceof IDebugTarget ||
|
||||||
|
event.getSource() instanceof ICSharedLibrary )
|
||||||
refresh();
|
refresh();
|
||||||
break;
|
break;
|
||||||
case DebugEvent.CHANGE :
|
case DebugEvent.CHANGE :
|
||||||
|
if ( event.getSource() instanceof ICSharedLibrary )
|
||||||
refresh( event.getSource() );
|
refresh( event.getSource() );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Refresh the given element in the viewer - must be called in UI thread.
|
* Refresh the given element in the viewer - must be called in UI thread.
|
||||||
|
|
Loading…
Add table
Reference in a new issue