Extension SDK 10.1.2

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 int EOL_MACINTOSH
           
static int EOL_PLATFORM
           
static int EOL_UNIX
           
static int EOL_WINDOWS
           
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 getLabelLogHrefColor()
           
static java.lang.String getLabelLogPreffix()
           
static java.lang.String getLabelLogSystemErrColor()
           
static java.lang.String getLabelLogSystemInColor()
           
static java.lang.String getLabelLogSystemOutColor()
           
static java.lang.String getLabelLookAndFeel()
           
static java.lang.String getLabelMaxLogLines()
           
static java.lang.String getLabelSaveBeforeCompile()
           
static java.lang.String getLabelSaveLogToFile()
           
static java.lang.String getLabelShowCompileProgress()
           
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.
 int getLineTerminator()
           
 java.net.URL getLogFilePreffix()
           
 int getLogHrefColor()
           
 int getLogSystemErrColor()
           
 int getLogSystemInColor()
           
 int getLogSystemOutColor()
           
 int getMaxLogLines()
          Get maximum log lines.
 boolean getSaveBeforeCompile()
          Save before compile
 boolean getShowCompileProgress()
          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()
           
 boolean isWrapLogLines()
           
 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 setLineTerminator(int lineTerminator)
           
 void setLogFilePreffix(java.net.URL logFilePreffix)
           
 void setLogHrefColor(int logHrefColor)
           
 void setLogSystemErrColor(int logSystemErrColor)
           
 void setLogSystemInColor(int logSystemInColor)
           
 void setLogSystemOutColor(int logSystemOutColor)
           
 void setMaxLogLines(int maxLogLines)
          Set maximum log lines.
 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 setShowCompileProgress(boolean showCompileProgress)
          Save before compile
 void setShowSplashScreen(boolean showSplashScreen)
          Show splash screen at startup.
 void setSilentReload(boolean silentReload)
          Silently reload unmodified files.
 void setUndoLevel(int undoLevel)
          Set Undo level
 void setWrapLogLines(boolean wrapLogLines)
           
 
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

EOL_PLATFORM

public static final int EOL_PLATFORM
See Also:
Constant Field Values

EOL_WINDOWS

public static final int EOL_WINDOWS
See Also:
Constant Field Values

EOL_UNIX

public static final int EOL_UNIX
See Also:
Constant Field Values

EOL_MACINTOSH

public static final int EOL_MACINTOSH
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()

isWrapLogLines

public boolean isWrapLogLines()

setWrapLogLines

public void setWrapLogLines(boolean wrapLogLines)

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 maximum log lines.


setMaxLogLines

public void setMaxLogLines(int maxLogLines)
Set maximum log lines.


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


getShowCompileProgress

public boolean getShowCompileProgress()
Save before compile


setShowCompileProgress

public void setShowCompileProgress(boolean showCompileProgress)
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()

getLabelShowCompileProgress

public static java.lang.String getLabelShowCompileProgress()

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()

getLineTerminator

public int getLineTerminator()

setLineTerminator

public void setLineTerminator(int lineTerminator)

getLogHrefColor

public int getLogHrefColor()

setLogHrefColor

public void setLogHrefColor(int logHrefColor)

getLabelLogHrefColor

public static java.lang.String getLabelLogHrefColor()

getLogSystemOutColor

public int getLogSystemOutColor()

setLogSystemOutColor

public void setLogSystemOutColor(int logSystemOutColor)

getLabelLogSystemOutColor

public static java.lang.String getLabelLogSystemOutColor()

getLogSystemErrColor

public int getLogSystemErrColor()

setLogSystemErrColor

public void setLogSystemErrColor(int logSystemErrColor)

getLabelLogSystemErrColor

public static java.lang.String getLabelLogSystemErrColor()

getLogSystemInColor

public int getLogSystemInColor()

setLogSystemInColor

public void setLogSystemInColor(int logSystemInColor)

getLabelLogSystemInColor

public static java.lang.String getLabelLogSystemInColor()

equals

public boolean equals(java.lang.Object o)

equalsImpl

protected final boolean equalsImpl(EnvironOptions opts)

Extension SDK

 

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