|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.wgmecad.FileManager
Created by IntelliJ IDEA. User: barky Date: Dec 16, 2002 Time: 11:28:12 AM To change this template use Options | File Templates.
Field Summary | |
private static ArgumentMap |
argMap
|
private static ArgumentRegister |
argReg
|
(package private) int |
countAllDesignChangeListeners
|
(package private) Vector |
curAllDesignChangeListeners
|
(package private) DesignAll |
currentAllDesign
|
static String |
designQueryIOFileName
|
static String |
EDA_DIR
|
static String |
edaDirName
|
static String |
errorFileName
|
private static FileManager |
instance
|
(package private) static org.apache.log4j.Logger |
logger
|
private ProcessManager |
pm
|
private static String |
projPropHeader
|
static String |
projSettingsFileName
|
private static SecondaryArgumentMap |
sargMap
|
private static SecondaryArgumentRegister |
sargReg
|
(package private) int |
sizeAllDesignChangeListeners
|
(package private) boolean |
startAllDesignChangeListeners
|
static String |
tempDirName
|
static String |
WGMTEMP_DIR
|
static String |
WIDCHILL_ATTR_FILE
|
static String |
WINDCHILL_DIR
|
Constructor Summary | |
private |
FileManager()
|
Method Summary | |
void |
addAllDesignChangeListener(ActionListener actionListener)
|
static void |
checkDir(File dir)
|
static void |
copyFile(File in,
File out)
|
static void |
copyStream(InputStream in,
OutputStream out)
|
private static String |
extractValueFromTemplateLine(String line,
String key)
|
private void |
fixCurrentAllDesign()
|
AttributeStatus[] |
getAttributeStatusForCheckin()
|
void |
getAvailableCabinets(JComboBox combo,
String solution,
String context)
contact the windchill server on a separate thread and then update the combo box. |
void |
getAvailableContexts(ContextChooser cc)
|
void |
getAvailableSolutions()
|
void |
getAvailableTeams(JComboBox combo,
String solution,
String context)
contact the windchill server on a separate thread and then update the combo box. |
static Vector |
getCaseCorrectFile(File file)
recursively evaluate the directory paths to find an actual File (or files) that matches this one, but in a case-insensitive way. |
static Vector |
getCaseCorrectFile(File file,
boolean isDirectory)
|
Vector |
getCompFileLines()
|
Vector |
getCompFileLines(File fn)
|
DesignAll |
getCurrentAllDesign()
|
private String |
getCurrentDesignByProjectDirectory(String currentDesignArgument)
if we find a project settings file in the current project directory, then attempt to load the design information from that file. |
Properties |
getDesignAttributes(String projDir)
|
File |
getDesignBomTemplateFile()
|
ECADContentStatus[] |
getECADContentStatus(String _epmDocType)
|
ECADContentStatus[] |
getECADContentStatusForCheckin()
|
static FileManager |
getInstance()
|
PersistedDesign[] |
getRecentDesigns(String authoringApp,
int numberDays)
|
static File |
getRelativeFile(File root,
File leaf)
transform the leaf file into a reference relative to the root |
static Object[] |
getValuePartPropValues(File bomTemplate)
|
boolean |
isAttrFilePresent(String projDir)
|
void |
loadCompFileIntoDocument(Document document)
suck in the comp file and add it to the document passed in, but later on the GUI thread. |
void |
loadContentStatus(DesignAll _design,
boolean preLoad,
String fromWhere)
|
void |
loadContentStatus(DesignAll _design,
boolean preLoad,
String fromWhere,
boolean refreshUI)
|
void |
notifyListenerOfCurrentAllDesignChange()
|
void |
runAllDesignChangeListener(String whatListener)
|
void |
saveDesignAttributes(DesignAll dsn,
Properties extraAttrs)
|
void |
saveDesignAttributes(DesignAll dsn,
Properties extraAttrs,
File dsnAttrFile)
|
void |
saveDesignAttributes(DesignAll dsn,
Properties extraAttrs,
File brdAttrFile,
File schAttrFile)
|
void |
saveDesignAttributes(Properties stdAttrs,
Properties userAttrs,
Properties extraAttrs,
File attrFile)
|
boolean |
setCurrentAllDesign(DesignAll _design)
|
void |
setDesignBomTemplateFile(File bomTemplate)
|
boolean |
setJustCurrentAllDesign(DesignAll design)
|
private void |
updateComboWithStrings(JComboBox combo,
String[] vals,
boolean editable,
String opName,
boolean addToExisting)
|
void |
updateDesignFromDesign(DesignAll fromDsn,
String epmDocType)
|
DesignAll |
updateFromDesignAttrFile(String projDir,
DesignAll _currentDesign,
boolean _preLoad,
String fromWhere)
|
void |
writeAttributeDefFile()
format of the file is: attributeName attributeType ECAD_Document_Name bSend bReceive attributeType := integer | string | float ECAD_Document_Name := ECAD-ASSEMBLY | ECAD-BOARD | ECAD-SOURCE | ECAD-SCHEMATIC bSend and bReceive := true | false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static org.apache.log4j.Logger logger
private static ArgumentMap argMap
private static ArgumentRegister argReg
private static SecondaryArgumentMap sargMap
private static SecondaryArgumentRegister sargReg
Vector curAllDesignChangeListeners
int sizeAllDesignChangeListeners
int countAllDesignChangeListeners
boolean startAllDesignChangeListeners
DesignAll currentAllDesign
public static final String WINDCHILL_DIR
public static final String WGMTEMP_DIR
public static final String WIDCHILL_ATTR_FILE
public static final String EDA_DIR
public static final String projSettingsFileName
public static final String tempDirName
public static final String edaDirName
public static final String designQueryIOFileName
public static final String errorFileName
private static final String projPropHeader
private ProcessManager pm
private static FileManager instance
Constructor Detail |
private FileManager()
Method Detail |
public File getDesignBomTemplateFile()
public void loadCompFileIntoDocument(Document document)
document
- public Vector getCompFileLines()
public static Vector getCaseCorrectFile(File file)
file
-
public static Vector getCaseCorrectFile(File file, boolean isDirectory)
public Vector getCompFileLines(File fn)
public void addAllDesignChangeListener(ActionListener actionListener)
public void runAllDesignChangeListener(String whatListener)
public void setDesignBomTemplateFile(File bomTemplate)
public static FileManager getInstance()
public DesignAll getCurrentAllDesign()
public void updateDesignFromDesign(DesignAll fromDsn, String epmDocType)
public boolean isAttrFilePresent(String projDir)
public Properties getDesignAttributes(String projDir) throws IOException
IOException
public void saveDesignAttributes(Properties stdAttrs, Properties userAttrs, Properties extraAttrs, File attrFile) throws IOException
IOException
public void saveDesignAttributes(DesignAll dsn, Properties extraAttrs, File brdAttrFile, File schAttrFile) throws IOException
IOException
public void saveDesignAttributes(DesignAll dsn, Properties extraAttrs, File dsnAttrFile) throws IOException
IOException
public void saveDesignAttributes(DesignAll dsn, Properties extraAttrs) throws IOException
IOException
private String getCurrentDesignByProjectDirectory(String currentDesignArgument)
public void writeAttributeDefFile() throws UnableToWriteFileException
UnableToWriteFileException
public DesignAll updateFromDesignAttrFile(String projDir, DesignAll _currentDesign, boolean _preLoad, String fromWhere)
public void loadContentStatus(DesignAll _design, boolean preLoad, String fromWhere)
public void loadContentStatus(DesignAll _design, boolean preLoad, String fromWhere, boolean refreshUI)
public boolean setCurrentAllDesign(DesignAll _design)
public boolean setJustCurrentAllDesign(DesignAll design)
design
- the new design that should be current
private void fixCurrentAllDesign()
public void notifyListenerOfCurrentAllDesignChange()
public void getAvailableContexts(ContextChooser cc)
public void getAvailableSolutions()
public void getAvailableCabinets(JComboBox combo, String solution, String context)
combo
- public void getAvailableTeams(JComboBox combo, String solution, String context)
combo
- private void updateComboWithStrings(JComboBox combo, String[] vals, boolean editable, String opName, boolean addToExisting)
public ECADContentStatus[] getECADContentStatus(String _epmDocType)
public ECADContentStatus[] getECADContentStatusForCheckin()
public AttributeStatus[] getAttributeStatusForCheckin() throws WindchillFunctionException
WindchillFunctionException
public static void copyFile(File in, File out) throws IOException
IOException
public static void copyStream(InputStream in, OutputStream out) throws IOException
IOException
public PersistedDesign[] getRecentDesigns(String authoringApp, int numberDays)
public static Object[] getValuePartPropValues(File bomTemplate)
private static String extractValueFromTemplateLine(String line, String key)
public static File getRelativeFile(File root, File leaf)
root
- leaf
-
public static void checkDir(File dir) throws CancelledException, ProjectLocationException
CancelledException
ProjectLocationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |