com.telelogic.integration.eclipse.guide.historyview
Class ObjectPropertiesButtonAction
java.lang.Object
org.eclipse.ui.actions.ActionDelegate
com.telelogic.synergy.integration.ui.teamaction.CCMAction
com.telelogic.integration.eclipse.guide.historyview.ObjectPropertiesButtonAction
- All Implemented Interfaces:
- com.telelogic.synergy.integration.ui.historyview.ICMSHistoryAction, org.eclipse.ui.IActionDelegate, org.eclipse.ui.IActionDelegate2, org.eclipse.ui.IObjectActionDelegate
public class ObjectPropertiesButtonAction
- extends com.telelogic.synergy.integration.ui.teamaction.CCMAction
- implements com.telelogic.synergy.integration.ui.historyview.ICMSHistoryAction
Shows users a properties window of the object that is currently being viewed in the history view
and is ran through the History View's toolbar.
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)
|
boolean |
isEnabled(com.telelogic.synergy.integration.ui.historyview.CMSHistoryAction action)
|
void |
Property(java.lang.String connectionName,
com.telelogic.synergy.integration.ui.model.CMSHistoryElement helement)
This function displays the properties window for the object being displayed in the History view. |
void |
run(com.telelogic.synergy.integration.ui.historyview.CMSHistoryAction action)
|
Methods inherited from class com.telelogic.synergy.integration.ui.teamaction.CCMAction |
selectionChanged, setActivePart |
Methods inherited from class org.eclipse.ui.actions.ActionDelegate |
dispose, init, run, runWithEvent |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IActionDelegate |
run |
ObjectPropertiesButtonAction
public ObjectPropertiesButtonAction()
run
public void run(com.telelogic.synergy.integration.ui.historyview.CMSHistoryAction action)
- Specified by:
run
in interface com.telelogic.synergy.integration.ui.historyview.ICMSHistoryAction
Property
public void Property(java.lang.String connectionName,
com.telelogic.synergy.integration.ui.model.CMSHistoryElement helement)
- This function displays the properties window for the object being displayed in the History view.
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.helement
- The history element representing the object being viewed.- See Also:
IActionDelegate.selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
isEnabled
public boolean isEnabled(com.telelogic.synergy.integration.ui.historyview.CMSHistoryAction action)
- Specified by:
isEnabled
in interface com.telelogic.synergy.integration.ui.historyview.ICMSHistoryAction
getImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String image)
- Specified by:
getImageDescriptor
in interface com.telelogic.synergy.integration.ui.historyview.ICMSHistoryAction
getLabel
public java.lang.String getLabel(java.lang.String text)
- Specified by:
getLabel
in interface com.telelogic.synergy.integration.ui.historyview.ICMSHistoryAction
getToolTips
public java.lang.String getToolTips(java.lang.String text)
- Specified by:
getToolTips
in interface com.telelogic.synergy.integration.ui.historyview.ICMSHistoryAction