textviewer.actions.core
Class SaveAsAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by csdk.v1_0.helper.application.AbstractApplicationAction<TextViewer>
          extended by textviewer.actions.core.SaveAsAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
SaveAction, SaveAsLocalAction, SaveAsProjectAction

public abstract class SaveAsAction
extends AbstractApplicationAction<TextViewer>

Ação de gravação do arquivo com um novo caminho

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
SaveAsAction(TextViewer textViewer)
          Construtor
 
Method Summary
 void actionPerformed(ActionEvent ae)
          
protected abstract  IFile selectFile()
          Busca o arquivo
 
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

SaveAsAction

public SaveAsAction(TextViewer textViewer)
Construtor

Parameters:
textViewer - a aplicação
Method Detail

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.