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 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(String iconName)
           
 String getIcon()
           
 ImageDescriptor getIconImageDescriptor()
           
abstract  String getPluginId()
           
abstract  String getText()
          get text e.g. could be used for a menu item for this action
abstract  String getToolTip()
           
abstract  void run(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(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 -

getPluginId

public abstract String getPluginId()

addIcon

public void addIcon(String iconName)

getIcon

public String getIcon()

getIconImageDescriptor

public ImageDescriptor getIconImageDescriptor()

getToolTip

public abstract String getToolTip()

getText

public abstract 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.