1
0
Fork 0
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:
Mikhail Khodjaiants 2003-01-17 20:50:56 +00:00
parent c1817cbacb
commit f53cdf9a79
2 changed files with 14 additions and 9 deletions

View file

@ -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
Implementation of the shared library view.
* LoadSymbolsActionDelegate.java

View file

@ -9,6 +9,7 @@ import org.eclipse.cdt.debug.core.model.ICSharedLibrary;
import org.eclipse.debug.core.DebugEvent;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.IDebugEventSetListener;
import org.eclipse.debug.core.model.IDebugTarget;
import org.eclipse.debug.ui.AbstractDebugView;
import org.eclipse.jface.viewers.TableViewer;
@ -65,18 +66,18 @@ public class SharedLibrariesViewEventHandler implements IDebugEventSetListener
for( int i = 0; i < events.length; i++ )
{
DebugEvent event = events[i];
if ( event.getSource() instanceof ICSharedLibrary )
switch( event.getKind() )
{
switch( event.getKind() )
{
case DebugEvent.CREATE:
case DebugEvent.TERMINATE:
case DebugEvent.CREATE:
case DebugEvent.TERMINATE:
if ( event.getSource() instanceof IDebugTarget ||
event.getSource() instanceof ICSharedLibrary )
refresh();
break;
case DebugEvent.CHANGE :
break;
case DebugEvent.CHANGE :
if ( event.getSource() instanceof ICSharedLibrary )
refresh( event.getSource() );
break;
}
break;
}
}
}