mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
If error occurs when acquiring the signal information from gdb the error message should be displayed in the 'Signals' view.
This commit is contained in:
parent
d80ef3ecc9
commit
7bb5feba42
4 changed files with 14 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2003-04-23 Mikhail Khodjaiants
|
||||||
|
If error occurs when acquiring the signal information from gdb
|
||||||
|
the error message should be displayed in the 'Signals' view.
|
||||||
|
* SignalsView.java
|
||||||
|
* SignalsViewer.java
|
||||||
|
* SignalsViewEventHandler.java
|
||||||
|
|
||||||
2003-04-21 Mikhail Khodjaiants
|
2003-04-21 Mikhail Khodjaiants
|
||||||
Fix for bug 36682.
|
Fix for bug 36682.
|
||||||
* CDTDebugModelPresentation.java
|
* CDTDebugModelPresentation.java
|
||||||
|
|
|
@ -19,7 +19,6 @@ import org.eclipse.debug.ui.IDebugUIConstants;
|
||||||
import org.eclipse.jface.action.IMenuManager;
|
import org.eclipse.jface.action.IMenuManager;
|
||||||
import org.eclipse.jface.action.IToolBarManager;
|
import org.eclipse.jface.action.IToolBarManager;
|
||||||
import org.eclipse.jface.action.Separator;
|
import org.eclipse.jface.action.Separator;
|
||||||
import org.eclipse.jface.dialogs.ErrorDialog;
|
|
||||||
import org.eclipse.jface.util.IPropertyChangeListener;
|
import org.eclipse.jface.util.IPropertyChangeListener;
|
||||||
import org.eclipse.jface.util.PropertyChangeEvent;
|
import org.eclipse.jface.util.PropertyChangeEvent;
|
||||||
import org.eclipse.jface.viewers.IContentProvider;
|
import org.eclipse.jface.viewers.IContentProvider;
|
||||||
|
@ -96,7 +95,7 @@ public class SignalsView extends AbstractDebugEventHandlerView
|
||||||
|
|
||||||
// add tree viewer
|
// add tree viewer
|
||||||
final SignalsViewer vv = new SignalsViewer( parent, SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL );
|
final SignalsViewer vv = new SignalsViewer( parent, SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL );
|
||||||
vv.setContentProvider( new SignalsViewContentProvider() );
|
vv.setContentProvider( createContentProvider() );
|
||||||
vv.setLabelProvider( new SignalsViewLabelProvider() );
|
vv.setLabelProvider( new SignalsViewLabelProvider() );
|
||||||
vv.setUseHashlookup( true );
|
vv.setUseHashlookup( true );
|
||||||
vv.setExceptionHandler( this );
|
vv.setExceptionHandler( this );
|
||||||
|
@ -163,7 +162,7 @@ public class SignalsView extends AbstractDebugEventHandlerView
|
||||||
*/
|
*/
|
||||||
public void handleException( DebugException e )
|
public void handleException( DebugException e )
|
||||||
{
|
{
|
||||||
ErrorDialog.openError( getSite().getShell(), "Error", e.getMessage(), null );
|
showMessage( e.getMessage() );
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void setViewerInput( IStructuredSelection ssel )
|
protected void setViewerInput( IStructuredSelection ssel )
|
||||||
|
|
|
@ -43,6 +43,9 @@ public class SignalsViewEventHandler extends AbstractDebugEventHandler
|
||||||
event.getSource() instanceof ICSignal )
|
event.getSource() instanceof ICSignal )
|
||||||
refresh();
|
refresh();
|
||||||
break;
|
break;
|
||||||
|
case DebugEvent.SUSPEND :
|
||||||
|
refresh();
|
||||||
|
break;
|
||||||
case DebugEvent.CHANGE :
|
case DebugEvent.CHANGE :
|
||||||
if ( event.getSource() instanceof ICSignal )
|
if ( event.getSource() instanceof ICSignal )
|
||||||
refresh( event.getSource() );
|
refresh( event.getSource() );
|
||||||
|
|
|
@ -17,6 +17,7 @@ import org.eclipse.jface.viewers.TableViewer;
|
||||||
import org.eclipse.swt.SWT;
|
import org.eclipse.swt.SWT;
|
||||||
import org.eclipse.swt.layout.GridData;
|
import org.eclipse.swt.layout.GridData;
|
||||||
import org.eclipse.swt.widgets.Composite;
|
import org.eclipse.swt.widgets.Composite;
|
||||||
|
import org.eclipse.swt.widgets.Display;
|
||||||
import org.eclipse.swt.widgets.Table;
|
import org.eclipse.swt.widgets.Table;
|
||||||
import org.eclipse.swt.widgets.TableColumn;
|
import org.eclipse.swt.widgets.TableColumn;
|
||||||
|
|
||||||
|
@ -130,8 +131,7 @@ public class SignalsViewer extends TableViewer
|
||||||
}
|
}
|
||||||
catch( DebugException e )
|
catch( DebugException e )
|
||||||
{
|
{
|
||||||
if ( getExceptionHandler() != null )
|
Display.getCurrent().beep();
|
||||||
getExceptionHandler().handleException( e );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue