com.raelity.jvi
Class Options.SetCommand

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.raelity.jvi.ColonCommands.ColonAction
          extended by com.raelity.jvi.Options.SetCommand
All Implemented Interfaces:
ColonCommandFlags, ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
Options

public static class Options.SetCommand
extends ColonCommands.ColonAction

Implement ":se[t]". Options are either global or indirect, see the P_ XXX below An option must be one or the other. Global options are static, an indirect option is an instance variable in either G.curwin or G.curbuf. When a P_IND variable is set, introspection is used to do the set.

In some cases, due to platform limitation, the same variable must be set in all the instances, syncAllInstances(var) does that.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface com.raelity.jvi.ColonCommandFlags
BANG, BUFNAME, COUNT, DFLALL, EDITCMD, EXTRA, FILE1, FILES, NAMEDF, NAMEDFS, NEEDARG, NODFL, NOPARSE, NOSPC, NOTADR, NOTRLCOM, RANGE, REGSTR, TRLBAR, USECTRLV, WORD1, XFILE, ZEROR
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
Options.SetCommand()
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
static void parseSetOption(String arg)
           
 void parseSetOptions(List<String> eventArgs)
           
static void syncAllInstances(String varName)
          Note the value from the current is used to set any others
 
Methods inherited from class com.raelity.jvi.ColonCommands.ColonAction
getFlags
 
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

Options.SetCommand

public Options.SetCommand()
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

parseSetOptions

public void parseSetOptions(List<String> eventArgs)

parseSetOption

public static void parseSetOption(String arg)
                           throws IllegalAccessException,
                                  com.raelity.jvi.Options.SetCommand.SetCommandException
Throws:
IllegalAccessException
com.raelity.jvi.Options.SetCommand.SetCommandException

syncAllInstances

public static void syncAllInstances(String varName)
Note the value from the current is used to set any others