textviewer.actions
Class OpenProjectAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by csdk.v1_0.helper.application.AbstractApplicationAction<TextViewer>
          extended by textviewer.actions.core.OpenAction
              extended by textviewer.actions.OpenProjectAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class OpenProjectAction
extends OpenAction

Ação de abertura do arquivo

Author:
Tecgraf/PUC-Rio
See Also:
Serialized Form

Field Summary
 
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
 
Constructor Summary
OpenProjectAction(TextViewer textViewer)
          Construtor
 
Method Summary
protected  IFile selectFile()
          Busca o arquivo
 
Methods inherited from class textviewer.actions.core.OpenAction
actionPerformed
 
Methods inherited from class csdk.v1_0.helper.application.AbstractApplicationAction
getApplication, getClassString, getString, hasClassString, hasString, setIcon, setName, setTooltip
 
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
 

Constructor Detail

OpenProjectAction

public OpenProjectAction(TextViewer textViewer)
Construtor

Parameters:
textViewer - a aplicação.
Method Detail

selectFile

protected IFile selectFile()
                    throws Exception
Busca o arquivo

Specified by:
selectFile in class OpenAction
Returns:
o arquivo
Throws:
Exception - em caso de erro.


Copyright © 2013–2014 Tecgraf/PUC-Rio. All rights reserved.