textviewer.actions.core
Class OpenAction
java.lang.Object
javax.swing.AbstractAction
csdk.v1_0.helper.application.AbstractApplicationAction<TextViewer>
textviewer.actions.core.OpenAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
- Direct Known Subclasses:
- OpenLocalAction, OpenProjectAction
public abstract class OpenAction
- extends AbstractApplicationAction<TextViewer>
Ação de abertura do arquivo
- Author:
- Tecgraf/PUC-Rio
- See Also:
- Serialized Form
| 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 |
OpenAction
public OpenAction(TextViewer textViewer)
- Construtor
- Parameters:
textViewer - a aplicação.
selectFile
protected abstract IFile selectFile()
throws Exception
- Busca o arquivo
- Returns:
- o arquivo
- Throws:
Exception - em caso de erro.
actionPerformed
public void actionPerformed(ActionEvent ae)
-
- Specified by:
actionPerformed in interface ActionListener- Specified by:
actionPerformed in class AbstractApplicationAction<TextViewer>
Copyright © 2013–2014 Tecgraf/PUC-Rio. All rights reserved.