PTP
Release 7.0

org.eclipse.ptp.etfw.feedback
Class AbstractFeedbackAction

java.lang.Object
  extended by org.eclipse.ptp.etfw.feedback.AbstractFeedbackAction

public abstract class AbstractFeedbackAction
extends java.lang.Object

Extend this class to add an action to the toolbar, an action that can be performed on the selected item

EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. We do not recommending using this API without consulting with the etfw.feedback team.

Since:
2.0

Constructor Summary
AbstractFeedbackAction()
           
 
Method Summary
 void addIcon(java.lang.String iconName)
           
 java.lang.String getIcon()
           
 org.eclipse.jface.resource.ImageDescriptor getIconImageDescriptor()
           
abstract  java.lang.String getPluginId()
           
abstract  java.lang.String getText()
          get text e.g. could be used for a menu item for this action
abstract  java.lang.String getToolTip()
           
abstract  void run(IFeedbackItem item)
           
abstract  void run(org.eclipse.core.resources.IMarker marker)
          What is a better arg to run(), the IFeedbackItem, or the IMarker?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFeedbackAction

public AbstractFeedbackAction()
Method Detail

run

public abstract void run(org.eclipse.core.resources.IMarker marker)
What is a better arg to run(), the IFeedbackItem, or the IMarker? We'll ask for implementation of both for now. If it's the IFeedbackItem, we will have to cache that in the marker object.

Parameters:
item -

run

public abstract void run(IFeedbackItem item)
Since:
6.0

getPluginId

public abstract java.lang.String getPluginId()

addIcon

public void addIcon(java.lang.String iconName)

getIcon

public java.lang.String getIcon()

getIconImageDescriptor

public org.eclipse.jface.resource.ImageDescriptor getIconImageDescriptor()

getToolTip

public abstract java.lang.String getToolTip()

getText

public abstract java.lang.String getText()
get text e.g. could be used for a menu item for this action


PTP
Release 7.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.