bluej.action
Class OnlineExampleAction
java.lang.Object
javax.swing.AbstractAction
bluej.action.AbstractEnvAction
bluej.action.OnlineExampleAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class OnlineExampleAction
- extends AbstractEnvAction
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent ae)
|
void |
createFile(java.lang.String className,
java.lang.String fileName,
java.lang.String fileURL)
Create a file from the fileURL |
void |
processLocalExample()
Copy all files from the local examples directory to the current project |
void |
processOnlineExample()
|
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OnlineExampleAction
public OnlineExampleAction(java.lang.String menuName,
java.lang.String msg)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ae)
processLocalExample
public void processLocalExample()
- Copy all files from the local examples directory to the current project
processOnlineExample
public void processOnlineExample()
createFile
public void createFile(java.lang.String className,
java.lang.String fileName,
java.lang.String fileURL)
throws java.lang.Exception
- Create a file from the fileURL
- Parameters:
fileName
- fileURL
-
- Throws:
java.lang.Exception