mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
No need of "ICSignalManager".
This commit is contained in:
parent
19d8434a8e
commit
b38be15335
4 changed files with 14 additions and 36 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-11-04 Mikhail Khodjaiants
|
||||||
|
No need of "ICSignalManager".
|
||||||
|
* ICSignalManager.java: removed
|
||||||
|
* CSignalManager.java
|
||||||
|
* CDebugTarget.java
|
||||||
|
|
||||||
2004-11-04 Mikhail Khodjaiants
|
2004-11-04 Mikhail Khodjaiants
|
||||||
CSignalManager no longer extends CUpdateManager.
|
CSignalManager no longer extends CUpdateManager.
|
||||||
* CSignalManager.java
|
* CSignalManager.java
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
/*******************************************************************************
|
|
||||||
* Copyright (c) 2000, 2004 QNX Software Systems and others.
|
|
||||||
* All rights reserved. This program and the accompanying materials
|
|
||||||
* are made available under the terms of the Common Public License v1.0
|
|
||||||
* which accompanies this distribution, and is available at
|
|
||||||
* http://www.eclipse.org/legal/cpl-v10.html
|
|
||||||
*
|
|
||||||
* Contributors:
|
|
||||||
* QNX Software Systems - Initial API and implementation
|
|
||||||
*******************************************************************************/
|
|
||||||
package org.eclipse.cdt.debug.core;
|
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.core.model.ICSignal;
|
|
||||||
import org.eclipse.core.runtime.IAdaptable;
|
|
||||||
import org.eclipse.debug.core.DebugException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Enter type comment.
|
|
||||||
*
|
|
||||||
* @since: Jan 31, 2003
|
|
||||||
*/
|
|
||||||
public interface ICSignalManager extends IAdaptable
|
|
||||||
{
|
|
||||||
ICSignal[] getSignals() throws DebugException;
|
|
||||||
|
|
||||||
void dispose();
|
|
||||||
}
|
|
|
@ -12,12 +12,12 @@ package org.eclipse.cdt.debug.internal.core;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import org.eclipse.cdt.debug.core.CDebugModel;
|
import org.eclipse.cdt.debug.core.CDebugModel;
|
||||||
import org.eclipse.cdt.debug.core.ICSignalManager;
|
|
||||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||||
import org.eclipse.cdt.debug.core.cdi.model.ICDISignal;
|
import org.eclipse.cdt.debug.core.cdi.model.ICDISignal;
|
||||||
import org.eclipse.cdt.debug.core.model.ICSignal;
|
import org.eclipse.cdt.debug.core.model.ICSignal;
|
||||||
import org.eclipse.cdt.debug.internal.core.model.CDebugTarget;
|
import org.eclipse.cdt.debug.internal.core.model.CDebugTarget;
|
||||||
import org.eclipse.cdt.debug.internal.core.model.CSignal;
|
import org.eclipse.cdt.debug.internal.core.model.CSignal;
|
||||||
|
import org.eclipse.core.runtime.IAdaptable;
|
||||||
import org.eclipse.core.runtime.IStatus;
|
import org.eclipse.core.runtime.IStatus;
|
||||||
import org.eclipse.core.runtime.Status;
|
import org.eclipse.core.runtime.Status;
|
||||||
import org.eclipse.debug.core.DebugEvent;
|
import org.eclipse.debug.core.DebugEvent;
|
||||||
|
@ -26,7 +26,7 @@ import org.eclipse.debug.core.DebugException;
|
||||||
/**
|
/**
|
||||||
* Manages the collection of signals on a debug target.
|
* Manages the collection of signals on a debug target.
|
||||||
*/
|
*/
|
||||||
public class CSignalManager implements ICSignalManager {
|
public class CSignalManager implements IAdaptable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The debug target associated with this manager.
|
* The debug target associated with this manager.
|
||||||
|
@ -86,12 +86,12 @@ public class CSignalManager implements ICSignalManager {
|
||||||
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
|
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
|
||||||
*/
|
*/
|
||||||
public Object getAdapter( Class adapter ) {
|
public Object getAdapter( Class adapter ) {
|
||||||
if ( adapter.equals( ICSignalManager.class ) ) {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
if ( adapter.equals( CSignalManager.class ) ) {
|
if ( adapter.equals( CSignalManager.class ) ) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
if ( adapter.equals( CDebugTarget.class ) ) {
|
||||||
|
return getDebugTarget();
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@ import org.eclipse.cdt.debug.core.ICGlobalVariableManager;
|
||||||
import org.eclipse.cdt.debug.core.ICMemoryManager;
|
import org.eclipse.cdt.debug.core.ICMemoryManager;
|
||||||
import org.eclipse.cdt.debug.core.ICRegisterManager;
|
import org.eclipse.cdt.debug.core.ICRegisterManager;
|
||||||
import org.eclipse.cdt.debug.core.ICSharedLibraryManager;
|
import org.eclipse.cdt.debug.core.ICSharedLibraryManager;
|
||||||
import org.eclipse.cdt.debug.core.ICSignalManager;
|
|
||||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDIBreakpointHit;
|
import org.eclipse.cdt.debug.core.cdi.ICDIBreakpointHit;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDIEndSteppingRange;
|
import org.eclipse.cdt.debug.core.cdi.ICDIEndSteppingRange;
|
||||||
|
@ -854,7 +853,7 @@ public class CDebugTarget extends CDebugElement implements ICDebugTarget, ICDIEv
|
||||||
return getBreakpointManager();
|
return getBreakpointManager();
|
||||||
if ( adapter.equals( ICSharedLibraryManager.class ) )
|
if ( adapter.equals( ICSharedLibraryManager.class ) )
|
||||||
return getSharedLibraryManager();
|
return getSharedLibraryManager();
|
||||||
if ( adapter.equals( ICSignalManager.class ) )
|
if ( adapter.equals( CSignalManager.class ) )
|
||||||
return getSignalManager();
|
return getSignalManager();
|
||||||
if ( adapter.equals( ICRegisterManager.class ) )
|
if ( adapter.equals( ICRegisterManager.class ) )
|
||||||
return getRegisterManager();
|
return getRegisterManager();
|
||||||
|
@ -1702,7 +1701,7 @@ public class CDebugTarget extends CDebugElement implements ICDebugTarget, ICDIEv
|
||||||
* @see org.eclipse.cdt.debug.core.model.ICDebugTarget#getSignals()
|
* @see org.eclipse.cdt.debug.core.model.ICDebugTarget#getSignals()
|
||||||
*/
|
*/
|
||||||
public ICSignal[] getSignals() throws DebugException {
|
public ICSignal[] getSignals() throws DebugException {
|
||||||
ICSignalManager sm = getSignalManager();
|
CSignalManager sm = getSignalManager();
|
||||||
if ( sm != null ) {
|
if ( sm != null ) {
|
||||||
return sm.getSignals();
|
return sm.getSignals();
|
||||||
}
|
}
|
||||||
|
@ -1724,7 +1723,7 @@ public class CDebugTarget extends CDebugElement implements ICDebugTarget, ICDIEv
|
||||||
* @see org.eclipse.cdt.debug.core.model.ICDebugTarget#hasSignals()
|
* @see org.eclipse.cdt.debug.core.model.ICDebugTarget#hasSignals()
|
||||||
*/
|
*/
|
||||||
public boolean hasSignals() throws DebugException {
|
public boolean hasSignals() throws DebugException {
|
||||||
ICSignalManager sm = getSignalManager();
|
CSignalManager sm = getSignalManager();
|
||||||
if ( sm != null ) {
|
if ( sm != null ) {
|
||||||
return (sm.getSignals().length > 0);
|
return (sm.getSignals().length > 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue