FileDocCategorySizeDatePackage
SelectionDependentViewPart.javaAPI DocAndroid 1.5 API2246Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.ddms.views

SelectionDependentViewPart

public abstract class SelectionDependentViewPart extends org.eclipse.ui.part.ViewPart implements com.android.ide.eclipse.ddms.DdmsPlugin.ISelectionListener
A Workbench {@link ViewPart} that requires {@link Device}/{@link Client} selection notifications from {@link DdmsPlugin} through the {@link ISelectionListener} interface.

Fields Summary
private com.android.ddmuilib.SelectionDependentPanel
mPanel
Constructors Summary
Methods Summary
public voiddispose()

        DdmsPlugin.getDefault().removeSelectionListener(this);
        super.dispose();
    
public final voidselectionChanged(com.android.ddmlib.Client selectedClient)
Sent when a new {@link Client} is selected.

param
selectedClient The selected client.
see
ISelectionListener

        mPanel.clientSelected(selectedClient);
    
public final voidselectionChanged(com.android.ddmlib.Device selectedDevice)
Sent when a new {@link Device} is selected.

param
selectedDevice the selected device.
see
ISelectionListener

        mPanel.deviceSelected(selectedDevice);
    
protected final voidsetSelectionDependentPanel(com.android.ddmuilib.SelectionDependentPanel panel)

        // remember the panel
        mPanel = panel;
        
        // and add ourself as listener of selection events.
        DdmsPlugin.getDefault().addSelectionListener(this);