com.sun.electric.tool.project
Class AddLibraryJob

java.lang.Object
  extended by com.sun.electric.tool.Job
      extended by com.sun.electric.tool.project.AddLibraryJob
All Implemented Interfaces:
java.io.Serializable

public class AddLibraryJob
extends Job

This class adds the current library to the Project Management repository.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.electric.tool.Job
Job.Mode, Job.Priority, Job.Type
 
Field Summary
 
Fields inherited from class com.sun.electric.tool.Job
BATCHMODE, endTime, LOCALDEBUGFLAG, startTime
 
Method Summary
static void addAllLibraries()
          Method to add all libraries to the repository.
static void addLibrary(Library lib)
          Method to add a library to the repository.
static void addThisLibrary()
          Method to add the current library to the repository.
 boolean doIt()
          This is the main work method.
 void terminateOK()
          This method executes in the Client side after normal termination of doIt method.
 
Methods inherited from class com.sun.electric.tool.Job
abort, acquireExamineLock, checkAbort, fieldVariableChanged, getAllJobs, getDatabase, getDebug, getDeleteWhenDone, getDisplay, getExtendedUserInterface, getInfo, getNumThreads, getRunMode, getRunningJob, getScheduledToAbort, getStatus, getUserInterface, initJobManager, invokeExamineLater, isFinished, releaseExamineLock, remove, setDebug, setProgress, setReportExecutionFlag, setThreadMode, startJob, startJob, startJobOnMyResult, terminateFail, terminateIt, threadDatabase, toString, updateIncrementalDRCErrors, updateNetworkErrors, wantUpdateGui
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

addThisLibrary

public static void addThisLibrary()
Method to add the current library to the repository.


addLibrary

public static void addLibrary(Library lib)
Method to add a library to the repository. Finds dependent libraries and asks if they, too, should be added.

Parameters:
lib - the Library to add to the repository.

addAllLibraries

public static void addAllLibraries()
Method to add all libraries to the repository.


doIt

public boolean doIt()
             throws JobException
Description copied from class: Job
This is the main work method. This method should perform all needed tasks.

Specified by:
doIt in class Job
Throws:
JobException - TODO

terminateOK

public void terminateOK()
Description copied from class: Job
This method executes in the Client side after normal termination of doIt method. This method should perform all needed termination actions.

Overrides:
terminateOK in class Job