org.eclipse.corona.container.project.ui.view.actions
Class CloseProjectContainerViewAction

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

public class CloseProjectContainerViewAction
extends java.lang.Object
implements org.eclipse.ui.IObjectActionDelegate

Displays the project container view associated if there is selected project container. If there is selected a repository, it displays associated project container and switches to the tab which displays a given repository.

Author:
Marcin Okraszewski

Constructor Summary
CloseProjectContainerViewAction()
          Constructor for ShowProjectContainerViewAction.
 
Method Summary
 void run(org.eclipse.jface.action.IAction action)
          Opens project container view for selected node.
static void run(org.eclipse.jface.viewers.ISelection selection)
          Invokes this action on a specified selection.
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseProjectContainerViewAction

public CloseProjectContainerViewAction()
Constructor for ShowProjectContainerViewAction.

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
See Also:
IObjectActionDelegate.setActivePart(IAction, IWorkbenchPart)

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
See Also:
IActionDelegate.selectionChanged(IAction, ISelection)

run

public void run(org.eclipse.jface.action.IAction action)
Opens project container view for selected node.

Specified by:
run in interface org.eclipse.ui.IActionDelegate
See Also:
IActionDelegate.run(IAction)

run

public static void run(org.eclipse.jface.viewers.ISelection selection)
Invokes this action on a specified selection. It simplifies the usage of the action from other parts.

Parameters:
selection - The selection at which to run the action.

Copyright 2006 IBM Corporation and others.
All Rights Reserved.