com.sun.electric.tool.cvspm
Class Edit
java.lang.Object
com.sun.electric.tool.cvspm.Edit
public class Edit
- extends java.lang.Object
User: gainsley
Date: Mar 15, 2006
Constructor Summary |
Edit()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Edit
public Edit()
edit
public static boolean edit(Cell cell)
- Mark the current user as an editor of the cell
- Parameters:
cell
- the Cell to mark.
- Returns:
- true if successful.
edit
public static boolean edit(java.lang.String file,
java.lang.String dir)
- Establish a lock the file in dir for your exclusive edit.
If anyone else is editing the file, this returns false, and
if 'showDialog' is true, pops up an error dialog, otherwise it
just prints to System.out.
- Returns:
- true if the edit lock is now yours, false otherwise.
listEditorsProject
public static void listEditorsProject()
listEditorsOpenLibraries
public static void listEditorsOpenLibraries()
listEditors
public static void listEditors(Library lib)
listEditors
public static void listEditors(Cell cell)
listEditors
public static void listEditors(java.util.List<Library> libs,
java.util.List<Cell> cells)
editConsistencyCheck
public static void editConsistencyCheck()
- Consistency check - a cell that is either modified in Electric,
or that is CVS modified, should be marked for Edit. A cell
that both unmodified in Electric and CVS should not be marked
for Edit.
editConsistencyCheck
public static void editConsistencyCheck(java.util.List<Library> libs,
java.util.List<Cell> cells)
parseOutput
public static java.util.List<Edit.Editor> parseOutput(java.io.LineNumberReader result)
getHostName
public static final java.lang.String getHostName()
getUserName
public static final java.lang.String getUserName()