|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
net.sourceforge.java.feednread.frontend.event.action.EnclosureAction
This Action downloads an enclosure and optionally starts the
associated application of the downloaded file, e.g. the default music player
if the enclosure is a podcast.
| Field Summary | |
private static NumberFormat |
DEFAULT_NUMBER_FORMAT
The default formatter for numbers |
private SyndEnclosure |
enclosure
The enclosure bound to the Action |
| Fields inherited from class org.eclipse.jface.action.Action |
|
| Fields inherited from class org.eclipse.core.commands.common.EventManager |
|
| Fields inherited from interface org.eclipse.jface.action.IAction |
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT |
| Constructor Summary | |
EnclosureAction(SyndEnclosure enclosure)
Creates a new EnclosureAction instance.
|
|
| Method Summary | |
private File |
getCachedEnclosure(File cacheDirectory)
Gets the cached enclosure form the specified cacheDirectory.
|
void |
run()
Executes the action: Downloads the enclosure and optionally starts the associated application of the downloaded file, e.g. the default music player if the enclosure is a podcast. |
private void |
setEnclosureImage(SyndEnclosure enclosure)
Sets the Image of this EnclosureAction
depending on the specified SyndEnclosure.
|
| Methods inherited from class org.eclipse.jface.action.AbstractAction |
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.jface.action.IAction |
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
private static final NumberFormat DEFAULT_NUMBER_FORMAT
The default formatter for numbers
private SyndEnclosure enclosure
The enclosure bound to the Action
| Constructor Detail |
public EnclosureAction(SyndEnclosure enclosure)
Creates a new EnclosureAction instance.
This Action downloads an enclosure and optionally starts
the associated application of the downloaded file, e.g. the default
music player if the enclosure is a podcast.
enclosure - the SyndEnclosure to display in the
EnclosureAction| Method Detail |
public void run()
Executes the action:
private File getCachedEnclosure(File cacheDirectory)
Gets the cached enclosure form the specified cacheDirectory.
The method returns null if the enclosure has not been
cached yet.
cacheDirectory - the directory that cached enclosures are stored in
File holding the cached enclosure or
null if the enclosure has not been cached yetprivate void setEnclosureImage(SyndEnclosure enclosure)
Sets the Image of this EnclosureAction
depending on the specified SyndEnclosure.
This method requests the icon of the application associated with
the enclosure file. If no file association can be found the default
enclosure Image is set instead.
enclosure - the SyndEnclosure to set the
Image for
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||