FileDocCategorySizeDatePackage
CommonAction.javaAPI DocAndroid 1.5 API1727Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.ddms

CommonAction

public class CommonAction extends org.eclipse.jface.action.Action implements com.android.ddmuilib.actions.ICommonAction
Basic action extending the jFace Action class in order to implement ICommonAction.

Fields Summary
private Runnable
mRunnable
Constructors Summary
public CommonAction()

        super();
    
public CommonAction(String text)

        super(text);
    
public CommonAction(String text, org.eclipse.jface.resource.ImageDescriptor image)

param
text
param
image

        super(text, image);
    
public CommonAction(String text, int style)

param
text
param
style

        super(text, style);
    
Methods Summary
public voidrun()

        if (mRunnable != null) {
            mRunnable.run();
        }
    
public voidsetRunnable(java.lang.Runnable runnable)
Sets the {@link Runnable}.

see
ICommonAction#setRunnable(Runnable)

        mRunnable = runnable;