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

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

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

The class imports a repository 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-pkaczmar
See Also:
ProjectContainerExplorerView, RepositoryDescriptor

Field Summary
(package private)  org.eclipse.ui.IWorkbenchPart targetPart
           
 
Fields inherited from class org.eclipse.corona.container.project.ui.explorer.actions.AbstractPCXActionDelegate
logService, manager, selection
 
Constructor Summary
ImportPCXActionDelegate()
           
 
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
Constructor Detail

ImportPCXActionDelegate

public ImportPCXActionDelegate()
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.