|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.tool.cvspm.CVSLibrary
public class CVSLibrary
Track the state of a library that has been checked into CVS. User: gainsley Date: Mar 16, 2006
Nested Class Summary | |
---|---|
protected static class |
CVSLibrary.LibsCells
|
Method Summary | |
---|---|
static void |
addLibrary(Library lib)
Add a library to the list of CVS libraries, that will maintain the known state of the library with respect to CVS. |
static void |
closeLibrary(Library lib)
Method called when closing library. |
static CVSLibrary.LibsCells |
consolidate(java.util.List<Library> libs,
java.util.List<Cell> cells)
Remove cells from cell list if they are part of any library in libs list. |
static java.awt.Color |
getColor(Cell.CellGroup cg)
|
static java.awt.Color |
getColor(Cell cell)
|
static java.awt.Color |
getColor(Library lib)
|
static java.awt.Color |
getColor(java.util.Set<State> states)
|
static java.awt.Color |
getColor(State state)
|
static CVSLibrary.LibsCells |
getInCVS(java.util.List<Library> libs,
java.util.List<Cell> cells)
|
static CVSLibrary.LibsCells |
getInCVSSorted(java.util.List<Library> libs,
java.util.List<Cell> cells)
Get a list of libraries and cells that are in CVS. |
static CVSLibrary.LibsCells |
getModified(java.util.List<Library> libs,
java.util.List<Cell> cells)
|
static CVSLibrary.LibsCells |
getNotInCVS(java.util.List<Library> libs,
java.util.List<Cell> cells)
Check the specified libraries and cells are in cvs. |
static State |
getState(Cell cell)
|
static State |
getState(Library lib)
|
static boolean |
hasUnknownCells(Library lib)
Only for DELIBs, check if there are any cells in library that have state "UNKNOWN", and need to be added to CVS. |
static boolean |
isEditing(Cell cell)
|
static boolean |
isEditing(Library lib)
|
static CVSLibrary.LibsCells |
notFromDELIB(java.util.List<Cell> cells)
Get cells from passed in list of cells that are not from DELIB libraries. |
static void |
removeLibrary(LibId libId)
Remove a library from the list of CVS libraries. |
static void |
savedLibrary(LibId libId,
java.net.URL libFile,
java.util.List<java.lang.String> deletedCellFiles,
java.util.List<java.lang.String> writtenCellFiles)
Hook for after a DELIB library was saved. |
static void |
setEditing(Cell cell,
boolean editing)
|
static void |
setEditing(Library lib,
boolean editing)
|
static void |
setState(Cell cell,
State state)
Set state of a Cell |
static void |
setState(Library lib,
State state)
Set state of all Cells in a library |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addLibrary(Library lib)
lib
- public static void removeLibrary(LibId libId)
libId
- public static CVSLibrary.LibsCells getNotInCVS(java.util.List<Library> libs, java.util.List<Cell> cells)
libs
- a List of Libraries to check.cells
- a List of Cells to check.
public static CVSLibrary.LibsCells getInCVS(java.util.List<Library> libs, java.util.List<Cell> cells)
public static CVSLibrary.LibsCells getModified(java.util.List<Library> libs, java.util.List<Cell> cells)
public static CVSLibrary.LibsCells consolidate(java.util.List<Library> libs, java.util.List<Cell> cells)
libs
- the List of Libraries to consolidate.cells
- the List of Cells to consolidate.
public static CVSLibrary.LibsCells notFromDELIB(java.util.List<Cell> cells)
cells
- a List of Cells to examine.
public static CVSLibrary.LibsCells getInCVSSorted(java.util.List<Library> libs, java.util.List<Cell> cells)
libs
- a list of Librariescells
- a list of Cells
public static boolean hasUnknownCells(Library lib)
lib
- the Library to examine.
public static void setState(Cell cell, State state)
cell
- state
- public static void setState(Library lib, State state)
lib
- state
- public static java.awt.Color getColor(Library lib)
public static java.awt.Color getColor(Cell cell)
public static State getState(Library lib)
public static State getState(Cell cell)
public static java.awt.Color getColor(Cell.CellGroup cg)
public static java.awt.Color getColor(State state)
public static java.awt.Color getColor(java.util.Set<State> states)
public static void setEditing(Cell cell, boolean editing)
public static boolean isEditing(Cell cell)
public static void setEditing(Library lib, boolean editing)
public static boolean isEditing(Library lib)
public static void savedLibrary(LibId libId, java.net.URL libFile, java.util.List<java.lang.String> deletedCellFiles, java.util.List<java.lang.String> writtenCellFiles)
libId
- libFile
- deletedCellFiles
- public static void closeLibrary(Library lib)
lib
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |