mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Added disassembly context related interfaces.
This commit is contained in:
parent
650153071e
commit
57316d3144
3 changed files with 135 additions and 0 deletions
|
@ -0,0 +1,42 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2008 ARM Limited and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* ARM Limited - Initial API and implementation
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.cdt.debug.core.disassembly;
|
||||
|
||||
/**
|
||||
* The instances of this interface are notified when
|
||||
* a disassembly context is registered or unregistered
|
||||
* with <code>IDisassemblyContextService</code>.
|
||||
* <p>
|
||||
* This interface is used by the disassembly UI components.
|
||||
* </p>
|
||||
* <p>
|
||||
* The clients may implement this interface.
|
||||
* </p>
|
||||
*/
|
||||
public interface IDisassemblyContextListener {
|
||||
|
||||
/**
|
||||
* Indicates that <code>context</code> has been registered
|
||||
* with <code>IDisassemblyContextService</code>.
|
||||
*
|
||||
* @param context the disassembly context that is registered
|
||||
*/
|
||||
public void contextAdded( Object context );
|
||||
|
||||
/**
|
||||
* Indicates that <code>context</code> has been unregistered
|
||||
* with <code>IDisassemblyContextService</code>.
|
||||
*
|
||||
* @param context the disassembly context that is unregistered
|
||||
*/
|
||||
public void contextRemoved( Object context );
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2008 ARM Limited and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* ARM Limited - Initial API and implementation
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.cdt.debug.core.disassembly;
|
||||
|
||||
/**
|
||||
* Provides disassembly context for given element.
|
||||
* <p>
|
||||
* Clients must implements this interface to plug into
|
||||
* the diassembly framework.
|
||||
* </p>
|
||||
*/
|
||||
public interface IDisassemblyContextProvider {
|
||||
|
||||
/**
|
||||
* Returns the disassembly context object for <code>element</code>
|
||||
*
|
||||
* @param element the element being queried for disassembly context
|
||||
* @return an object that represents the disassembly context
|
||||
* for the given element, or <code>null</code> if the given element
|
||||
* doesn't provide a disassembly context
|
||||
*/
|
||||
public Object getDisassemblyContext( Object element );
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2008 ARM Limited and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* ARM Limited - Initial API and implementation
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.cdt.debug.core.disassembly;
|
||||
|
||||
/**
|
||||
* Interface for registering the disassembly context objects.
|
||||
* <p>
|
||||
* Clients interested in the context change notifications
|
||||
* may register a listener.
|
||||
* </p>
|
||||
* <p>
|
||||
* This interface is not intended to be implemented by clients.
|
||||
* It can be accessed from <code>CDebugCorePlugin</code>.
|
||||
* </p>
|
||||
* @see org.eclipse.cdt.debug.core.IDisassemblyContextListener
|
||||
*/
|
||||
public interface IDisassemblyContextService {
|
||||
|
||||
/**
|
||||
* Adds the given listener to the collection of registered listeners.
|
||||
* Has no effect if an identical listener is already registered.
|
||||
*
|
||||
* @param listener the listener to add
|
||||
*/
|
||||
public void addDisassemblyContextListener( IDisassemblyContextListener listener );
|
||||
|
||||
/**
|
||||
* Removes the given listener from the collection of registered listeners.
|
||||
* Has no effect if an identical listener is not already registered.
|
||||
*
|
||||
* @param listener the listener to remove
|
||||
*/
|
||||
public void removeDisassemblyContextListener( IDisassemblyContextListener listener );
|
||||
|
||||
/**
|
||||
* Registers the given context with this service.
|
||||
* Has no effect if an identical context has already been registered.
|
||||
* The corresponding notifications will be sent to all registered listeners.
|
||||
*
|
||||
* @param disassemblyContext the context to register.
|
||||
*/
|
||||
public void register( Object disassemblyContext );
|
||||
|
||||
/**
|
||||
* Unregisters the given context with this service.
|
||||
* Has no effect if an identical context has not been registered.
|
||||
* The corresponding notifications will be sent to all registered listeners.
|
||||
*
|
||||
* @param disassemblyContext the context to unregister.
|
||||
*/
|
||||
public void unregister( Object disassemblyContext );
|
||||
}
|
Loading…
Add table
Reference in a new issue