Extension SDK

oracle.ide.config
Class EnvironOptions

java.lang.Object
  extended byoracle.ide.config.ChangeEventSource
      extended byoracle.ide.config.EnvironOptions
All Implemented Interfaces:
Copyable

public class EnvironOptions
extends ChangeEventSource
implements Copyable

This class stores the IDE environment options. It extends ChangeEventSource to provide ChangeListener support.


Field Summary
static java.lang.String KEY_SETTINGS
           
 
Constructor Summary
EnvironOptions()
           
 
Method Summary
 java.lang.Object copyTo(java.lang.Object target)
          Copies the internal state of this object to the specified copy.
protected  void copyToImpl(EnvironOptions copy)
          Note: does not copy the listeners.
 boolean equals(java.lang.Object o)
           
protected  boolean equalsImpl(EnvironOptions opts)
           
 boolean getAutoReloadExtMod()
          Automatically reload externally modified files.
 java.lang.String getEncoding()
          Retrieves the encoding for use in reading and writing files.
 java.lang.String getInternalEncoding()
          Retrieves the internal representation of the encoding.
static java.lang.String getLabelAutoReloadExtMod()
           
static java.lang.String getLabelBrowse()
           
static java.lang.String getLabelEncoding()
           
static java.lang.String getLabelFloatOnTop()
           
static java.lang.String getLabelLogPreffix()
           
static java.lang.String getLabelLookAndFeel()
           
static java.lang.String getLabelMaxLogLines()
           
static java.lang.String getLabelSaveBeforeCompile()
           
static java.lang.String getLabelSaveLogToFile()
           
static java.lang.String getLabelShowSplashScreen()
           
static java.lang.String getLabelSilentReload()
           
static java.lang.String getLabelUndoLevel()
           
static java.lang.String getLabelUseDefaultEncoding()
           
 java.lang.String getLafClass()
          Look and feel.
 java.net.URL getLogFilePreffix()
           
 int getMaxLogLines()
          Get Undo level
 boolean getSaveBeforeCompile()
          Save before compile
 boolean getShowSplashScreen()
          Show splash screen at startup.
 boolean getSilentReload()
          Silently reload unmodified files.
 int getUndoLevel()
          Get Undo level
 boolean isFloatOnTop()
          Dockable windows float on top of the main application window
 boolean isRememberNavigatorExpansionState()
          Returns true if the navigator expansion state should be remember when exiting the application.
 boolean isSaveLogToFile()
           
 void setAutoReloadExtMod(boolean autoReloadExtMod)
          Automatically reload externally modified files.
 void setEncoding(java.lang.String encoding)
          Sets the encoding for use in reading or writing files.
 void setFloatOnTop(boolean floatOnTop)
          Dockable windows float on top of the main application window
 void setInternalEncoding(java.lang.String encoding)
          Sets the internal representation of the encoding.
 void setLafClass(java.lang.String lafClass)
          Look and feel.
 void setLogFilePreffix(java.net.URL logFilePreffix)
           
 void setMaxLogLines(int maxLogLines)
          Set Undo level
 void setRememberNavigatorExpansionState(boolean expand)
          Indicate whether the application should remember the navigator expansion state when exiting.
 void setSaveBeforeCompile(boolean saveBeforeCompile)
          Save before compile
 void setSaveLogToFile(boolean saveLogToFile)
           
 void setShowSplashScreen(boolean showSplashScreen)
          Show splash screen at startup.
 void setSilentReload(boolean silentReload)
          Silently reload unmodified files.
 void setUndoLevel(int undoLevel)
          Set Undo level
 
Methods inherited from class oracle.ide.config.ChangeEventSource
addChangeListener, fireChangeEvent, fireChangeEvent, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_SETTINGS

public static final java.lang.String KEY_SETTINGS
See Also:
Constant Field Values
Constructor Detail

EnvironOptions

public EnvironOptions()
Method Detail

copyTo

public java.lang.Object copyTo(java.lang.Object target)
Description copied from interface: Copyable
Copies the internal state of this object to the specified copy. If copy is null, then this method should create a new instance of this class and proceed to copy the internal state to the newly created object. Generally, only the persistent state of the object should be copied, but whether or not it is appropriate to copy transient properties is at the discretion of the individual implementor.

Regardless of whether the copy occurs to an existing object or to a newly created object, the return value is object to which this object's state was copied.

There is a standard implementation pattern for the copyTo method that helps avoid problems that arise when a Copyable object is subclassed. The pattern is:

public Object copyTo( Object target )
{
final <this_class> copy =
target != null ? (<this_class>) target : new <this_class>();
copyToImpl( copy );
return copy;
} protected final void copyToImpl( <this_class> copy ) { super.copyToImpl( copy ); // if necessary // put code here for copying the properties of <this_class> }
The parameter passed into the copyToImpl method is the same type of this class. The responsibility of copyToImpl is to copy the state of this class through direct access of the fields. The copyToImpl method should not use getters and setters since these may be overridden, causing the state of this class to be incompletely copied.

Specified by:
copyTo in interface Copyable
Parameters:
target - The target object to which the state of this object should be copied. If target is null, then the copyTo method will return a new instance of this class.
Returns:
The object to which the state of this object was copied. If the target was non-null, then the return value is the same as the target object that was passed in; otherwise, the return value is a new instance of this class.

copyToImpl

protected final void copyToImpl(EnvironOptions copy)
Note: does not copy the listeners.


getLogFilePreffix

public java.net.URL getLogFilePreffix()

setLogFilePreffix

public void setLogFilePreffix(java.net.URL logFilePreffix)

getLabelLogPreffix

public static java.lang.String getLabelLogPreffix()

getLabelBrowse

public static java.lang.String getLabelBrowse()

isSaveLogToFile

public boolean isSaveLogToFile()

setSaveLogToFile

public void setSaveLogToFile(boolean saveLogToFile)

getLabelSaveLogToFile

public static java.lang.String getLabelSaveLogToFile()

getShowSplashScreen

public boolean getShowSplashScreen()
Show splash screen at startup.


setShowSplashScreen

public void setShowSplashScreen(boolean showSplashScreen)
Show splash screen at startup.


getLabelShowSplashScreen

public static java.lang.String getLabelShowSplashScreen()

getAutoReloadExtMod

public boolean getAutoReloadExtMod()
Automatically reload externally modified files.


setAutoReloadExtMod

public void setAutoReloadExtMod(boolean autoReloadExtMod)
Automatically reload externally modified files.


getLabelAutoReloadExtMod

public static java.lang.String getLabelAutoReloadExtMod()

getSilentReload

public boolean getSilentReload()
Silently reload unmodified files.


setSilentReload

public void setSilentReload(boolean silentReload)
Silently reload unmodified files.


getLabelSilentReload

public static java.lang.String getLabelSilentReload()

getUndoLevel

public int getUndoLevel()
Get Undo level


setUndoLevel

public void setUndoLevel(int undoLevel)
Set Undo level


getLabelUndoLevel

public static java.lang.String getLabelUndoLevel()

getMaxLogLines

public int getMaxLogLines()
Get Undo level


setMaxLogLines

public void setMaxLogLines(int maxLogLines)
Set Undo level


getLabelMaxLogLines

public static java.lang.String getLabelMaxLogLines()

getLafClass

public java.lang.String getLafClass()
Look and feel.


setLafClass

public void setLafClass(java.lang.String lafClass)
Look and feel.


getLabelLookAndFeel

public static java.lang.String getLabelLookAndFeel()

getSaveBeforeCompile

public boolean getSaveBeforeCompile()
Save before compile


setSaveBeforeCompile

public void setSaveBeforeCompile(boolean saveBeforeCompile)
Save before compile


isFloatOnTop

public boolean isFloatOnTop()
Dockable windows float on top of the main application window


getLabelFloatOnTop

public static java.lang.String getLabelFloatOnTop()

setFloatOnTop

public void setFloatOnTop(boolean floatOnTop)
Dockable windows float on top of the main application window


getLabelSaveBeforeCompile

public static java.lang.String getLabelSaveBeforeCompile()

isRememberNavigatorExpansionState

public boolean isRememberNavigatorExpansionState()
Returns true if the navigator expansion state should be remember when exiting the application.


setRememberNavigatorExpansionState

public void setRememberNavigatorExpansionState(boolean expand)
Indicate whether the application should remember the navigator expansion state when exiting.


getEncoding

public java.lang.String getEncoding()
                             throws TransientMarker
Retrieves the encoding for use in reading and writing files.

Returns:
A String containing the name of the encoding that should be used when reading or writing files
Throws:
TransientMarker
See Also:
Encodings

setEncoding

public void setEncoding(java.lang.String encoding)
Sets the encoding for use in reading or writing files. Specifying null null for the encoding indicates that the default encoding should be used.

Parameters:
encoding - a String containing the name of the encoding to use
See Also:
Encodings

getInternalEncoding

public java.lang.String getInternalEncoding()
Retrieves the internal representation of the encoding. Do not use. This method is public in order to support proper persistence of the encoding property.

Returns:
a String containing the internal representation of the encoding

setInternalEncoding

public void setInternalEncoding(java.lang.String encoding)
Sets the internal representation of the encoding. Do not use. This method is public in order to support proper persistence of the encoding property.

Parameters:
encoding - a String containing the new internal representation of the encoding

getLabelEncoding

public static java.lang.String getLabelEncoding()

getLabelUseDefaultEncoding

public static java.lang.String getLabelUseDefaultEncoding()

equals

public boolean equals(java.lang.Object o)

equalsImpl

protected final boolean equalsImpl(EnvironOptions opts)

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.