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

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

public class ImportAllPCXActionDelegate
extends AbstractPCXActionDelegate
implements org.eclipse.ui.IObjectActionDelegate

The class imports a all repositories to workbench, in particular a workbench project stored as repository in project container. Associated with RepositoryDescriptor object on UI. Run method invokes fetchResource on repository adapter, if available. The adapter is responsible for the actual operation.

Author:
cwpl-pjaworow
See Also:
ProjectContainerExplorerView, RepositoryDescriptor

Field Summary
(package private)  org.eclipse.ui.IWorkbenchPart targetPart
          WorkbechPart which is used for exporting.
 
Fields inherited from class org.eclipse.corona.container.project.ui.explorer.actions.AbstractPCXActionDelegate
logService, manager, selection
 
Constructor Summary
ImportAllPCXActionDelegate()
           
 
Method Summary
 void run(org.eclipse.jface.action.IAction action)
          Invokes fetchResource on repository adapter if there exists one implementing IUIRepositoryAdapter interface.
 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

targetPart

org.eclipse.ui.IWorkbenchPart targetPart
WorkbechPart which is used for exporting.

Constructor Detail

ImportAllPCXActionDelegate

public ImportAllPCXActionDelegate()
Method Detail

setActivePart

public void setActivePart(org.eclipse.jface.action.IAction action,
                          org.eclipse.ui.IWorkbenchPart targetPart)

Specified by:
setActivePart in interface org.eclipse.ui.IObjectActionDelegate

run

public void run(org.eclipse.jface.action.IAction action)
Invokes fetchResource on repository adapter if there exists one implementing IUIRepositoryAdapter interface.

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

Copyright 2006 IBM Corporation and others.
All Rights Reserved.