com.sun.electric.tool.cvspm
Class Edit

java.lang.Object
  extended by com.sun.electric.tool.cvspm.Edit

public class Edit
extends java.lang.Object

User: gainsley Date: Mar 15, 2006


Nested Class Summary
static class Edit.EditConsistencyCheckJob
           
static class Edit.Editor
           
static class Edit.ListEditorsJob
           
static class Edit.MarkForEditJob
           
 
Constructor Summary
Edit()
           
 
Method Summary
static boolean edit(Cell cell)
          Mark the current user as an editor of the cell
static boolean edit(java.lang.String file, java.lang.String dir)
          Establish a lock the file in dir for your exclusive edit.
static void editConsistencyCheck()
          Consistency check - a cell that is either modified in Electric, or that is CVS modified, should be marked for Edit.
static void editConsistencyCheck(java.util.List<Library> libs, java.util.List<Cell> cells)
           
static java.lang.String getHostName()
           
static java.lang.String getUserName()
           
static void listEditors(Cell cell)
           
static void listEditors(Library lib)
           
static void listEditors(java.util.List<Library> libs, java.util.List<Cell> cells)
           
static void listEditorsOpenLibraries()
           
static void listEditorsProject()
           
static java.util.List<Edit.Editor> parseOutput(java.io.LineNumberReader result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Edit

public Edit()
Method Detail

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