com.ptc.windchill.tools
Class RoseAddinConfigure

java.lang.Object
  extended bycom.ptc.windchill.tools.RoseAddinConfigure

public class RoseAddinConfigure
extends Object

This class contains methods used to modify and import the registry files that configure the Windchill Addin for Rose.


Field Summary
private static String ADDIN_DIRECTORY_NAME
           
private  String addinHome
           
private static String CONFIGURED_REG
           
private static String REPLACE_EXT_DIR
           
private static String REPLACE_EXT_TAG
           
private static String REPLACE_HOME_DIR
           
private static String REPLACE_HOME_TAG
           
private static String RESOURCE
           
private  boolean updateRegistry
           
private static String VIRTUAL_PATHMAP
           
private static String WINDCHILL_ADDIN
           
private  String wtHome
           
 
Constructor Summary
RoseAddinConfigure()
           
 
Method Summary
protected static boolean argsOK(String[] args)
           
static boolean configure(String wt_home, String addin_home, boolean update_registry)
          Called to import a reg file, which configures the Windchill Addin for Rose.
protected  void configureInput(OutputFile configured_reg, String reg_name)
          Called to edit a given reg file with the specified directory path.
protected  void configureReg()
          Called to edit the Windchill.Addin.reg and VirtualPathMap.AddIn.reg files and optionally import them into the registry.
private  void configureRegByFile(File dir)
          Called to when we have a file object pointing directly at the RoseAddIn directory.
private static String escapeBackSlashes(String in)
           
 void execute(File wt_home)
          Called to import a reg file, which configures the Windchill Addin for Rose.
 void execute(String[] args)
          Called to import a reg file, which configures the Windchill Addin for Rose.
protected  boolean execute(String wt_home, String addin_home, boolean update_registry)
           
static void main(String[] args)
           
protected static void updateRegistry(String filename)
          Called to import a given reg file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

ADDIN_DIRECTORY_NAME

private static final String ADDIN_DIRECTORY_NAME
See Also:
Constant Field Values

WINDCHILL_ADDIN

private static final String WINDCHILL_ADDIN
See Also:
Constant Field Values

VIRTUAL_PATHMAP

private static final String VIRTUAL_PATHMAP
See Also:
Constant Field Values

CONFIGURED_REG

private static final String CONFIGURED_REG
See Also:
Constant Field Values

REPLACE_HOME_DIR

private static final String REPLACE_HOME_DIR
See Also:
Constant Field Values

REPLACE_EXT_DIR

private static final String REPLACE_EXT_DIR
See Also:
Constant Field Values

REPLACE_HOME_TAG

private static final String REPLACE_HOME_TAG
See Also:
Constant Field Values

REPLACE_EXT_TAG

private static final String REPLACE_EXT_TAG
See Also:
Constant Field Values

wtHome

private String wtHome

addinHome

private String addinHome

updateRegistry

private boolean updateRegistry
Constructor Detail

RoseAddinConfigure

public RoseAddinConfigure()
Method Detail

configureReg

protected void configureReg()
Called to edit the Windchill.Addin.reg and VirtualPathMap.AddIn.reg files and optionally import them into the registry.


configureRegByFile

private void configureRegByFile(File dir)
Called to when we have a file object pointing directly at the RoseAddIn directory. Other string fields of this object are expected to have been set.


configureInput

protected void configureInput(OutputFile configured_reg,
                              String reg_name)
Called to edit a given reg file with the specified directory path.

Throws:
WTException

updateRegistry

protected static void updateRegistry(String filename)
Called to import a given reg file.


argsOK

protected static boolean argsOK(String[] args)

execute

public void execute(String[] args)
             throws WTException
Called to import a reg file, which configures the Windchill Addin for Rose.

Parameters:
args - The params listed below...
Throws:
WTException

execute

public void execute(File wt_home)
             throws WTException
Called to import a reg file, which configures the Windchill Addin for Rose.

Parameters:
wt_home - File object representing wt_home, parent of RoseAddIn.
Throws:
WTException

execute

protected boolean execute(String wt_home,
                          String addin_home,
                          boolean update_registry)

configure

public static boolean configure(String wt_home,
                                String addin_home,
                                boolean update_registry)
Called to import a reg file, which configures the Windchill Addin for Rose.

Parameters:
wt_home - Windchill load point (root directory).
addin_home - AddIn home, defaults to /RoseAddIn.
update_registry - Import entries into registry, defaults to true.

main

public static void main(String[] args)

escapeBackSlashes

private static String escapeBackSlashes(String in)