org.eclipse.corona.container.project.ui.explorer.actions
Class ClosePCXActionDelegate

java.lang.Object
  extended by org.eclipse.corona.container.project.ui.explorer.actions.AbstractPCXActionDelegate
      extended by org.eclipse.corona.container.project.ui.explorer.actions.ClosePCXActionDelegate
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IObjectActionDelegate, org.eclipse.ui.IViewActionDelegate

public class ClosePCXActionDelegate
extends AbstractPCXActionDelegate
implements org.eclipse.ui.IViewActionDelegate, org.eclipse.ui.IObjectActionDelegate

Action delegate for interface action of closing project container or workbench project. The project to close is determined by examining the class of selection element. Action is enabled or disabled depending on the status of project: opened or closed.

Author:
cwpl-pkaczmar

Field Summary
(package private)  org.eclipse.ui.IViewPart view
           
 
Fields inherited from class org.eclipse.corona.container.project.ui.explorer.actions.AbstractPCXActionDelegate
logService, manager, selection
 
Constructor Summary
ClosePCXActionDelegate()
           
 
Method Summary
 void init(org.eclipse.ui.IViewPart view)
           
 void run(org.eclipse.jface.action.IAction action)
           
 void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
           
 void setActivePart(org.eclipse.jface.action.IAction action, org.eclipse.ui.IWorkbenchPart targetPart)
           
 
Methods inherited from class org.eclipse.corona.container.project.ui.explorer.actions.AbstractPCXActionDelegate
getUIRepositoryAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

view

org.eclipse.ui.IViewPart view
Constructor Detail

ClosePCXActionDelegate

public ClosePCXActionDelegate()
Method Detail

init

public void init(org.eclipse.ui.IViewPart view)
Specified by:
init in interface org.eclipse.ui.IViewActionDelegate

run

public void run(org.eclipse.jface.action.IAction action)
Specified by:
run in interface org.eclipse.ui.IActionDelegate

selectionChanged

public void selectionChanged(org.eclipse.jface.action.IAction action,
                             org.eclipse.jface.viewers.ISelection selection)
Specified by:
selectionChanged in interface org.eclipse.ui.IActionDelegate

setActivePart

public void setActivePart(org.eclipse.jface.action.IAction action,
                          org.eclipse.ui.IWorkbenchPart targetPart)
Specified by:
setActivePart in interface org.eclipse.ui.IObjectActionDelegate

Copyright 2006 IBM Corporation and others.
All Rights Reserved.