actions
Class ImportFromURLAction

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.jface.action.Action
          extended by actions.ImportFromURLAction
All Implemented Interfaces:
org.eclipse.jface.action.IAction, org.eclipse.jface.operation.IRunnableWithProgress

public class ImportFromURLAction
extends org.eclipse.jface.action.Action
implements org.eclipse.jface.operation.IRunnableWithProgress

Action responsible for importing a list of feeds from a remote OPML file over the internet.

Author:
pgroudas

Field Summary
private  Controller c
           
private  java.lang.String opmlurl
           
private  Folder target
           
private  java.util.List<java.lang.String> urls
           
 
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
ImportFromURLAction()
          Constructs a new ImportFromURLAction.
 
Method Summary
 void addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener arg0)
           
protected  void firePropertyChange(org.eclipse.jface.util.PropertyChangeEvent arg0)
           
protected  void firePropertyChange(java.lang.String arg0, java.lang.Object arg1, java.lang.Object arg2)
           
 void removePropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener arg0)
           
 void run()
          Invoked when a user tries to Import a list of feeds in OPML form.
 void run(org.eclipse.core.runtime.IProgressMonitor monitor)
          This method is invoked and paired with a progress dialog to monitor the progress of the addition of the feeds.
 
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
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

target

private Folder target

urls

private java.util.List<java.lang.String> urls

opmlurl

private java.lang.String opmlurl

c

private Controller c
Constructor Detail

ImportFromURLAction

public ImportFromURLAction()
Constructs a new ImportFromURLAction.

Method Detail

run

public void run()
Invoked when a user tries to Import a list of feeds in OPML form.

Specified by:
run in interface org.eclipse.jface.action.IAction
Overrides:
run in class org.eclipse.jface.action.Action

run

public void run(org.eclipse.core.runtime.IProgressMonitor monitor)
         throws java.lang.InterruptedException
This method is invoked and paired with a progress dialog to monitor the progress of the addition of the feeds.

Specified by:
run in interface org.eclipse.jface.operation.IRunnableWithProgress
Parameters:
monitor -
Throws:
java.lang.InterruptedException - if the method is cancelled.

addPropertyChangeListener

public void addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener arg0)
Specified by:
addPropertyChangeListener in interface org.eclipse.jface.action.IAction

firePropertyChange

protected final void firePropertyChange(org.eclipse.jface.util.PropertyChangeEvent arg0)

firePropertyChange

protected final void firePropertyChange(java.lang.String arg0,
                                        java.lang.Object arg1,
                                        java.lang.Object arg2)

removePropertyChangeListener

public void removePropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener arg0)
Specified by:
removePropertyChangeListener in interface org.eclipse.jface.action.IAction