com.telelogic.integration.eclipse.guide.repositoryview
Class RemoveObjectButtonAction
java.lang.Object
org.eclipse.ui.actions.ActionDelegate
com.telelogic.synergy.integration.ui.teamaction.CCMAction
com.telelogic.integration.eclipse.guide.repositoryview.RemoveObjectButtonAction
- All Implemented Interfaces:
- org.eclipse.ui.IActionDelegate, org.eclipse.ui.IActionDelegate2, org.eclipse.ui.IObjectActionDelegate
public class RemoveObjectButtonAction
- extends com.telelogic.synergy.integration.ui.teamaction.CCMAction
Removes a Telelogic Synergy managed object from the repository view via toolbar button.
This action is equivalent to performing a remove controlled files operation.
Our sample action implements workbench action delegate.
The action proxy will be created by the workbench and
shown in the UI. When the user tries to use the action,
this delegate will be created and execution will be
delegated to it.
- See Also:
You may copy, modify, and distribute these samples, or their modifications,
in any form, internally or as part of your application or related documentation.
These samples have not been tested under all conditions and are provided to you
by IBM without obligation of support of any kind. IBM PROVIDES THESE SAMPLES
"AS IS", SUBJECT TO ANY STATUTORY WARRANTIES THAT CANNOT BE EXCLUDED. IBM MAKES
NO WARRANTIES OR CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT REGARDING THESE SAMPLES OR
TECHNICAL SUPPORT, IF ANY.
Fields inherited from class com.telelogic.synergy.integration.ui.teamaction.CCMAction |
PROGRESS_BUSYCURSOR, PROGRESS_DIALOG |
Method Summary |
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(java.lang.String image)
|
java.lang.String |
getLabel(java.lang.String text)
|
java.lang.String |
getToolTips(java.lang.String text)
|
static org.eclipse.core.resources.IWorkspace |
getWorkspace()
|
boolean |
isEnabled(CMSRepositoryAction action)
|
void |
run(CMSRepositoryAction action)
|
void |
Unuse(java.lang.String _connectionName,
java.lang.String fileset)
This function removes an object from Synergy management. |
Methods inherited from class com.telelogic.synergy.integration.ui.teamaction.CCMAction |
selectionChanged, setActivePart |
Methods inherited from class org.eclipse.ui.actions.ActionDelegate |
dispose, init, runWithEvent |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoveObjectButtonAction
public RemoveObjectButtonAction()
run
public void run(CMSRepositoryAction action)
- Specified by:
run
in interface org.eclipse.ui.IActionDelegate
- Overrides:
run
in class org.eclipse.ui.actions.ActionDelegate
Unuse
public void Unuse(java.lang.String _connectionName,
java.lang.String fileset)
- This function removes an object from Synergy management.
We can change the state of the 'real' action here
if we want, but this can only happen after
the delegate has been created.
- Parameters:
_connectionName
- Connection Name of the database connection. If null or empty, operation will be aborted.fileset
- Relative path of the file(s) on the local system to be removed from CM.- See Also:
IActionDelegate.selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
getWorkspace
public static org.eclipse.core.resources.IWorkspace getWorkspace()
isEnabled
public boolean isEnabled(CMSRepositoryAction action)
getImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String image)
getLabel
public java.lang.String getLabel(java.lang.String text)
getToolTips
public java.lang.String getToolTips(java.lang.String text)