PK t. META-INF/PK t.35DDMETA-INF/MANIFEST.MFManifest-Version: 1.0 Created-By: 1.3.0 (Sun Microsystems Inc.) PK &<'Application.java/*****************************************************************************\ FILE: Application.java PURPOSE: Start a tracker dialog box either as an application or as a model program. 09-Apr-99 I-01-34 JCN $$1 Created. 23-Jul-99 I-03-12 MSH $$2 Renamed the file to Application.java \*****************************************************************************/ import com.ptc.pfc.pfcGlobal.*; import com.ptc.pfc.pfcSession.*; import com.ptc.pfc.pfcModel.*; import com.ptc.tracker.Tracker; public class Application { public static Session session; public static Models models; /* Static start method for the application */ public static void app_start () { title(); try { session = pfcGlobal.GetProESession(); models = session.ListModels(); new Tracker(session, models); } catch (Throwable x) { printMsg("Exception caught: "+x); x.printStackTrace(); } } /* Start method used for model program */ public static void mp_start () { title(); try { session = pfcGlobal.GetProESession(); models = Models.create(); models.insert(0, session.GetCurrentModel()); new Tracker (session, models); printMsg("Tracker: Complete"); } catch (Throwable x) { printMsg("Exception caught: "+x); x.printStackTrace(); } } /* Stop method used for application and model program */ public static void stop () { printMsg("Tracker: Stopped"); } /* Prints messages to standard output */ public static void printMsg(String Msg) { System.out.println(Msg); } /* Prints startup message */ public static void title() { printMsg("This is the model information tracking program"); printMsg("Created using J-Link - written in Java 1.1"); printMsg("Stand by while the program retrieves model information"); } } PK &&(MAutoNameListener.java/*****************************************************************************\ FILE: AutoNameListener.java PURPOSE: SolidActionListener which waits for feature creation. After creation, prompts user to enter a name for the feature if the feature does not already have one. 09-Apr-99 I-01-34 JCN $$1 Created. \*****************************************************************************/ import com.ptc.cipjava.*; import com.ptc.pfc.pfcFeature.*; import com.ptc.pfc.pfcSolid.*; import com.ptc.pfc.pfcGlobal.pfcGlobal; import com.ptc.pfc.pfcExceptions.*; import com.ptc.pfc.pfcFamily.*; import java.awt.*; import java.awt.event.*; public class AutoNameListener extends DefaultSolidActionListener { Feature feature; Dialog dialog; Panel mainPanel, namePanel, familyPanel, submitPanel; Frame mainFrame; Label instructions; Label question; TextField nameField; Button submitButton; Checkbox yesBox, noBox; CheckboxGroup group; /** * Public constructor. */ public AutoNameListener () { } /** * Overidden method from SolidActionListener interface. Checks if new * feature name is set to null or "" by Pro/E. If so, the method creates * a new dialog to prompt users for action. */ public void OnAfterFeatureCreate(Solid Solid, Feature Feat) throws jxthrowable { try { feature = Feat; if (Feat.GetName() == null || Feat.GetName().equals("")) createNameDialog(); else System.out.println(Feat.GetName()); } catch (jxthrowable x) { handlejxthrowable(x); } } /** * Creates a dialog using java.awt components. Registers a listener on the * Submit button. */ public void createNameDialog () { mainFrame =new Frame(); dialog =new Dialog (mainFrame,"Submit feature name", true); mainPanel = new Panel (new GridLayout(3, 1)); namePanel = new Panel(); familyPanel = new Panel(); submitPanel = new Panel(); instructions = new Label("Create a name for the new feature:"); namePanel.add(instructions); nameField= new TextField(15); //Set the length of the text field namePanel.add(nameField); question = new Label("Add new feature to family table?"); familyPanel.add(question); group = new CheckboxGroup(); yesBox = new Checkbox("Y", false, group); noBox = new Checkbox("N", true, group); familyPanel.add(yesBox); familyPanel.add(noBox); submitButton= new Button ("Submit"); submitButton.addActionListener(new DialogAction ()); submitPanel.add(submitButton); mainPanel.add(namePanel); mainPanel.add(familyPanel); mainPanel.add(submitPanel); dialog.add(mainPanel); dialog.pack(); dialog.show(); } /** * Called by the Submit button listener. Assigns the new feature name to * the new feature. */ public boolean submitNewName() { int id; String newName = nameField.getText(); if (newName == null || newName.equals("")) return (false); try { feature.SetName(newName); } catch (jxthrowable x) { handlejxthrowable(x); return (false); } return (true); } /** * Called by the Submit button listener. Adds the new feature to the * family table with default "*" values. */ public void addToFamilyTable () { try { FamColFeature col; Solid owner; owner = (Solid) feature.GetDBParent(); col = owner.CreateFeatureColumn(feature); owner.AddColumn(col, null); } catch (jxthrowable x) { handlejxthrowable(x); } } /** * Exception handling code. */ public void handlejxthrowable (jxthrowable x) { System.out.println("Exception caught: "+x); if (x instanceof XToolkitError) { try { int code = ((XToolkitError)x).GetErrorCode(); System.out.println("Error code: "+code); } catch (jxthrowable x2) { System.out.println("Execption caught from GetErrorCode() "+x); } } x.printStackTrace(); } /** * Class which implements the Submit button's action listener. */ class DialogAction implements java.awt.event.ActionListener { public void actionPerformed (ActionEvent e) { if (e.getSource().equals(submitButton)) { boolean goodName = submitNewName(); if (goodName) { System.out.println("Name changed successfully"); Checkbox addTo = group.getSelectedCheckbox(); if (addTo.equals(yesBox)) { addToFamilyTable(); } dialog.dispose(); } else { nameField.setText(""); System.out.println("Name change unsuccessful; please try again"); } } } } } PK &;w AutoNameModelProgram.java/*****************************************************************************\ FILE: AutoNameModelProgram.java PURPOSE: Registers an AutoNameListener on the current model. Could be used as an application or as a model program. 09-Apr-99 I-01-34 JCN $$1 Created. \*****************************************************************************/ import com.ptc.cipjava.*; import com.ptc.pfc.pfcGlobal.*; import com.ptc.pfc.pfcSession.*; import com.ptc.pfc.pfcModel.*; import com.ptc.pfc.pfcSolid.*; public class AutoNameModelProgram { static AutoNameListener modelListener; static Session session; static Solid solid; /** * J-Link start method. Will assign the AutoNameListener to the current * model. */ public static void start () { printMsg("Auto Naming model program started"); try { session = pfcGlobal.GetProESession(); solid = (Solid) session.GetCurrentModel(); modelListener = new AutoNameListener (); solid.AddActionListener (modelListener); printMsg("Action Listener established on solid model: "+solid.GetFullName()); } catch (jxthrowable x) { printMsg("J.Link exception caught "+x); x.printStackTrace(); } catch (ClassCastException x) { printMsg("This model program works only for solid models"); System.exit(-1); } } /** * J-Link stop method. Removes the AutoNameListener. */ public static void stop () { try { solid.RemoveActionListener(modelListener); printMsg("Model listener removed"); } catch (jxthrowable x) { printMsg("J.Link exception caught "+x); x.printStackTrace(); } } public static void printMsg(String Msg) { System.out.println(Msg); } } PK q.88 CblCalc.javaimport javax.swing.*; import javax.swing.table.*; import javax.swing.event.*; import javax.swing.border.*; import java.io.*; import java.util.*; import java.awt.*; import java.awt.event.*; import com.ptc.cipjava.*; import com.ptc.pfc.pfcSession.*; import com.ptc.pfc.pfcGlobal.*; import com.ptc.pfc.pfcCommand.*; import com.ptc.pfc.pfcModel.*; import com.ptc.pfc.pfcModelItem.*; import com.ptc.pfc.pfcSolid.*; public class CblCalc extends JDialog { private JDialog f; private JPanel mainPanel; private JTextField txtnow, txtfincsa, txtfindia; private JButton docalc_but; private JComboBox AWGChooser; private String AWGChooser_str; private double k; public CblCalc() { f=new JDialog(new JFrame(),"Cable Calculator",true); f.setSize(450,250); mainPanel= new JPanel(); String[] AWG_val = {"0","1","2","3","4","5","6","7","8","9", "10","11","12","13","14","15","16","17","18","19", "20","21","22","23","24","25","26","27","28","29", "30","31","32","33","34","35","36","37","38","39","40"}; String txtnow_str, txtfindia_str, txtfincsa_str; double findia_sum, fincsa_sum, diadbl; int txtnow_int, AWGChooser_int; JPanel cblPanel = new JPanel(); cblPanel.setLayout(new GridLayout(5, 2)); k=Math.pow(0.46/0.005,1.0/39.0); cblPanel.add(new Label(" Enter Number Of Wires ")); txtnow = new JTextField(15); txtnow.setEditable(true); cblPanel.add(txtnow); cblPanel.add(new Label(" Select Wire Gage [AWG] ")); AWGChooser = new JComboBox(AWG_val); cblPanel.add(AWGChooser); cblPanel.add(new JLabel(" Calculate Final Totals ")); docalc_but = new JButton("Do Final Cable Calculations"); cblPanel.add(docalc_but); docalc_but.addActionListener ( new ActionListener() { public void actionPerformed(ActionEvent e) { big_calc(); } } ); cblPanel.add(new JLabel(" Final Cable Diameter ")); txtfindia = new JTextField(15); cblPanel.add(txtfindia); cblPanel.add(new JLabel(" Final Cable Cross Sectional Area ")); txtfincsa = new JTextField(15); cblPanel.add(txtfincsa); mainPanel.add(cblPanel); f.getContentPane().add(mainPanel); f.toFront (); f.pack(); f.show(); f.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { KickOff.stop(); } }); } public void big_calc() { String txtnow_str = get_txtnow_str(); int txtnow_int = Integer.parseInt(txtnow_str); String AWGChooser_str = (String)AWGChooser.getSelectedItem(); int AWGChooser_int = Integer.parseInt(AWGChooser_str); double diadbl=dia_calc(AWGChooser_int); double findia_sum=findia_calc(diadbl, txtnow_int); double fincsa_sum=fincsa_calc(findia_sum); String txtfindia_str = Double.toString(findia_sum); txtfindia.setText(txtfindia_str); String txtfincsa_str = Double.toString(fincsa_sum); txtfincsa.setText(txtfincsa_str); } public double findia_calc(double diadbl, int txtnow_int) { double findia_sum = Math.sqrt( txtnow_int * ( diadbl * diadbl ) ); return findia_sum; } public double fincsa_calc(double findia_sum) { double fincsa_sum = Math.PI * ( findia_sum / 2) * ( findia_sum / 2 ); return fincsa_sum; } public double dia_calc(int AWGChooser_int) { double diadbl = 0.46/Math.pow(k,AWGChooser_int+3); return diadbl; } public String get_txtnow_str() { String txtnow_str = txtnow.getText(); // get text from textfield return txtnow_str; } public static void main(String[] args) { CblCalc CC; CC= new CblCalc(); } } PK ;q.ٸ977 CgmTest.java import com.ptc.cipjava.*; import com.ptc.pfc.pfcGlobal.*; import com.ptc.pfc.pfcSession.*; import com.ptc.pfc.pfcModel.*; import java.awt.*; public class CgmTest { static Session session; static Model model; static CGMFILEExportInstructions instructs; static String file_name="mytest.cgm"; public static void start () { try { session=pfcGlobal.GetProESession(); model=session.GetCurrentModel(); instructs=pfcModel.CGMFILEExportInstructions_Create(CGMExportType.EXPORT_CGM_CLEAR_TEXT, CGMScaleType.EXPORT_CGM_METRIC); model.Export(file_name, instructs); return; } catch (jxthrowable x) { System.out.println("Exception caught:"+x); x.printStackTrace(); System.exit(-1); } } public static void stop () { System.out.println("Program: Stopped"); } } PK p.X`-`-EAT_Desktop.java import java.awt.event.*; import java.awt.*; import java.beans.*; import java.util.*; import java.net.*; import java.io.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.border.*; import javax.swing.plaf.*; public class EAT_Desktop extends JFrame implements ActionListener, VetoableChangeListener { private JDesktopPane desktop; private JMenuItem openItem, exitItem, nextItem, cascadeItem, tileItem, short_File, previewRevFile2; private JMenuItem newform, previewFile, previewRevFile, openCal, about, openPP, runPing; private JCheckBoxMenuItem dragItem; private JButton winButton, javaButton, motifButton; String WOR_DIR = "./wor", if_wor, savestg = "save"; JFileChooser fc = new JFileChooser(WOR_DIR); JFileChooser fcr = new JFileChooser(WOR_DIR); WOR_Html_Filter filter = new WOR_Html_Filter(); WOR_Filter wor_filter = new WOR_Filter(); WOR_Rev_Filter rev_filter = new WOR_Rev_Filter(); static final Integer DOCLAYER = new Integer(5); static final Integer TOOLLAYER = new Integer(6); static final Integer HELPLAYER = new Integer(7); int nextFrameX = 0; int nextFrameY = 0; int frameDistance = 0; static final String ABOUTMSG = "EAT - Engineering Application Tool \n \nWritten by Lawrence L. Jett, Jr.\n"; public EAT_Desktop() { super( "EAT - Engineering Application Tool" ); final int inset = 10; Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); setBounds ( inset, inset/2, screenSize.width - inset*2, screenSize.height - inset*2 ); // Set content pane of the JFrame to JDesktopPane desktop = new JDesktopPane(); getContentPane().add( desktop ); buildMenus(); buildLaF(); show(); } protected void buildLaF() { // Add the look and feel controls using regular AWT buttons JPanel lnfPanel = new JPanel(); LnFListener lnfListener = new LnFListener(this); javaButton = new JButton("Metal"); javaButton.addActionListener(lnfListener); lnfPanel.add(javaButton); motifButton = new JButton("Motif"); motifButton.addActionListener(lnfListener); lnfPanel.add(motifButton); winButton = new JButton("Windows"); winButton.addActionListener(lnfListener); lnfPanel.add(winButton); getContentPane().add(lnfPanel, BorderLayout.SOUTH); UIManager.addPropertyChangeListener(new UISwitchListener((JComponent)getRootPane())); } protected void buildMenus() { JMenuBar menuBar = new JMenuBar(); setJMenuBar( menuBar ); JMenu file = buildfileMenu(); JMenu wind = buildwindMenu(); JMenu form = buildFormMenu(); JMenu help = buildHelpMenu(); menuBar.add(file); menuBar.add(wind); menuBar.add(form); menuBar.add(help); } protected JMenu buildfileMenu() { JMenu file = new JMenu("File"); openItem = new JMenuItem( "Open File" ); openCal = new JMenuItem( "Open Calendar" ); openPP = new JMenuItem("Open Projects Page"); runPing = new JMenuItem( "Ping 24.207.159.20" ); exitItem = new JMenuItem( "Exit" ); openItem.addActionListener(this); openCal.addActionListener(this); openPP.addActionListener(this); runPing.addActionListener(this); exitItem.addActionListener(this); file.add(openItem); file.add(openCal); file.add(openPP); //file.add(runPing); file.add(exitItem); return file; } protected JMenu buildwindMenu() { JMenu wind = new JMenu( "Window" ); nextItem = new JMenuItem( "Next" ); cascadeItem = new JMenuItem( "Cascade" ); tileItem = new JMenuItem( "Tile" ); dragItem = new JCheckBoxMenuItem( "Drag Outline" ); nextItem.addActionListener(this); cascadeItem.addActionListener(this); tileItem.addActionListener(this); dragItem.addActionListener(this); wind.add(nextItem); wind.add(cascadeItem); wind.add(tileItem); wind.add(dragItem); return wind; } protected JMenu buildFormMenu() { JMenu form = new JMenu("Forms"); newform = new JMenuItem("Create New Work Order Request Form"); previewFile = new JMenuItem("Open Existing Work Order Request Form"); previewRevFile = new JMenuItem("Open Existing Work Order Request HISTORY Form"); newform.addActionListener(this); previewFile.addActionListener(this); previewRevFile.addActionListener(this); form.add(newform); form.add(previewFile); form.add(previewRevFile); return form; } protected JMenu buildHelpMenu() { JMenu help = new JMenu("Help"); about = new JMenuItem("About EAT..."); about.addActionListener(this); help.add(about); return help; } public void selectNextWindow() { JInternalFrame[] frames = desktop.getAllFrames(); for ( int i = 0; i < frames.length; i++ ) { if ( frames[i].isSelected() ) { try { int next = i + 1; while ( next != i && frames[next].isIcon() ) { next++; } if ( next == i ) { return; } frames[next].setSelected( true ); frames[next].toFront(); return; } catch( PropertyVetoException e ) {} } } } public void tileWindows() { JInternalFrame[] frames = desktop.getAllFrames(); // count frames that are not iconized int frameCount = 0; for ( int i = 0; i < frames.length; i++ ) { if ( !frames[i].isIcon() ) { frameCount++; } } int row = (int)Math.sqrt( frameCount ); int col = frameCount / row; int extra = frameCount % row; int width = desktop.getWidth() / col; int height = desktop.getHeight() / row; int r = 0; int c = 0; for ( int i = 0; i < frames.length; i++ ) { if ( !frames[i].isIcon() ) { try { frames[i].setMaximum( false ); frames[i].reshape( c * width, r * height, width, height ); r++; if ( r == row ) { r = 0; c++; if ( c == col - extra ) { row++; height = desktop.getHeight() / row; } } } catch( PropertyVetoException e ) {} } } } public void cascadeWindows() { JInternalFrame[] frames = desktop.getAllFrames(); int x = 0; int y = 0; int width = desktop.getWidth() / 2; int height = desktop.getHeight() / 2; for ( int i = 0; i < frames.length; i++ ) { if ( !frames[i].isIcon() ) { try { frames[i].setMaximum( false ); frames[i].reshape( x, y, width, height ); x += frameDistance; y += frameDistance; if ( x + width > desktop.getWidth() ) x = 0; if ( y + height > desktop.getHeight() ) y = 0; } catch( PropertyVetoException e ) {} } } } public void createInternalFrame( Component c, String s ) { JInternalFrame frame = new JInternalFrame( s, true, true, true, true ); // Add frame to the desktop frame.getContentPane().add( c ); desktop.add( frame, DOCLAYER ); frame.addVetoableChangeListener(this); int width = desktop.getWidth() / 2; int height = desktop.getHeight() / 2; frame.setBounds( 10, 10, 560, 600); //frame.reshape( nextFrameX, nextFrameY, width, height ); frame.setOpaque( true ); frame.setVisible(true); try { frame.setSelected( true ); } catch( PropertyVetoException pve ) {} // Compute distance between cascaded frames if ( frameDistance == 0 ) frameDistance = frame.getHeight() / 5; nextFrameX += frameDistance; nextFrameY += frameDistance; if ( nextFrameX + width > desktop.getWidth() ) nextFrameX = 0; if ( nextFrameY + height > desktop.getHeight() ) nextFrameY = 0; } public Component createEditorPane( URL u ) { JEditorPane panel = new JEditorPane(); panel.setEditable( false ); try { panel.setPage( u ); } catch ( IOException io ) { panel.setText("Error: " + io ); } return new JScrollPane( panel ); } public void vetoableChange( PropertyChangeEvent event ) throws PropertyVetoException { JInternalFrame frame = (JInternalFrame)event.getSource(); String name = event.getPropertyName(); Object value = event.getNewValue(); if ( name.equals ( "closed" ) && value.equals ( Boolean.TRUE ) ) { int result = JOptionPane.showInternalConfirmDialog ( frame, "Do you really want to close?" ); if ( result == JOptionPane.NO_OPTION || result == JOptionPane.CANCEL_OPTION ) { throw new PropertyVetoException ( "Closed canceled", event ); } } } public void actionPerformed( ActionEvent evt ) { Object source = evt.getSource(); if ( source == openItem ) { fc.addChoosableFileFilter( filter ); int returnVal = fc.showOpenDialog( EAT_Desktop.this ); if ( returnVal == JFileChooser.APPROVE_OPTION ) { File file = fc.getSelectedFile(); try { URL fileName = new URL( "file:///" + file.toString() ); createInternalFrame( createEditorPane( fileName ), fileName.toString() ); } catch (MalformedURLException m) { System.err.println("Malformed URL: " + file); } } } else if ( source == previewFile ) { fc.addChoosableFileFilter( wor_filter ); int returnVal = fc.showOpenDialog( EAT_Desktop.this ); if ( returnVal == JFileChooser.APPROVE_OPTION ) { File file = fc.getSelectedFile(); String if_wor = file.toString(); JInternalFrame doc = new WOR_FormFrame39( if_wor, savestg ); desktop.add(doc, DOCLAYER); try { doc.setVisible(true); doc.setSelected(true); } catch (java.beans.PropertyVetoException e2) {} } } else if ( source == previewRevFile ) { String savestg = "not-save"; fcr.addChoosableFileFilter( rev_filter ); int returnVal = fcr.showOpenDialog( EAT_Desktop.this ); if ( returnVal == JFileChooser.APPROVE_OPTION ) { File file = fcr.getSelectedFile(); String if_wor = file.toString(); JInternalFrame doc = new WOR_FormFrame39( if_wor, savestg ); desktop.add(doc, DOCLAYER); try { doc.setVisible(true); doc.setSelected(true); } catch (java.beans.PropertyVetoException e2) {} } } else if ( source == newform ) { String if_wor = "null-stg"; JInternalFrame doc = new WOR_FormFrame39( if_wor, savestg ); desktop.add(doc, DOCLAYER); try { doc.setVisible(true); doc.setSelected(true); } catch (java.beans.PropertyVetoException e2) {} } else if ( source == runPing ) { String if_wor = "null-stg"; //new trw_Ping(); } else if ( source == openCal ) { JInternalFrame doc = new JCalendarFrame(); desktop.add(doc, DOCLAYER); try { doc.setVisible(true); doc.setSelected(true); } catch (java.beans.PropertyVetoException e2) {} } else if ( source == openPP ) { JInternalFrame help = new ProjectsPage(); desktop.add(help, DOCLAYER); try { help.setVisible(true); help.setSelected(true); } catch (java.beans.PropertyVetoException e2) {} } else if ( source == about ) { JOptionPane.showMessageDialog(this, ABOUTMSG); } else if ( source == exitItem ) { System.exit( 0 ); } else if ( source == nextItem ) { selectNextWindow(); } else if ( source == tileItem ) { tileWindows(); } else if ( source == cascadeItem ) { cascadeWindows(); } else if ( source == dragItem ) { desktop.putClientProperty( "JDesktopPane.dragMode", dragItem.isSelected() ? "outline" : null ); } } public static void main( String args[] ) { EAT_Desktop app = new EAT_Desktop(); app.addWindowListener( new WindowAdapter() { public void windowClosing( WindowEvent e ) { System.exit( 0 ); } }); } } PK 9o.kNiiExercise4.java/*****************************************************************************\ FILE: Exercise4.java PURPOSE: Solution to the Session chapter exercise in the J-Link User Guide. 09-Apr-99 I-01-34 JCN $$1 Created. \*****************************************************************************/ import com.ptc.cipjava.*; import com.ptc.pfc.pfcGlobal.*; import com.ptc.pfc.pfcSession.*; import com.ptc.pfc.pfcSelect.*; import com.ptc.pfc.pfcCommand.*; import com.ptc.pfc.pfcExceptions.*; public class Exercise4 { public static Session session; public static UICommand selectCmd; public static SelectionOptions options; public static Selections selections; public static Selection selection; public Exercise4 () {} public static void startSelect() { printMsg("J-Link selection exercise"); try { session=pfcGlobal.GetProESession(); } catch (jxthrowable x) { printMsg("Exception caught: Get ProESession: "+x); return; } try { selectCmd = session.UICreateCommand("SELECT", new SelectButtonActionListener()); } catch (jxthrowable x) { printMsg("Exception caught: UICreateCommand: "+x); } try { session.UIAddButton(selectCmd, "Utilities", "Utilities.psh_util_aux", "USER Select", "USER Highlight selections", "exercise4.txt"); } catch (jxthrowable x) { printMsg("Exception caught: UIAddButton: "+x); } } public static void stop () {} /** * Action for Pro/E button "Select". Prompts the user for a string input, * uses the input as a SelectionOptions keyword. Uses the keyword to limit * the possible selections user can get. Highlights the selections made. * * Method must be static because it accesses the static data "session". */ public static void highlightSelections() { String option=""; boolean highlight=true; int code; while (true) { try { session.UIDisplayMessage("exercise4.txt", "USER Prompt", null); option=session.UIReadStringMessage(Boolean.FALSE); } catch(jxthrowable x) { printMsg("Exception caught: UIReadStringMessage: "+x); return; } if (option==null) break; if (option.equalsIgnoreCase("q")) break; try { options=pfcSelect.SelectionOptions_Create(option); options.SetMaxNumSels(new Integer(1)); } catch (jxthrowable x) { printMsg("Exception caught: SelectionOptions_Create: "+x); return; } try { selections=session.Select(options, null); highlight=true; } catch (XToolkitError xtk) { try { code = xtk.GetErrorCode(); if (code == -3) { // ErrorCode for user abort highlight=false; session.UIDisplayMessage("exercise4.txt", "USER error", null); } else if (code == -14) { // ErrorCode for user picking off the menu highlight=false; session.UIDisplayMessage("exercise4.txt", "USER error", null); } else { printMsg("Unacceptable XToolkit Error caught: "+code); return; } } catch (jxthrowable x) { printMsg("Exception caught: UIDisplayMessage: "+x); return; } } catch (jxthrowable x) { printMsg("Exception caught: Select: "+x); return; } if (selections !=null && highlight) try { selection=selections.get(0); selection.Highlight(com.ptc.pfc.pfcBase.StdColor.COLOR_HIGHLIGHT); } catch (jxthrowable x) { printMsg("Exception caught: Highlight: "+x); } } } private static void printMsg(String str) { System.out.println(str); } } /** * Non-public class which extends the J-Link UICommandActionListener. * This class overrides the OnCommand() method with the * highlightSelections() method from the contianing class. */ class SelectButtonActionListener extends DefaultUICommandActionListener { public void OnCommand () { Exercise4.highlightSelections(); } } PK t.u Exercise4_2.java import com.ptc.cipjava.*; import com.ptc.pfc.pfcGlobal.*; import com.ptc.pfc.pfcSession.*; import com.ptc.pfc.pfcSelect.*; import com.ptc.pfc.pfcCommand.*; import com.ptc.pfc.pfcExceptions.*; public class Exercise4_2 { public static Session session; public static UICommand selectCmd; public static SelectionOptions options; public static Selections selections; public static Selection selection; public Exercise4_2() {} public static void startSelect() { printMsg("J-Link selection exercise"); try { session=pfcGlobal.GetProESession(); } catch (jxthrowable x) { printMsg("Exception caught: Get ProESession: "+x); return; } try { selectCmd = session.UICreateCommand("SELECT", new SelectButtonActionListener2()); } catch (jxthrowable x) { printMsg("Exception caught: UICreateCommand: "+x); } try { session.UIAddButton(selectCmd, "Utilities", "Utilities.psh_util_aux", "USER Select", "USER Highlight selections", "exercise4.txt"); } catch (jxthrowable x) { printMsg("Exception caught: UIAddButton: "+x); } } public static void stop () {} public static void highlightSelections() { String option=""; boolean highlight=true; int code; while (true) { try { session.UIDisplayMessage("exercise4.txt", "USER Prompt", null); option=session.UIReadStringMessage(Boolean.FALSE); } catch(jxthrowable x) { printMsg("Exception caught: UIReadStringMessage: "+x); return; } if (option==null) break; if (option.equalsIgnoreCase("q")) break; try { options=pfcSelect.SelectionOptions_Create(option); options.SetMaxNumSels(new Integer(1)); } catch (jxthrowable x) { printMsg("Exception caught: SelectionOptions_Create: "+x); return; } try { selections=session.Select(options, null); highlight=true; } catch (XToolkitError xtk) { try { code = xtk.GetErrorCode(); if (code == -3) { // ErrorCode for user abort highlight=false; session.UIDisplayMessage("exercise4.txt", "USER error", null); } else if (code == -14) { // ErrorCode for user picking off the menu highlight=false; session.UIDisplayMessage("exercise4.txt", "USER error", null); } else { printMsg("Unacceptable XToolkit Error caught: "+code); return; } } catch (jxthrowable x) { printMsg("Exception caught: UIDisplayMessage: "+x); return; } } catch (jxthrowable x) { printMsg("Exception caught: Select: "+x); return; } if (selections !=null && highlight) try { selection=selections.get(0); selection.Highlight(com.ptc.pfc.pfcBase.StdColor.COLOR_HIGHLIGHT); } catch (jxthrowable x) { printMsg("Exception caught: Highlight: "+x); } } } private static void printMsg(String str) { System.out.println(str); } } class SelectButtonActionListener2 extends DefaultUICommandActionListener { public void OnCommand () { Exercise4.highlightSelections(); } } PK b&FCExercise5.java/*****************************************************************************\ FILE: Exercise5.java PURPOSE: Solution to exercise 5. 09-Apr-99 I-01-34 JCN $$1 Created. \*****************************************************************************/ import com.ptc.cipjava.*; import com.ptc.pfc.pfcFeature.*; import com.ptc.pfc.pfcSolid.*; public class Exercise5 { /** * Static method which creates and executes either a 'suppress', 'resume', * or 'delete' operations on a specified feature. */ public static void executeOperation (Feature feat, int optype) { SuppressOperation supp; ResumeOperation res; DeleteOperation del; try { RegenInstructions regenInstrs = pfcSolid.RegenInstructions_Create(Boolean.TRUE, Boolean.FALSE, null); FeatureOperations ops = FeatureOperations.create(); Solid owner = (Solid) feat.GetDBParent(); switch (optype) { case (0): supp = feat.CreateSuppressOp(); supp.SetClip (false); ops.set(0, supp); break; case (1): res = feat.CreateResumeOp(); res.SetWithParents(true); ops.set(0, res); break; case (2): del = feat.CreateDeleteOp(); del.SetClip (false); ops.set(0, del); break; } owner.ExecuteFeatureOps(ops, regenInstrs); } catch (jxthrowable x) { System.out.println ("Error in 'executeOperation()': "+x); x.printStackTrace(); } return; } } PK q&Exercise6.java/*****************************************************************************\ FILE: Exercise6.java PURPOSE: Solution to Exercise 6. Includes utility methods getEdgeMidpoint() and getSurfaceCenter(). 09-Apr-99 I-01-34 JCN $$1 Created. \*****************************************************************************/ import com.ptc.cipjava.*; import com.ptc.pfc.pfcGeometry.*; import com.ptc.pfc.pfcBase.*; public class Exercise6 { /** * Returns the midpoint of a specified GeomCurve entity. */ public static Point3D getEdgeMidpoint ( GeomCurve curve) throws jxthrowable { CurveXYZData data; Point3D point; data = curve.Eval3DData(0.5); // midpoint of the curve point = data.GetPoint(); return (point); } /** * Returns the center of a specified surface entity, based on the "Outline" * of the specified surface. */ public static Point3D getSurfaceCenter (Surface surface) throws jxthrowable { SurfXYZData data; Contours contours; ContourTraversal traversal; Contour external=null; Outline2D outline; UVParams center; Point3D point = Point3D.create(); contours = surface.ListContours(); for (int i=0; i "); return; } try { System.loadLibrary ("pfcasyncmt"); } catch (UnsatisfiedLinkError error) { printMsg ("Could not load J-Link library pfcasyncmt."); return; } new pfcAsyncFullExample (args); } // Constructor private pfcAsyncFullExample (String args[]) throws com.ptc.cipjava.jxthrowable { startProE (args); addTerminationListener (); addMenuButton(); while (!exit_flag) { // Could do other regualar processing here, but the EventProcess() // calls should happen regularly, so that Pro/ENGINEER does not // appear slow in responding to menu button picks try { connection.EventProcess (); Thread.sleep (100); } catch (java.lang.InterruptedException ex) { } } // Wait here a bit so Pro/ENGINEER can finish shutting down. try { Thread.sleep (2000); connection.EventProcess (); } catch (java.lang.InterruptedException ex) { } } /** * Starts Pro/ENGINEER. */ void startProE (String[] args) throws com.ptc.cipjava.jxthrowable { try { // args[0] = Pro/ENGINEER command // args[1] = text path for menu/message files connection = pfcAsyncConnection.AsyncConnection_Start (args [0], args[1]); } catch (XToolkitGeneralError error) { printMsg ("Could not start Pro/ENGINEER."); System.exit (0); } return; } /** * Adds a menu and a menu button to the Pro/E menubar. */ void addMenuButton () throws com.ptc.cipjava.jxthrowable { Session s = connection.GetSession (); UICommand cmd = s.UICreateCommand ( "AsyncCommand", (UICommandActionListener) new ButtonListener()); s.UIAddMenu ("J-Link", "Applications", "menu_text.txt", null); s.UIAddButton (cmd, "J-Link", null, "AsyncApp", "AsyncAppHelp", "menu_text.txt"); } /** * Adds a handler for Pro/ENGINEER's exit. */ void addTerminationListener () throws com.ptc.cipjava.jxthrowable { connection.AddActionListener ((AsyncActionListener)this); printMsg ("Termination listener added."); } /** * Termination handler - from the AsyncActionListener interface. */ public void OnTerminate (TerminationStatus status) { printMsg ("Pro/ENGINEER shutting down."); exit_flag = true; } public static void printMsg (String msg) { System.out.println (msg); } } class ButtonListener extends DefaultUICommandActionListener { /** * Menu button action - from interface UICommandActionListener */ public void OnCommand () { pfcAsyncFullExample.printMsg ("User menu button pushed."); } } PK g&| StartExercise5.java/*****************************************************************************\ FILE: StartExercise5.java PURPOSE: Start the J-Link program for Exercise 5. Uses the static method "Exercise5.executeOperation()" which is the solution to this exercise. 09-Apr-99 I-01-34 JCN $$1 Created. \*****************************************************************************/ import com.ptc.cipjava.*; import com.ptc.pfc.pfcSession.*; import com.ptc.pfc.pfcGlobal.*; import com.ptc.pfc.pfcModel.*; import com.ptc.pfc.pfcFeature.*; import com.ptc.pfc.pfcExceptions.*; import com.ptc.pfc.pfcSolid.*; import com.ptc.pfc.pfcWindow.*; /** * Test application class for Exercise 5. */ public class StartExercise5 { private static Model test_model; /** * Model name for test application */ private static String model = "EXERCISE5"; private static Session session; /** * J-Link start method */ public static void start () { try { session = pfcGlobal.GetProESession(); test_model = session.GetModel (model, ModelType.MDL_PART); } catch (jxthrowable x) { printMsg("Error initializing test program: "+x); x.printStackTrace(); return; } if (test_model == null) { printMsg("Please load 'Exercise5.prt' and rerun the program"); return; } executeOperations(); } /** * J-Link stop method. */ public static void stop () { printMsg("Stopped"); } /** * Executes the bulk of the operations needed to set up the exercise. */ public static void executeOperations() { Features features; String suppress = "SUPP"; String resume = "RES"; String delete = "DEL"; String name; Feature suppress_feat = null; Feature resume_feat = null; Feature delete_feat = null; Solid test_solid = (Solid) test_model; Window model_window; try { features = ((Solid)test_model).ListFeaturesByType(Boolean.FALSE, null); for (int i =0; i < features.getarraysize(); i++) { if (features.get(i).GetName() != null) { name = features.get(i).GetName(); if (name.equalsIgnoreCase(suppress)) { printMsg("Found 'SUPP'!"); suppress_feat = features.get(i); } if (name.equalsIgnoreCase(resume)) { resume_feat = features.get(i); printMsg("Found 'RES'!"); } if (name.equalsIgnoreCase (delete)) { printMsg("Found 'DEL'!"); delete_feat = features.get(i); } } } } catch (jxthrowable x) { printMsg("Exception caught :"+x); x.printStackTrace(); } // Check if null required for compilation. Utility method // 'executeOperation' is the solution to exercise 5. if (suppress_feat != null) { Exercise5.executeOperation (suppress_feat, 0); } if (resume_feat != null) { Exercise5.executeOperation (resume_feat, 1); } if (delete_feat != null) { Exercise5.executeOperation (delete_feat, 2); } try { // CreateModelWindow returns the window which contains the model // if it already exists. model_window = session.CreateModelWindow (test_model); // Needed to show the changes in the window and on the Model Tree model_window.Repaint(); model_window.Activate(); } catch (jxthrowable x) { printMsg("Execption caught: "+x); x.printStackTrace(); } } public static void printMsg(String Msg) { System.out.println("StartExercise5 :"+Msg); } } PK 3xp.YYStartExercise6.java/*****************************************************************************\ FILE: StartExercise6.java PURPOSE: Start the J-Link program for Exercise 6. Uses the static methods "Exercise6.getEdgeMidpoint()" and "Exercise6.getSurfaceCenter()" for on all edges in surfaces in the current model. 09-Apr-99 I-01-34 JCN $$1 Created. \*****************************************************************************/ import com.ptc.cipjava.*; import com.ptc.pfc.pfcGlobal.*; import com.ptc.pfc.pfcSession.*; import com.ptc.pfc.pfcModel.*; import com.ptc.pfc.pfcSolid.*; import com.ptc.pfc.pfcModelItem.*; import com.ptc.pfc.pfcFeature.*; import com.ptc.pfc.pfcGeometry.*; import com.ptc.pfc.pfcBase.*; import java.io.*; /** * Start class for executing the solution to Exercise 6. */ public class StartExercise6 { static File outputFile; static FileOutputStream output; static PrintWriter results; static Session session; static Solid solid; /** * J-Link start method. Gets the current model, sets up a results file, * and checks all midpoints and centers. */ public static void start () { try { session =pfcGlobal.GetProESession(); solid = (Solid) session.GetCurrentModel(); setupResults(); traverseMidpoints(); } catch (jxthrowable x) { printMsg("Exception caught: "+x); x.printStackTrace(); System.exit(-1); } catch (IOException iox) { printMsg("File I/O exception caught: "+iox); iox.printStackTrace(); System.exit(-2); } } /** * Uses some of the java.io package to setup a file to write results. */ public static void setupResults() throws IOException, jxthrowable { outputFile = new File ("midpoints.txt"); if (outputFile.exists()) outputFile.delete(); output = new FileOutputStream (outputFile); results = new PrintWriter (output, true); results.println("Solid model "+solid.GetFullName()+ "edge and surface midpoint information:"); results.println(); if (checkForError()) throw new IOException("PrintWriter error found"); } /** * Helper method to check for I/O Error. */ public static boolean checkForError() { return (results.checkError()); } /** * Traverses and prints out results for all edge midpoints and surface * centers in the solid model. Calls Exercise6.getEdgeMidpoint() and * Exercise6.getSurfaceCenter(). */ public static void traverseMidpoints() throws IOException, jxthrowable { intseq edgeseq, surfseq; ModelItems curves, surfs; Features datums; Point3D point; Placement placement; String theString; int id, i; results.println("***********************************************"); results.println("Curve midpoint information "); results.println(); if (checkForError()) throw new IOException("PrintWriter error found"); edgeseq = intseq.create(); curves = solid.ListItems(ModelItemType.ITEM_EDGE); //curves = solid.ListItems(ModelItemType.ITEM_FEATURE); for (i =0; i" ); p.println( " PRODUCT DESIGN WORK ORDER REQUEST: " + shhtmflnm + "" ); p.println( "" ); p.println( "
" ); p.println( "" ); p.println( "" ); p.println( "" ); p.println( "" ); p.println( "" ); p.println( "" ); p.println( "" ); p.println( "" ); p.println( "" ); p.println( "" ); p.println( "" ); p.println( "" ); p.println( "" ); p.println( "" ); p.println( "" ); p.println( "" ); p.println( "

Product Design Work Order Request


Work Order Request #: " + dtstg + "

Date: " + dtstgsh + "

IR Packet #: " + irTxt + "

Project: " + prjcts + "

Designer: " + dsgns + "

Date: " + desDt + "

Engineer: " + engns + "

Date: " + engDt + "

Customer: " + cstmrs + "

Platform: " + pltfms + "

Date Reqd: " + aDateStg + "

Cad System: " + fCadStg + "

Drawing Format: " + fDrwStg + "

Engineering Approval: " + engApStg + "


Engineering Job Description:

" + EJDn2br + "

" ); p.flush(); p.close(); } catch(java.io.IOException IOEx) {System.out.println("Cannot create HTML file."); } WORField.setText(String.valueOf(dtstg)); } public String getRevstg( String shworflnm ) { for ( int x = 1; x < 100; x++ ) { String rworflnmver = shworflnm + "." + x; String rworflnm = WOR_DIR + "/" + rworflnmver; File file = new File( rworflnm ); if ( file.exists() ) {} else { return rworflnmver;} } return rworflnmver3; } public String getDatestgsh() { SimpleDateFormat df = new SimpleDateFormat ("MM/dd/yy", Locale.getDefault()); Date tm = new Date(); String dateinst = df.format(tm); return dateinst; } public void ExitSelected() { System.exit(0); } public String getirField() { irTxt = IRField.getText(); return irTxt; } public String getProj() { prjcts = projPSField.getText(); return prjcts; } public String getDes() { dsgns = desPSField.getText(); return dsgns; } public String getdesDateStg() { desDt = desDateField.getText(); return desDt; } public String getEng() { engns = engPSField.getText(); return engns; } public String getengDateStg() { engDt = engDateField.getText(); return engDt; } public String getCust() { cstmrs = custPSField.getText(); return cstmrs; } public String getPlat() { pltfms = platPSField.getText(); return pltfms; } public String getaDateStg() { aDateStg = aDateField.getText(); return aDateStg; } public String getaCadStg() { fCadStg = CadField.getText(); return fCadStg; } public String getaDrwStg() { fDrwStg = DrwField.getText(); return fDrwStg; } public String getengApStg() { engApStg = engApField.getText(); return engApStg; } // change /n 2 |-n-| public String put_n2dnd() { String EJDstgtmp = EJDcontent.getText(); String EJDstg1 = StgReplace(EJDstgtmp,"\n","|-n-|"); return EJDstg1; } // change /n 2
public String put_n2br() { String EJDstgtmp = EJDcontent.getText(); String EJDstg1 = StgReplace(EJDstgtmp,"\n","
"); return EJDstg1; } // change |-n-| 2 \n public String get_dnd2n() { EJDstgtmp = EJDgetstg; String EJDstg1 = StgReplace(EJDstgtmp,"|-n-|","\n"); return EJDstg1; } public static String StgReplace (String target, String from, String to) { int start = target.indexOf (from); if (start==-1) return target; int lf = from.length(); int tf = target.length(); char [] targetChars = target.toCharArray(); StringBuffer buffer = new StringBuffer(); int copyFrom=0; while (start != -1) { buffer.append (targetChars, copyFrom, start-copyFrom); buffer.append (to); copyFrom=start+lf; start = target.indexOf (from, copyFrom); } buffer.append (targetChars, copyFrom, targetChars.length-copyFrom); String finstg = buffer.toString(); return finstg; } public String getDatestg() { SimpleDateFormat formatter = new SimpleDateFormat ("yyMM", Locale.getDefault()); Date dt = new Date(); String yyMM = formatter.format(dt); for ( int x = 1; x < 1000; x++ ) { String tn = ""; if ( x<10 ) tn="00"; if ( x<100 && x>9 ) tn="0"; dtstg = yyMM + tn + x; String worflnm = WOR_DIR + "/" + dtstg + ".wor"; File file = new File( worflnm ); if ( file.exists() && file.isFile() && file.canRead() ) {} else { break; } } return dtstg; } public static void main(String[] args) { WOR_FormDialog wfd; String if_wor = "null-stg"; String WOR_DIR = "./wor", savestg = "save"; wfd = new WOR_FormDialog( if_wor, savestg ); } } PK m.(qbbApplication.class-e@AJKLM=PQRSVWXYZ " # $ % & ' ( ) * + , - . / 0 1 2 <7 <9 <; B3 C5 G4 O: T4 U8 [D ]H ^; _7 `; aE c7 d6()Lcom/ptc/pfc/pfcModel/Model;()Lcom/ptc/pfc/pfcModel/Models;"()Lcom/ptc/pfc/pfcSession/Session;()Ljava/lang/String;()V (ILcom/ptc/pfc/pfcModel/Model;)V@(Lcom/ptc/pfc/pfcSession/Session;Lcom/ptc/pfc/pfcModel/Models;)V,(Ljava/lang/Object;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V ApplicationApplication.javaCode*Created using J-Link - written in Java 1.1Exception caught: GetCurrentModelGetProESessionLcom/ptc/pfc/pfcModel/Models; Lcom/ptc/pfc/pfcSession/Session;LineNumberTable ListModelsLjava/io/PrintStream; SourceFile6Stand by while the program retrieves model information.This is the model information tracking programTracker: CompleteTracker: Stopped app_startappendcom/ptc/pfc/pfcGlobal/pfcGlobalcom/ptc/pfc/pfcModel/Models"com/ptc/pfc/pfcSession/BaseSessioncom/ptc/tracker/Trackercreateinsertjava/io/PrintStreamjava/lang/Objectjava/lang/StringBufferjava/lang/Systemjava/lang/Throwablemodelsmp_startoutprintMsgprintStackTraceprintlnsessionstoptitletoString!  aE [D<7?*F N7?<  KY*!* #F*  ! #$$&7'; \7?K  KY*!*/2F2 .02 468*:/02<3>F?J, ^;?$*F NL b7?"F HF c7?4FTU VRI>PK m.Ču~#AutoNameListener$DialogAction.class-b.FG89RSTUVWXY    ! " # $ % & ' ( ) * + , - 71 K1 LC M1 N5 O/ P0 QB ZD [E \6 ]6 ^@ _2 `> aA()Ljava/awt/Checkbox;()Ljava/lang/Object;()V()Z(LAutoNameListener;)V(Ljava/awt/event/ActionEvent;)V(Ljava/lang/Object;)Z(Ljava/lang/String;)VAutoNameListenerAutoNameListener$DialogActionAutoNameListener.javaCode DialogAction InnerClassesLAutoNameListener;LineNumberTableLjava/awt/Button;Ljava/awt/Checkbox;Ljava/awt/CheckboxGroup;Ljava/awt/Dialog;Ljava/awt/TextField;Ljava/io/PrintStream;*Name change unsuccessful; please try againName changed successfully SourceFile SyntheticactionPerformedaddToFamilyTabledialogdisposeequalsgetSelectedCheckbox getSourcegroupjava/awt/CheckboxGroupjava/awt/Dialogjava/awt/TextFieldjava/awt/event/ActionListenerjava/io/PrintStreamjava/lang/Objectjava/lang/Systemjava/util/EventObject nameFieldoutprintlnsetText submitButton submitNewNamethis$0yesBox   `>I73;2 **+? J4;g+*X*=8*N-* ***?2 %0>EOR^fH:= <PK m.4VVAutoNameListener.class-~ T T T T U V W X Y Z Z "Z [ \ ] ^ _ ` a b c "d "e f g !h i j k l m n o p q r s #t u $v w x y z { "| }  ()I ()Lcom/ptc/pfc/pfcObject/Parent;()Ljava/lang/String;()V()Z(I)Ljava/lang/StringBuffer;(I)V(II)V(LAutoNameListener;)V (Lcom/ptc/cipjava/jxthrowable;)Vz(Lcom/ptc/pfc/pfcFamily/FamilyTableColumn;Lcom/ptc/pfc/pfcModelItem/ParamValues;)Lcom/ptc/pfc/pfcFamily/FamilyTableColumn;G(Lcom/ptc/pfc/pfcFeature/Feature;)Lcom/ptc/pfc/pfcFamily/FamColFeature;?(Lcom/ptc/pfc/pfcSolid/Solid;Lcom/ptc/pfc/pfcFeature/Feature;)V*(Ljava/awt/Component;)Ljava/awt/Component;&(Ljava/awt/Frame;Ljava/lang/String;Z)V(Ljava/awt/LayoutManager;)V"(Ljava/awt/event/ActionListener;)V,(Ljava/lang/Object;)Ljava/lang/StringBuffer;(Ljava/lang/Object;)Z(Ljava/lang/String;)V.(Ljava/lang/String;ZLjava/awt/CheckboxGroup;)V Add new feature to family table? AddColumnAutoNameListenerAutoNameListener$DialogActionAutoNameListener.javaCode"Create a name for the new feature:CreateFeatureColumn DialogAction Error code: Exception caught:  Exceptions%Execption caught from GetErrorCode()  GetDBParent GetErrorCodeGetName InnerClasses Lcom/ptc/pfc/pfcFeature/Feature;LineNumberTableLjava/awt/Button;Ljava/awt/Checkbox;Ljava/awt/CheckboxGroup;Ljava/awt/Dialog;Ljava/awt/Frame;Ljava/awt/Label;Ljava/awt/Panel;Ljava/awt/TextField;Ljava/io/PrintStream;NOnAfterFeatureCreateSetName SourceFileSubmitSubmit feature nameYaddaddActionListeneraddToFamilyTableappendcom/ptc/cipjava/jxthrowable'com/ptc/pfc/pfcExceptions/XToolkitError"com/ptc/pfc/pfcFamily/FamilyMember"com/ptc/pfc/pfcModelItem/ModelItemcom/ptc/pfc/pfcObject/Child/com/ptc/pfc/pfcSolid/DefaultSolidActionListenercom/ptc/pfc/pfcSolid/SolidcreateNameDialogdialogequals familyPanelfeaturegetTextgrouphandlejxthrowable instructionsjava/awt/Buttonjava/awt/Checkboxjava/awt/CheckboxGroupjava/awt/Containerjava/awt/Dialogjava/awt/Framejava/awt/GridLayoutjava/awt/Labeljava/awt/Paneljava/awt/TextComponentjava/awt/TextFieldjava/awt/Windowjava/io/PrintStreamjava/lang/Stringjava/lang/StringBufferjava/lang/Systemjava/lang/Throwable mainFrame mainPanel nameField namePanelnoBoxoutpackprintStackTraceprintlnquestionshow submitButton submitNewName submitPaneltoStringyesBox! *%*}9*,@,6,6> *<J,6M N*-C/2 * 6789 8#;/62=3?83 g+*@4M,*@3L,+2W L*+C!$ " !$%*K*Y'E*Y*E ,=*YY*-F*Y(H*Y(?*Y(Q*Y/D*H*D8W*Y)G*H*G8W*Y/N*?*N8W*Y&B*Y *B1S*Y*B1I*?*S8W*?*I8W*Y.P*P Y*+9*Q*P8W*F*H8W*F*?8W*F*Q8W*=*F8W*=K*=OnJ KM1N<OGPRR_SkTxUXYZ[\]^`ac de$f0h<iCkJG]J"Y0+;RM+>+5=J"Y0:RMWJ"Y0+;RM+L;> . %;>?UX\r.*GAM, ,>*@,7 N*-C!$ * wyz|}!|$%*,  PK m.=osAutoNameModelProgram.class-oCEMSVFGXYZ[\]_`abcd ' ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 B< BA D> J9 K; L: T> W? W@ ^= eN fR gA h< iA jO kP n;()Lcom/ptc/pfc/pfcModel/Model;"()Lcom/ptc/pfc/pfcSession/Session;()Ljava/lang/String;()V(I)V'(Lcom/ptc/pfc/pfcBase/ActionListener;)V,(Ljava/lang/Object;)Ljava/lang/StringBuffer;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V,Action Listener established on solid model: AddActionListener!Auto Naming model program startedAutoNameListenerAutoNameModelProgramAutoNameModelProgram.javaCodeGetCurrentModel GetFullNameGetProESessionJ.Link exception caught LAutoNameListener; Lcom/ptc/pfc/pfcSession/Session;Lcom/ptc/pfc/pfcSolid/Solid;LineNumberTableLjava/io/PrintStream;Model listener removedRemoveActionListener SourceFile.This model program works only for solid modelsappendcom/ptc/cipjava/jxthrowable com/ptc/pfc/pfcBase/ActionSourcecom/ptc/pfc/pfcGlobal/pfcGlobalcom/ptc/pfc/pfcModel/Model"com/ptc/pfc/pfcSession/BaseSessioncom/ptc/pfc/pfcSolid/Solidexitjava/io/PrintStreamjava/lang/ClassCastExceptionjava/lang/Objectjava/lang/StringBufferjava/lang/Systemjava/lang/Throwable modelListeneroutprintMsgprintStackTraceprintlnsessionsolidstartstoptoString!eNjOkPB<I*Q gAI$ *#Q JH l<Iq!$$ %Y%Y%&!(KY*&!*" W!HKHfQB "$#&.(HK*L,_-cf/g1l2p m<Ih,%!KY*&!*"Q";< =;AC'D+9UHPK p. ButtonListener.class-   ()VCodeLineNumberTable OnCommand SourceFilepfcAsyncFullExample.java User menu button pushed. ButtonListener5com/ptc/pfc/pfcCommand/DefaultUICommandActionListenerpfcAsyncFullExampleprintMsg(Ljava/lang/String;)V *  "   PK q.כCblCalc$1.class-   this$0 LCblCalc; Synthetic (LCblCalc;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFile CblCalc.java    CblCalc$1 InnerClassesjava/lang/Objectjava/awt/event/ActionListener()VCblCalcbig_calc    " **+ B $* DE PK q._9CblCalc$2.class-   this$0 LCblCalc; Synthetic (LCblCalc;)VCodeLineNumberTable windowClosing(Ljava/awt/event/WindowEvent;)V SourceFile CblCalc.java    CblCalc$2 InnerClassesjava/awt/event/WindowAdapter()VKickOffstop   " **+ Y   Z[ PK p.#}CblCalc$3.class-   this$0 LCblCalc; Synthetic (LCblCalc;)VCodeLineNumberTable windowClosing(Ljava/awt/event/WindowEvent;)V SourceFile CblCalc.java    CblCalc$3 InnerClassesjava/awt/event/WindowAdapter()VKickOffstop   " **+ b   cd PK q._ CblCalc.class-)    p  p 6 @W?AA p ?  C p  H p K N p R  p p   ] p H p p p @ !TD-@?p =q  pfLjavax/swing/JDialog; mainPanelLjavax/swing/JPanel;txtnowLjavax/swing/JTextField; txtfincsa txtfindia docalc_butLjavax/swing/JButton; AWGChooserLjavax/swing/JComboBox;AWGChooser_strLjava/lang/String;kD()VCodeLineNumberTablebig_calc findia_calc(DI)D fincsa_calc(D)Ddia_calc(I)Dget_txtnow_str()Ljava/lang/String;main([Ljava/lang/String;)V SourceFile CblCalc.java javax/swing/JDialogjavax/swing/JFrameCable Calculator rs javax/swing/JPanel tujava/lang/String012345678910111213141516171819202122232425262728293031323334353637383940java/awt/GridLayout    java/awt/Label Enter Number Of Wires    javax/swing/JTextField  vw  Select Wire Gage [AWG] javax/swing/JComboBox  |}javax/swing/JLabel Calculate Final Totals javax/swing/JButtonDo Final Cable Calculations z{ CblCalc$1 InnerClasses   Final Cable Diameter yw" Final Cable Cross Sectional Area xw     CblCalc$2    !" # $% & ' (CblCalc&(Ljava/awt/Frame;Ljava/lang/String;Z)Vjava/awt/ComponentsetSize(II)Vjava/awt/Container setLayout(Ljava/awt/LayoutManager;)Vjava/lang/Mathpow(DD)D(Ljava/lang/String;)Vadd*(Ljava/awt/Component;)Ljava/awt/Component;(I)Vjavax/swing/text/JTextComponent setEditable(Z)V([Ljava/lang/Object;)V (LCblCalc;)Vjavax/swing/AbstractButtonaddActionListener"(Ljava/awt/event/ActionListener;)VgetContentPane()Ljava/awt/Container;java/awt/WindowtoFrontpackjava/awt/DialogshowaddWindowListener"(Ljava/awt/event/WindowListener;)Vjava/lang/IntegerparseInt(Ljava/lang/String;)IgetSelectedItem()Ljava/lang/Object;java/lang/DoubletoString(D)Ljava/lang/String;setTextsqrtgetText!p rstuvwxwywz{|}~]**YY** Y ) Y SYSYSYSYSYSYSYSYSY SY SY SY SY SYSYSYSYSYSY SY!SY"SY#SY$SY%SY&SY'SY(SY)SY*SY+SY,SY -SY!.SY"/SY#0SY$1SY%2SY&3SY'4SY(5SL Y :  6Y78*9;=> ?Y@ABW*CYDE*EF *EBW ?YGABW*HY+IJ *JBW KYLMBW*NYOPQ *QBW*QRY*ST KYUMBW*CYDV *VBW KYWMBW*CYDX *XBW*  BW*Y* BW*Z*[*\*]Y*^_  &!1#',0->/K1Z2g3o4y678:;<>IJKMNOQ)S8T?UFVMX\] U*`L+a=*Jb N-a6*c9*d9*e9 f: *V g f: *X g2 ab deg#h,i4k;lDnKoTp*''kkh9 s t.i'kok'kokJ) xy.m*>`=oI( }~& *EoL+  % pYqL R]PK r.S2 CgmTest.class-mFReAUVWXYZ[_`abc # $ % & ' ( ) * + , - . / 0 1 2 3 4 ?8 ?< @: DJ EL G= H5 I6 T; \9 ]Q ^K dM fP g8 h< iN l7()Lcom/ptc/pfc/pfcModel/Model;"()Lcom/ptc/pfc/pfcSession/Session;()Ljava/lang/String;()V(I)Vy(Lcom/ptc/pfc/pfcModel/CGMExportType;Lcom/ptc/pfc/pfcModel/CGMScaleType;)Lcom/ptc/pfc/pfcModel/CGMFILEExportInstructions;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V>(Ljava/lang/String;Lcom/ptc/pfc/pfcModel/ExportInstructions;)V CGMFILEExportInstructions_CreateCgmTest CgmTest.javaCodeEXPORT_CGM_CLEAR_TEXTEXPORT_CGM_METRICException caught:ExportGetCurrentModelGetProESession$Lcom/ptc/pfc/pfcModel/CGMExportType;0Lcom/ptc/pfc/pfcModel/CGMFILEExportInstructions;#Lcom/ptc/pfc/pfcModel/CGMScaleType;Lcom/ptc/pfc/pfcModel/Model; Lcom/ptc/pfc/pfcSession/Session;LineNumberTableLjava/io/PrintStream;Ljava/lang/String;Program: Stopped SourceFileappendcom/ptc/cipjava/jxthrowablecom/ptc/pfc/pfcGlobal/pfcGlobal"com/ptc/pfc/pfcModel/CGMExportType!com/ptc/pfc/pfcModel/CGMScaleTypecom/ptc/pfc/pfcModel/Modelcom/ptc/pfc/pfcModel/pfcModel"com/ptc/pfc/pfcSession/BaseSessionexit file_name instructsjava/io/PrintStreamjava/lang/Objectjava/lang/StringBufferjava/lang/Systemjava/lang/Throwablemodel mytest.cgmoutprintStackTraceprintlnsessionstartstoptoString! iNdM^K]Q>8C"O  ?8C*O j8CL!!KY*" *,,O. +,-CGK k8C%  O SBPK t.ϡExercise4.class- 9OP 8Q RS 8TUV OW X Y Z[\ O ]^ 8_`abcde ]fghi ]j kl ]mno pq rs 8tu $v wxy z{ 8|} *~  8  session Lcom/ptc/pfc/pfcSession/Session; selectCmd"Lcom/ptc/pfc/pfcCommand/UICommand;options(Lcom/ptc/pfc/pfcSelect/SelectionOptions; selections"Lcom/ptc/pfc/pfcSelect/Selections; selection!Lcom/ptc/pfc/pfcSelect/Selection;()VCodeLineNumberTable startSelectstophighlightSelectionsprintMsg(Ljava/lang/String;)V SourceFileExercise4.java DEJ-Link selection exercise KL :;com/ptc/cipjava/jxthrowablejava/lang/StringBuffer#Exception caught: Get ProESession: SELECTSelectButtonActionListener <=#Exception caught: UICreateCommand:  UtilitiesUtilities.psh_util_aux USER SelectUSER Highlight selections exercise4.txt Exception caught: UIAddButton:  USER Prompt  'Exception caught: UIReadStringMessage: q  >?java/lang/Integer D +Exception caught: SelectionOptions_Create:  @A'com/ptc/pfc/pfcExceptions/XToolkitError  USER error$Unacceptable XToolkit Error caught: $Exception caught: UIDisplayMessage: Exception caught: Select:  BC  Exception caught: Highlight:   L Exercise4java/lang/Objectcom/ptc/pfc/pfcGlobal/pfcGlobalGetProESession"()Lcom/ptc/pfc/pfcSession/Session;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;com/ptc/pfc/pfcSession/SessionUICreateCommandf(Ljava/lang/String;Lcom/ptc/pfc/pfcCommand/UICommandActionListener;)Lcom/ptc/pfc/pfcCommand/UICommand; UIAddButton(Lcom/ptc/pfc/pfcCommand/UICommand;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)VUIDisplayMessageB(Ljava/lang/String;Ljava/lang/String;Lcom/ptc/cipjava/stringseq;)Vjava/lang/BooleanFALSELjava/lang/Boolean;UIReadStringMessage'(Ljava/lang/Boolean;)Ljava/lang/String;java/lang/StringequalsIgnoreCase(Ljava/lang/String;)Zcom/ptc/pfc/pfcSelect/pfcSelectSelectionOptions_Create<(Ljava/lang/String;)Lcom/ptc/pfc/pfcSelect/SelectionOptions;(I)V&com/ptc/pfc/pfcSelect/SelectionOptions SetMaxNumSels(Ljava/lang/Integer;)V"com/ptc/pfc/pfcSession/BaseSessionSelectn(Lcom/ptc/pfc/pfcSelect/SelectionOptions;Lcom/ptc/pfc/pfcSelect/Selections;)Lcom/ptc/pfc/pfcSelect/Selections; GetErrorCode()I(I)Ljava/lang/StringBuffer; com/ptc/pfc/pfcSelect/Selectionsget$(I)Lcom/ptc/pfc/pfcSelect/Selection;com/ptc/pfc/pfcBase/StdColorCOLOR_HIGHLIGHTLcom/ptc/pfc/pfcBase/StdColor;com/ptc/pfc/pfcSelect/Selection Highlight!(Lcom/ptc/pfc/pfcBase/StdColor;)Vjava/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamprintln!89 :; <= >? @A BCDEF*G HEFKY *  YKY * KY *  &:=TilG& #'%(&+=0T4l9; IEFG= JEF"VK<KNY - ** ! *"##$Y%&NY' - #()<N-+=<,2<,Y- . 7:Y/  :Y0  ))12234NY5 - !$Ofi*#8;G"IJMRS$W;X<ZC[O]V^ibcghlmnoprstwx}~#-;U KLF$6*7G MNPK t.XԫExercise4_2.class- 9OP 8Q RS 8TUV OW X Y Z[\ O ]^ 8_`abcde ]fghi ]j kl ]mno pq rs 8tu $v wxy z{ 8|} *~  8  session Lcom/ptc/pfc/pfcSession/Session; selectCmd"Lcom/ptc/pfc/pfcCommand/UICommand;options(Lcom/ptc/pfc/pfcSelect/SelectionOptions; selections"Lcom/ptc/pfc/pfcSelect/Selections; selection!Lcom/ptc/pfc/pfcSelect/Selection;()VCodeLineNumberTable startSelectstophighlightSelectionsprintMsg(Ljava/lang/String;)V SourceFileExercise4_2.java DEJ-Link selection exercise KL :;com/ptc/cipjava/jxthrowablejava/lang/StringBuffer#Exception caught: Get ProESession: SELECTSelectButtonActionListener2 <=#Exception caught: UICreateCommand:  UtilitiesUtilities.psh_util_aux USER SelectUSER Highlight selections exercise4.txt Exception caught: UIAddButton:  USER Prompt  'Exception caught: UIReadStringMessage: q  >?java/lang/Integer D +Exception caught: SelectionOptions_Create:  @A'com/ptc/pfc/pfcExceptions/XToolkitError  USER error$Unacceptable XToolkit Error caught: $Exception caught: UIDisplayMessage: Exception caught: Select:  BC  Exception caught: Highlight:   L Exercise4_2java/lang/Objectcom/ptc/pfc/pfcGlobal/pfcGlobalGetProESession"()Lcom/ptc/pfc/pfcSession/Session;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;com/ptc/pfc/pfcSession/SessionUICreateCommandf(Ljava/lang/String;Lcom/ptc/pfc/pfcCommand/UICommandActionListener;)Lcom/ptc/pfc/pfcCommand/UICommand; UIAddButton(Lcom/ptc/pfc/pfcCommand/UICommand;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)VUIDisplayMessageB(Ljava/lang/String;Ljava/lang/String;Lcom/ptc/cipjava/stringseq;)Vjava/lang/BooleanFALSELjava/lang/Boolean;UIReadStringMessage'(Ljava/lang/Boolean;)Ljava/lang/String;java/lang/StringequalsIgnoreCase(Ljava/lang/String;)Zcom/ptc/pfc/pfcSelect/pfcSelectSelectionOptions_Create<(Ljava/lang/String;)Lcom/ptc/pfc/pfcSelect/SelectionOptions;(I)V&com/ptc/pfc/pfcSelect/SelectionOptions SetMaxNumSels(Ljava/lang/Integer;)V"com/ptc/pfc/pfcSession/BaseSessionSelectn(Lcom/ptc/pfc/pfcSelect/SelectionOptions;Lcom/ptc/pfc/pfcSelect/Selections;)Lcom/ptc/pfc/pfcSelect/Selections; GetErrorCode()I(I)Ljava/lang/StringBuffer; com/ptc/pfc/pfcSelect/Selectionsget$(I)Lcom/ptc/pfc/pfcSelect/Selection;com/ptc/pfc/pfcBase/StdColorCOLOR_HIGHLIGHTLcom/ptc/pfc/pfcBase/StdColor;com/ptc/pfc/pfcSelect/Selection Highlight!(Lcom/ptc/pfc/pfcBase/StdColor;)Vjava/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamprintln!89 :; <= >? @A BCDEF*G HEFKY *  YKY * KY *  &:=TilG& %&=#T'l+- IEFG/ JEF"VK<KNY - ** ! *"##$Y%&NY' - #()<N-+=<,2<,Y- . 7:Y/  :Y0  ))12234NY5 - !$Ofi*#8;G"347:;$>;?<ACBODVEiHIMNQRSTUWXY\]abfgj#l-m;pUs KLF$6*7G vwMNPK n.mNTTExercise5.class-s $ %& %' () *+ ,-. /0 12 *3 /4 56 /7 82 9: ;<= $> ? @ A BC DEFG()VCodeLineNumberTableexecuteOperation$(Lcom/ptc/pfc/pfcFeature/Feature;I)V SourceFileExercise5.java H IJ KJL MNO PQR STcom/ptc/pfc/pfcSolid/SolidU VWX YZ [\ ]^_ `Z abc decom/ptc/cipjava/jxthrowablef ghjava/lang/StringBufferError in 'executeOperation()': ij ik lmn opq r Exercise5java/lang/Objectjava/lang/BooleanTRUELjava/lang/Boolean;FALSEcom/ptc/pfc/pfcSolid/pfcSolidRegenInstructions_Createp(Ljava/lang/Boolean;Ljava/lang/Boolean;Lcom/ptc/pfc/pfcFeature/Feature;)Lcom/ptc/pfc/pfcSolid/RegenInstructions;(com/ptc/pfc/pfcFeature/FeatureOperationscreate,()Lcom/ptc/pfc/pfcFeature/FeatureOperations;com/ptc/pfc/pfcObject/Child GetDBParent ()Lcom/ptc/pfc/pfcObject/Parent;com/ptc/pfc/pfcFeature/FeatureCreateSuppressOp,()Lcom/ptc/pfc/pfcFeature/SuppressOperation;(com/ptc/pfc/pfcFeature/SuppressOperationSetClip(Z)Vset-(ILcom/ptc/pfc/pfcFeature/FeatureOperation;)VCreateResumeOp*()Lcom/ptc/pfc/pfcFeature/ResumeOperation;&com/ptc/pfc/pfcFeature/ResumeOperationSetWithParentsCreateDeleteOp*()Lcom/ptc/pfc/pfcFeature/DeleteOperation;&com/ptc/pfc/pfcFeature/DeleteOperationExecuteFeatureOpsU(Lcom/ptc/pfc/pfcFeature/FeatureOperations;Lcom/ptc/pfc/pfcSolid/RegenInstructions;)Vjava/lang/SystemoutLjava/io/PrintStream;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;java/io/PrintStreamprintln(Ljava/lang/String;)Vjava/lang/ThrowableprintStackTrace!* !::*:c3K*M, , 3* N- - * : $:YN !8%?&F'M(P,W-^.e/h3p4x5:?@B"#PK m.tRExercise6.class-fJRSTUVWXYZ[\]d $ % & ' ( ) * * + , - . / 0 1 2 3?@ D: EN G; G@ H5 L8 M6 P9 ^6 ^7 _C `< `= `> c4 e?()I!()Lcom/ptc/pfc/pfcBase/Outline2D;()Lcom/ptc/pfc/pfcBase/Point3D; ()Lcom/ptc/pfc/pfcBase/UVParams;,()Lcom/ptc/pfc/pfcGeometry/ContourTraversal;$()Lcom/ptc/pfc/pfcGeometry/Contours;()V)(D)Lcom/ptc/pfc/pfcGeometry/CurveXYZData;(I)D (I)Lcom/ptc/pfc/pfcBase/Point2D;$(I)Lcom/ptc/pfc/pfcGeometry/Contour;(ID)VE(Lcom/ptc/pfc/pfcBase/UVParams;)Lcom/ptc/pfc/pfcGeometry/SurfXYZData;B(Lcom/ptc/pfc/pfcGeometry/GeomCurve;)Lcom/ptc/pfc/pfcBase/Point3D;@(Lcom/ptc/pfc/pfcGeometry/Surface;)Lcom/ptc/pfc/pfcBase/Point3D;(Ljava/lang/Object;)ZCONTOUR_TRAV_EXTERNALCode Eval3DData EvalOutline Exceptions Exercise6Exercise6.javaGetInternalTraversalGetPoint*Lcom/ptc/pfc/pfcGeometry/ContourTraversal;LineNumberTable ListContours SourceFilecom/ptc/cipjava/jxthrowablecom/ptc/pfc/pfcBase/Outline2Dcom/ptc/pfc/pfcBase/Point2Dcom/ptc/pfc/pfcBase/Point3Dcom/ptc/pfc/pfcBase/UVParamscom/ptc/pfc/pfcGeometry/Contour(com/ptc/pfc/pfcGeometry/ContourTraversal com/ptc/pfc/pfcGeometry/Contours$com/ptc/pfc/pfcGeometry/CurveXYZData!com/ptc/pfc/pfcGeometry/GeomCurve#com/ptc/pfc/pfcGeometry/SurfXYZDatacom/ptc/pfc/pfcGeometry/SurfacecreateequalsgetgetEdgeMidpointgetSurfaceCenter getarraysizejava/lang/Objectset!D:F*O aAF3* L+M,O I bBF ::*M6#,:N-,::c"oc"o*L+:OB*-0245%7/922>>G@LBkCEGIIQKPK q.?GatherInputListener.class-   hwLHWorld;()VCodeLineNumberTable gatherInputs OnCommand SourceFile KickOff.java HWorld GatherInputListener5com/ptc/pfc/pfcCommand/DefaultUICommandActionListener   !* :;   >  ( *Y A BPK o.ZHWorld$1.class-   this$0LHWorld; Synthetic (LHWorld;)VCodeLineNumberTable windowClosing(Ljava/awt/event/WindowEvent;)V SourceFile HWorld.java   HWorld$1 InnerClassesjava/awt/event/WindowAdapter()VKickOffstop   " **+ 9   : PK o.+x5 HWorld.class-Y * +,- *. / 0 123 * 456 7 8 9 :; < => 1?@ C =DE *fLjavax/swing/JDialog; mainPanelLjavax/swing/JPanel;helloLjavax/swing/JTextField;()VCodeLineNumberTable launchFramemain([Ljava/lang/String;)V SourceFile HWorld.java !" %"javax/swing/JDialogjavax/swing/JFrameDataJett RULES !!! !F G HIjavax/swing/JPanel javax/swing/JTextField Hello World !J  KLM NO PQR S" TUHWorld$1 InnerClasses !V WXHWorld&(Ljava/awt/Frame;Ljava/lang/String;Z)Vjava/awt/ComponentsetSize(II)V(Ljava/lang/String;)V setColumns(I)Vjava/awt/Containeradd*(Ljava/awt/Component;)Ljava/awt/Component;getContentPane()Ljava/awt/Container;java/awt/WindowtoFront setVisible(Z)V (LHWorld;)VaddWindowListener"(Ljava/awt/event/WindowListener;)V! !"#) **$%"#}*YY*,, * Y * Y** *W** W***Y*$. ')"+--:/C1O3^5e6m9|= &'#% YL$ BD()B PK q.yA$ KickOff.class-g 0 12 345 06 7 8 9 : ;< =>? @A BCDEF 0 GHIJKLMN GOPQR curSession Lcom/ptc/pfc/pfcSession/Session;()VCodeLineNumberTablestartstopprintMsg(Ljava/lang/String;)VaddInputButton#(Lcom/ptc/pfc/pfcSession/Session;)V SourceFile KickOff.java #$S TU !"com/ptc/cipjava/jxthrowablejava/lang/StringBuffersomething wrong: VW VX YZ )*[ \$] ^_$------------------------------------` a* +,StartedStart param test: INPUTGatherInputListenerb cdException in UICreateCommand(): UtilitiesUtilities.psh_util_auxUSER Hello WorldUSER Dead simplemymessages.txt efException in UIAddButton():KickOffjava/lang/Objectcom/ptc/pfc/pfcGlobal/pfcGlobalGetProESession"()Lcom/ptc/pfc/pfcSession/Session;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;java/lang/ThrowableprintStackTracejava/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamprintlncom/ptc/pfc/pfcSession/SessionUICreateCommandf(Ljava/lang/String;Lcom/ptc/pfc/pfcCommand/UICommandActionListener;)Lcom/ptc/pfc/pfcCommand/UICommand; UIAddButton(Lcom/ptc/pfc/pfcCommand/UICommand;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V!  !"#$%*& '$%p8&KY* *   &  $,27 ($%& )*%6 Y* &  +,%`L*YLM Y, *+M Y, 0AD&"!#&/'0*D-^._0-$%&./PK s.pXpKickOff_CC.class-e / 01 234 /5 6 7 8 9 :; <=> ?@ ABCDE / FGHIJKL FMNOP curSession Lcom/ptc/pfc/pfcSession/Session;()VCodeLineNumberTablestartstopprintMsg(Ljava/lang/String;)VaddInputButton#(Lcom/ptc/pfc/pfcSession/Session;)V SourceFileKickOff_CC.java "#Q RS !com/ptc/cipjava/jxthrowablejava/lang/StringBufferError Retrieving ProE: TU TV WX ()Y Z#[ \]$------------------------------------^ _) *+StartedCable Calculator: CblCalcGatherInputListener2` ab ApplicationsApplications.psh_util_pprocCable_CalculatorCalculate_Cable_Dia_CSA cblcalc.txt cdException in UIAddButton(): KickOff_CCjava/lang/Objectcom/ptc/pfc/pfcGlobal/pfcGlobalGetProESession"()Lcom/ptc/pfc/pfcSession/Session;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;java/lang/ThrowableprintStackTracejava/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamprintlncom/ptc/pfc/pfcSession/SessionUICreateCommandf(Ljava/lang/String;Lcom/ptc/pfc/pfcCommand/UICommandActionListener;)Lcom/ptc/pfc/pfcCommand/UICommand; UIAddButton(Lcom/ptc/pfc/pfcCommand/UICommand;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V! !"#$*% &#$p8&KY* *   %  $,27 '#$% ()$6 Y* %  *+$p@*YL*+L Y+ !$%"$$,>-?/,#$% -.PK *q.EzzKickOff_WOR.class-e / 01 234 /5 6 7 8 9 :; <=> ?@ ABCDE / FGHIJKL FMNOP curSession Lcom/ptc/pfc/pfcSession/Session;()VCodeLineNumberTablestartstopprintMsg(Ljava/lang/String;)VaddInputButton#(Lcom/ptc/pfc/pfcSession/Session;)V SourceFileKickOff_WOR.java "#Q RS !com/ptc/cipjava/jxthrowablejava/lang/StringBufferError Retrieving ProE: TU TV WX ()Y Z#[ \]$------------------------------------^ _) *+StartedWork Order Request: WORWOR_InputListener` ab ApplicationsApplications.psh_util_pprocWork_Order_RequestCreate_New_Request wor_appl.txt cdException in UIAddButton(): KickOff_WORjava/lang/Objectcom/ptc/pfc/pfcGlobal/pfcGlobalGetProESession"()Lcom/ptc/pfc/pfcSession/Session;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;java/lang/ThrowableprintStackTracejava/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamprintlncom/ptc/pfc/pfcSession/SessionUICreateCommandf(Ljava/lang/String;Lcom/ptc/pfc/pfcCommand/UICommandActionListener;)Lcom/ptc/pfc/pfcCommand/UICommand; UIAddButton(Lcom/ptc/pfc/pfcCommand/UICommand;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V! !"#$*% &#$p8&KY* *   %  $,27 '#$% ()$6 Y* %  *+$p@*YL*+L Y+ !$%"$$,>-?/,#$% -.PK s.flMakeVRML.class-g1:=MKRSTUVWYZ[\] ! " # $ % & ' ( ) * + , - . / 0 <5 <8 @9 A2 B3 JD O7 Q6 XI ^C _H `5 a8 bF e4 fE()Lcom/ptc/pfc/pfcModel/Model;"()Lcom/ptc/pfc/pfcSession/Session;()Ljava/lang/String;()V,(Ljava/lang/Object;)Ljava/lang/StringBuffer;F(Ljava/lang/String;)Lcom/ptc/pfc/pfcModel/VRMLModelExportInstructions;(Ljava/lang/String;)V>(Ljava/lang/String;Lcom/ptc/pfc/pfcModel/ExportInstructions;)V.\vrmlCaught exception: Code ConstantValueExportGetCurrentModelGetProESessionLcom/ptc/pfc/pfcModel/Model; Lcom/ptc/pfc/pfcModel/ModelType;2Lcom/ptc/pfc/pfcModel/VRMLModelExportInstructions; Lcom/ptc/pfc/pfcSession/Session;LineNumberTableLjava/io/PrintStream;Ljava/lang/String;MDL_PARTMakeVRML MakeVRML.javaProgram: Stopped SourceFile"VRMLModelExportInstructions_Create VRMLdirectoryappendcom/ptc/cipjava/jxthrowablecom/ptc/pfc/pfcGlobal/pfcGlobalcom/ptc/pfc/pfcModel/Modelcom/ptc/pfc/pfcModel/ModelTypecom/ptc/pfc/pfcModel/pfcModel"com/ptc/pfc/pfcSession/BaseSession file_namejava/io/PrintStreamjava/lang/Objectjava/lang/StringBufferjava/lang/Systemjava/lang/ThrowablemodeloutprintStackTraceprintlnsessionstartstoptoString vrml_instrs! PI?bF^CXIfE;5>"G  <5>*G c5>JK  LY+++.G.  +./EI d5>% G ! NLPK lr.65f;;MakeVRMLOnEraseExample.class-e:;<acIOPQRSTVWXYZ ! " # $ % & ' ( ) * + , - . / 92 95 ?6 @7 A0 HC L4 N3 UG [B \F ]2 ^5 _D d1"()Lcom/ptc/pfc/pfcSession/Session;()Ljava/lang/String;()V,(Ljava/lang/Object;)Ljava/lang/StringBuffer;F(Ljava/lang/String;)Lcom/ptc/pfc/pfcModel/VRMLModelExportInstructions;(Ljava/lang/String;)V>(Ljava/lang/String;Lcom/ptc/pfc/pfcModel/ExportInstructions;)VP(Ljava/lang/String;Lcom/ptc/pfc/pfcModel/ModelType;)Lcom/ptc/pfc/pfcModel/Model;C:\ptc\proe2001\bin\vrmlCaught exception :Caught exception: Code ConstantValueExportGetModelGetProESessionLcom/ptc/pfc/pfcModel/Model; Lcom/ptc/pfc/pfcModel/ModelType; Lcom/ptc/pfc/pfcSession/Session;LineNumberTableLjava/io/PrintStream;Ljava/lang/String;MDL_PARTMakeVRMLOnEraseExampleMakeVRMLOnEraseExample.java SourceFile"VRMLModelExportInstructions_Create VRMLdirectoryappendcom/ptc/cipjava/jxthrowablecom/ptc/pfc/pfcGlobal/pfcGlobalcom/ptc/pfc/pfcModel/Modelcom/ptc/pfc/pfcModel/ModelTypecom/ptc/pfc/pfcModel/pfcModel"com/ptc/pfc/pfcSession/BaseSession file_namejava/io/PrintStreamjava/lang/Objectjava/lang/StringBufferjava/lang/Systemjava/lang/ThrowablemodeloutprintStackTraceprintlnsessionstartstarterstoptest.wrltoString!MG>_D[BUG82="E  92=*E `2=}9KL+*MY, ,E*  48 b2=m1K*KY* *E" !#$,%0KJPK er.v)צiiMakeVRMLOnEraseExample2.class-i<=>dfLRSTUVWYZ[\] " # $ % & ' ( ) * + , - . / 0 1 ;5 ;8 A9 B2 C3 KE O7 Q6 XJ ^D _I `5 a8 bG g4 hF()Lcom/ptc/pfc/pfcModel/Model;"()Lcom/ptc/pfc/pfcSession/Session;()Ljava/lang/String;()V,(Ljava/lang/Object;)Ljava/lang/StringBuffer;F(Ljava/lang/String;)Lcom/ptc/pfc/pfcModel/VRMLModelExportInstructions;(Ljava/lang/String;)V>(Ljava/lang/String;Lcom/ptc/pfc/pfcModel/ExportInstructions;)VC:\ptc\proe2001\bin\vrmlCaught exception :Caught exception: Code ConstantValueExportGetCurrentModelGetProESessionLcom/ptc/pfc/pfcModel/Model; Lcom/ptc/pfc/pfcModel/ModelType;2Lcom/ptc/pfc/pfcModel/VRMLModelExportInstructions; Lcom/ptc/pfc/pfcSession/Session;LineNumberTableLjava/io/PrintStream;Ljava/lang/String;MDL_PARTMakeVRMLOnEraseExample2MakeVRMLOnEraseExample2.java SourceFile"VRMLModelExportInstructions_Create VRMLdirectoryappendcom/ptc/cipjava/jxthrowablecom/ptc/pfc/pfcGlobal/pfcGlobalcom/ptc/pfc/pfcModel/Modelcom/ptc/pfc/pfcModel/ModelTypecom/ptc/pfc/pfcModel/pfcModel"com/ptc/pfc/pfcSession/BaseSession file_namejava/io/PrintStreamjava/lang/Objectjava/lang/StringBufferjava/lang/Systemjava/lang/ThrowablemodeloutprintStackTraceprintlnsessionstartstarterstoptest.wrltoString vrml_instrs!PJ@bG^DXJhF:5?"H  ;5?*H c5?{7KLMY, ,H*  26 e5?q5!!KY* *H" "# %&0'4NMPK p.s_n n pfcAsyncFullExample.class-B CDE FGHIJ K ,L M N O P Q RSd TUV WXYZ F[ R\]^ L _`abc _def _g hijk Fl mno connection0Lcom/ptc/pfc/pfcAsyncConnection/AsyncConnection; exit_flagZmain([Ljava/lang/String;)VCodeLineNumberTable Exceptionsp startProE addMenuButton()VaddTerminationListener OnTerminate5(Lcom/ptc/pfc/pfcAsyncConnection/TerminationStatus;)VprintMsg(Ljava/lang/String;)V SourceFilepfcAsyncFullExample.javaIncorrect argument list. >?\Arguments: java com.ptc.jlinkasyncexamples.pfcAsyncFullExample  pfcasyncmtq r?java/lang/UnsatisfiedLinkError)Could not load J-Link library pfcasyncmt.pfcAsyncFullExample 72 7: /0 82 ;: 9: -.s t:u vwjava/lang/InterruptedExceptionx yz.com/ptc/pfc/pfcExceptions/XToolkitGeneralErrorCould not start Pro/ENGINEER. {| }~ AsyncCommandButtonListener J-Link Applications menu_text.txt AsyncApp AsyncAppHelp  Termination listener added.Pro/ENGINEER shutting down.  ?4com/ptc/pfc/pfcAsyncConnection/AsyncActionListener_ucom/ptc/cipjava/jxthrowablejava/lang/System loadLibrary.com/ptc/pfc/pfcAsyncConnection/AsyncConnection EventProcessjava/lang/Threadsleep(J)V1com/ptc/pfc/pfcAsyncConnection/pfcAsyncConnectionAsyncConnection_StartV(Ljava/lang/String;Ljava/lang/String;)Lcom/ptc/pfc/pfcAsyncConnection/AsyncConnection;exit(I)V GetSession"()Lcom/ptc/pfc/pfcSession/Session;com/ptc/pfc/pfcSession/SessionUICreateCommandf(Ljava/lang/String;Lcom/ptc/pfc/pfcCommand/UICommandActionListener;)Lcom/ptc/pfc/pfcCommand/UICommand; UIAddMenuK(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V UIAddButton(Lcom/ptc/pfc/pfcCommand/UICommand;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V com/ptc/pfc/pfcBase/ActionSourceAddActionListener'(Lcom/ptc/pfc/pfcBase/ActionListener;)VoutLjava/io/PrintStream;java/io/PrintStreamprintln!,-./0 123j** LY* W4&  !%& ))*56723G* * *+ * **M* *M(+3BE4:. /013:";+>,33E9FEIFK56823G*+2+2 M 4VZ[^569:3`8*L+YM+ !"#+, $%"&4f gi'j7k56;:30**'(4r st56<=3+ )* 4{} ~ >?3$**+4 @APK *k.ܯpfcInstallTest.class-L   8; )*+,-./01239 | 0| 3| 5} ~ $ $ , ! ( $ ( # ! ( * ) , % ' - . , , 5 5 5  4 & +  :  % *  & +  : : : 6 : 8 1 : : : : : / 9 7 : : : 5 :          ! " # # # $ % & & ' ( 4 5 6 7 < = > ? @ A B C D E F G H I J K Toolkit error code:  Toolkit function name:  type: ()I()Lcom/ptc/cipjava/stringseq;()Lcom/ptc/pfc/pfcModel/Models;*()Lcom/ptc/pfc/pfcModelItem/ModelItemType; ()Lcom/ptc/pfc/pfcWindow/Window;()Ljava/lang/Integer;()Ljava/lang/String;()V()Z(Expected) exception caught: (I)Lcom/ptc/pfc/pfcModel/Model;'(I)Lcom/ptc/pfc/pfcModelItem/ModelItem;(I)Ljava/lang/String;(I)Ljava/lang/StringBuffer;(ILjava/lang/String;)V(J)V'(Lcom/ptc/pfc/pfcBase/ActionListener;)VD(Lcom/ptc/pfc/pfcModel/ModelDescriptor;)Lcom/ptc/pfc/pfcModel/Model;l(Lcom/ptc/pfc/pfcModel/ModelType;Ljava/lang/String;Ljava/lang/String;)Lcom/ptc/pfc/pfcModel/ModelDescriptor;+(Lcom/ptc/pfc/pfcModelItem/ModelItemType;)IO(Lcom/ptc/pfc/pfcModelItem/ModelItemType;)Lcom/ptc/pfc/pfcModelItem/ModelItems;#(Lcom/ptc/pfc/pfcSession/Session;)V+(Lcom/ptc/pfc/pfcSolid/RegenInstructions;)V<(Ljava/awt/Component;Ljava/lang/Object;Ljava/lang/String;I)V,(Ljava/lang/Object;)Ljava/lang/StringBuffer;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V(Ljava/lang/String;)Z'(Ljava/lang/String;Ljava/lang/String;)V(Z)V)=========================================ActionListener failed to fire!ActionListener fired successfullyAddActionListenerCodeCreated model descriptor: DisplayEraseException caught: Feature regen # GetCurrentWindow GetErrorCodeGetIdGetInstanceNameGetName GetNumberGetToolkitFunctionNameGetTypeIID:  ITEM_FEATUREInstallInstall Test Has FailedInstall Test SucessfulJ-LinkJ-Link Install Test ResultJ-Link install test:  Lcom/ptc/pfc/pfcFeature/Feature;Lcom/ptc/pfc/pfcModel/Model; Lcom/ptc/pfc/pfcModel/ModelType;Lcom/ptc/pfc/pfcModel/Models;(Lcom/ptc/pfc/pfcModelItem/ModelItemType;%Lcom/ptc/pfc/pfcModelItem/ModelItems; Lcom/ptc/pfc/pfcSession/Session;LineNumberTable ListItems ListModelsLjava/io/PrintStream;MDL_PARTModel was retrieved)ModelDescriptor_CreateName: Not a valid config optionNot a valid valueRegenAL RegenerateRemoveActionListenerRepaint RetrieveModelSequence member: SetConfigOption SourceFileTestType: Unexpected exception caught: appendcom/ptc/cipjava/jxthrowablecom/ptc/cipjava/stringseq com/ptc/pfc/pfcBase/ActionSource'com/ptc/pfc/pfcExceptions/XToolkitError*com/ptc/pfc/pfcExceptions/XToolkitNotFoundcom/ptc/pfc/pfcFeature/Featurecom/ptc/pfc/pfcModel/Modelcom/ptc/pfc/pfcModel/ModelTypecom/ptc/pfc/pfcModel/Modelscom/ptc/pfc/pfcModel/pfcModel"com/ptc/pfc/pfcModelItem/ModelItem'com/ptc/pfc/pfcModelItem/ModelItemOwner&com/ptc/pfc/pfcModelItem/ModelItemType#com/ptc/pfc/pfcModelItem/ModelItems"com/ptc/pfc/pfcSession/BaseSessioncom/ptc/pfc/pfcSolid/Solidcom/ptc/pfc/pfcWindow/WindowcreateequalsIgnoreCasegetgetInfogetLastRegenedModelNamegetValue getarraysizeinsertjava/awt/Componentjava/awt/Framejava/io/PrintStreamjava/lang/InterruptedExceptionjava/lang/Objectjava/lang/Stringjava/lang/StringBufferjava/lang/Systemjava/lang/Threadjava/lang/Throwablejavax/swing/JOptionPane loadModelnumberOfFeaturesnumberOfModelsoutpfcException: pfcInstallTestpfcInstallTest.javapfcinstalltestprintMsgprintStackTraceprintln proeFeature proeModelproeModelItems proeModels proeSession setVisibleshowMessageDialogsleeptestActionListenerstestCIP testExceptiontoString unloadModel!:3C56?@BA*=*+oM*,d>xr :i,*\*t*u*s *w>0Y<:qpqp2^&( ) ,/0/23"6&=OAXB\D`EcDfFlBoJsKvJyL&$g**oLn**naf<**nYl**lJKm**mbe=**mZ#kh5Y >*kGUvh5Y>*kFVvh5Y >*kDTvh5Y>*kI_Tvhh*ep*f9 L+iZps tvx)y9|D}IX]x}vp4fMM,+NN5Y >+VV,^Tvh**o-Rl*l@hN5Y>-Uvh-iGJ:VXZ Y [+]9^B_GXJaKb^cbddf <3g5Y>*Vvj   Gq*l-L=Y;N*o-?+Ozr-]+EX h h=*o-PN5Y >-Uvh-i RU8N #)9>AFHRUVimoHm*oBQWL+c+ c+c=5Y>+[Vvh+`L5Y>+Uvh+iNQ> ',CNQReikI*oSzL5Y>+Uvh5Y>+HVvh5Y>+CTvh7M5Y>,Uvh,iL5Y>+Uvh+i " m8PS8J $:PSTgkmnKg+*lA Lg5Y>+Uvj+i " #') :PK #n.=iipfcSolidMassPropExample.class-U ! "# $%& !' ( )* + , -./ )0 )123 456789 :;<()VCodeLineNumberTableprintMassProperties(Lcom/ptc/pfc/pfcSolid/Solid;)V SourceFilepfcSolidMassPropExample.java = >?@ ABjava/lang/StringBufferThe solid mass is: CDE FG CH IJK LMThe solid volume is: NG OPThe Center Of Gravity is at X: Q RS Y:  Z: com/ptc/cipjava/jxthrowableException caught: CTpfcSolidMassPropExamplejava/lang/Objectcom/ptc/pfc/pfcSolid/SolidGetMassProperty7(Ljava/lang/String;)Lcom/ptc/pfc/pfcSolid/MassProperty;java/lang/SystemoutLjava/io/PrintStream;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;!com/ptc/pfc/pfcSolid/MassPropertyGetMass()D(D)Ljava/lang/StringBuffer;toString()Ljava/lang/String;java/io/PrintStreamprintln(Ljava/lang/String;)V GetVolumeGetGravityCenter()Lcom/ptc/pfc/pfcBase/Point3D;com/ptc/pfc/pfcBase/Point3Dget(I)D,(Ljava/lang/Object;)Ljava/lang/StringBuffer;!* *LY+ Y +  +M Y, , , NY- " &DKS PK *k.0ޚ RegenAL.class-' !$       # &()Ljava/lang/String;()V@(Lcom/ptc/pfc/pfcSolid/Solid;Lcom/ptc/pfc/pfcFeature/Feature;Z)V(Ljava/lang/String;)VAction listener firing!Code ExceptionsGetInstanceNameLcom/ptc/pfc/pfcModel/Model;LineNumberTableNone OnAfterRegenRegenAL SourceFilecom/ptc/cipjava/jxthrowablecom/ptc/pfc/pfcModel/Model/com/ptc/pfc/pfcSolid/DefaultSolidActionListenergetLastRegenedModelName lastModelpfcInstallTestpfcInstallTest.javaprintMsg #* **  +  *+  "4* * #$ %%PK t.SNy__ SelectButtonActionListener.class-  ()VCodeLineNumberTable OnCommand SourceFileExercise4.java  SelectButtonActionListener5com/ptc/pfc/pfcCommand/DefaultUICommandActionListener Exercise4highlightSelections *     PK t.D bb!SelectButtonActionListener2.class-  ()VCodeLineNumberTable OnCommand SourceFileExercise4_2.java  SelectButtonActionListener25com/ptc/pfc/pfcCommand/DefaultUICommandActionListener Exercise4highlightSelections *{   ~  PK n.b- StartExercise5.class- ,? @A +B +C DE FG +HIJ ?K L M N +O PQR +STUVWX YZ [ \] ^_ `abcd \ef gh Fi jk jlm nop qrstu test_modelLcom/ptc/pfc/pfcModel/Model;modelLjava/lang/String;session Lcom/ptc/pfc/pfcSession/Session;()VCodeLineNumberTablestartstopexecuteOperationsprintMsg(Ljava/lang/String;)V SourceFileStartExercise5.java 34v wx 12 /0y z{| }~ -.com/ptc/cipjava/jxthrowablejava/lang/StringBuffer!Error initializing test program:   :; 41Please load 'Exercise5.prt' and rerun the program 94StoppedSUPPRESDELcom/ptc/pfc/pfcSolid/Solid     Found 'SUPP'! Found 'RES'! Found 'DEL'! Exception caught :  4 4Execption caught:  StartExercise5 : ; EXERCISE5StartExercise5java/lang/Objectcom/ptc/pfc/pfcGlobal/pfcGlobalGetProESession"()Lcom/ptc/pfc/pfcSession/Session;com/ptc/pfc/pfcModel/ModelTypeMDL_PART Lcom/ptc/pfc/pfcModel/ModelType;"com/ptc/pfc/pfcSession/BaseSessionGetModelP(Ljava/lang/String;Lcom/ptc/pfc/pfcModel/ModelType;)Lcom/ptc/pfc/pfcModel/Model;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;java/lang/ThrowableprintStackTracejava/lang/BooleanFALSELjava/lang/Boolean;ListFeaturesByTypeZ(Ljava/lang/Boolean;Lcom/ptc/pfc/pfcFeature/FeatureType;)Lcom/ptc/pfc/pfcFeature/Features;com/ptc/pfc/pfcFeature/Featuresget#(I)Lcom/ptc/pfc/pfcFeature/Feature;"com/ptc/pfc/pfcModelItem/ModelItemGetNamejava/lang/StringequalsIgnoreCase(Ljava/lang/String;)Z getarraysize()I Exercise5executeOperation$(Lcom/ptc/pfc/pfcFeature/Feature;I)VCreateModelWindow<(Lcom/ptc/pfc/pfcModel/Model;)Lcom/ptc/pfc/pfcWindow/Window;com/ptc/pfc/pfcWindow/WindowRepaintActivatejava/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamprintln!+, -. /0 12345*6 745FK Y  * * 6* )+1125366<8A9B<E> 845"6 FG 945 LMN::::K6 c* R* :+* :,* :-* :  * !: Y !    " " "#:  $ %!: Y &   6#PQR T UVW\*^0`>bKcTeYfahjjrkwmop^yz :;56' Y ( * )6 <45*6=>PK 7xp.HZStartExercise6.class- Qm no Pp qrs Pt Pu Pvwx my z { | P} ~   P    P  P    P   P       A A    outputFileLjava/io/File;outputLjava/io/FileOutputStream;resultsLjava/io/PrintWriter;session Lcom/ptc/pfc/pfcSession/Session;solidLcom/ptc/pfc/pfcSolid/Solid;()VCodeLineNumberTablestart setupResults Exceptions checkForError()ZtraverseMidpoints idNotFound(ILcom/ptc/cipjava/intseq;)ZstopprintMsg(Ljava/lang/String;)V SourceFileStartExercise6.java \] XY com/ptc/pfc/pfcSolid/Solid Z[ a] e]com/ptc/cipjava/jxthrowablejava/lang/StringBufferException caught: ij ] java/io/IOExceptionFile I/O exception caught:  java/io/File midpoints.txt \j RS d djava/io/FileOutputStream \ TUjava/io/PrintWriter \ VW Solid model  &edge and surface midpoint information: j ] cdPrintWriter error found d/***********************************************Curve midpoint information      fg!com/ptc/pfc/pfcGeometry/GeomCurve .----------------------------------------------Edge id  midpoint:  X:  ; Y: ; Z: Surface midpoint information com/ptc/pfc/pfcGeometry/Surface  Surface id  inside NOT INSIDE The "center" is  of the surface boundaries  ] StartExercise6java/lang/Objectcom/ptc/pfc/pfcGlobal/pfcGlobalGetProESession"()Lcom/ptc/pfc/pfcSession/Session;"com/ptc/pfc/pfcSession/BaseSessionGetCurrentModel()Lcom/ptc/pfc/pfcModel/Model;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;java/lang/ThrowableprintStackTracejava/lang/Systemexit(I)Vexistsdelete(Ljava/io/File;)V(Ljava/io/OutputStream;Z)Vcom/ptc/pfc/pfcModel/Model GetFullNameprintln checkErrorcom/ptc/cipjava/intseqcreate()Lcom/ptc/cipjava/intseq;&com/ptc/pfc/pfcModelItem/ModelItemType ITEM_EDGE(Lcom/ptc/pfc/pfcModelItem/ModelItemType;'com/ptc/pfc/pfcModelItem/ModelItemOwner ListItemsO(Lcom/ptc/pfc/pfcModelItem/ModelItemType;)Lcom/ptc/pfc/pfcModelItem/ModelItems;#com/ptc/pfc/pfcModelItem/ModelItemsget'(I)Lcom/ptc/pfc/pfcModelItem/ModelItem;"com/ptc/pfc/pfcModelItem/ModelItemGetId()I Exercise6getEdgeMidpointB(Lcom/ptc/pfc/pfcGeometry/GeomCurve;)Lcom/ptc/pfc/pfcBase/Point3D;(I)Ljava/lang/StringBuffer;com/ptc/pfc/pfcBase/Point3D(I)D(D)Ljava/lang/StringBuffer;insert(II)V getarraysize ITEM_SURFACEgetSurfaceCenter@(Lcom/ptc/pfc/pfcGeometry/Surface;)Lcom/ptc/pfc/pfcBase/Point3D;EvalParameters=(Lcom/ptc/pfc/pfcBase/Point3D;)Lcom/ptc/pfc/pfcBase/UVParams;VerifyUV?(Lcom/ptc/pfc/pfcBase/UVParams;)Lcom/ptc/pfc/pfcBase/Placement;com/ptc/pfc/pfcBase/PlacementgetValue(I)IcloseoutLjava/io/PrintStream;java/io/PrintStream!PQRSTUVWXYZ[\]^*_ `]^`EK Y  **#L Y  ++ ?_. ()+,04182?6V7Z8_: a]^sY WYY Y ! " # $ %& Y'(_"A CE)G7I\KbMrNb cd^ )_U e]^  *$ +$ %& Y'(,K-.M6 , /06*1, /23: 4$ Y 5 67 $ Y 8 9:; 9:< 9:$& Y'(*=  ,>[ *$ ?$ %& Y'(,L@.N6 - /06+1- /AB: 4$ Y C 67 $ Y 8 9:; 9:< 9:$- /A- /ADE:FG:H: Y I  J $+=  -> _&ijkl&m*p6s<uIwRy`{h|}s  -6DLk b fg^R"=>+K=+L_ b h]^# M_  ij^$N*O_ klPK +k.㫋y**StartInstallTest.class-N.7:;J8=>@ABCDF      ! " # $ % & 0) 0* 0- 2' <+ <, ?3 E5 G- H) I- M("()Lcom/ptc/pfc/pfcSession/Session;()Ljava/lang/String;()V#(Lcom/ptc/pfc/pfcSession/Session;)V,(Ljava/lang/Object;)Ljava/lang/StringBuffer;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V$------------------------------------CodeGetProESession Lcom/ptc/pfc/pfcSession/Session;LineNumberTableLjava/io/PrintStream; SourceFileStart install test: StartInstallTestStartInstallTest.javaStartedStopappendcom/ptc/cipjava/jxthrowablecom/ptc/pfc/pfcGlobal/pfcGlobal curSessionjava/io/PrintStreamjava/lang/Objectjava/lang/StringBufferjava/lang/Systemjava/lang/ThrowableoutpfcInstallTestprintMsgprintStackTraceprintlnsomething wrong: startstoptoString!  ?3/)1!4 0)1*4 G-13 Y*4 54 K)1|8#K Y**4*   !+"/#7 L)1"4 -,69PK  q.qXFWOR_FormDialog$1.class-E    !"# $ % &'( ) * + ,-.01this$0LWOR_FormDialog; Synthetic(LWOR_FormDialog;)VCodeLineNumberTableitemStateChanged(Ljava/awt/event/ItemEvent;)V SourceFileWOR_FormDialog.java 2 3 456 78java/lang/StringBuffer 9:; <=javax/swing/JComboBox >= 9? @AB CDWOR_FormDialog$1 InnerClassesjava/lang/Objectjava/awt/event/ItemListener()Vjava/awt/event/ItemEventgetStateChange()IWOR_FormDialog desPSFieldLjavax/swing/JTextField;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/util/EventObject getSource()Ljava/lang/Object;getSelectedItem,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;javax/swing/text/JTextComponentsetText(Ljava/lang/String;)V " **+O/+)*Y+ ./ PK  q.k<WOR_FormDialog$10.class-   this$0LWOR_FormDialog; Synthetic(LWOR_FormDialog;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileWOR_FormDialog.java   WOR_FormDialog$10 InnerClassesjava/lang/Objectjava/awt/event/ActionListener()VWOR_FormDialog ExitSelected    " **+ R $* ST PK  q.uWOR_FormDialog$11.class-   this$0LWOR_FormDialog; Synthetic(LWOR_FormDialog;)VCodeLineNumberTable windowClosing(Ljava/awt/event/WindowEvent;)V SourceFileWOR_FormDialog.java   WOR_FormDialog$11 InnerClassesjava/awt/event/WindowAdapter()VKickOffstop   " **+ b   cd PK  q.MPWOR_FormDialog$2.class-E    !"# $ % &'( ) * + ,-.01this$0LWOR_FormDialog; Synthetic(LWOR_FormDialog;)VCodeLineNumberTableitemStateChanged(Ljava/awt/event/ItemEvent;)V SourceFileWOR_FormDialog.java 2 3 456 78java/lang/StringBuffer 9:; <=javax/swing/JComboBox >= 9? @AB CDWOR_FormDialog$2 InnerClassesjava/lang/Objectjava/awt/event/ItemListener()Vjava/awt/event/ItemEventgetStateChange()IWOR_FormDialog engPSFieldLjavax/swing/JTextField;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/util/EventObject getSource()Ljava/lang/Object;getSelectedItem,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;javax/swing/text/JTextComponentsetText(Ljava/lang/String;)V " **+ O/+)*Y+   ./ PK  q.WOR_FormDialog$3.class-E    !"# $ % &'( ) * + ,-.01this$0LWOR_FormDialog; Synthetic(LWOR_FormDialog;)VCodeLineNumberTableitemStateChanged(Ljava/awt/event/ItemEvent;)V SourceFileWOR_FormDialog.java 2 3 456 78java/lang/StringBuffer 9:; <=javax/swing/JComboBox >= 9? @AB CDWOR_FormDialog$3 InnerClassesjava/lang/Objectjava/awt/event/ItemListener()Vjava/awt/event/ItemEventgetStateChange()IWOR_FormDialog projPSFieldLjavax/swing/JTextField;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/util/EventObject getSource()Ljava/lang/Object;getSelectedItem,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;javax/swing/text/JTextComponentsetText(Ljava/lang/String;)V " **+7O/+)*Y+ 89.;/ PK  q.qXoWOR_FormDialog$4.class-E    !"# $ % &'( ) * + ,-.01this$0LWOR_FormDialog; Synthetic(LWOR_FormDialog;)VCodeLineNumberTableitemStateChanged(Ljava/awt/event/ItemEvent;)V SourceFileWOR_FormDialog.java 2 3 456 78java/lang/StringBuffer 9:; <=javax/swing/JComboBox >= 9? @AB CDWOR_FormDialog$4 InnerClassesjava/lang/Objectjava/awt/event/ItemListener()Vjava/awt/event/ItemEventgetStateChange()IWOR_FormDialog custPSFieldLjavax/swing/JTextField;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/util/EventObject getSource()Ljava/lang/Object;getSelectedItem,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;javax/swing/text/JTextComponentsetText(Ljava/lang/String;)V " **+VO/+)*Y+ WX.Z/ PK  q.BWOR_FormDialog$5.class-E    !"# $ % &'( ) * + ,-.01this$0LWOR_FormDialog; Synthetic(LWOR_FormDialog;)VCodeLineNumberTableitemStateChanged(Ljava/awt/event/ItemEvent;)V SourceFileWOR_FormDialog.java 2 3 456 78java/lang/StringBuffer 9:; <=javax/swing/JComboBox >= 9? @AB CDWOR_FormDialog$5 InnerClassesjava/lang/Objectjava/awt/event/ItemListener()Vjava/awt/event/ItemEventgetStateChange()IWOR_FormDialog platPSFieldLjavax/swing/JTextField;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/util/EventObject getSource()Ljava/lang/Object;getSelectedItem,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;javax/swing/text/JTextComponentsetText(Ljava/lang/String;)V " **+uO/+)*Y+ vw.y/ PK  q.xCWWOR_FormDialog$6.class-E    !"# $ % &'( ) * + ,-.01this$0LWOR_FormDialog; Synthetic(LWOR_FormDialog;)VCodeLineNumberTableitemStateChanged(Ljava/awt/event/ItemEvent;)V SourceFileWOR_FormDialog.java 2 3 456 78java/lang/StringBuffer 9:; <=javax/swing/JComboBox >= 9? @AB CDWOR_FormDialog$6 InnerClassesjava/lang/Objectjava/awt/event/ItemListener()Vjava/awt/event/ItemEventgetStateChange()IWOR_FormDialogCadFieldLjavax/swing/JTextField;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/util/EventObject getSource()Ljava/lang/Object;getSelectedItem,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;javax/swing/text/JTextComponentsetText(Ljava/lang/String;)V " **+O/+)*Y+ ./ PK  q.2WOR_FormDialog$7.class-E    !"# $ % &'( ) * + ,-.01this$0LWOR_FormDialog; Synthetic(LWOR_FormDialog;)VCodeLineNumberTableitemStateChanged(Ljava/awt/event/ItemEvent;)V SourceFileWOR_FormDialog.java 2 3 456 78java/lang/StringBuffer 9:; <=javax/swing/JComboBox >= 9? @AB CDWOR_FormDialog$7 InnerClassesjava/lang/Objectjava/awt/event/ItemListener()Vjava/awt/event/ItemEventgetStateChange()IWOR_FormDialogDrwFieldLjavax/swing/JTextField;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/util/EventObject getSource()Ljava/lang/Object;getSelectedItem,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;javax/swing/text/JTextComponentsetText(Ljava/lang/String;)V " **+O/+)*Y+ ./ PK  q.OqWOR_FormDialog$8.class-E    !"# $ % &'( ) * + ,-.01this$0LWOR_FormDialog; Synthetic(LWOR_FormDialog;)VCodeLineNumberTableitemStateChanged(Ljava/awt/event/ItemEvent;)V SourceFileWOR_FormDialog.java 2 3 456 78java/lang/StringBuffer 9:; <=javax/swing/JComboBox >= 9? @AB CDWOR_FormDialog$8 InnerClassesjava/lang/Objectjava/awt/event/ItemListener()Vjava/awt/event/ItemEventgetStateChange()IWOR_FormDialog engApFieldLjavax/swing/JTextField;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/util/EventObject getSource()Ljava/lang/Object;getSelectedItem,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;javax/swing/text/JTextComponentsetText(Ljava/lang/String;)V " **+)O/+)*Y+ *+.-/ PK  q. IWOR_FormDialog$9.class-   this$0LWOR_FormDialog; Synthetic(LWOR_FormDialog;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileWOR_FormDialog.java   WOR_FormDialog$9 InnerClassesjava/lang/Objectjava/awt/event/ActionListener()VWOR_FormDialog SaveSelected    " **+ K $* LM PK  q..rzIzIWOR_FormDialog.class-1 2 9 9 9 9 9 9 9 9 9 9  9 9 9 9 9 9 9 9 9 9 9 3 2 9    9 ? >   E E E E   9 9 9 9 9 9 9 9 9 9 9 9 9 9 9     9  9 9 r t  !" w #$% z&' |( ) 9* + ,- #./01  2 #34 956 7 89 ; < 9=> 9?@ ; 9AB 9CD ;E 9FG ;H 9IJ ;KL M 9N OP QRST 9UV 9WX 9YZ ;[ 9\] ;^ 9_` ;abc )de f ; ghijk ; 2l mn mo pq ; mr 9s 9t 9u 9v 9w 9x 9y 9z 9{ 9| 9} 9~ 9 9 9        ,   9       , 9 9 9 9 9 9 9    E    9openFrameCountIoffset ConstantValuewor_dLjavax/swing/JDialog; desPSFieldLjavax/swing/JTextField; desDateField engPSField engDateField projPSField custPSField platPSFieldIRFieldWORField aDateFieldCadFieldDrwField engApField EJDcontentLjavax/swing/JTextArea; des_prop_valLjava/lang/String; eng_prop_val proj_prop_val cust_prop_val plat_prop_val ROG_desSTG ROG_engSTG ROG_projSTG ROG_custSTG ROG_platSTG des_propsfile eng_propsfileproj_propsfilecust_propsfileplat_propsfile des_propsLjava/util/Properties; eng_props proj_props cust_props plat_props engAp_val[Ljava/lang/String;Cad_valDrw_valif_worirTxtNEJDstg EJDgetstg EJDstgtmpsavestgprjctsdsgnsengnscstmrspltfmsdtstgdtstgshaDateStgfCadStgfDrwStgprojStgdesStgengStgcustStgplatStgdesDtengDtengApStg shworflnm rworflnmver3WOR_DIREJDstg'(Ljava/lang/String;Ljava/lang/String;)VCodeLineNumberTable SaveSelected()V getRevstg&(Ljava/lang/String;)Ljava/lang/String; getDatestgsh()Ljava/lang/String; ExitSelected getirFieldgetProjgetDes getdesDateStggetEng getengDateStggetCustgetPlat getaDateStg getaCadStg getaDrwStg getengApStg put_n2dndput_n2br get_dnd2n StgReplaceJ(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; getDatestgmain([Ljava/lang/String;)V SourceFileWOR_FormDialog.java ROG_des. XSROG_eng. YS ROG_proj. ZS ROG_cust. [S ROG_plat. \SROG_des.properties ]SROG_eng.properties ^SROG_proj.properties _SROG_cust.properties `SROG_plat.properties aSjava/util/Properties bc dc ec fc gcjava/lang/StringNoYes hiProEngCatiaCadraUGAcad jiLayout Experimental Z DrawingReleased ki mS./wor S1. On Drawing ***, Change the following: 2. On Drawing ***, Change the following: 3. On Drawing ***, Change the following: 4. On Drawing ***, Change the following: 5. On Drawing ***, Change the following: Sjavax/swing/JDialogjavax/swing/JFrameWork Order Request  @A  'javax.swing.plaf.metal.MetalLookAndFeel java/lang/Exception ;<java/io/BufferedInputStreamjava/io/FileInputStream   java/io/IOException java/lang/StringBuffer    null-stg"PRODUCT DESIGN WORK ORDER REQUEST  : New Form   wS nS S  yS S S {S zS S S |S ~S }S : Existing Form  WOR_File_NameDate_STG xS IR_PacketDesigner Designer_DateEngineer Engineer_DateProjectCustomerPlatform Date_ReqdCad_SysDrawing_Format Eng_ApprovalEng_Job_Descr_STG oS javax/swing/JPaneljavax/swing/border/EmptyBorder  java/awt/BorderLayout java/awt/GridBagLayoutjavax/swing/JLabelWork Order Request #: javax/swing/JTextField  KC   Date: java/awt/GridBagConstraintsjava/awt/Insets   Designer: BCjavax/swing/JComboBox  WOR_FormDialog$1 InnerClasses   DC Engineer: ECWOR_FormDialog$2 FC Project #: GCWOR_FormDialog$3 Customer: HCWOR_FormDialog$4Vehicle Platform: ICWOR_FormDialog$5Engineering Job Description:javax/swing/JTextArea  PQ javax/swing/JScrollPane NorthSouth IR Packet #: JC Date Req'd: LC Cad System: MCWOR_FormDialog$6Drawing Format: NCWOR_FormDialog$7Eng. Approved: OCWOR_FormDialog$8WestEastjava/awt/FlowLayoutjavax/swing/JButtonSAVEWOR_FormDialog$9   saveEXITWOR_FormDialog$10      WOR_FormDialog$11               .wor.htm/ java/io/PrintStreamjava/io/FileOutputStream WOR_File_Name=  Date_STG= IR_Packet=Project= Designer=Designer_Date= Engineer=Engineer_Date= Customer= Platform= Date_Reqd=Cad_Sys=Drawing_Format= Eng_Approval=Eng_Job_Descr_STG=  Cannot create  file. + PRODUCT DESIGN WORK ORDER REQUEST: �F
W"

Product Design Work Order Request


Work Order Request #: 

Date: 

IR Packet #: 

Project: 

Designer: 

Engineer: 

Customer: 

Platform: 

Date Reqd: 

Cad System: 

Drawing Format: 

Engineering Approval: >


Engineering Job Description:



Cannot create HTML file.  . java/io/File  Sjava/text/SimpleDateFormatMM/dd/yy  ! "java/util/Date# $% & ' rS sS tS uS vS |-n-| 
pS () * +, - (.yyMM000 / 0WOR_FormDialog &(Ljava/awt/Frame;Ljava/lang/String;Z)Vjava/awt/ComponentsetSize(II)Vjava/awt/Dialog setResizable(Z)Vjavax/swing/UIManagersetLookAndFeel(Ljava/lang/String;)V(Ljava/io/InputStream;)Vloadjava/util/Hashtablesize()Iappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString getPropertysetTitlejava/io/InputStreamclose(IIII)Vjavax/swing/JComponent setBorder(Ljavax/swing/border/Border;)Vjava/awt/Container setLayout(Ljava/awt/LayoutManager;)V(I)V(Ljava/lang/String;I)Vjavax/swing/text/JTextComponent setEditableadd*(Ljava/awt/Component;)Ljava/awt/Component;(IIIIDDIILjava/awt/Insets;II)V)(Ljava/awt/Component;Ljava/lang/Object;)V([Ljava/lang/Object;)VsetSelectedItem(Ljava/lang/Object;)V(LWOR_FormDialog;)VaddItemListener (Ljava/awt/event/ItemListener;)V(Ljava/lang/String;II)V setLineWrap(Ljava/awt/Component;II)Vjavax/swing/AbstractButtonaddActionListener"(Ljava/awt/event/ActionListener;)VgetContentPane()Ljava/awt/Container;java/awt/WindowtoFrontpackshowaddWindowListener"(Ljava/awt/event/WindowListener;)V(Ljava/io/OutputStream;)Vprintlnflushjava/lang/SystemoutLjava/io/PrintStream;valueOf&(Ljava/lang/Object;)Ljava/lang/String;setTextexists()Zjava/util/Locale getDefault()Ljava/util/Locale;'(Ljava/lang/String;Ljava/util/Locale;)Vjava/text/DateFormatformat$(Ljava/util/Date;)Ljava/lang/String;exitgetTextindexOf(Ljava/lang/String;)Ilength toCharArray()[C([CII)Ljava/lang/StringBuffer;(Ljava/lang/String;I)IisFilecanRead!92D;<=<>?@ABCDCECFCGCHCICJCKCLCMCNCOCPQRSTSUSVSWSXSYSZS[S\S]S^S_S`SaSbcdcecfcgchijikilSmSnSoSpSqSrSsStSuSvSwSxSySzS{S|S}S~SSSSSSSSSS`a4***** * * *****Y*Y*Y*Y*Y*YSYS *Y!SY"SY#SY$SY%S&*Y'SY(SY)SY*S+*,-*./*01*2Y3Y4567*7X8*79:;N*9=`=*>Y?Y* @ABN*DN6'-*EYF*GHIJS*D*>Y?Y*@AB:*D:6(*EYF*GHIJS*D*>Y?Y*@AB:*D:6(*EYF*GHIJS*D*>Y?Y*@AB: *D: 6 (  *EYF* G HIJS  *D*>Y?Y*@AB: *D: 6 (  *EYF* G HIJS  *D+Kt*EYFLG=HMGIN**OP**1Q** 2R****SZTZUV*******,ZWZXZYZZZ[Z\]*EYFLG=H^GIN+: Y:?Y @:B_*`JP*aJb*cJ-*dJ]*eJV*fJ\*gJU*hJ[*iJZ*jJY*kJT*lJX*mJW*nJR*oJp**qQ:rYs:  tYuv wYxyrYs:zY{:yrYs:zY{:y**SbrYs:|Y}~:+K*Y *Y*P *W*WrYs:|YEYFG*bGI~:WYYYYrYs:zY{:yrYs:|Y~:*Y*] W*WrYs:Y-:*]WY*rYs:|Y~:WrYs:*YEYF,G*VGI*WYYYYYYYYrYs:zY{:  yrYs:!|Y~:"*Y*\ !"W!*WrYs:#Y:$$*\#$W$Y*rYs:%|Y~:&%&WrYs:'*YEYF,G*UGI'*W!YY#YY%YY'YYrYs:(zY{:)()yrYs:*|Y~:+*Y*[*+W**WrYs:,Y:--*[,-W-Y*(*YY(,YYrYs:.zY{:/./yrYs:0|Y~:1*Y*Z01W0*WrYs:2Y :33*Z23W3Y*.0YY.2YYrYs:4zY{:545yrYs:6|Y~:7*Y*Y67W6*WrYs:8Y :99*Y89W9Y*46YY48YYrYs:::tYuv:wYxy|Y~:;*Y*Q (*tYuv*Y*:<:;:<YYYYYY(YY.YY4YY:YYrYs:=zY{:>=>yrYs:?zY{:@?@yrYs:A|Y~:BABWrYs:C*YEYF,G*-GIC*W?AYY?CYYrYs:DzY{:EDEyrYs:F|Y~:GFGWrYs:H*YEYF,G*TGIH*WDFYYDHYYrYs:IzY{:JIJyrYs:K|Y~:LKLWrYs:M*YEYF,G*XGIM*WrYs:NY*&:OO*&2NOWOY*IKYYIMYYINYYrYs:PzY{:QPQyrYs:R|Y~:SRSWrYs:T*YEYF,G*WGI T*WrYs:UY*+:VV*+2UVWVY*PRYYPTYYPUYYrYs:WzY{:XWXyrYs:Y|Y~:ZYZWrYs:[*YEYF,G*RGI[*WrYs:\Y* :]]* 2\]W]Y*WYYYW[YYW\YY=?YY=DYY=IYY=PYY=WYY  =rYs:^^YyY÷:__Y*ƶ,Ȧ ^_WYɷ:``Y*˶^`W ^*7 W*7*7*7*7Y*Ѷұ <14CvCC8QTCC_bC84".:@KV a!l"w$%&(-.678; = @AE4G5I@KFLgKvQSUWXW]_acd)c8iTkVmbohpouwy{|{&.8Jq  +6ALWbdm}!@Hl%-6Yc  19CLW`h u~ 3"W&`'i(p*y+,-.01235?A !E *F 3G :I CJ NK _L gM qO zP Q R T ^ ` d e f h i j )k 1l ;n Do Op Xq `s m}          # , 5 Y }     2 ; D K T ] d m x           + 3 < _ i         %2=ERv)2?JR_  + 5">#K$V%^'k1359;=C?gADEGHIJNPQUV\]^_$a3f4*L*M*N*:*:*:*:*:*: *: *: *: *: *:*S:EYF*PGGI:EYF*PGGI:EYF*/GGGI:EYF*/GGGI:*:EYF*/GGGI:YY:EYFG*PGIEYFGGIEYFG+GIEYFG,GIEYFG-GIEYFGGIEYFGGIEYFGGIEYFGGIEYFGGIEYFG GIEYFG GIEYFG GIEYFGGIEYFG GI$:EYFGGGIYY:EYFG*PGIEYFGGIEYFG+GIEYFG,GIEYFG-GIEYFGGIEYFGGIEYFGGIEYFGGIEYFGGIEYFG GIEYFG GIEYFG GIEYFGGIEYFG GI$:EYFGGGIYY:EYFGGGIEYFG*PGGIEYFGGGIEYFG+GGIEYF G,GGIEYF G-GGIEYFGGGIEYF GGGIEYFGGGIEYF GGGIEYF GGGIEYFG GGIEYFG GGIEYFG GGIEYFGGGIEYFG GGI:**Px{C.1CRCZVjk lmno!p'q-r3s9t?uEvKwQxWzo{|},D\t #<Uns{*C\u $)1Rdk"Aa!Aa`=SEYF+GGHINEYF*/GG-GI:Y:-d*":EPR[BYL Y!M+,"N-!# ,**$-*-  ,**$%*%  ,**$&*&  ,**$V*V  ,**$'*'  ,**$U*U  ,**$(*(  ,**$)*)   ,**$T*T  ,**$X*X  ,**$W*W  ,**$R*R  5*$L+*+,M,#$&5*$L+*-,M,+,.8**p.*.+*,L+346  p*+/>*+06*06*1:EYF:6&d2W,GW`6*+3>d2WI:  B:; <=>?(@+A.C<DCEIFQAVHfImKY4L Y!M+,"N6,: 5:d 6:*EYF-GGHIPEYF*/GG*PGGI:Y:78r*P6 OPQS"U&V2WEYa[]^Sb :KM.N:9Y,:Lhi jk=:Z PK *q.. WOR_InputListener.class-   wfdLWOR_FormDialog;()VCodeLineNumberTable gatherInputs OnCommand SourceFileKickOff_WOR.java null-stg./worsaveWOR_FormDialog  WOR_InputListener5com/ptc/pfc/pfcCommand/DefaultUICommandActionListener'(Ljava/lang/String;Ljava/lang/String;)V    *6 8 ;LMN*Y+-;< =>PK r.com/PK Cr. com/pfcu/PK Cr.Glwss#com/pfcu/pfcParameterExamples.class-l )*+ ),- . / 01 234 )5 67 8 9:; < =>? @ AB CD CE FG =HIJ()VCodeLineNumberTablecreateParametersFromProperties,(Lcom/ptc/pfc/pfcModelItem/ParameterOwner;)V ExceptionsK SourceFilepfcParameterExamples.java  params.propertiesjava/util/Propertiesjava/io/BufferedInputStreamjava/io/FileInputStream L M NMjava/io/IOExceptionO PQjava/lang/StringBufferFile: RScannot be opened. TUV WLCannot load parameters. XYZ [\java/lang/String ]^_ `ab cd efg hi jkpfcParameterExamplesjava/lang/Objectcom/ptc/cipjava/jxthrowable(Ljava/lang/String;)V(Ljava/io/InputStream;)Vloadjava/lang/SystemoutLjava/io/PrintStream;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;java/io/PrintStreamprintln propertyNames()Ljava/util/Enumeration;java/util/Enumeration nextElement()Ljava/lang/Object; getProperty&(Ljava/lang/String;)Ljava/lang/String;com/ptc/pfcu/pfcuParamValuecreateParamValueFromString9(Ljava/lang/String;)Lcom/ptc/pfc/pfcModelItem/ParamValue;'com/ptc/pfc/pfcModelItem/ParameterOwnerGetParam8(Ljava/lang/String;)Lcom/ptc/pfc/pfcModelItem/Parameter; CreateParam](Ljava/lang/String;Lcom/ptc/pfc/pfcModelItem/ParamValue;)Lcom/ptc/pfc/pfcModelItem/Parameter;&com/ptc/pfc/pfcModelItem/BaseParameterSetValue((Lcom/ptc/pfc/pfcModelItem/ParamValue;)VhasMoreElements()Z! !*" #$! MY:YY, ,: Y , ::@L+N*:*-W -: # "F #CK!L$S(b+j,o-y/~15)(8%&'(PK |r.N|,,"com/pfcu/pfcParameterExamples.java import com.ptc.pfc.pfcModelItem.*; import com.ptc.cipjava.jxthrowable; import com.ptc.pfcu.pfcuParamValue; // utility method - create param // value from String import java.util.*; //contains Properties and Enumeration classes import java.io.*; // needed for read from file public class pfcParameterExamples { /** createParametersFromProperties () demonstrates how Java can read in * system-dependent stored information using a "properties" file. Note that the * ParameterOwner argument could refer to a model, a feature, a surface, or an * edge. */ public static void createParametersFromProperties (ParameterOwner p_owner) throws com.ptc.cipjava.jxthrowable { String prop_value; String propsfile = "params.properties"; ParamValue pv; Parameter p; Properties props = new Properties (); //empty properties object try { props.load (new BufferedInputStream( new FileInputStream (propsfile))); } catch (IOException e) { System.out.println ("File: "+propsfile+ "cannot be opened."); System.out.println ("Cannot load parameters."); return; } Enumeration e = props.propertyNames (); /* Enumeration allows you to loop through all properties without determining how many there are*/ for (String prop_name = (String)e.nextElement(); e.hasMoreElements(); prop_name = (String)e.nextElement()) { prop_value = props.getProperty(prop_name); pv = pfcuParamValue.createParamValueFromString(prop_value); p = p_owner.GetParam(prop_name); if (p == null) // GetParam returns null if it can't find the param. { p_owner.CreateParam (prop_name, pv); } else { p.SetValue (pv); } } } } PK Cr.߾pcom/pfcu/pfcuParamValue.class-F    !" #$ #% &' ()* +,- ./0()VCodeLineNumberTablecreateParamValueFromString9(Ljava/lang/String;)Lcom/ptc/pfc/pfcModelItem/ParamValue; Exceptions1 SourceFilepfcuParamValue.java 2 34 567 89java/lang/NumberFormatException: 3; <= >?Y@ ABtrue CDNfalse Ecom/ptc/pfcu/pfcuParamValuejava/lang/Objectcom/ptc/cipjava/jxthrowablejava/lang/IntegervalueOf'(Ljava/lang/String;)Ljava/lang/Integer;intValue()I%com/ptc/pfc/pfcModelItem/pfcModelItemCreateIntParamValue((I)Lcom/ptc/pfc/pfcModelItem/ParamValue;java/lang/Double&(Ljava/lang/String;)Ljava/lang/Double; doubleValue()DCreateDoubleParamValue((D)Lcom/ptc/pfc/pfcModelItem/ParamValue;java/lang/StringequalsIgnoreCase(Ljava/lang/String;)ZCreateBoolParamValue((Z)Lcom/ptc/pfc/pfcModelItem/ParamValue;CreateStringParamValue!* O*<L*I(M* *  * *  * *  #.%3'E)J-PK r.ӫcom/pfcu/pfcuParamValue.javapackage com.ptc.pfcu; import com.ptc.pfc.pfcModelItem.ParamValue; import com.ptc.pfc.pfcModelItem.pfcModelItem; public class pfcuParamValue { /** * Parses a string into a ParamValue object. Useful for reading * ParamValues from file or from UI TextComponent entry. This method * checks if the value is a proper integer, double, or boolean, and if * so, returns a value of that type. If the value is not a number or boolean, * the method returns a String ParamValue; */ public static ParamValue createParamValueFromString(String s) throws com.ptc.cipjava.jxthrowable { try { int i = Integer.valueOf (s).intValue(); return pfcModelItem.CreateIntParamValue(i); } catch (NumberFormatException e) { //string is not an int, try double try { double d = Double.valueOf (s).doubleValue(); return pfcModelItem.CreateDoubleParamValue(d); } catch (NumberFormatException e2) { //string is not int/double, check if Boolean if (s.equalsIgnoreCase("Y") || s.equalsIgnoreCase ("true")) { return pfcModelItem.CreateBoolParamValue (true); } else if (s.equalsIgnoreCase("N") || s.equalsIgnoreCase ("false")) { return pfcModelItem.CreateBoolParamValue (false); } else { return pfcModelItem.CreateStringParamValue(s); } } } } } PK | n.com/ptc/PK r.com/ptc/jlinkdemo/PK m.com/ptc/jlinkdemo/common/PK &""2com/ptc/jlinkdemo/common/BaseParameterHelper.class-  '7;?@ABYZ[efsvy|}CDEFGHIJKLMNOPQRSTU > @ C D 2 4 : ; < @ 7 @ @ @ @ 7 1 / / / / / 2 4 / / / : / 1 > ? ? 8 C > / / 1 1 B / / / D / / ; / D / A / 6 / 6 / / C / D / / 0 0 C / > @ ? / / / / /              ! " # $ % ( ) * + , . 0 1 2 3 4 6 9 : < V W \ ] ^ _ a b c d h i k o p q r t u w x z { ~  null =  value: ""()D()I0()Lcom/ptc/jlinkdemo/custom/CustomParameterType;()Ljava/lang/Class;()Ljava/lang/Object;()Ljava/lang/String;()V()Z(C)Ljava/lang/StringBuffer;(I)Ljava/lang/String;(I)Ljava/lang/StringBuffer;1(Lcom/ptc/jlinkdemo/custom/CustomParameterType;)V(Ljava/io/InputStream;)V+(Ljava/io/OutputStream;Ljava/lang/String;)V&(Ljava/lang/Object;)Ljava/lang/Object;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;(Ljava/lang/Object;)Z'(Ljava/lang/Object;I)Ljava/lang/String;8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;%(Ljava/lang/String;)Ljava/lang/Class;&(Ljava/lang/String;)Ljava/lang/String;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V(Ljava/lang/String;)Z'(Ljava/lang/String;I)Ljava/lang/Object;'(Ljava/lang/String;Ljava/lang/String;)VD(Ljava/lang/String;[Lcom/ptc/jlinkdemo/common/BaseParameterHelper;)V*(Ljava/lang/Throwable;Ljava/lang/String;)V(Ljava/util/Properties;)Z(Z)VF([Lcom/ptc/jlinkdemo/common/BaseParameterHelper;)Ljava/util/Hashtable;D([Lcom/ptc/jlinkdemo/common/BaseParameterHelper;Ljava/lang/String;)Za([Lcom/ptc/jlinkdemo/common/BaseParameterHelper;[Lcom/ptc/jlinkdemo/common/BaseParameterHelper;)Z:: BOOLEANBaseParameterHelper.javaBaseParameterHelper: CUSTOMCodeConfiguration properties ConstantValueDOUBLE ExceptionsFile not found: IINTEGER.Lcom/ptc/jlinkdemo/custom/CustomParameterType;LineNumberTableLjava/io/PrintStream;Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;LocalVariablesNOTESTRING SourceFile Synthetic(The following parameters were not read: +The following parameters were not written:  UNDEFINEDZ[]append booleanValue checkValueclass$class$java$lang$Booleanclass$java$lang$Doubleclass$java$lang$Integerclass$java$lang$Stringclose,com/ptc/jlinkdemo/common/BaseParameterHelper!com/ptc/jlinkdemo/common/UIHelper,com/ptc/jlinkdemo/custom/CustomParameterTypecommitNewValuecustom customName customType doubleValueequalsequalsIgnoreCaseequalsParameterSetsfalseforNamegetgetClass getCustomName getCustomTypegetCustomTypeMessagegetCustomTypeNamegetInvalidMessage getMessagegetName getProeName getProeType getPropertygetType getTypeNamegetTypeName: unknown type: getTypeNameForTypegetValueintValueintegerinvalidMessageisRelationDriven isUnassignedjava.lang.Booleanjava.lang.Doublejava.lang.Integerjava.lang.Stringjava/io/FileInputStreamjava/io/FileNotFoundExceptionjava/io/FileOutputStreamjava/io/IOExceptionjava/io/PrintStreamjava/lang/Booleanjava/lang/Class java/lang/ClassNotFoundExceptionjava/lang/Doublejava/lang/Integerjava/lang/NoClassDefFoundErrorjava/lang/NumberFormatExceptionjava/lang/Objectjava/lang/Stringjava/lang/StringBufferjava/lang/Systemjava/lang/Throwablejava/util/Hashtablejava/util/Propertiesload loadFromPropsloadParamsFromFilennonoteoutparamSetToHashtableprintprintMsgprintParameterSetprintlnproeNameproeTypeputreading parameters from real refreshValuerelationDrivensavesaveParamsToFile saveToProps setCustomName setCustomTypesetInvalidMessagesetValueshowErrorMessage showExceptionsizestringtoStringtrimtruetypetypeName undefinedvaluevalueFromString)valueFromString: invalid boolean string: )valueFromString: unknown parameter type:  valueToString'valueToString: unknown parameter type: writing parameters to yyesyes/no∙!/>  b!cwxzh"<    "<*E*~**"Q RU"2*}++*^3l"*+^ ;91)*^*^*}C,*_Km, *+_*ST Q.1*_ *_k\]^--*_*_l f g/8 @Y.N*nSS*uSon"*+u wu9*3*~5*6*=*>+hM*,Y Y VYY+;tS,X X VYX+:`,,Z Z VYZ+?d2 )35NZ\uol+**+hM,Z Z VYZ>,Y Y VYY*>\,W W VYW>>,X X VYX> +LZ Z VYZM>**_+U6**+]r 68;Tbe~#*+ t$ **~$*+c+ +/+/M*~,p*#*_*_,jb,j,sN- *-**~*?-?e*-cN ')2 9 G IPRWbnvg"WT$+*oqM,,*pN-*-( ) *+,-/kC* *+*}*W4578 8M?Y&SY$SYSY-SY#SY!SYSL ++2@YNQ{NCD C DCDCDCDC D"C&D(C*I4J8MKN {?Y%SY,SY+SM?YSY SYSN*')8%*;Y*LW*:60,2e 7YO-2e 7YO,ϻ@Y'NS{:Y*KW;Y*LW@Y(NQ S*S S{Xdd==="WX(Z,[.\T_VbXeXgdiekgpmqsstuvqxyxz} ~f*J)05:55+**?**7T, @Y)NQ{* 027<AQd &H*++yM*,>%*2:,og/:a*6  #/1;=F `* x*|=y+2N-x |cx@Y N-nSz-i!x@YN-oSSzx@YN-rS S-R|+6   #<Ca ]N&CYGL=+*2o*2W*+ $ XZƻDYHM2Y+IN,-v-[AW@YN+S@Y"N+SN-@Y"N+S@YFN66,*2,w - PW-*2nSW*&@YN-R@Y"N+S3D5r.>ADEY[ c f lw|  jDYHM@YFN66,*2, - PW-*2nSW*ӻ4Y+J:,\:@Y*N+S&@YN-R@Y*N+SI`c5^$%&')$+),0-<.?'I2I4S5[6`2c8e:z;|>AB@E _3x@YN*S| KI2*fLBaseProeParameterHelper.javaBaseProeParameterHelper: Code ConstantValue Exceptions GetBoolValueGetDoubleValue GetIntValue GetNoteIdGetStringValueGetValueGetdiscrI(Lcom/ptc/pfc/pfcModelItem/BaseParameter;%Lcom/ptc/pfc/pfcModelItem/ParamValue;LineNumberTableLjava/io/PrintStream;Ljava/lang/Object;Ljava/lang/String;LocalVariables SetBoolValueSetDoubleValue SetIntValueSetStringValueSetValue SourceFileZappend booleanValuecom/ptc/cipjava/jxthrowable,com/ptc/jlinkdemo/common/BaseParameterHelper0com/ptc/jlinkdemo/common/BaseProeParameterHelper!com/ptc/jlinkdemo/common/UIHelper&com/ptc/pfc/pfcModelItem/BaseParameter#com/ptc/pfc/pfcModelItem/ParamValue'com/ptc/pfc/pfcModelItem/ParamValueTypecommitNewValuedetermineProeNamedetermineProeType doubleValue getProeTypegetTypeNameForTypegetValuegetting parameter infogetting parameter typegetting parameter valueintValuejava/io/PrintStreamjava/lang/Booleanjava/lang/Doublejava/lang/Integerjava/lang/Stringjava/lang/StringBufferjava/lang/Systemoutp paramValueprintMsgprintlnproeType refreshValuerelationDriven setCustomTypesetting parameter value showExceptiontoStringtypetypeNameunknown Pro/E parameter type: unknown parameter type: value!  z7**+4*+ 5*,**8?**?0@*9M,=./2  *./0 6{4**+4*+ 5*,*,<**?0@*9N-=+,2 $&( *-./'1+&,3-53$sz*8e$2CT2*5+%E*5+2$4*5+)"#*5+.#N-=*9kkB>?(B3C6GDHGKULXOfPiRkUlWrXvYx[~*?H(((((8*+*?+=-*+*/+=Y*?'>6*4*5&*+*M,=*9ww:`b,j6k<pFqLubvdyqzw|x~~x++3AVk+*A|**5An*Y*5AY*Y*5AD*Y*5A/*Y*5AY*?'>6*;M,=V,14?BTWil~s}I*?D>,,,,,5**?:**8:*A"089ABGH }[<*1;"',16</<*<%< <Y*1'>6<F(*-/2479<>AJQWYsT**5!-8L+=*8 33Y*(>7 PK &<<0com/ptc/jlinkdemo/common/DBParameterHelper.class-!          ()V((Ljava/lang/String;ILjava/lang/Object;)VCode ConstantValueDBParameterHelper.java ExceptionsILineNumberTableLjava/lang/Object;Ljava/lang/String;LocalVariables SourceFile,com/ptc/jlinkdemo/common/BaseParameterHelper*com/ptc/jlinkdemo/common/DBParameterHelperdetermineProeNameproeNameproeTypetypevalue! E**+*-** PK &Y3_.com/ptc/jlinkdemo/common/DimensionHelper.class-T5HI@ABCDEFJKL      ! " # $ % & ' 1- 1/ 7( 8) ?+ ?. G* M; N9 P/ Q< R0 S)()I()Ljava/lang/String;()V(I)Ljava/lang/StringBuffer;'(Lcom/ptc/pfc/pfcDimension/Dimension;)V+(Lcom/ptc/pfc/pfcModelItem/BaseParameter;)V,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V*(Ljava/lang/Throwable;Ljava/lang/String;)VCode ConstantValueDimensionHelper.javaDimensionHelper:  ExceptionsGetIdGetName(Lcom/ptc/pfc/pfcModelItem/BaseParameter;LineNumberTableLjava/io/PrintStream;Ljava/lang/String;LocalVariables SourceFileappendcom/ptc/cipjava/jxthrowable,com/ptc/jlinkdemo/common/BaseParameterHelper0com/ptc/jlinkdemo/common/BaseProeParameterHelper(com/ptc/jlinkdemo/common/DimensionHelper!com/ptc/jlinkdemo/common/UIHelper"com/ptc/pfc/pfcDimension/Dimension"com/ptc/pfc/pfcModelItem/ModelItemdetermineProeNamedim_getting dimension namejava/io/PrintStreamjava/lang/StringBufferjava/lang/SystemoutpprintMsgprintlnproeName showExceptiontoString!G*2{?** *** Y* L+67:"678>1,2* *+*:!"  O/23 Y*: (&>4PK &j``0com/ptc/jlinkdemo/common/ParamCellEditor$1.class-2&'*+,        % ) - . 1()Ljava/lang/Object;()ZW(Lcom/ptc/jlinkdemo/common/ParamCellEditor;Lcom/ptc/jlinkdemo/common/ParamCellEditor;)V(Ljava/lang/Object;)V(Ljava/util/EventObject;)Z"(Ljavax/swing/DefaultCellEditor;)VCode ConstantValue Exceptions InnerClasses*Lcom/ptc/jlinkdemo/common/ParamCellEditor;LineNumberTableLjavax/swing/JComboBox;LocalVariablesParamCellEditor.java SourceFile Synthetic activeCombo(com/ptc/jlinkdemo/common/ParamCellEditor*com/ptc/jlinkdemo/common/ParamCellEditor$1getCellEditorValuegetSelectedItemjava/awt/AWTEvent,javax/swing/DefaultCellEditor$EditorDelegatejavax/swing/JComboBoxsetSelectedItemsetValuestartCellEditingstopCellEditingthis$001$.1*+ * + q ro(# * w/+|0# *,*+ n$#" PK &ʏ .com/ptc/jlinkdemo/common/ParamCellEditor.class-nqvwxyz 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H H I J K ]P ]S ]W ]Y ][ rh sU tV uh {g |\ }P ~g i N R X M M Q d f W Z g j O()I0()Lcom/ptc/jlinkdemo/custom/CustomParameterType;()Ljava/lang/String;()V()[Ljava/lang/Object;1(I)Lcom/ptc/jlinkdemo/common/BaseParameterHelper;W(Lcom/ptc/jlinkdemo/common/ParamCellEditor;Lcom/ptc/jlinkdemo/common/ParamCellEditor;)V-(Lcom/ptc/jlinkdemo/common/ParamTableModel;)V (Ljava/awt/event/ItemListener;)V,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V?(Ljavax/swing/JTable;Ljava/lang/Object;ZII)Ljava/awt/Component;(Ljavax/swing/JTextField;)V(Z)V([Ljava/lang/Object;)V,([Ljava/lang/String;)Ljavax/swing/JComboBox;COMBOBOXCode ConstantValue ExceptionsI InnerClasses*Lcom/ptc/jlinkdemo/common/ParamTableModel;LineNumberTableLjava/io/PrintStream;.Ljavax/swing/DefaultCellEditor$EditorDelegate;Ljavax/swing/JComboBox;Ljavax/swing/JComponent;Ljavax/swing/JTextField;LocalVariables NOT_EDITABLEParamCellEditor.javaParamCellEditor:  SourceFile TEXTFIELD[Ljava/lang/String; activeComboaddItemListenerappend booleanCombo,com/ptc/jlinkdemo/common/BaseParameterHelper(com/ptc/jlinkdemo/common/ParamCellEditor*com/ptc/jlinkdemo/common/ParamCellEditor$1(com/ptc/jlinkdemo/common/ParamTableModel,com/ptc/jlinkdemo/custom/CustomParameterType comboDelegatecreateComboBox createCombosdelegateeditorComponent getCustomTypegetParameterHelpergetTableCellEditorComponentgetTableCellEditorComponentTypegetType getUIValuesjava/io/PrintStreamjava/lang/Stringjava/lang/StringBufferjava/lang/Systemjavax/swing/DefaultCellEditorjavax/swing/JComboBoxjavax/swing/JTextFieldjavax/swing/text/JTextComponentleftRightCombomodelnooutprintMsgprintln setEditable textDelegate textFieldtoStringyes!  lb`pb`^b`djg{guhhrh]T_T(*Y**"/**!.*+)* e" $%'#(' X_` *)$:'6***Z"**!#&6XX@*#(: ** Z"**!P***/"**.!8***/"*/-**.!***/"**.!*+,%er1 235%6-3087:A;\@mAxBCGHIJOPQR8YZ[]^]|\_<Y+M,,,*,ec dfh}P_J&* Y**YSYSL**+en %l W_3*Y*0+e omc  LPK &V2-SS.com/ptc/jlinkdemo/common/ParameterHelper.class-} : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W n] n^ n` na nh nj nk r[ sf t[ uY vZ g b l e \ _ i X y w h h z h m [ [ d()I'()Lcom/ptc/pfc/pfcModelItem/ParamValue;+()Lcom/ptc/pfc/pfcModelItem/ParamValueType;()Ljava/lang/String;()V+(Lcom/ptc/pfc/pfcModelItem/BaseParameter;)VY(Lcom/ptc/pfc/pfcModelItem/BaseParameter;Lcom/ptc/jlinkdemo/custom/CustomParameterType;)V,(Lcom/ptc/pfc/pfcModelItem/ParamValueType;)I'(Lcom/ptc/pfc/pfcModelItem/Parameter;)VU(Lcom/ptc/pfc/pfcModelItem/Parameter;Lcom/ptc/jlinkdemo/custom/CustomParameterType;)Vy(Lcom/ptc/pfc/pfcModelItem/ParameterOwner;Lcom/ptc/pfc/pfcModelItem/Parameter;)Lcom/ptc/jlinkdemo/common/ParameterHelper;g(Lcom/ptc/pfc/pfcModelItem/ParameterOwner;Ljava/lang/String;)Lcom/ptc/jlinkdemo/common/ParameterHelper;&(Ljava/lang/Object;)Ljava/lang/String;B(Ljava/lang/String;)Lcom/ptc/jlinkdemo/custom/CustomParameterType;8(Ljava/lang/String;)Lcom/ptc/pfc/pfcModelItem/Parameter;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V(Ljava/lang/String;)ZL(Ljava/lang/String;Lcom/ptc/jlinkdemo/custom/CustomParameterTypeException;)V'(Ljava/lang/String;Ljava/lang/String;)VU(Ljava/lang/String;Ljava/lang/String;I)Lcom/ptc/jlinkdemo/custom/CustomParameterType;*(Ljava/lang/Throwable;Ljava/lang/String;)VCode ConstantValue ExceptionsGetNameGetParamGetStringValueGetValueGetdiscr(Lcom/ptc/pfc/pfcModelItem/BaseParameter;LineNumberTableLjava/io/PrintStream;Ljava/lang/String;LocalVariablesParameterHelper.javaParameterHelper:  SourceFile__TYPE_UINAME_VALUESappendcom/ptc/cipjava/jxthrowable,com/ptc/jlinkdemo/common/BaseParameterHelper0com/ptc/jlinkdemo/common/BaseProeParameterHelper(com/ptc/jlinkdemo/common/ParameterHelper!com/ptc/jlinkdemo/common/UIHelper3com/ptc/jlinkdemo/custom/CustomParameterTypeCreator-com/ptc/jlinkdemo/custom/InvalidParameterType>com/ptc/jlinkdemo/custom/MissingCustomParameterValuesException&com/ptc/pfc/pfcModelItem/BaseParameter'com/ptc/pfc/pfcModelItem/NamedModelItem#com/ptc/pfc/pfcModelItem/ParamValue"com/ptc/pfc/pfcModelItem/Parameter'com/ptc/pfc/pfcModelItem/ParameterOwnercreatecreate: exceptioncreate: invalid custom namecreate: param is nullcreateCustomTypedefaultCustomTypeFromStringdetermineProeNamedetermineProeTypeendsWithgetting parameter namejava/io/PrintStreamjava/lang/Stringjava/lang/StringBufferjava/lang/Systemlengthobtaining parameter infooutpprintMsgprintlnproeName setCustomName showExceptiontoStringtrimvalueOf! n`o* *+*,x nao+ *+,*,x!" \oM**1#4L+ 6 x*,*.0( coE**+$)M, 6 x9; = ?@ bot + 2+#M,.,. ,.*Y,9 (7$N*Y,9 (7$:*Y,9 (7$:--&%8:/ 2:&%+:Y+#&%"Y&%9 (+#(7&%+&'-*:8:YY&%9 (+#(7!:Y+:Y+: 5M2, 6"%  x-IK L N PS-V/ZI[d\_`_achlmpoqsuv{|}{"s%'WsZ_ilqs ho30Y *(73x ~|PK &#})com/ptc/jlinkdemo/common/ParamTable.class- G G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u { { x w z z  v ~ v v y | { v z ()I0()Lcom/ptc/jlinkdemo/custom/CustomParameterType;()Ljava/awt/Color;()Ljava/lang/Object;()Ljava/lang/String;()V()Z()[Ljava/lang/String;1(I)Lcom/ptc/jlinkdemo/common/BaseParameterHelper;(I)Ljava/lang/Object;(I)Ljava/lang/String;(I)V(II)I(II)Ljava/lang/String;)(II)Ljavax/swing/table/TableCellRenderer;(II)V-(Lcom/ptc/jlinkdemo/common/ParamTableModel;)V(Ljava/awt/Color;)V(Ljava/awt/Dimension;)V8(Ljava/lang/Class;)Ljavax/swing/table/TableCellRenderer;3(Ljava/lang/Object;)Ljavax/swing/table/TableColumn;(Ljava/lang/Object;)V(Ljava/lang/Object;)Z,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V&(Ljavax/swing/table/TableCellEditor;)V!(Ljavax/swing/table/TableModel;)V2([Lcom/ptc/jlinkdemo/common/BaseParameterHelper;)V([Ljava/lang/Object;)VCode ConstantValue ExceptionsIINVALID*Lcom/ptc/jlinkdemo/common/ParamTableModel;LineNumberTableLjava/awt/Color;Ljava/io/PrintStream;,Ljavax/swing/table/DefaultTableCellRenderer;LocalVariablesMODIFIEDParamTable.java ParamTable:  SourceFile5The table contains the following invalid parameters: VALID addElementappend checkValid checkValue,com/ptc/jlinkdemo/common/BaseParameterHelper(com/ptc/jlinkdemo/common/ParamCellEditor#com/ptc/jlinkdemo/common/ParamTable(com/ptc/jlinkdemo/common/ParamTableModel,com/ptc/jlinkdemo/custom/CustomParameterTypecommitNewValuescopyIntodarkerequalsgetCellRenderer getColumn getColumnName getCustomTypegetCustomTypeMessagegetDefaultRenderergetInvalidMessagegetInvalidMessages getNewValuegetParamValueColIdxgetParameterHelper getRowCountgetTypegetValuegreeninvalidRenderer isAllValidjava/awt/Colorjava/awt/Dimensionjava/io/PrintStreamjava/lang/Objectjava/lang/Stringjava/lang/StringBufferjava/lang/Systemjava/util/Vectorjavax/swing/JComponentjavax/swing/JTable*javax/swing/table/DefaultTableCellRendererjavax/swing/table/TableColumnmodifiedRendererout paramModelprintMsgprintlnredresetNewValues setBackground setCellEditor setForegroundsetInvalidMessagesetModel"setPreferredScrollableViewportSizesizetoString validRendererwhiteyellow! ** Y+8**8@**8*8.'&M,Y*8=* YFA*E<*YD*D3$>*Y4*4:>*Y6*6F$>B'+:J"Q%\&i(t)~+,*+*2Y1* )$*4*D*67 ;%>*A/D|[+*80<*8.=>* IJKMN!K)P}h*5YL+*80=*8.>6* +*,+B+B:+#6 U WYZ [(]._8`C]LcVe_fehY*8/N-2:*8-: -1-(! --)? %2 m nopq'r0t<vDwFzU{W}$ *8/+{$*8" {$*8;  37Y*C9 PK &&1`# # .com/ptc/jlinkdemo/common/ParamTableModel.class-himtu / 0 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G \K \Y f` l` pX qW rc sc wR xK yW }J ~J H I L o b n Y K T J Z U()I()Ljava/lang/Object;()Ljava/lang/String;()V()Z1(I)Lcom/ptc/jlinkdemo/common/BaseParameterHelper;(I)Ljava/lang/Class;(I)Ljava/lang/Object;(I)Ljava/lang/String;(II)Ljava/lang/Object;(II)V(II)Z(Ljava/lang/Object;)Z'(Ljava/lang/Object;I)Ljava/lang/String;(Ljava/lang/Object;II)V%(Ljava/lang/String;)Ljava/lang/Class;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V'(Ljava/lang/String;I)Ljava/lang/Object;2([Lcom/ptc/jlinkdemo/common/BaseParameterHelper;)VCode ConstantValue ExceptionsILineNumberTableLjava/io/PrintStream;Ljava/lang/Class;LocalVariablesPARAM_NAME_COL_IDXPARAM_VALUE_COL_IDXParamTableModel.javaParamTableModel:  Parameter SourceFile Synthetic TOTAL_COLSValue/[Lcom/ptc/jlinkdemo/common/BaseParameterHelper;[Ljava/lang/Object;appendclass$class$java$lang$Objectclass$java$lang$String,com/ptc/jlinkdemo/common/BaseParameterHelper(com/ptc/jlinkdemo/common/ParamTableModelcommitNewValuesfireTableCellUpdatedfireTableDataChangedforNamegetColumnClassgetColumnCount getColumnName getMessagegetName getNewValuegetParamNameColIdxgetParamValueColIdxgetParameterHelper getProeType getRowCountgetValue getValueAtisCellEditableisRelationDrivenjava.lang.Objectjava.lang.Stringjava/io/PrintStreamjava/lang/Class java/lang/ClassNotFoundExceptionjava/lang/NoClassDefFoundErrorjava/lang/Objectjava/lang/Stringjava/lang/StringBufferjava/lang/Systemjava/lang/Throwable$javax/swing/table/AbstractTableModel newValuesoutpHelpersprintMsgprintlnresetNewValuessetValue setValueAttoStringvalueFromString valueToString! e`^f`^l`^nosck\[]D****+(**a H]*(a{H]a"Q]^* *(2"*(2#>*&2.a"()*-.#/$.(3V]^**(2#6+-: *&S*a"9 :;:<@#E)7S]7*(2%aJKL|P]1aQRQzN]D,YYaWH]a\H]aaM]=*(*( *(2afgiO]=*(*( *&2anoqK]]1**(&<*&*(2$S*(*av wy w,{0tvK]T(<*(2M,*&2+W*&*a #'~ Y]3'Y*,)a qW]2* LY+! akjgPK &MC 9com/ptc/jlinkdemo/common/ParamWindow$ButtonListener.class-EFTU[cdeiopqrs{|}~ . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D SI SQ ka mP na tI uK vG wj xa yJ zj ^ a I a R M \ ] ` H O Error Info()Ljava/lang/Object;()Ljava/lang/String;()V()Z()[Ljava/lang/String;)(Lcom/ptc/jlinkdemo/common/ParamWindow;)V<(Ljava/awt/Component;Ljava/lang/Object;Ljava/lang/String;I)V(Ljava/awt/event/ActionEvent;)V&(Ljava/lang/Object;)Ljava/lang/String;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V(Z)VYAE's, or technical marketing. PTC also offers J-Link implementation services through theAbout ButtonListenerCode ConstantValue Exceptions InnerClassesQIt is intended as an example of how J-Link can be used to improve productivity at%Lcom/ptc/jlinkdemo/common/ParamTable;&Lcom/ptc/jlinkdemo/common/ParamWindow;Lcom/ptc/pfc/pfcPart/Material;LineNumberTableLjava/lang/String;Ljavax/swing/JButton;LocalVariablesMaterial is not assignedNo invalid values found.$OSS group (contact mdecker@ptc.com).ParamWindow.java SourceFile SyntheticSThis application was developed by PTC to demonstrate the use of the new J-Link API.Z aboutButtonactionPerformedappend closeButton#com/ptc/jlinkdemo/common/ParamTable$com/ptc/jlinkdemo/common/ParamWindow3com/ptc/jlinkdemo/common/ParamWindow$ButtonListener;com/ptc/jlinkdemo/common/ParamWindow$MaterialButtonListener7com/ptc/jlinkdemo/common/ParamWindow$WindowEventHandlercommitNewValuesgetInvalidMessages getSourceincludeMaterial infoButton isAllValidisShowingChildDlgjava/awt/Componentjava/awt/event/ActionListenerjava/lang/Objectjava/lang/Stringjava/lang/StringBufferjava/util/EventObjectjavax/swing/JOptionPanematerial resetButtonresetNewValues setButton setVisibleshowMessageDialogtablethis$0titletoStringvalueOfVyour company. Questions regarding J-Link can be directed to customer support or local ]hlNW+M,**&**)**)!)**# **'** **'**#1**'**Y**+-,(**)N**-Y**+-,(,**$**)%,** f**)N**)!-'**Y**+-,(**-Y**+-,(,****"T**',**@Y SYSY SYSYSN**-Y**+,(_?'19: D L Maeg!#%&'()*'&-./203-6#73B5L6T3U8`<k=m<p>r<u?w<z@|<}:~ABCDASLW7**+**+*_ # #gfZ  VPK &uAcom/ptc/jlinkdemo/common/ParamWindow$MaterialButtonListener.class-NH:;<=>BCDEFG          ! " )$ )& 8( ?$ @# A7 I/ J0 K$ L. M$()Ljava/awt/Container;()V)(Lcom/ptc/jlinkdemo/common/ParamWindow;)VM(Ljava/awt/Frame;Lcom/ptc/pfc/pfcSession/Session;Lcom/ptc/pfc/pfcPart/Part;)V(Ljava/awt/event/ActionEvent;)V(Ljava/lang/String;)VCode ConstantValue Exceptions InnerClasses&Lcom/ptc/jlinkdemo/common/ParamWindow;Lcom/ptc/pfc/pfcPart/Part; Lcom/ptc/pfc/pfcSession/Session;LineNumberTableLocalVariablesMaterialButtonListenerParamWindow.java SourceFile SyntheticZaccess$0actionPerformed$com/ptc/jlinkdemo/common/ParamWindow3com/ptc/jlinkdemo/common/ParamWindow$ButtonListener;com/ptc/jlinkdemo/common/ParamWindow$MaterialButtonListener7com/ptc/jlinkdemo/common/ParamWindow$WindowEventHandler)com/ptc/jlinkdemo/material/MaterialDialogdispose getParentisShowingChildDlgjava/awt/Componentjava/awt/Dialogjava/awt/Framejava/awt/Windowjava/awt/event/ActionListenerjava/lang/ObjectmaterialButton pressedpartsessionshowthis$0updateMaterial   L.69'*EY* **M*,*,*1* NOP!O%Q-R1S9T=UDL)%*7* *+*+1J # J #J54- 3PK & M[=com/ptc/jlinkdemo/common/ParamWindow$WindowEventHandler.class-6'()*+./0        , -& 1 2 3()I()V)(Lcom/ptc/jlinkdemo/common/ParamWindow;)V(Ljava/awt/event/WindowEvent;)V(Z)VCode ConstantValue Exceptions InnerClasses&Lcom/ptc/jlinkdemo/common/ParamWindow;LineNumberTableLocalVariablesParamWindow.java SourceFile SyntheticWindowEventHandlerZcom/ptc/Platform$com/ptc/jlinkdemo/common/ParamWindow3com/ptc/jlinkdemo/common/ParamWindow$ButtonListener;com/ptc/jlinkdemo/common/ParamWindow$MaterialButtonListener7com/ptc/jlinkdemo/common/ParamWindow$WindowEventHandlergetOSAPIisShowingChildDlgjava/awt/Componentjava/awt/Windowjava/awt/event/WindowAdapter setVisiblethis$0toFront windowClosing windowOpened 2$5/  *  43* *    7* *+ *+   # ##" %PK &ox*com/ptc/jlinkdemo/common/ParamWindow.class-a?E  '()*+,-./0123456789:;<=>?@A { { { ({ *{ .{ -| } ~    , ' ! % )       #  !    $ $ $    +  '         "         + ' 1 &  & &  1     !                    ! " # $ % & B C D F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ `()F ()Lcom/ptc/pfc/pfcPart/Material;()Ljava/awt/Color;()Ljava/awt/Component;()Ljava/awt/Container;()Ljava/lang/String;()Ljavax/swing/Box;()Ljavax/swing/JRootPane;()V(I)Ljava/awt/Component;(I)V(II)V(IIII)V)(Lcom/ptc/jlinkdemo/common/ParamWindow;)Vh(Lcom/ptc/pfc/pfcSession/Session;Lcom/ptc/pfc/pfcPart/Part;[Lcom/ptc/jlinkdemo/common/ParameterHelper;)Va(Lcom/ptc/pfc/pfcSession/Session;[Lcom/ptc/jlinkdemo/common/ParameterHelper;ZLjava/lang/String;)V(Ljava/awt/Color;)V*(Ljava/awt/Component;)Ljava/awt/Component;(Ljava/awt/Component;)V4(Ljava/awt/Component;Ljava/awt/GridBagConstraints;)V>(Ljava/awt/Component;Ljava/lang/Throwable;Ljava/lang/String;)V(Ljava/awt/Dimension;)V&(Ljava/awt/Frame;Ljava/lang/String;Z)V(Ljava/awt/LayoutManager;)V(Ljava/awt/Window;)V"(Ljava/awt/event/ActionListener;)V"(Ljava/awt/event/WindowListener;)V,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V(Ljavax/swing/JButton;)V(Z)V2([Lcom/ptc/jlinkdemo/common/BaseParameterHelper;)V... AboutButtonListenerCloseCode ConstantValueD ExceptionsGetCurrentMaterialGetNameIInfo InnerClasses%Lcom/ptc/jlinkdemo/common/ParamTable;Lcom/ptc/pfc/pfcPart/Material;Lcom/ptc/pfc/pfcPart/Part; Lcom/ptc/pfc/pfcSession/Session;LineNumberTableLjava/awt/Color;Ljava/awt/Container;Ljava/awt/Insets;Ljava/io/PrintStream;Ljava/lang/String;Ljavax/swing/JButton;Ljavax/swing/JPanel;Ljavax/swing/JTextField;LocalVariablesMaterialMaterialButtonListenerParamWindow.java ParamWindow: Release CheckingSet SourceFile SyntheticUndoWindowEventHandlerZ+[Lcom/ptc/jlinkdemo/common/ParameterHelper; aboutButtonaccess$0addaddActionListeneraddWindowListenerappend buttonPane centerWindow closeButtoncom/ptc/cipjava/jxthrowable#com/ptc/jlinkdemo/common/ParamTable$com/ptc/jlinkdemo/common/ParamWindow3com/ptc/jlinkdemo/common/ParamWindow$ButtonListener;com/ptc/jlinkdemo/common/ParamWindow$MaterialButtonListener7com/ptc/jlinkdemo/common/ParamWindow$WindowEventHandler!com/ptc/jlinkdemo/common/UIHelper-com/ptc/jlinkdemo/common/UnassignedParamTablecom/ptc/pfc/pfcPart/Materialcom/ptc/pfc/pfcPart/PartcontentcreateHorizontalBoxcreateHorizontalGluecreateHorizontalStrutdefaultTextColorfill fillContent getAlignmentX getAlignmentYgetContentPane getForeground getRootPane gridwidthincludeMaterial infoButtoninsetsisShowingChildDlgjava/awt/BorderLayoutjava/awt/Colorjava/awt/Componentjava/awt/Containerjava/awt/Dimensionjava/awt/GridBagConstraintsjava/awt/GridBagLayoutjava/awt/Insetsjava/awt/Windowjava/io/PrintStreamjava/lang/StringBufferjava/lang/Systemjavax/swing/AbstractButtonjavax/swing/Boxjavax/swing/JButtonjavax/swing/JComponentjavax/swing/JDialogjavax/swing/JFramejavax/swing/JLabeljavax/swing/JPaneljavax/swing/JRootPanejavax/swing/JScrollPanejavax/swing/JSeparatorjavax/swing/JTextFieldjavax/swing/SwingConstantsjavax/swing/WindowConstantsjavax/swing/text/JTextComponentmaterialmaterialButtonmaterialNameFieldobtaining materialout paramHelperspartprintMsgprintlnred resetButtonsession setButtonsetConstraintssetDefaultButtonsetDefaultCloseOperation setEditable setForeground setLayoutsetMinimumSizesetPreferredSizesetSizesetText showExceptiontable tablePanetitletoStringupdateMaterialweightxweighty!'[ DCNL$ &ZMHBG\#K*(Y5 ?*\*Y*k*+g*,b*-a*Y* v*T*¶q*L6 >.8?A"B'C,D1E7F<HFJJ:I*(Y5?*\*Y*k*+g**bb*,a*v*T*¶q*L2 R.8SU"V*W/X5Y:[D]HO *WM*,UN,Ydd9o,Y9p*Y*=JY4N*N-nY3::O:Y:[XyzS-i*NHW**Y6u*uY2nzS-*ui*N*uHW-Y8:z-i*NHWO:Y:[S-i*NHW*Yz)YBHW QHW*.Y7_**_VR*_l*_HW QHW*%YA^*^Y*<I*^HW*x*Y*aDt*Y*aCt*u,Y*t>HWY*;:*%Y Ah*hI*%Y Af*fI*%YAZ*ZI*%YAM*MI*%YAG*GIPHW*hHWPHW*fHWPHW*ZHWPHW*MHWPHW*GHWPHW,*hj&Icd fg-j9mAnIoRvUxZzj{p|v}|~ %4?JU]gr  -6CLU_hr{a^M**bE]*]*_em*_r*_*Rm*_*]FrL*+ sCD 2 '(3CDEL I3`!Y@*Kwd \Z*cZPK &pAX)com/ptc/jlinkdemo/common/UIHelper$1.class-( !%&'     " $()Ljava/lang/String;()V(Ljava/io/File;)Z(Ljava/lang/String;)Z.parCode ConstantValue Exceptions InnerClassesLineNumberTableLocalVariablesParameter files (*.par) SourceFile Synthetic UIHelper.javaaccept!com/ptc/jlinkdemo/common/UIHelper#com/ptc/jlinkdemo/common/UIHelper$1endsWithgetDescriptiongetName java/io/Filejava/lang/String"javax/swing/filechooser/FileFilter0" +  #* PK &#'com/ptc/jlinkdemo/common/UIHelper.class- ` !` $` a )b c *d e &e f g h i )j &k &l &m *n o p $q +r "s t u )v w +x y z { '| } ~ ( (   )  +    * ) )  & ( %                   *** Stack Trace:  Bad argument:  Pro/TK error code:  Pro/TK function:  Type:  ()I()Ljava/awt/Dimension;()Ljava/awt/Toolkit;()Ljava/io/File;()Ljava/lang/Class;()Ljava/lang/String;()V(I)Ljava/lang/StringBuffer;(II)V(Ljava/awt/Component;)I0(Ljava/awt/Component;)Ljavax/swing/JFileChooser;<(Ljava/awt/Component;Ljava/lang/Object;Ljava/lang/String;I)V=(Ljava/awt/Component;Ljava/lang/String;)Ljavax/swing/JDialog;;(Ljava/awt/Component;Ljava/lang/String;Ljava/lang/String;)V>(Ljava/awt/Component;Ljava/lang/Throwable;Ljava/lang/String;)VF(Ljava/awt/Component;[Lcom/ptc/jlinkdemo/common/BaseParameterHelper;)Z<(Ljava/awt/Component;[Ljava/lang/String;Ljava/lang/String;)V(Ljava/awt/Point;)V(Ljava/awt/Window;)V(Ljava/io/File;)V(Ljava/io/PrintWriter;)V(Ljava/io/Writer;)V&(Ljava/lang/Object;)Ljava/lang/String;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;(Ljava/lang/Object;I)V,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V'(Ljava/lang/String;Ljava/lang/String;)V(Ljava/lang/Throwable;)V*(Ljava/lang/Throwable;Ljava/lang/String;)V'(Ljavax/swing/filechooser/FileFilter;)VD([Lcom/ptc/jlinkdemo/common/BaseParameterHelper;Ljava/lang/String;)Z([Ljava/lang/String;)V(([Ljava/lang/String;Ljava/lang/String;)VCode ConstantValueError ExceptionException in PFC method  Exceptions=Failed to set Java native look&feel. Using default look&feel.IFailed to set platform native look&feel. Trying cross-platform look&feel.GetArgumentName GetErrorCode GetMethodNameGetToolkitFunctionNameI InnerClassesLineNumberTableLjava/io/PrintStream;LocalVariables SourceFile UIHelper.java UIHelper: WarningaddChoosableFileFilterappend centerWindowcom/ptc/cipjava/jxthrowable,com/ptc/jlinkdemo/common/BaseParameterHelper!com/ptc/jlinkdemo/common/UIHelper#com/ptc/jlinkdemo/common/UIHelper$1&com/ptc/pfc/pfcExceptions/XBadArgument$com/ptc/pfc/pfcExceptions/XInAMethodcom/ptc/pfc/pfcExceptions/XPFC'com/ptc/pfc/pfcExceptions/XToolkitError createDialogcreateParamFileChooserexception in showExceptiongetAbsolutePathgetClass$getCrossPlatformLookAndFeelClassNamegetNamegetPath getScreenSizegetSelectedFilegetSizegetSystemLookAndFeelClassName getToolkitheightjava/awt/Componentjava/awt/Dialogjava/awt/Dimensionjava/awt/Pointjava/awt/Toolkitjava/awt/Window java/io/Filejava/io/PrintStreamjava/io/PrintWriterjava/io/StringWriterjava/lang/Classjava/lang/Exceptionjava/lang/Objectjava/lang/Stringjava/lang/StringBufferjava/lang/Systemjava/lang/Throwablejavax/swing/JFileChooserjavax/swing/JOptionPanejavax/swing/UIManagerloadParamsFromFileoutpackprintMsgprintStackTraceprintlnsaveParamsToFile setFileFilter setLocationsetLookAndFeelshowshowErrorMessage showExceptionshowMessageDialogshowOpenDialogshowSaveDialogshowWarningMessagestoStringvalueOfwidth!$ oGTW MATW M# #2 "$"&( * -,*/1* a1*HDL*FMY+_,_dl+I,Idl/N*-S:; <='<+>08 W'N,&Y-^4<,<\N*+-XEFGH"I#H&B #*+V NL #*V SQ  O'N,&Y-^4<,<\N*+-XYZ[\&V  #*+[ a_  #*[ fd :+]N!Y-:+ Y1O :,&Y^4<,<\:+:+&Y 4+7<\:+5&Y^4<+8<<+6:\:M+&&Y^4<+5<\:#&Y^4<+@B<\:N:MN*Y&Y-^4<;\2:*=:LUD*opqst#u=wDyD{G|N~Wa~fm~yy #%/49l #*+W  #*W  U!*>M,*Y>,E:+CJ"  U!*>M,*Z>,E:+CQ"  [/Y,L)YYY3?30M,+9,+R,"#(- 3K&Y 4*<\P *. PK &Y-3com/ptc/jlinkdemo/common/UnassignedParamTable.class-P89;>?@AFGHI         ! " # $ % /- /. <, =* B& C) D( E+ J5 K3 M- N- O'()Ljava/lang/Class;()Ljava/lang/String;1(I)Lcom/ptc/jlinkdemo/common/BaseParameterHelper;(I)Ljava/lang/Object;(II)I(Ljava/lang/Object;)Z,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V2([Lcom/ptc/jlinkdemo/common/BaseParameterHelper;)VCode ConstantValue Exceptions*Lcom/ptc/jlinkdemo/common/ParamTableModel;LineNumberTableLjava/io/PrintStream;LocalVariables SourceFileThe new value is null.8The parameter value is set to the default for that type.UnassignedParamTable.javaUnassignedParamTable: append checkValid,com/ptc/jlinkdemo/common/BaseParameterHelper#com/ptc/jlinkdemo/common/ParamTable(com/ptc/jlinkdemo/common/ParamTableModel-com/ptc/jlinkdemo/common/UnassignedParamTablegetClass getNewValuegetParameterHelper isUnassignedjava/io/PrintStreamjava/lang/Objectjava/lang/StringBufferjava/lang/Systemout paramModelprintMsgprintlnsetInvalidMessagetoString!/.0"*+ 4  =*0z>*N*:- -W- *4*   %.!5"7% L-03 Y *4 +)7:PK r.com/ptc/jlinkdemo/configdb/PK Fl.D4com/ptc/jlinkdemo/configdb/ConfigDBAddListener.class-b i h h h h h h   h    h h   h h  +  1  7    I I I   S    _ a a   proSession Lcom/ptc/pfc/pfcSession/Session;proCurrentModelLcom/ptc/pfc/pfcSolid/Solid;dbIntf(Lcom/ptc/jlinkdemo/configdb/DBInterface; resultEntriesLjava/util/Vector; modelCheckMapLjava/util/Hashtable;()VCodeLineNumberTable OnCommanddoAdd addModelToDB(Lcom/ptc/pfc/pfcModel/Model;)VaddModelItselfToDB1(Lcom/ptc/pfc/pfcModel/Model;Ljava/lang/String;)VaddModelCompsToDBprocessResultDialogprintMsg(Ljava/lang/String;)V SourceFileConfigDBAddListener.java tu jk lm no pq rsConfigDBAddListener.OnCommand    No current model in session com/ptc/pfc/pfcSolid/SolidCurrent model is not a solidjava/lang/Throwablegetting current model  yu java/util/Vectorjava/util/Hashtable z{ u          |} ~{      !"# $% &java/lang/Boolean '( t) *+ ,% -java/lang/Integer . t/ 01 2% 3java/lang/Double 45 t6 78 9% : ; <= >% ? @ A1B CD EFG H IJ*com/ptc/pfc/pfcComponentFeat/ComponentFeat KLjava/lang/StringBufferModel MN must have part No assigned OP Q RS/ T=&com/ptc/jlinkdemo/configdb/ResultEntry tU VW adding model  configuration  to DBiterating through model  components X (No configurations saved to the Data BaseDB Update ResultsY Z[+com/ptc/jlinkdemo/configdb/ResultTableModel t\'com/ptc/jlinkdemo/configdb/ResultDialogUpdated DB Models t] ^u_ `uConfigDBAddListenera U.com/ptc/jlinkdemo/configdb/ConfigDBAddListener5com/ptc/pfc/pfcCommand/DefaultUICommandActionListener'com/ptc/jlinkdemo/configdb/ConfigDBDemo getSession"()Lcom/ptc/pfc/pfcSession/Session;(com/ptc/jlinkdemo/configdb/ConfigDBUtils DBConnect*()Lcom/ptc/jlinkdemo/configdb/DBInterface;"com/ptc/pfc/pfcSession/BaseSessionGetCurrentModel()Lcom/ptc/pfc/pfcModel/Model;!com/ptc/jlinkdemo/common/UIHelpershowErrorMessage showException*(Ljava/lang/Throwable;Ljava/lang/String;)V DBDisconnect+(Lcom/ptc/jlinkdemo/configdb/DBInterface;)V getModelName0(Lcom/ptc/pfc/pfcModel/Model;)Ljava/lang/String;java/lang/Stringlength()Iput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;isModelConfigurable(Lcom/ptc/pfc/pfcModel/Model;)ZgetModelCfgName&com/ptc/jlinkdemo/configdb/DBInterfacecreateOrGetTable&(Ljava/lang/String;)Ljava/lang/Object;addConfiguration8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;getCompareParamsC(Lcom/ptc/pfc/pfcModel/Model;)[Lcom/ptc/pfc/pfcModelItem/Parameter;'com/ptc/pfc/pfcModelItem/NamedModelItemGetName()Ljava/lang/String;&com/ptc/pfc/pfcModelItem/BaseParameterGetValue'()Lcom/ptc/pfc/pfcModelItem/ParamValue;#com/ptc/pfc/pfcModelItem/ParamValueGetdiscr+()Lcom/ptc/pfc/pfcModelItem/ParamValueType;'com/ptc/pfc/pfcModelItem/ParamValueType PARAM_BOOLEAN)Lcom/ptc/pfc/pfcModelItem/ParamValueType; addBoolParam GetBoolValue()Z(Z)VsetBoolParamValueL(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Boolean;)V PARAM_INTEGER addIntParam GetIntValue(I)VsetIntParamValueL(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Integer;)V PARAM_DOUBLEaddDoubleParamGetDoubleValue()D(D)VsetDoubleParamValueK(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Double;)V PARAM_STRINGaddStringParamGetStringValuesetStringParamValueK(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;)V PARAM_NOTEaddNoteIdParam GetNoteIdsetNoteIdParamValue"com/ptc/pfc/pfcFeature/FeatureTypeFEATTYPE_COMPONENT$Lcom/ptc/pfc/pfcFeature/FeatureType;ListFeaturesByTypeZ(Ljava/lang/Boolean;Lcom/ptc/pfc/pfcFeature/FeatureType;)Lcom/ptc/pfc/pfcFeature/Features;com/ptc/pfc/pfcFeature/Features getarraysizeget#(I)Lcom/ptc/pfc/pfcFeature/Feature;getModelFromComp|(Lcom/ptc/pfc/pfcSession/Session;Ljava/lang/String;Lcom/ptc/pfc/pfcComponentFeat/ComponentFeat;)Lcom/ptc/pfc/pfcModel/Model;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString"com/ptc/pfc/pfcModelItem/ModelItemGetId addComponent'(Ljava/lang/Object;I)Ljava/lang/Object;setComponentValue'(Ljava/lang/String;Ljava/lang/String;)V addElement(Ljava/lang/Object;)Vsizejavax/swing/JOptionPaneshowMessageDialog<(Ljava/awt/Component;Ljava/lang/Object;Ljava/lang/String;I)V(Ljava/util/Vector;)VB(Lcom/ptc/jlinkdemo/configdb/ResultTableModel;Ljava/lang/String;)Vprocessjava/awt/Dialogdispose&com/ptc/jlinkdemo/configdb/DebugOutput hijklmnopqrstuvN******w  "$xuv_* * ** L+  +  *+ L+***DGwJ(* ,-.2%3)5.6/86:;;<=GANDRFYG^HyuvK#*Y*Y***wL MNO"Pz{v@+M,*,++ N-- *+-!*+"w:TU V XY["\#^(_,`-b4c:e?f|}vSs+N*-#:*,$:+%:66%2:  &:  ':  (:  )0* *: * +Y ,-. /0* 0: * 1Y 234 50* 6: * 7Y 89:c ;)* <: *  =>5 ?-* @: * 1Y A3B+:  +Y-CD:   E6 6   FG: *- H:|: :f"IYJKLLMLN ?* OP:*IYJLQLLNR   U*SY-,TU+:IYJVL-LWL,LXLNGJw1knps%t*u0w7x@yIzP{X}g%4OuY_s-7Jr~{v ++M+N-+Y-CD:E66)FG:*,H: *֧ N-IYJYL,LZLN hkw: %5;GSX^kuvf6*[\]^"_Y*`LaY+bcM,d,ew "- 1 5 v#f*gw PK z r.0,Ijj3com/ptc/jlinkdemo/configdb/ConfigDBAddListener.java package com.ptc.jlinkdemo.configdb; import java.util.Vector; import java.util.Hashtable; import java.util.StringTokenizer; import javax.swing.JOptionPane; import com.ptc.cipjava.*; import com.ptc.pfc.pfcCommand.*; import com.ptc.pfc.pfcSession.*; import com.ptc.pfc.pfcModel.*; import com.ptc.pfc.pfcModelItem.*; import com.ptc.pfc.pfcSolid.*; import com.ptc.pfc.pfcFeature.*; import com.ptc.pfc.pfcComponentFeat.*; import com.ptc.jlinkdemo.common.*; class ConfigDBAddListener extends DefaultUICommandActionListener { private Session proSession = null; private Solid proCurrentModel = null; private DBInterface dbIntf = null; private Vector resultEntries = null; private Hashtable modelCheckMap = null; public void OnCommand () { printMsg ("ConfigDBAddListener.OnCommand"); proSession = ConfigDBDemo.getSession (); dbIntf = ConfigDBUtils.DBConnect (); if (dbIntf == null) return; try { Model model = proSession.GetCurrentModel (); if (model == null) { UIHelper.showErrorMessage ("No current model in session"); return; } if (!(model instanceof Solid)) { UIHelper.showErrorMessage ("Current model is not a solid"); return; } proCurrentModel = (Solid) model; } catch (Throwable x) { UIHelper.showException (x, "getting current model"); } doAdd (); ConfigDBUtils.DBDisconnect (dbIntf); dbIntf = null; } private void doAdd () { resultEntries = new Vector (); modelCheckMap = new Hashtable (); addModelToDB (proCurrentModel); processResultDialog (); } private void addModelToDB (Model model) { String modelName = ConfigDBUtils.getModelName (model); if (modelName.length () == 0) return; if (modelCheckMap.put (modelName, "") != null) return; if (!ConfigDBUtils.isModelConfigurable (model)) return; String cfgName = ConfigDBUtils.getModelCfgName (model); if (cfgName == null) return; if (cfgName.length () != 0) addModelItselfToDB (model, cfgName); addModelCompsToDB (model); } private void addModelItselfToDB (Model model, String cfgName) { String modelName = ConfigDBUtils.getModelName (model); try { Object hTable = dbIntf.createOrGetTable (modelName); Object hConfig = dbIntf.addConfiguration (hTable, cfgName); Parameter[] params = ConfigDBUtils.getCompareParams (model); int nParams = params.length; for (int iP = 0; iP < nParams; iP++) { Parameter param = params [iP]; String paramName = param.GetName (); ParamValue paramValue = param.GetValue (); ParamValueType paramType = paramValue.Getdiscr (); if (paramType == ParamValueType.PARAM_BOOLEAN) { Object hOption = dbIntf.addBoolParam ( hTable, paramName); dbIntf.setBoolParamValue (hTable, hConfig, hOption, new Boolean ( paramValue.GetBoolValue ())); } else if (paramType == ParamValueType.PARAM_INTEGER) { Object hOption = dbIntf.addIntParam ( hTable, paramName); dbIntf.setIntParamValue (hTable, hConfig, hOption, new Integer ( paramValue.GetIntValue ())); } else if (paramType == ParamValueType.PARAM_DOUBLE) { Object hOption = dbIntf.addDoubleParam ( hTable, paramName); dbIntf.setDoubleParamValue (hTable, hConfig, hOption, new Double ( paramValue.GetDoubleValue ())); } else if (paramType == ParamValueType.PARAM_STRING) { Object hOption = dbIntf.addStringParam ( hTable, paramName); dbIntf.setStringParamValue (hTable, hConfig, hOption, paramValue.GetStringValue ()); } else if (paramType == ParamValueType.PARAM_NOTE) { Object hOption = dbIntf.addNoteIdParam (hTable, paramName); dbIntf.setNoteIdParamValue (hTable, hConfig, hOption, new Integer ( paramValue.GetNoteId ())); } } Solid solid = (Solid) model; Features components = solid.ListFeaturesByType ( new Boolean (true), FeatureType.FEATTYPE_COMPONENT); int nComps = (components == null) ? 0 : components.getarraysize (); for (int iC = 0; iC < nComps; iC++) { ComponentFeat component = (ComponentFeat) components.get (iC); Model compModel = ConfigDBUtils.getModelFromComp ( proSession, modelName, component); if (compModel == null) continue; if (!ConfigDBUtils.isModelConfigurable (compModel)) continue; String compModelName = ConfigDBUtils.getModelName ( compModel); String compCfgName = ConfigDBUtils.getModelCfgName ( compModel); if (compCfgName == null) continue; if (compCfgName.length () == 0) { UIHelper.showErrorMessage ("Model " + compModelName + " must have part No assigned"); continue; } Object hOption = dbIntf.addComponent ( hTable, component.GetId ()); dbIntf.setComponentValue (hTable, hConfig, hOption, compModelName + "/" + compCfgName); } resultEntries.addElement (new ResultEntry (modelName, cfgName)); } catch (Throwable x) { UIHelper.showException (x, "adding model " + modelName + " configuration " + cfgName + " to DB"); } } private void addModelCompsToDB (Model model) { if (!(model instanceof Solid)) return; String modelName = ConfigDBUtils.getModelName (model); try { Solid solid = (Solid) model; Features components = solid.ListFeaturesByType ( new Boolean (true), FeatureType.FEATTYPE_COMPONENT); int nComps = (components == null) ? 0 : components.getarraysize (); for (int iC = 0; iC < nComps; iC++) { ComponentFeat component = (ComponentFeat) components.get (iC); Model compModel = ConfigDBUtils.getModelFromComp ( proSession, modelName, component); if (compModel != null) addModelToDB (compModel); } } catch (Throwable x) { UIHelper.showException (x, "iterating through model " + modelName + " components"); } } private void processResultDialog () { if (resultEntries.size () == 0) { JOptionPane.showMessageDialog ( null, "No configurations saved to the Data Base", "DB Update Results", JOptionPane.INFORMATION_MESSAGE); } else { ResultTableModel resultTable = new ResultTableModel ( resultEntries); ResultDialog dlg = new ResultDialog ( resultTable, "Updated DB Models"); dlg.process (); dlg.dispose (); } } private static void printMsg (String msg) { DebugOutput.printMsg ("ConfigDBAddListener", msg); } } PK Fl.{J-com/ptc/jlinkdemo/configdb/ConfigDBDemo.class-^ 0 12 3 4567 89 : 8;<=> 0 ?@ABCDE ?FGH 0IJKL MNOPsession Lcom/ptc/pfc/pfcSession/Session;()VCodeLineNumberTable getSession"()Lcom/ptc/pfc/pfcSession/Session;startstopaddMenuButtonsprintMsg(Ljava/lang/String;)V SourceFileConfigDBDemo.java "# !ConfigDBDemo.start +,Q R'java/lang/Throwablegetting Pro/E sessionS TU *# V#ConfigDBDemo.stopConfigDBSearch1com/ptc/jlinkdemo/configdb/ConfigDBSearchListenerW XY UtilitiesUtilities.psh_util_auxConfiguration DB Search"Modify Configuration and Search DBconfigdbdemo.txt Z[ ConfigDBAdd.com/ptc/jlinkdemo/configdb/ConfigDBAddListenerAdd Configuartion%Add Current Model Configuration to DB!adding configuration DB demo menu ConfigDBDemo\ +]'com/ptc/jlinkdemo/configdb/ConfigDBDemojava/lang/Objectcom/ptc/pfc/pfcGlobal/pfcGlobalGetProESession!com/ptc/jlinkdemo/common/UIHelper showException*(Ljava/lang/Throwable;Ljava/lang/String;)VsetLookAndFeelcom/ptc/pfc/pfcSession/SessionUICreateCommandf(Ljava/lang/String;Lcom/ptc/pfc/pfcCommand/UICommandActionListener;)Lcom/ptc/pfc/pfcCommand/UICommand; UIAddButton(Lcom/ptc/pfc/pfcCommand/UICommand;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V&com/ptc/jlinkdemo/configdb/DebugOutput'(Ljava/lang/String;Ljava/lang/String;)V! !"#$*% &'$% (#$P K*  %#(+,- )#$" % 12 *#$U YK*YL+ K*JM%8<%C7GMPTS +,$#*% WX-#$%./PK } r.Yp,com/ptc/jlinkdemo/configdb/ConfigDBDemo.java package com.ptc.jlinkdemo.configdb; import com.ptc.cipjava.*; import com.ptc.pfc.pfcGlobal.*; import com.ptc.pfc.pfcSession.*; import com.ptc.pfc.pfcCommand.*; import javax.swing.*; import com.ptc.jlinkdemo.common.UIHelper; public class ConfigDBDemo { private static Session session = null; public static Session getSession () { return (session); } public static void start () { printMsg ("ConfigDBDemo.start"); try { session = pfcGlobal.GetProESession (); } catch (Throwable x) { UIHelper.showException (x, "getting Pro/E session"); } addMenuButtons (); UIHelper.setLookAndFeel (); } public static void stop () { printMsg ("ConfigDBDemo.stop"); } private static void addMenuButtons () { try { UICommand cmdConfigDBSearch = session.UICreateCommand ( "ConfigDBSearch", new ConfigDBSearchListener ()); session.UIAddButton (cmdConfigDBSearch, "Utilities", "Utilities.psh_util_aux", "Configuration DB Search", "Modify Configuration and Search DB", "configdbdemo.txt"); UICommand cmdConfigDBAdd = session.UICreateCommand ( "ConfigDBAdd", new ConfigDBAddListener ()); session.UIAddButton (cmdConfigDBAdd, "Utilities", "Utilities.psh_util_aux", "Add Configuartion", "Add Current Model Configuration to DB", "configdbdemo.txt"); } catch (Throwable x) { UIHelper.showException ( x, "adding configuration DB demo menu"); } } private static void printMsg (String msg) { DebugOutput.printMsg ("ConfigDBDemo", msg); } } PK Fl. UG'G'7com/ptc/jlinkdemo/configdb/ConfigDBSearchListener.class-         ! ? !  4 4 4  >    J ! M P     W ! !  ! ?  4 ? ?  ?  J !  o !" q# q$ % & ' J( ?) J* J+ ,-./ 0123 proSession Lcom/ptc/pfc/pfcSession/Session;proCurrentModelLcom/ptc/pfc/pfcSolid/Solid;dbIntf(Lcom/ptc/jlinkdemo/configdb/DBInterface; changedParamsZ resultEntriesLjava/util/Vector; modelCheckMapLjava/util/Hashtable;()VCodeLineNumberTable OnCommanddoSearchmodifyModelParamsmodelRegenerate compareWithDBcompareModelWithDB(Lcom/ptc/pfc/pfcModel/Model;)VcompareModelItselfWithDBG(Lcom/ptc/pfc/pfcModel/Model;Z)Lcom/ptc/jlinkdemo/configdb/ResultEntry;compareModelWithConfiguration(Ljava/lang/Object;Ljava/lang/Object;Lcom/ptc/pfc/pfcModel/Model;[Lcom/ptc/jlinkdemo/common/ParameterHelper;Z)Lcom/ptc/jlinkdemo/configdb/ResultEntry; ExceptionscompareModelCompsWithDBprocessResultDialogsubstituteModelCfgNames1(Lcom/ptc/pfc/pfcModel/Model;Ljava/util/Vector;)VsubstituteModelItselfCfgNames1(Lcom/ptc/pfc/pfcModel/Model;Ljava/util/Vector;)ZsubstituteModelCompsCfgNamesprintMsg(Ljava/lang/String;)V SourceFileConfigDBSearchListener.java  ConfigDBSearchListener.OnCommand 4 567 89: ;<No current model in session= >com/ptc/pfc/pfcSolid/SolidCurrent model is not a solidjava/lang/Throwablegetting current model ?@ AB&com/ptc/jlinkdemo/configdb/ParamDialog C DEF G HIregenerating modeljava/util/Vectorjava/util/Hashtable JK LM NO PQ R ST UV WB XY Z[ \]java/lang/StringBuffercomparing model ^_ parameters with DB `a bY c[ dO ef*com/ptc/jlinkdemo/common/DBParameterHelperjava/lang/String gh i jk lm no pk qM rst uv wx&com/ptc/jlinkdemo/configdb/ResultEntry y(com/ptc/jlinkdemo/configdb/XConfigDBDemoInvalid DB table for model java/lang/Boolean z{ |} ~ M *com/ptc/pfc/pfcComponentFeat/ComponentFeatjava/lang/Integer M    o  : invalid model in component with Id ^    T   E: invalid component columnsiterating through model  components1No matching configurations found in the Data BaseDB Search Results +com/ptc/jlinkdemo/configdb/ResultTableModel 'com/ptc/jlinkdemo/configdb/ResultDialogPossible Substitutions  D  a  a  substituting model  configuration nameConfigDBSearchListener y1com/ptc/jlinkdemo/configdb/ConfigDBSearchListener5com/ptc/pfc/pfcCommand/DefaultUICommandActionListener'com/ptc/jlinkdemo/configdb/ConfigDBDemo getSession"()Lcom/ptc/pfc/pfcSession/Session;(com/ptc/jlinkdemo/configdb/ConfigDBUtils DBConnect*()Lcom/ptc/jlinkdemo/configdb/DBInterface;"com/ptc/pfc/pfcSession/BaseSessionGetCurrentModel()Lcom/ptc/pfc/pfcModel/Model;!com/ptc/jlinkdemo/common/UIHelpershowErrorMessage showException*(Ljava/lang/Throwable;Ljava/lang/String;)VgetConfigParamHelpersI(Lcom/ptc/pfc/pfcModel/Model;)[Lcom/ptc/jlinkdemo/common/ParameterHelper;(Lcom/ptc/pfc/pfcSession/Session;Lcom/ptc/pfc/pfcModel/Model;[Lcom/ptc/jlinkdemo/common/ParameterHelper;Lcom/ptc/jlinkdemo/configdb/ConfigDBSearchListener;)Vprocess()Zjava/awt/Dialogdispose Regenerate+(Lcom/ptc/pfc/pfcSolid/RegenInstructions;)V getModelName0(Lcom/ptc/pfc/pfcModel/Model;)Ljava/lang/String;length()Iput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;isModelConfigurable(Lcom/ptc/pfc/pfcModel/Model;)Z&com/ptc/jlinkdemo/configdb/DBInterfacehasTable(Ljava/lang/String;)ZcreateOrGetTable&(Ljava/lang/String;)Ljava/lang/Object;getCompareParamHelpersgetConfigurationCount(Ljava/lang/Object;)IgetConfigurationByIndex'(Ljava/lang/Object;I)Ljava/lang/Object; addElement(Ljava/lang/Object;)Vappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;getOptionCountgetOptionByIndex getOptionId getOptionType'(Ljava/lang/Object;Ljava/lang/Object;)IgetBoolParamValueK(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean;((Ljava/lang/String;ILjava/lang/Object;)VgetIntParamValueK(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Integer;getDoubleParamValueJ(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Double;getStringParamValueJ(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;getNoteIdParamValuesizecopyInto([Ljava/lang/Object;)V,com/ptc/jlinkdemo/common/BaseParameterHelperequalsParameterSetsa([Lcom/ptc/jlinkdemo/common/BaseParameterHelper;[Lcom/ptc/jlinkdemo/common/BaseParameterHelper;)ZgetConfigurationName8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;'(Ljava/lang/String;Ljava/lang/String;)V(Z)V"com/ptc/pfc/pfcFeature/FeatureTypeFEATTYPE_COMPONENT$Lcom/ptc/pfc/pfcFeature/FeatureType;ListFeaturesByTypeZ(Ljava/lang/Boolean;Lcom/ptc/pfc/pfcFeature/FeatureType;)Lcom/ptc/pfc/pfcFeature/Features;com/ptc/pfc/pfcFeature/Features getarraysizeget#(I)Lcom/ptc/pfc/pfcFeature/Feature;"com/ptc/pfc/pfcModelItem/ModelItemGetId(I)V containsKey(Ljava/lang/Object;)Z&(Ljava/lang/Object;)Ljava/lang/Object;getComponentValueremoveindexOf(I)I,(Ljava/lang/Object;)Ljava/lang/StringBuffer; substring(II)Ljava/lang/String;(I)Ljava/lang/String;getModelFromComp|(Lcom/ptc/pfc/pfcSession/Session;Ljava/lang/String;Lcom/ptc/pfc/pfcComponentFeat/ComponentFeat;)Lcom/ptc/pfc/pfcModel/Model;equalsIgnoreCasegetConfiguration8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; addSubEntry+(Lcom/ptc/jlinkdemo/configdb/ResultEntry;)VisEmptyjavax/swing/JOptionPaneshowMessageDialog<(Ljava/awt/Component;Ljava/lang/Object;Ljava/lang/String;I)V(Ljava/util/Vector;)VB(Lcom/ptc/jlinkdemo/configdb/ResultTableModel;Ljava/lang/String;)V elementAt(I)Ljava/lang/Object;getModelequals getSubEntries()Ljava/util/Vector;setModelCfgName1(Lcom/ptc/pfc/pfcModel/Model;Ljava/lang/String;)V&com/ptc/jlinkdemo/configdb/DebugOutput W#*******"  "$"X * * ** L+  + *+ L+**DGF(* ,-.2%3)5.6/86:;;<=GANDRGWHE*** **LM NPQS\,*L+Y**+*M*,,WY Z \^'_+`=* L+ f jlj:*Y *!Y"**#*!Y"***$*%p qrs)t5u9vn2+&M,'*,()+**++*+,* z{ | ~"#,1  N+&:*-*.N+/:*-0666*-1:*-+2:   * 3 ɧ#:4Y5677879}N$*/1=CQ^cgpsn >:Y : !Y":*+:6 6 *+ ;: *+ <: *+ =6  Bd0  )W>Y ?*+, @A3>Y ?*+, BA3f>Y ?*+, CA3D>Y ?*+, DA3">Y ?*+, EA3   F>:  G H-&: *+,I: JY  K:-*LMY4Y5N7 79O-:PYQRS:T66UV:WYXY:Z*+,[\:]W/^6.MY4Y5N7 7_7`7a9Ob:`c:* d:i&e/:*-*.:*f:*2:gh$MY4Y5N7 7i79OG *0>LZ#&EOY`jlr  /7<? H!M"x&(+/02469:<=?ACGHJMN;R ++&M+N-PYQRS:T66)UV:*,d: *#֧ N-4Y5j7,7k79 hk:WXZ ]^%a5c;eGgSkXl^ckqtf6*Flmn"oY*pLqY+rsM,t,x z"-15o3+&N-'*-()+**+,u *+,v*   "#,2+&N(:,F661,wJ:x-yz:*+{v +|":4Y5}7-7~79' PS6   ,3=@JSr +&N+:PYQRS:T66*UV:*-d:  * ,$է":4Y5j7-7k79cf2  /5AMRYf #* PK r.JDJD6com/ptc/jlinkdemo/configdb/ConfigDBSearchListener.java package com.ptc.jlinkdemo.configdb; import java.util.Vector; import java.util.Hashtable; import javax.swing.JOptionPane; import com.ptc.cipjava.*; import com.ptc.pfc.pfcCommand.*; import com.ptc.pfc.pfcSession.*; import com.ptc.pfc.pfcModel.*; import com.ptc.pfc.pfcModelItem.*; import com.ptc.pfc.pfcSolid.*; import com.ptc.pfc.pfcFeature.*; import com.ptc.pfc.pfcComponentFeat.*; import com.ptc.jlinkdemo.common.*; class ConfigDBSearchListener extends DefaultUICommandActionListener { private Session proSession = null; private Solid proCurrentModel = null; private DBInterface dbIntf = null; private boolean changedParams = false; private Vector resultEntries = null; private Hashtable modelCheckMap = null; public void OnCommand () { printMsg ("ConfigDBSearchListener.OnCommand"); proSession = ConfigDBDemo.getSession (); dbIntf = ConfigDBUtils.DBConnect (); if (dbIntf == null) return; try { Model model = proSession.GetCurrentModel (); if (model == null) { UIHelper.showErrorMessage ("No current model in session"); return; } if (!(model instanceof Solid)) { UIHelper.showErrorMessage ("Current model is not a solid"); return; } proCurrentModel = (Solid) model; } catch (Throwable x) { UIHelper.showException (x, "getting current model"); } doSearch (); //ConfigDBUtils.DBDisconnect (dbIntf); dbIntf = null; } private void doSearch () { changedParams = false; modifyModelParams (); if (changedParams) { modelRegenerate (); compareWithDB (); } } private void modifyModelParams () { ParameterHelper[] modelParams = ConfigDBUtils.getConfigParamHelpers ( proCurrentModel); if (modelParams == null) return; ParamDialog dlg = new ParamDialog (proSession, proCurrentModel, modelParams, this); changedParams = dlg.process (); dlg.dispose (); } private void modelRegenerate () { try { proCurrentModel.Regenerate (null); } catch (Throwable x) { UIHelper.showException (x, "regenerating model"); } } private void compareWithDB () { resultEntries = new Vector (); modelCheckMap = new Hashtable (); compareModelWithDB (proCurrentModel); modelCheckMap = new Hashtable (); substituteModelCfgNames (proCurrentModel, resultEntries); processResultDialog (); } private void compareModelWithDB (Model model) { String modelName = ConfigDBUtils.getModelName (model); if (modelName.length () == 0) return; if (modelCheckMap.put (modelName, "") != null) return; if (!ConfigDBUtils.isModelConfigurable (model)) return; if (compareModelItselfWithDB (model, true) == null) compareModelCompsWithDB (model); } public ResultEntry compareModelItselfWithDB (Model model, boolean recursive) { Object hTable = null; String modelName = ConfigDBUtils.getModelName (model); try { if (!dbIntf.hasTable (modelName)) return (null); hTable = dbIntf.createOrGetTable (modelName); ParameterHelper[] modelParams = ConfigDBUtils.getCompareParamHelpers (model); if (modelParams == null) return (null); int nConfigs = dbIntf.getConfigurationCount (hTable); for (int iC = 0; iC < nConfigs; iC++) { Object hConfig = dbIntf.getConfigurationByIndex (hTable, iC); ResultEntry resultEntry = compareModelWithConfiguration ( hTable, hConfig, model, modelParams, recursive); if (resultEntry != null) { if (recursive) resultEntries.addElement (resultEntry); return (resultEntry); } } } catch (Throwable x) { UIHelper.showException (x, "comparing model " + modelName + " parameters with DB"); } return (null); } private ResultEntry compareModelWithConfiguration ( Object hTable, Object hConfig, Model model, ParameterHelper[] modelParamArr, boolean recursive) throws Throwable { ResultEntry resultEntry = null; Vector dbParams = new Vector (); Hashtable dbComponents = recursive ? new Hashtable () : null; int nOptions = dbIntf.getOptionCount (hTable); for (int iO = 0; iO < nOptions; iO++) { Object hOption = dbIntf.getOptionByIndex (hTable, iO); Object optionId = dbIntf.getOptionId (hTable, hOption); int optionType = dbIntf.getOptionType (hTable, hOption); switch (optionType) { case DBInterface.optionComponent: if (recursive) dbComponents.put (optionId, hOption); break; case DBInterface.optionBoolParam: dbParams.addElement (new DBParameterHelper ( (String) optionId, BaseParameterHelper.BOOLEAN, dbIntf.getBoolParamValue ( hTable, hConfig, hOption))); break; case DBInterface.optionIntParam: dbParams.addElement (new DBParameterHelper ( (String) optionId, BaseParameterHelper.INTEGER, dbIntf.getIntParamValue ( hTable, hConfig, hOption))); break; case DBInterface.optionDoubleParam: dbParams.addElement (new DBParameterHelper ( (String) optionId, BaseParameterHelper.DOUBLE, dbIntf.getDoubleParamValue ( hTable, hConfig, hOption))); break; case DBInterface.optionStringParam: dbParams.addElement (new DBParameterHelper ( (String) optionId, BaseParameterHelper.STRING, dbIntf.getStringParamValue ( hTable, hConfig, hOption))); break; case DBInterface.optionNoteIdParam: dbParams.addElement (new DBParameterHelper ( (String) optionId, BaseParameterHelper.NOTE, dbIntf.getNoteIdParamValue ( hTable, hConfig, hOption))); break; } } DBParameterHelper[] dbParamArr = new DBParameterHelper [ dbParams.size ()]; dbParams.copyInto (dbParamArr); if (!BaseParameterHelper.equalsParameterSets (modelParamArr, dbParamArr)) return (null); String modelName = ConfigDBUtils.getModelName (model); String cfgName = dbIntf.getConfigurationName (hTable, hConfig); resultEntry = new ResultEntry (modelName, cfgName); if (! recursive) return (resultEntry); if (!(model instanceof Solid)) { if (dbComponents.size () != 0) throw new XConfigDBDemo ("Invalid DB table for model " + modelName); return (resultEntry); } Solid solid = (Solid) model; Features components = solid.ListFeaturesByType ( new Boolean (false), FeatureType.FEATTYPE_COMPONENT); int nComps = (components == null) ? 0 : components.getarraysize (); for (int iC = 0; iC < nComps; iC++) { ComponentFeat component = (ComponentFeat) components.get (iC); Integer compId = new Integer (component.GetId ()); if (!dbComponents.containsKey (compId)) continue; String dbCompModel = dbIntf.getComponentValue ( hTable, hConfig, dbComponents.get (compId)); dbComponents.remove (compId); if (dbCompModel == null) continue; int sepIdx = dbCompModel.indexOf ('/'); if (sepIdx < 0) throw new XConfigDBDemo ("Invalid DB table for model " + modelName + ": invalid model in component " + "with Id " + compId); String dbCompTableName = dbCompModel.substring ( 0, sepIdx); String dbCompConfigName = dbCompModel.substring ( sepIdx + 1); Model compModel = ConfigDBUtils.getModelFromComp ( proSession, modelName, component); if (compModel == null) continue; if (!ConfigDBUtils.getModelName (compModel). equalsIgnoreCase (dbCompTableName)) return (null); ParameterHelper[] compModelParams = ConfigDBUtils. getCompareParamHelpers ( compModel); if (compModelParams == null) return (null); if (!dbIntf.hasTable (dbCompTableName)) return (null); Object hCompTable = dbIntf.createOrGetTable ( dbCompTableName); Object hCompConfig = dbIntf.getConfiguration ( hCompTable, dbCompConfigName); ResultEntry compResultEntry = compareModelWithConfiguration ( hCompTable, hCompConfig, compModel, compModelParams, true); if (compResultEntry == null) return (null); resultEntry.addSubEntry (compResultEntry); } if (!dbComponents.isEmpty ()) throw new XConfigDBDemo ("Invalid DB table for model " + modelName + ": invalid component columns"); return (resultEntry); } private void compareModelCompsWithDB (Model model) { if (!(model instanceof Solid)) return; String modelName = ConfigDBUtils.getModelName (model); try { Solid solid = (Solid) model; Features components = solid.ListFeaturesByType ( new Boolean (false), FeatureType.FEATTYPE_COMPONENT); int nComps = (components == null) ? 0 : components.getarraysize (); for (int iC = 0; iC < nComps; iC++) { ComponentFeat component = (ComponentFeat) components.get (iC); Model compModel = ConfigDBUtils.getModelFromComp ( proSession, modelName, component); if (compModel != null) compareModelWithDB (compModel); } } catch (Throwable x) { UIHelper.showException (x, "iterating through model " + modelName + " components"); } } private void processResultDialog () { if (resultEntries.size () == 0) { JOptionPane.showMessageDialog ( null, "No matching configurations found in the Data Base", "DB Search Results", JOptionPane.INFORMATION_MESSAGE); } else { ResultTableModel resultTable = new ResultTableModel ( resultEntries); ResultDialog dlg = new ResultDialog ( resultTable, "Possible Substitutions"); dlg.process (); dlg.dispose (); } } private void substituteModelCfgNames (Model model, Vector modelResEntries) { String modelName = ConfigDBUtils.getModelName (model); if (modelName.length () == 0) return; if (modelCheckMap.put (modelName, "") != null) return; if (!ConfigDBUtils.isModelConfigurable (model)) return; if (!substituteModelItselfCfgNames (model, modelResEntries)) substituteModelCompsCfgNames (model, modelResEntries); } private boolean substituteModelItselfCfgNames (Model model, Vector modelResEntries) { String modelName = ConfigDBUtils.getModelName (model); String cfgName = ""; try { int nEntries = modelResEntries.size (); for (int iE = 0; iE < nEntries; iE++) { ResultEntry entry = (ResultEntry) modelResEntries.elementAt (iE); if (entry.getModel ().equals (modelName)) { cfgName = entry.getConfiguration (); substituteModelCompsCfgNames (model, entry.getSubEntries ()); break; } } ConfigDBUtils.setModelCfgName (model, cfgName); } catch (Throwable x) { UIHelper.showException (x, "substituting model " + modelName + " configuration name"); } return (cfgName.length () != 0); } private void substituteModelCompsCfgNames (Model model, Vector modelResEntries) { String modelName = ConfigDBUtils.getModelName (model); try { Solid solid = (Solid) model; Features components = solid.ListFeaturesByType ( new Boolean (false), FeatureType.FEATTYPE_COMPONENT); int nComps = (components == null) ? 0 : components.getarraysize (); for (int iC = 0; iC < nComps; iC++) { ComponentFeat component = (ComponentFeat) components.get (iC); Model compModel = ConfigDBUtils.getModelFromComp ( proSession, modelName, component); if (compModel != null) substituteModelCfgNames (compModel, modelResEntries); } } catch (Throwable x) { UIHelper.showException (x, "iterating through model " + modelName + " components"); } } private static void printMsg (String msg) { DebugOutput.printMsg ("ConfigDBSearchListener", msg); } } PK Fl.m߀2.com/ptc/jlinkdemo/configdb/ConfigDBUtils.class-' X   W        W W W W W       K K K N K cfgParamListNameLjava/lang/String; ConstantValuecmpParamListName cfgParamNameisCfgParamName cfgUnasigned()VCodeLineNumberTable DBConnect*()Lcom/ptc/jlinkdemo/configdb/DBInterface; DBDisconnect+(Lcom/ptc/jlinkdemo/configdb/DBInterface;)V getModelName0(Lcom/ptc/pfc/pfcModel/Model;)Ljava/lang/String;getModelFromComp|(Lcom/ptc/pfc/pfcSession/Session;Ljava/lang/String;Lcom/ptc/pfc/pfcComponentFeat/ComponentFeat;)Lcom/ptc/pfc/pfcModel/Model;getConfigParamHelpersI(Lcom/ptc/pfc/pfcModel/Model;)[Lcom/ptc/jlinkdemo/common/ParameterHelper;getCompareParamHelpersgetCompareParamsC(Lcom/ptc/pfc/pfcModel/Model;)[Lcom/ptc/pfc/pfcModelItem/Parameter;isModelConfigurable(Lcom/ptc/pfc/pfcModel/Model;)ZgetModelCfgNamesetModelCfgName1(Lcom/ptc/pfc/pfcModel/Model;Ljava/lang/String;)VgetConfigParamList ExceptionsgetCompareParamListgetListedParamHelpers[(Lcom/ptc/pfc/pfcModel/Model;Ljava/lang/String;)[Lcom/ptc/jlinkdemo/common/ParameterHelper;getListedParamsU(Lcom/ptc/pfc/pfcModel/Model;Ljava/lang/String;)[Lcom/ptc/pfc/pfcModelItem/Parameter;printMsg(Ljava/lang/String;)V SourceFileConfigDBUtils.java `a*com/ptc/jlinkdemo/configdb/TestDBInterface aConnection open }~java/lang/Throwable reading DB aConnection closed closing DB getting model name      java/lang/StringBufferWarning - model  in component with Id  in model  is not in session getting model from component  of model hi vi yzcreating list of model configuration parameters xicompare parameters {| configurable         Parameter configurable in model  has invalid non-boolean type ~ determining if model  is configurablepartno)Parameter partno does not exist in model Parameter partno in model  has invalid non-string type    has invalid empty string valuetbd getting model  part no  setting model  config_params4Parameter config_params does not exist in the model !Parameter config_params in model &Configuration parameter list in model  is empty cmp_paramsParameter cmp_params in model java/util/StringTokenizer `~  (com/ptc/jlinkdemo/common/ParameterHelper ! "# Parameter does not exist in model $"com/ptc/pfc/pfcModelItem/Parameter ConfigDBUtils% }&(com/ptc/jlinkdemo/configdb/ConfigDBUtilsjava/lang/Object&com/ptc/jlinkdemo/configdb/DBInterfaceconnectionOpen!com/ptc/jlinkdemo/common/UIHelper showException*(Ljava/lang/Throwable;Ljava/lang/String;)VconnectionClosecom/ptc/pfc/pfcModel/Model GetFullName()Ljava/lang/String;"com/ptc/pfc/pfcModelItem/ModelItemGetId()Ijava/lang/IntegertoString(I)Ljava/lang/String;com/ptc/pfc/pfcFeature/Feature GetStatus(()Lcom/ptc/pfc/pfcFeature/FeatureStatus;$com/ptc/pfc/pfcFeature/FeatureStatus FEAT_ACTIVE&Lcom/ptc/pfc/pfcFeature/FeatureStatus;*com/ptc/pfc/pfcComponentFeat/ComponentFeat GetModelDescr(()Lcom/ptc/pfc/pfcModel/ModelDescriptor;"com/ptc/pfc/pfcSession/BaseSessionGetModelFromDescrD(Lcom/ptc/pfc/pfcModel/ModelDescriptor;)Lcom/ptc/pfc/pfcModel/Model;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;$com/ptc/pfc/pfcModel/ModelDescriptor'com/ptc/pfc/pfcModelItem/ParameterOwnerGetParam8(Ljava/lang/String;)Lcom/ptc/pfc/pfcModelItem/Parameter;&com/ptc/pfc/pfcModelItem/BaseParameterGetValue'()Lcom/ptc/pfc/pfcModelItem/ParamValue;#com/ptc/pfc/pfcModelItem/ParamValueGetdiscr+()Lcom/ptc/pfc/pfcModelItem/ParamValueType;'com/ptc/pfc/pfcModelItem/ParamValueType PARAM_BOOLEAN)Lcom/ptc/pfc/pfcModelItem/ParamValueType;showErrorMessage GetBoolValue()Z PARAM_STRINGGetStringValuejava/lang/StringtrimlengthequalsIgnoreCase(Ljava/lang/String;)Z%com/ptc/pfc/pfcModelItem/pfcModelItemCreateStringParamValue9(Ljava/lang/String;)Lcom/ptc/pfc/pfcModelItem/ParamValue;SetValue((Lcom/ptc/pfc/pfcModelItem/ParamValue;)V countTokens nextTokencreateg(Lcom/ptc/pfc/pfcModelItem/ParameterOwner;Ljava/lang/String;)Lcom/ptc/jlinkdemo/common/ParameterHelper; hasMoreTokens&com/ptc/jlinkdemo/configdb/DebugOutput'(Ljava/lang/String;Ljava/lang/String;)V WXYZ[D\Z[I]Z[4^Z[)_Z[=`ab*c debU!KYK* L+ *c"% &'+- fgbJ* *   L+ c56 7;= hib9* L+ cCGI jkbN:,:,L,:*N-7Y+':Y + -fic* PQTUW%X.Y2Zibe lmbv:L*!M*"N-*-#L N-Y$,% +c"jkn oprv8z nmbv:L*!M*&N-*-#L N-Y$,' +c" 8 opbv:L*!M*&N-*-(L N-Y$,' +c" 8 qrbn<*!M*)*N--+:,- Y.,/01< N-Y2,3 LOc2 )DFOl sibL*!M*4*N-Y5,0-+:,6 Y7,809:L+;Y7,<0+=>L N-Y?,@ +cF*,4?Z\el tubk*!M*4*N-Y5,0+::;=:A:-B N-YC,@ JMc2 (),7;BMj vib*!L*D*M,YE+0,+N-,6 YF+80-9::; YG+H0c:(*1;V X#^$i&(+w xibL*!L*I*M,,+N-,6 YJ+80-9:c* 123467&9A<C?IAw yzb k*!MKY+LN-M6N:6C-O:*P:&YQR,0 S-Sc:HIJKLM!O'P/R4TTWWYaMh\w {|b m*!MKY+LN-M6T:6E-O:**:&YQR,0 S-Sc:cdefgh!j'k1l6nVqYschjvw }~b#U*Vc {|PK r.'7&ֺ,,-com/ptc/jlinkdemo/configdb/ConfigDBUtils.java package com.ptc.jlinkdemo.configdb; import java.util.StringTokenizer; import com.ptc.cipjava.*; import com.ptc.pfc.pfcSession.*; import com.ptc.pfc.pfcModel.*; import com.ptc.pfc.pfcModelItem.*; import com.ptc.pfc.pfcFeature.*; import com.ptc.pfc.pfcComponentFeat.*; import com.ptc.jlinkdemo.common.*; class ConfigDBUtils { private static final String cfgParamListName = "config_params"; private static final String cmpParamListName = "cmp_params"; private static final String cfgParamName = "partno"; private static final String isCfgParamName = "configurable"; private static final String cfgUnasigned = "tbd"; public static DBInterface DBConnect () { DBInterface dbIntf = null; try { dbIntf = new TestDBInterface (); dbIntf.connectionOpen (); printMsg ("Connection open"); } catch (Throwable x) { UIHelper.showException (x, "reading DB"); } return (dbIntf); } public static void DBDisconnect (DBInterface dbIntf) { try { if (dbIntf != null) dbIntf.connectionClose (); printMsg ("Connection closed"); } catch (Throwable x) { UIHelper.showException (x, "closing DB"); } } public static String getModelName (Model model) { try { return (model.GetFullName ()); } catch (Throwable x) { UIHelper.showException (x, "getting model name"); } return (""); } public static Model getModelFromComp (Session session, String parentName, ComponentFeat comp) { Model compModel = null; String compId = ""; try { compId = Integer.toString (comp.GetId ()); if (comp.GetStatus () == FeatureStatus.FEAT_ACTIVE) { ModelDescriptor compDescr = comp.GetModelDescr (); compModel = session.GetModelFromDescr (compDescr); if (compModel == null) printMsg ("Warning - model " + compDescr.GetFullName () + " in component with Id " + compId + " in model " + parentName + " is not in session "); } } catch (Throwable x) { UIHelper.showException (x, "getting model from component " + compId + " of model " + parentName); } return (compModel); } public static ParameterHelper[] getConfigParamHelpers (Model model) { ParameterHelper[] paramHelpers = null; String modelName = getModelName (model); try { String cfgParamList = getConfigParamList (model); if (cfgParamList == null) return (null); paramHelpers = getListedParamHelpers (model, cfgParamList); } catch (Throwable x) { UIHelper.showException ( x, "creating list of model " + modelName + "configuration parameters"); } return (paramHelpers); } public static ParameterHelper[] getCompareParamHelpers (Model model) { ParameterHelper[] paramHelpers = null; String modelName = getModelName (model); try { String cmpParamList = getCompareParamList (model); if (cmpParamList == null) return (null); paramHelpers = getListedParamHelpers (model, cmpParamList); } catch (Throwable x) { UIHelper.showException ( x, "creating list of model " + modelName + "compare parameters"); } return (paramHelpers); } public static Parameter[] getCompareParams (Model model) { Parameter[] params = null; String modelName = getModelName (model); try { String cmpParamList = getCompareParamList (model); if (cmpParamList == null) return (null); params = getListedParams (model, cmpParamList); } catch (Throwable x) { UIHelper.showException ( x, "creating list of model " + modelName + "compare parameters"); } return (params); } public static boolean isModelConfigurable (Model model) { boolean isConfigurable = false; String modelName = getModelName (model); try { Parameter isCfgParam = model.GetParam (isCfgParamName); if (isCfgParam == null) return (false); ParamValue isCfgParamValue = isCfgParam.GetValue (); if (isCfgParamValue.Getdiscr () != ParamValueType.PARAM_BOOLEAN) { UIHelper.showErrorMessage ("Parameter " + isCfgParamName + " in model " + modelName + " has invalid non-boolean type"); return (false); } isConfigurable = isCfgParamValue.GetBoolValue (); } catch (Throwable x) { UIHelper.showException (x, "determining if model " + modelName + " is configurable"); } return (isConfigurable); } public static String getModelCfgName (Model model) { String cfgName = null; String modelName = getModelName (model); try { Parameter cfgParam = model.GetParam (cfgParamName); if (cfgParam == null) { UIHelper.showErrorMessage ("Parameter " + cfgParamName + " does not exist in model " + modelName); return (null); } ParamValue cfgParamValue = cfgParam.GetValue (); if (cfgParamValue.Getdiscr () != ParamValueType.PARAM_STRING) { UIHelper.showErrorMessage ("Parameter " + cfgParamName + " in model " + modelName + " has invalid non-string type"); return (null); } cfgName = cfgParamValue.GetStringValue ().trim (); if (cfgName.length () == 0) UIHelper.showErrorMessage ("Parameter " + cfgParamName + " in model " + modelName + " has invalid empty string value"); if (cfgName.equalsIgnoreCase (cfgUnasigned)) cfgName = ""; } catch (Throwable x) { UIHelper.showException (x, "getting model " + modelName + " part no"); } return (cfgName); } public static void setModelCfgName (Model model, String cfgName) { String modelName = getModelName (model); try { Parameter cfgParam = model.GetParam (cfgParamName); if (cfgParam == null) { UIHelper.showErrorMessage ("Parameter " + cfgParamName + " does not exist in model " + modelName); return; } String locCfgName = cfgName; if (locCfgName.trim ().length () == 0) locCfgName = cfgUnasigned; ParamValue cfgParamValue = pfcModelItem.CreateStringParamValue ( locCfgName); cfgParam.SetValue (cfgParamValue); } catch (Throwable x) { UIHelper.showException (x, "setting model " + modelName + " part no"); } } private static String getConfigParamList (Model model) throws Throwable { String modelName = getModelName (model); Parameter cfgParamListParam = model.GetParam (cfgParamListName); if (cfgParamListParam == null) { UIHelper.showErrorMessage ("Parameter " + cfgParamListName + " does not exist in the model " + modelName); return (null); } ParamValue cfgParamListValue = cfgParamListParam.GetValue (); if (cfgParamListValue.Getdiscr () != ParamValueType.PARAM_STRING) { UIHelper.showErrorMessage ("Parameter " + cfgParamListName + " in model " + modelName + " has invalid non-string type"); return (null); } String cfgParamList = cfgParamListValue.GetStringValue (); if (cfgParamList.trim ().length () == 0) { UIHelper.showErrorMessage ("Configuration parameter list " + "in model " + modelName + " is empty"); return (null); } return (cfgParamList); } private static String getCompareParamList (Model model) throws Throwable { String modelName = getModelName (model); Parameter cmpParamListParam = model.GetParam (cmpParamListName); if (cmpParamListParam == null) return (""); ParamValue cmpParamListValue = cmpParamListParam.GetValue (); if (cmpParamListValue.Getdiscr () != ParamValueType.PARAM_STRING) { UIHelper.showErrorMessage ("Parameter " + cmpParamListName + " in model " + modelName + " has invalid non-string type"); return (null); } String cmpParamList = cmpParamListValue.GetStringValue (); return (cmpParamList); } private static ParameterHelper[] getListedParamHelpers ( Model model, String paramList) throws Throwable { String modelName = getModelName (model); StringTokenizer paramListToks = new StringTokenizer (paramList); int nParams = paramListToks.countTokens (); ParameterHelper[] paramHelpers = new ParameterHelper [nParams]; int iParam = 0; while (paramListToks.hasMoreTokens ()) { String paramName = paramListToks.nextToken (); ParameterHelper paramHelper = ParameterHelper.create (model, paramName); if (paramHelper == null) { UIHelper.showErrorMessage ("Parameter " + paramName + "does not exist in model " + modelName); continue; } paramHelpers [iParam++] = paramHelper; } return (paramHelpers); } private static Parameter[] getListedParams (Model model, String paramList) throws Throwable { String modelName = getModelName (model); StringTokenizer paramListToks = new StringTokenizer (paramList); int nParams = paramListToks.countTokens (); Parameter[] params = new Parameter [nParams]; int iParam = 0; while (paramListToks.hasMoreTokens ()) { String paramName = paramListToks.nextToken (); Parameter param = model.GetParam (paramName); if (param == null) { UIHelper.showErrorMessage ("Parameter " + paramName + "does not exist in model " + modelName); continue; } params [iParam++] = param; } return (params); } private static void printMsg (String msg) { DebugOutput.printMsg ("ConfigDBUtils", msg); } } PK Fl.hV V ,com/ptc/jlinkdemo/configdb/DBInterface.class-ebcoptionDimensionI ConstantValueoptionBoolParamoptionIntParamoptionDoubleParamoptionStringParamoptionNoteIdParam optionLayer optionFeatureoptionComponent layerNormal layerBlank layerDisplay layerHiddenconnectionOpen()V ExceptionsdconnectionClosecreateOrGetTable&(Ljava/lang/String;)Ljava/lang/Object; deleteTable(Ljava/lang/Object;)VhasTable(Ljava/lang/String;)Z getTableCount()IgetTableByIndex(I)Ljava/lang/Object; getTableName&(Ljava/lang/Object;)Ljava/lang/String; addDimension'(Ljava/lang/Object;I)Ljava/lang/Object; addBoolParam8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; addIntParamaddDoubleParamaddStringParamaddNoteIdParamaddLayer addFeature addComponent removeOption'(Ljava/lang/Object;Ljava/lang/Object;)V getOptionType'(Ljava/lang/Object;Ljava/lang/Object;)I getOptionId8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;getOptionCount(Ljava/lang/Object;)IgetOptionByIndexgetConfigurationgetDimensionValueJ(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Double;getBoolParamValueK(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean;getIntParamValueK(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Integer;getDoubleParamValuegetStringParamValueJ(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;getNoteIdParamValue getLayerValuegetFeatureValuegetComponentValuegetConfigurationCountgetConfigurationByIndexgetConfigurationName8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;addConfigurationsetDimensionValueK(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Double;)VsetBoolParamValueL(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Boolean;)VsetIntParamValueL(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Integer;)VsetDoubleParamValuesetStringParamValueK(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;)VsetNoteIdParamValue setLayerValuesetFeatureValuesetComponentValue SourceFileDBInterface.java&com/ptc/jlinkdemo/configdb/DBInterfacejava/lang/Object$com/ptc/jlinkdemo/configdb/XDataBase        - !"#$%&'()*+,-./0/1/2/3/4/5-6-789:;<=>?-@/ABCDEFGBHIJFKFLDMIN>O-PQR/STUVWXYTZ[\X]X^V_[`aPK r.Mi+com/ptc/jlinkdemo/configdb/DBInterface.java package com.ptc.jlinkdemo.configdb; // Note: All the methods throw exceptions if some DB problem occured public interface DBInterface { // // Option types // public final int optionDimension = 0; public final int optionBoolParam = 1; public final int optionIntParam = 2; public final int optionDoubleParam = 3; public final int optionStringParam = 4; public final int optionNoteIdParam = 5; public final int optionLayer = 6; public final int optionFeature = 7; public final int optionComponent = 8; // // Layer option values // public final int layerNormal = 0; public final int layerBlank = 1; public final int layerDisplay = 2; public final int layerHidden = 3; // // Open/Close connection // public abstract void connectionOpen () throws XDataBase; public abstract void connectionClose () throws XDataBase; // // Create/Delete table // public abstract Object createOrGetTable (String objName) throws XDataBase; // Create a configuration table for an object with the given name or // find and existing table. Do not do anything if the table // already exists. Return a handle to the table . public abstract void deleteTable (Object tableHandle) throws XDataBase; // Delete the table given its handle. Handle is an object returned // from CreateTable (). public abstract boolean hasTable (String objName) throws XDataBase; // Verify if a configuration table for an object with the given name // exists. // // Iterationg through tables // public abstract int getTableCount () throws XDataBase; // Get number of tables in the data base. public abstract Object getTableByIndex (int tableIndex) throws XDataBase; // Get a table handle by index. public abstract String getTableName (Object tableHandle) throws XDataBase; // Get table name given table handle. // // Option set manipulation // public abstract Object addDimension (Object tableHandle, int dimId) throws XDataBase; public abstract Object addBoolParam (Object tableHandle, String paramName) throws XDataBase; public abstract Object addIntParam (Object tableHandle, String paramName) throws XDataBase; public abstract Object addDoubleParam (Object tableHandle, String paramName) throws XDataBase; public abstract Object addStringParam (Object tableHandle, String paramName) throws XDataBase; public abstract Object addNoteIdParam (Object tableHandle, String paramName) throws XDataBase; public abstract Object addLayer (Object tableHandle, String layerName) throws XDataBase; public abstract Object addFeature (Object tableHandle, int featureId) throws XDataBase; public abstract Object addComponent (Object tableHandle, int componentId) throws XDataBase; // Add an option of a certain type to the configuration table // specified by its handle. Return a handle corresponding // to the new option. public abstract void removeOption ( Object tableHandle, Object optionHandle) throws XDataBase; // Remove a parameter option from the configuration table. public abstract int getOptionType ( Object tableHandle, Object optionHandle) throws XDataBase; // Return an option type (see constants above); public abstract Object getOptionId ( Object tableHandle, Object optionHandle) throws XDataBase; /// Return an option Id (string or integer depending on option type); // // Iterating through the options in the table. // public abstract int getOptionCount ( Object tableHandle) throws XDataBase; // Return number of options in the configuration table. public abstract Object getOptionByIndex (Object tableHandle, int optionIdx) throws XDataBase; // Get an option handle by index. // // Accessing configuration values // public abstract Object getConfiguration (Object tableHandle, String cfgName) throws XDataBase; // Return a handle to a configuration specified by name. public abstract Double getDimensionValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase; public abstract Boolean getBoolParamValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase; public abstract Integer getIntParamValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase; public abstract Double getDoubleParamValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase; public abstract String getStringParamValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase; public abstract Integer getNoteIdParamValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase; public abstract Integer getLayerValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase; public abstract Boolean getFeatureValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase; public abstract String getComponentValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase; // Return the value corresponding to the given option // in the given configuration. If the value is cefault // configurable object value, return null. // GetLayerValue () returns one of the values defined above. // // Iterating through the configurations in the table. // public abstract int getConfigurationCount ( Object tableHandle) throws XDataBase; // Return number of configurations in the configuration table. public abstract Object getConfigurationByIndex ( Object tableHandle, int cfgIdx) throws XDataBase; // Get a configuration handle by index. public abstract String getConfigurationName ( Object tableHandle, Object cfgHandle) throws XDataBase; // Get configuration name. // // Configuration editing // public abstract Object addConfiguration ( Object tableHandle, String cfgName) throws XDataBase; // Add a new configuration with default values public abstract void setDimensionValue (Object tableHandle, Object cfgHandle, Object optionHandle, Double value) throws XDataBase; public abstract void setBoolParamValue (Object tableHandle, Object cfgHandle, Object optionHandle, Boolean value) throws XDataBase; public abstract void setIntParamValue (Object tableHandle, Object cfgHandle, Object optionHandle, Integer value) throws XDataBase; public abstract void setDoubleParamValue (Object tableHandle, Object cfgHandle, Object optionHandle, Double value) throws XDataBase; public abstract void setStringParamValue (Object tableHandle, Object cfgHandle, Object optionHandle, String value) throws XDataBase; public abstract void setNoteIdParamValue (Object tableHandle, Object cfgHandle, Object optionHandle, Integer value) throws XDataBase; public abstract void setLayerValue (Object tableHandle, Object cfgHandle, Object optionHandle, Integer value) throws XDataBase; public abstract void setFeatureValue (Object tableHandle, Object cfgHandle, Object optionHandle, Boolean value) throws XDataBase; public abstract void setComponentValue (Object tableHandle, Object cfgHandle, Object optionHandle, String value) throws XDataBase; // Set the value corresponding to the given option // in the given configuration. } PK Fl.* ,com/ptc/jlinkdemo/configdb/DebugOutput.class- 8E FG 7HIJ 7KL EM N OP GQR STU VW X YZ X[\ ] ^_` ab cde "fg "hij 'klm *nop Fqrstu vwx yz{|()VCodeLineNumberTableprintException*(Ljava/lang/String;Ljava/lang/Throwable;)VprintMsg'(Ljava/lang/String;Ljava/lang/String;)V printLine(Ljava/lang/String;)V SourceFileDebugOutput.java 9:} ~ ?@$com/ptc/pfc/pfcExceptions/XInAMethod{ ABjava/lang/StringBuffer MethodName: ;&com/ptc/pfc/pfcExceptions/XBadArgument ArgumentName: (com/ptc/pfc/pfcExceptions/XStringTooLong String:  MaxLength: *com/ptc/pfc/pfcExceptions/XSequenceTooLong0com/ptc/pfc/pfcExceptions/XBadOutlineExcludeType Type: 'com/ptc/pfc/pfcExceptions/XToolkitError ToolkitFunctionName:  ErrorCode: +com/ptc/pfc/pfcExceptions/XInvalidEnumValue Name:  Value: +com/ptc/pfc/pfcExceptions/XBadGetParamValue ValueType: 0com/ptc/pfc/pfcExceptions/XUnknownModelExtension Extension: }com/ptc/pfc/pfcExceptions/XPFC (com/ptc/jlinkdemo/configdb/XConfigDBDemocom/ptc/cipjava/jxthrowable DebugOutputCannot print exception :  B&com/ptc/jlinkdemo/configdb/DebugOutputjava/lang/Objectjava/lang/ThrowabletoString()Ljava/lang/String;append,(Ljava/lang/String;)Ljava/lang/StringBuffer; GetMethodNameGetArgumentName GetString GetMaxLength()I(I)Ljava/lang/StringBuffer;GetType*()Lcom/ptc/pfc/pfcModelItem/ModelItemType;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;GetToolkitFunctionName GetErrorCodeGetNameGetValue GetValueType+()Lcom/ptc/pfc/pfcModelItem/ParamValueType; GetExtension getMessagejava/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamprintln!789:;*< =>; *++Y +  +ƻY +  +HY +  Y + D+'Y + +Y + +HY +  Y +! +"HY# +"$  Y% +"& V+''Y( +') ++*$Y+ +*,  -%+.+./+0 +/ M231<z5<] d"$')-/46'9K<R>s@CEHJOQRS TXZ ?@;:4Y* 5 + 6< ^_ AB;$4*6< cdCDPK r.٨K K +com/ptc/jlinkdemo/configdb/DebugOutput.java package com.ptc.jlinkdemo.configdb; import java.util.*; import com.ptc.cipjava.*; import com.ptc.pfc.pfcExceptions.*; public class DebugOutput { public static void printException (String className, Throwable x) { try { printMsg (className, x.toString ()); if (x instanceof XInAMethod) { printLine ("{"); printLine (" MethodName: " + ((XInAMethod) x).GetMethodName () + ";"); if (x instanceof XBadArgument) { printLine (" ArgumentName: " + ((XBadArgument) x).GetArgumentName () + ";"); if (x instanceof XStringTooLong) { printLine (" String: " + ((XStringTooLong) x).GetString () + ";"); printLine (" MaxLength: " + ((XStringTooLong) x).GetMaxLength () + ";"); } else if (x instanceof XSequenceTooLong) { printLine (" MaxLength: " + ((XSequenceTooLong) x).GetMaxLength () + ";"); } else if (x instanceof XBadOutlineExcludeType) { printLine (" Type: " + ((XBadOutlineExcludeType) x).GetType () + ";"); } } else if (x instanceof XToolkitError) { printLine (" ToolkitFunctionName: " + ((XToolkitError) x).GetToolkitFunctionName () + ";"); printLine (" ErrorCode: " + ((XToolkitError) x).GetErrorCode () + ";"); } else if (x instanceof XInvalidEnumValue) { printLine (" Name: " + ((XInvalidEnumValue) x).GetName () + ";"); printLine (" Value: " + ((XInvalidEnumValue) x).GetValue () + ";"); } else if (x instanceof XBadGetParamValue) { printLine (" ValueType: " + ((XBadGetParamValue) x).GetValueType () + ";"); } else if (x instanceof XUnknownModelExtension) { printLine (" Extension: " + ((XUnknownModelExtension) x).GetExtension () + ";"); } printLine ("}"); } else if (x instanceof XPFC) printLine (((XPFC) x).getMessage ()); else if (x instanceof XConfigDBDemo) printLine (x.getMessage ()); } catch (jxthrowable y) { printMsg ("DebugOutput", "Cannot print exception"); } } public static void printMsg (String className, String msg) { System.out.println (className + ": " + msg); } private static void printLine (String text) { System.out.println (text); } } PK Fl.hwAcom/ptc/jlinkdemo/configdb/ParamDialog$CancelButtonListener.class-!   this$0(Lcom/ptc/jlinkdemo/configdb/ParamDialog; Synthetic+(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileParamDialog.java    ;com/ptc/jlinkdemo/configdb/ParamDialog$CancelButtonListenerCancelButtonListener InnerClassesjava/lang/Objectjava/awt/event/ActionListener()Vjava/awt/Component setVisible(Z)V&com/ptc/jlinkdemo/configdb/ParamDialog    " **+  % *  PK Fl.`l\Acom/ptc/jlinkdemo/configdb/ParamDialog$CmpTopButtonListener.class-S ! " #$ %& #' #( )*+ !, - ./0 .1 23 4567:;this$0(Lcom/ptc/jlinkdemo/configdb/ParamDialog; Synthetic+(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileParamDialog.java < = >?@ A< BC DEF GHjava/lang/StringBufferConfiguration found: IJK LM/ NM OM Config DBP QRConfiguration not found in DB;com/ptc/jlinkdemo/configdb/ParamDialog$CmpTopButtonListenerCmpTopButtonListener InnerClassesjava/lang/Objectjava/awt/event/ActionListener()V&com/ptc/jlinkdemo/configdb/ParamDialog access$000O(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)Lcom/ptc/jlinkdemo/common/ParamTable;#com/ptc/jlinkdemo/common/ParamTablecommitNewValues access$200](Lcom/ptc/jlinkdemo/configdb/ParamDialog;)Lcom/ptc/jlinkdemo/configdb/ConfigDBSearchListener; access$100F(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)Lcom/ptc/pfc/pfcModel/Model;1com/ptc/jlinkdemo/configdb/ConfigDBSearchListenercompareModelItselfWithDBG(Lcom/ptc/pfc/pfcModel/Model;Z)Lcom/ptc/jlinkdemo/configdb/ResultEntry;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;&com/ptc/jlinkdemo/configdb/ResultEntrygetModel()Ljava/lang/String;getConfigurationtoStringjavax/swing/JOptionPaneshowMessageDialog<(Ljava/awt/Component;Ljava/lang/Object;Ljava/lang/String;I)V " **+]***M,2*Y  ,  , * !P\ 9 #8PK Fl.?x))?com/ptc/jlinkdemo/configdb/ParamDialog$LoadButtonListener.class-.      !"this$0(Lcom/ptc/jlinkdemo/configdb/ParamDialog; Synthetic+(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileParamDialog.java # $ %&' () *+, -#9com/ptc/jlinkdemo/configdb/ParamDialog$LoadButtonListenerLoadButtonListener InnerClassesjava/lang/Objectjava/awt/event/ActionListener()V&com/ptc/jlinkdemo/configdb/ParamDialog access$500U(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)[Lcom/ptc/jlinkdemo/common/ParameterHelper;!com/ptc/jlinkdemo/common/UIHelperloadParamsFromFileF(Ljava/awt/Component;[Lcom/ptc/jlinkdemo/common/BaseParameterHelper;)Z access$000O(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)Lcom/ptc/jlinkdemo/common/ParamTable;#com/ptc/jlinkdemo/common/ParamTableresetNewValues     " **+:**W* PK Fl.A33Dcom/ptc/jlinkdemo/configdb/ParamDialog$ParamDialogEventHandler.class-+      this$0(Lcom/ptc/jlinkdemo/configdb/ParamDialog; Synthetic+(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)VCodeLineNumberTable windowOpened(Ljava/awt/event/WindowEvent;)V windowClosed SourceFileParamDialog.java !  " #$% &!' ()*>com/ptc/jlinkdemo/configdb/ParamDialog$ParamDialogEventHandlerParamDialogEventHandler InnerClassesjava/awt/event/WindowAdapter()Vcom/ptc/PlatformgetOSAPI()Ijava/awt/WindowtoFrontjava/awt/Component setVisible(Z)V&com/ptc/jlinkdemo/configdb/ParamDialog     " **+ / * % *  PK Fl.;-@com/ptc/jlinkdemo/configdb/ParamDialog$ResetButtonListener.class-$    this$0(Lcom/ptc/jlinkdemo/configdb/ParamDialog; Synthetic+(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileParamDialog.java    !" #:com/ptc/jlinkdemo/configdb/ParamDialog$ResetButtonListenerResetButtonListener InnerClassesjava/lang/Objectjava/awt/event/ActionListener()V&com/ptc/jlinkdemo/configdb/ParamDialog access$000O(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)Lcom/ptc/jlinkdemo/common/ParamTable;#com/ptc/jlinkdemo/common/ParamTableresetNewValues     " **+ ' *   PK Fl.5ll?com/ptc/jlinkdemo/configdb/ParamDialog$SaveButtonListener.class-%    this$0(Lcom/ptc/jlinkdemo/configdb/ParamDialog; Synthetic+(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileParamDialog.java    !" #$9com/ptc/jlinkdemo/configdb/ParamDialog$SaveButtonListenerSaveButtonListener InnerClassesjava/lang/Objectjava/awt/event/ActionListener()V&com/ptc/jlinkdemo/configdb/ParamDialog access$500U(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)[Lcom/ptc/jlinkdemo/common/ParameterHelper;!com/ptc/jlinkdemo/common/UIHelpersaveParamsToFileF(Ljava/awt/Component;[Lcom/ptc/jlinkdemo/common/BaseParameterHelper;)Z     " **+ ,**W  PK Fl.fn  >com/ptc/jlinkdemo/configdb/ParamDialog$SetButtonListener.class-4       !"%&this$0(Lcom/ptc/jlinkdemo/configdb/ParamDialog; Synthetic+(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileParamDialog.java ' !SetButtonListener.actionPerformed( )* +,- .' /01 238com/ptc/jlinkdemo/configdb/ParamDialog$SetButtonListenerSetButtonListener InnerClassesjava/lang/Objectjava/awt/event/ActionListener()V&com/ptc/jlinkdemo/configdb/ParamDialog access$300(Ljava/lang/String;)V access$000O(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)Lcom/ptc/jlinkdemo/common/ParamTable;#com/ptc/jlinkdemo/common/ParamTablecommitNewValues access$402,(Lcom/ptc/jlinkdemo/configdb/ParamDialog;Z)Zjava/awt/Component setVisible(Z)V   " **+I!**W* $  #PK Fl.Pm,com/ptc/jlinkdemo/configdb/ParamDialog.class- Hw Hx Hy Hz H{ H|} ~ I H H          ! $ ' * I  .~  1  5~ 7 5 5 5 5 5 .  B  SaveButtonListener InnerClassesLoadButtonListenerCancelButtonListenerResetButtonListenerSetButtonListenerCmpTopButtonListenerParamDialogEventHandler proSession Lcom/ptc/pfc/pfcSession/Session;proModelLcom/ptc/pfc/pfcModel/Model;cfgParamHelpers+[Lcom/ptc/jlinkdemo/common/ParameterHelper;cfgSearchListener3Lcom/ptc/jlinkdemo/configdb/ConfigDBSearchListener; cfgParamTable%Lcom/ptc/jlinkdemo/common/ParamTable; changedParamsZ(Lcom/ptc/pfc/pfcSession/Session;Lcom/ptc/pfc/pfcModel/Model;[Lcom/ptc/jlinkdemo/common/ParameterHelper;Lcom/ptc/jlinkdemo/configdb/ConfigDBSearchListener;)VCodeLineNumberTableprocess()ZhaveParamsChanged fillContent()VprintMsg(Ljava/lang/String;)V access$000O(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)Lcom/ptc/jlinkdemo/common/ParamTable; Synthetic access$100F(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)Lcom/ptc/pfc/pfcModel/Model; access$200](Lcom/ptc/jlinkdemo/configdb/ParamDialog;)Lcom/ptc/jlinkdemo/configdb/ConfigDBSearchListener; access$300 access$402,(Lcom/ptc/jlinkdemo/configdb/ParamDialog;Z)Z access$500U(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)[Lcom/ptc/jlinkdemo/common/ParameterHelper; SourceFileParamDialog.java VW \] gh XY TU Z[javax/swing/JFrame ^fConfigurable Parameters ^ RS ef f>com/ptc/jlinkdemo/configdb/ParamDialog$ParamDialogEventHandler ^   f#com/ptc/jlinkdemo/common/ParamTable ^javax/swing/JScrollPane ^javax/swing/JButtonFind configuration in database ^h;com/ptc/jlinkdemo/configdb/ParamDialog$CmpTopButtonListener Find component part numbers8com/ptc/jlinkdemo/configdb/ParamDialog$SetButtonListenerClose;com/ptc/jlinkdemo/configdb/ParamDialog$CancelButtonListenerLoad...9com/ptc/jlinkdemo/configdb/ParamDialog$LoadButtonListenerSave...9com/ptc/jlinkdemo/configdb/ParamDialog$SaveButtonListenerUndo:com/ptc/jlinkdemo/configdb/ParamDialog$ResetButtonListener  java/awt/GridBagLayout java/awt/Dimension ^ java/awt/GridBagConstraintsjava/awt/Insets ^  javax/swing/JSeparator ^  ParamDialog g&com/ptc/jlinkdemo/configdb/ParamDialogjavax/swing/JDialog&(Ljava/awt/Frame;Ljava/lang/String;Z)Vjava/awt/Windowpack+(Lcom/ptc/jlinkdemo/configdb/ParamDialog;)VaddWindowListener"(Ljava/awt/event/WindowListener;)V!com/ptc/jlinkdemo/common/UIHelper centerWindow(Ljava/awt/Window;)Vjava/awt/Dialogshow2([Lcom/ptc/jlinkdemo/common/BaseParameterHelper;)V(Ljava/awt/Component;)Vjavax/swing/AbstractButtonaddActionListener"(Ljava/awt/event/ActionListener;)V getRootPane()Ljavax/swing/JRootPane;javax/swing/JRootPanegetContentPane()Ljava/awt/Container;java/awt/Container setLayout(Ljava/awt/LayoutManager;)V(II)Vjavax/swing/JComponentsetMinimumSize(Ljava/awt/Dimension;)VsetPreferredSize(IIII)VinsetsLjava/awt/Insets; gridwidthIweightxDweightyfillsetConstraints4(Ljava/awt/Component;Ljava/awt/GridBagConstraints;)Vadd*(Ljava/awt/Component;)Ljava/awt/Component;javax/swing/BoxcreateVerticalBox()Ljavax/swing/Box;createVerticalGlue()Ljava/awt/Component;(I)VcreateHorizontalBoxcreateHorizontalGlue&com/ptc/jlinkdemo/configdb/DebugOutput'(Ljava/lang/String;Ljava/lang/String;)V!HIRSTUVWXYZ[\] ^_`Z*Y  * ******+ *,*-** * *Y**aB+ !""'$,.1/60;1A3E4I6U8Y9bc`% **a =>dc`*aCef`*Y*Y*LYM,Y*YN-Y*Y :!Y*"Y#:$Y*%Y&:'Y*(Y):*Y*+*,:-: .Y/:   01Ydd231Y245Y6:  7Y89 : ; < = + > +?W : ;@:    >  ?W A?W ?W A?W ?W A?W ?W A?WBYC:  <   >  ?W ; = 7Y89D:  > ?WE?W,?WE?W-?WE?W?WE?Wa:HIK%L1M;NGORP_QjRwSTUVXYZ[]^`cde fghi&l,m2n7o@pHrQsYtbujvsw{x{|}~ gh`#F*Ga ij`*aklm`*akno`*akph`*akqr`*Zakst`*akuvK:'HJ$HL!HM*HNHOHPHQPK r.nj||+com/ptc/jlinkdemo/configdb/ParamDialog.java package com.ptc.jlinkdemo.configdb; import java.awt.Dimension; import java.awt.Container; import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import java.awt.Insets; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.*; import com.ptc.pfc.pfcSession.*; import com.ptc.pfc.pfcModel.*; import com.ptc.Platform; import com.ptc.jlinkdemo.common.*; public class ParamDialog extends JDialog { private Session proSession = null; private Model proModel = null; private ParameterHelper[] cfgParamHelpers = null; private ConfigDBSearchListener cfgSearchListener = null; private ParamTable cfgParamTable = null; private boolean changedParams = false; public ParamDialog (Session session, Model model, ParameterHelper[] paramHelpers, ConfigDBSearchListener searchListener) { super /* JDialog */ (new JFrame (), "Configurable Parameters", true); //super (null, "Configurable Parameters", true); proSession = session; proModel = model; cfgParamHelpers = paramHelpers; cfgSearchListener = searchListener; fillContent (); pack (); addWindowListener (new ParamDialogEventHandler ()); UIHelper.centerWindow (this); } public boolean process () { show (); return (changedParams); } public boolean haveParamsChanged () { return (changedParams); } private void fillContent () { cfgParamTable = new ParamTable (cfgParamHelpers); JScrollPane tablePane = new JScrollPane (cfgParamTable); JButton btnCmpTop = new JButton ("Find configuration in database"); btnCmpTop.addActionListener (new CmpTopButtonListener ()); JButton btnSet = new JButton ("Find component part numbers"); btnSet.addActionListener (new SetButtonListener ()); JButton btnCancel = new JButton ("Close"); btnCancel.addActionListener (new CancelButtonListener ()); JButton btnLoad = new JButton ("Load..."); btnLoad.addActionListener (new LoadButtonListener ()); JButton btnSave = new JButton ("Save..."); btnSave.addActionListener (new SaveButtonListener ()); JButton btnReset = new JButton ("Undo"); btnReset.addActionListener (new ResetButtonListener ()); JRootPane root = getRootPane (); Container contentPane = root.getContentPane (); GridBagLayout layout = new GridBagLayout (); contentPane.setLayout (layout); root.setMinimumSize (new Dimension (100, 100)); root.setPreferredSize (new Dimension (500, 400)); GridBagConstraints constr = new GridBagConstraints (); // Table constr.insets = new Insets (5, 5, 0, 5); constr.gridwidth = 1; constr.weightx = 1; constr.weighty = 1; constr.fill = GridBagConstraints.BOTH; layout.setConstraints (tablePane, constr); contentPane.add (tablePane); // Load/Save buttons constr.gridwidth = GridBagConstraints.REMAINDER; constr.weightx = 0; Box loadSaveBox = Box.createVerticalBox (); layout.setConstraints (loadSaveBox, constr); contentPane.add (loadSaveBox); loadSaveBox.add (Box.createVerticalGlue ()); loadSaveBox.add (btnLoad); loadSaveBox.add (Box.createVerticalGlue ()); loadSaveBox.add (btnSave); loadSaveBox.add (Box.createVerticalGlue ()); loadSaveBox.add (btnReset); loadSaveBox.add (Box.createVerticalGlue ()); // Separator JSeparator separator = new JSeparator (SwingConstants.HORIZONTAL); constr.weighty = 0; layout.setConstraints (separator, constr); contentPane.add (separator); // Set/Reset/Cancel buttons constr.weightx = 1; constr.fill = GridBagConstraints.HORIZONTAL; constr.insets = new Insets (5, 5, 5, 5); Box setResetBox = Box.createHorizontalBox (); layout.setConstraints (setResetBox, constr); contentPane.add (setResetBox); setResetBox.add (Box.createHorizontalGlue ()); setResetBox.add (btnCmpTop); setResetBox.add (Box.createHorizontalGlue ()); setResetBox.add (btnSet); setResetBox.add (Box.createHorizontalGlue ()); setResetBox.add (btnCancel); setResetBox.add (Box.createHorizontalGlue ()); } class ParamDialogEventHandler extends WindowAdapter { public void windowOpened (WindowEvent e) { if (Platform.getOSAPI () == Platform.OSAPI_WIN32) toFront (); } public void windowClosed (WindowEvent e) { setVisible (false); } } class CmpTopButtonListener implements ActionListener { public void actionPerformed (ActionEvent e) { cfgParamTable.commitNewValues (); ResultEntry result = cfgSearchListener.compareModelItselfWithDB (proModel, false); if (result != null) { JOptionPane.showMessageDialog (ParamDialog.this, "Configuration found: " + result.getModel () + "/" + result.getConfiguration (), "Config DB", JOptionPane.INFORMATION_MESSAGE); } else { JOptionPane.showMessageDialog (ParamDialog.this, "Configuration not found in DB", "Config DB", JOptionPane.ERROR_MESSAGE); } } } class SetButtonListener implements ActionListener { public void actionPerformed (ActionEvent e) { printMsg ("SetButtonListener.actionPerformed"); cfgParamTable.commitNewValues (); changedParams = true; setVisible (false); } } class ResetButtonListener implements ActionListener { public void actionPerformed (ActionEvent e) { cfgParamTable.resetNewValues (); } } class CancelButtonListener implements ActionListener { public void actionPerformed (ActionEvent e) { setVisible (false); } } class LoadButtonListener implements ActionListener { public void actionPerformed (ActionEvent e) { UIHelper.loadParamsFromFile (ParamDialog.this, cfgParamHelpers); cfgParamTable.resetNewValues (); } } class SaveButtonListener implements ActionListener { public void actionPerformed (ActionEvent e) { UIHelper.saveParamsToFile (ParamDialog.this, cfgParamHelpers); } } private static void printMsg (String msg) { DebugOutput.printMsg ("ParamDialog", msg); } } PK r.ge4com/ptc/jlinkdemo/configdb/pfcParameterExamples.javaimport com.ptc.pfc.pfcModelItem.*; import com.ptc.cipjava.jxthrowable; import com.ptc.pfcu.pfcuParamValue; // utility method - create param // value from String import java.util.*; //contains Properties and Enumeration classes import java.io.*; // needed for read from file public class pfcParameterExamples { //** createParametersFromProperties () demonstrates how Java can read in *system-dependent stored information using a "properties" file. Note that the *ParameterOwner argument could refer to a model, a feature, a surface, or an *edge.**/ public static void createParametersFromProperties (ParameterOwner p_owner) throws com.ptc.cipjava.jxthrowable { String prop_value; String propsfile = "params.properties"; ParamValue pv; Parameter p; Properties props = new Properties (); //empty properties object try { props.load (new BufferedInputStream( new FileInputStream (propsfile))); } catch (IOException e) { System.out.println ("File: "+propsfile+ "cannot be opened."); System.out.println ("Cannot load parameters."); return; } Enumeration e = props.propertyNames (); /* Enumeration allows you to loop through all properties without determining how many there are*/ for (String prop_name = (String)e.nextElement(); e.hasMoreElements(); prop_name = (String)e.nextElement()) { prop_value = props.getProperty(prop_name); pv = pfcuParamValue.createParamValueFromString(prop_value); p = p_owner.GetParam(prop_name); if (p == null) // GetParam returns null if it can't find the param. { p_owner.CreateParam (prop_name, pv); } else { p.SetValue (pv); } } } } PK r.߾p/com/ptc/jlinkdemo/configdb/pfcuParamValue.class-F    !" #$ #% &' ()* +,- ./0()VCodeLineNumberTablecreateParamValueFromString9(Ljava/lang/String;)Lcom/ptc/pfc/pfcModelItem/ParamValue; Exceptions1 SourceFilepfcuParamValue.java 2 34 567 89java/lang/NumberFormatException: 3; <= >?Y@ ABtrue CDNfalse Ecom/ptc/pfcu/pfcuParamValuejava/lang/Objectcom/ptc/cipjava/jxthrowablejava/lang/IntegervalueOf'(Ljava/lang/String;)Ljava/lang/Integer;intValue()I%com/ptc/pfc/pfcModelItem/pfcModelItemCreateIntParamValue((I)Lcom/ptc/pfc/pfcModelItem/ParamValue;java/lang/Double&(Ljava/lang/String;)Ljava/lang/Double; doubleValue()DCreateDoubleParamValue((D)Lcom/ptc/pfc/pfcModelItem/ParamValue;java/lang/StringequalsIgnoreCase(Ljava/lang/String;)ZCreateBoolParamValue((Z)Lcom/ptc/pfc/pfcModelItem/ParamValue;CreateStringParamValue!* O*<L*I(M* *  * *  * *  #.%3'E)J-PK r.ӫ.com/ptc/jlinkdemo/configdb/pfcuParamValue.javapackage com.ptc.pfcu; import com.ptc.pfc.pfcModelItem.ParamValue; import com.ptc.pfc.pfcModelItem.pfcModelItem; public class pfcuParamValue { /** * Parses a string into a ParamValue object. Useful for reading * ParamValues from file or from UI TextComponent entry. This method * checks if the value is a proper integer, double, or boolean, and if * so, returns a value of that type. If the value is not a number or boolean, * the method returns a String ParamValue; */ public static ParamValue createParamValueFromString(String s) throws com.ptc.cipjava.jxthrowable { try { int i = Integer.valueOf (s).intValue(); return pfcModelItem.CreateIntParamValue(i); } catch (NumberFormatException e) { //string is not an int, try double try { double d = Double.valueOf (s).doubleValue(); return pfcModelItem.CreateDoubleParamValue(d); } catch (NumberFormatException e2) { //string is not int/double, check if Boolean if (s.equalsIgnoreCase("Y") || s.equalsIgnoreCase ("true")) { return pfcModelItem.CreateBoolParamValue (true); } else if (s.equalsIgnoreCase("N") || s.equalsIgnoreCase ("false")) { return pfcModelItem.CreateBoolParamValue (false); } else { return pfcModelItem.CreateStringParamValue(s); } } } } } PK Fl.G>com/ptc/jlinkdemo/configdb/ResultDialog$OKButtonListener.class-!   this$0)Lcom/ptc/jlinkdemo/configdb/ResultDialog; Synthetic,(Lcom/ptc/jlinkdemo/configdb/ResultDialog;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileResultDialog.java    8com/ptc/jlinkdemo/configdb/ResultDialog$OKButtonListenerOKButtonListener InnerClassesjava/lang/Objectjava/awt/event/ActionListener()Vjava/awt/Component setVisible(Z)V'com/ptc/jlinkdemo/configdb/ResultDialog    " **+ U % * YZ PK Fl.}eFcom/ptc/jlinkdemo/configdb/ResultDialog$ResultDialogEventHandler.class-   this$0)Lcom/ptc/jlinkdemo/configdb/ResultDialog; Synthetic,(Lcom/ptc/jlinkdemo/configdb/ResultDialog;)VCodeLineNumberTable windowClosed(Ljava/awt/event/WindowEvent;)V SourceFileResultDialog.java   @com/ptc/jlinkdemo/configdb/ResultDialog$ResultDialogEventHandlerResultDialogEventHandler InnerClassesjava/awt/event/WindowAdapter()Vjava/awt/Component setVisible(Z)V'com/ptc/jlinkdemo/configdb/ResultDialog   " **+ M  % * QR PK Fl. ? <@ AB CDE FG HIJ KL ? MN (OP 8 QRS 8 T U VW X Y QZ [ \ ] ^_`OKButtonListener InnerClassesResultDialogEventHandler tableModel-Lcom/ptc/jlinkdemo/configdb/ResultTableModel;B(Lcom/ptc/jlinkdemo/configdb/ResultTableModel;Ljava/lang/String;)VCodeLineNumberTableprocess()V fillContent SourceFileResultDialog.javajavax/swing/JFrame .3 .a ,- 43b c3@com/ptc/jlinkdemo/configdb/ResultDialog$ResultDialogEventHandler .d efg hij k3javax/swing/JTable .ljavax/swing/JScrollPane .mjavax/swing/JButtonOK .n8com/ptc/jlinkdemo/configdb/ResultDialog$OKButtonListenero pq rsjava/awt/GridBagLayoutt uvjava/awt/GridBagConstraints wx yz {zjava/awt/Insets .| }~  x x x'com/ptc/jlinkdemo/configdb/ResultDialogjavax/swing/JDialog&(Ljava/awt/Frame;Ljava/lang/String;Z)Vjava/awt/Windowpack,(Lcom/ptc/jlinkdemo/configdb/ResultDialog;)VaddWindowListener"(Ljava/awt/event/WindowListener;)V!com/ptc/jlinkdemo/common/UIHelper centerWindow(Ljava/awt/Window;)Vjava/awt/Dialogshow!(Ljavax/swing/table/TableModel;)V(Ljava/awt/Component;)V(Ljava/lang/String;)Vjavax/swing/AbstractButtonaddActionListener"(Ljava/awt/event/ActionListener;)VgetContentPane()Ljava/awt/Container;java/awt/Container setLayout(Ljava/awt/LayoutManager;)VfillIweightxDweighty(IIII)VinsetsLjava/awt/Insets;add*(Ljava/awt/Component;)Ljava/awt/Component;setConstraints4(Ljava/awt/Component;Ljava/awt/GridBagConstraints;)Vgridxgridyanchor!'(,-./0d0*Y,**+***Y* * 1" !"$+&/'230!* 1 +,430  Y* LY+MYN-Y**:Y:Y:Y !,"W,#$% &-"W-#1^0 134+617:8A:J<P=V>\?l@sA{CDEFGHIJK56*')'+PK r.òi,com/ptc/jlinkdemo/configdb/ResultDialog.java package com.ptc.jlinkdemo.configdb; import java.awt.Container; import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import java.awt.Insets; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.*; import com.ptc.jlinkdemo.common.*; public class ResultDialog extends JDialog { private ResultTableModel tableModel = null; public ResultDialog (ResultTableModel in_tableModel, String title) { //super (null, title, true); super /* JDialog */ (new JFrame (), title, true); tableModel = in_tableModel; fillContent (); pack (); addWindowListener (new ResultDialogEventHandler ()); UIHelper.centerWindow (this); } public void process () { show (); } private void fillContent () { JTable table = new JTable (tableModel); JScrollPane tablePane = new JScrollPane (table); JButton btnOK = new JButton ("OK"); btnOK.addActionListener (new OKButtonListener ()); Container contentPane = getContentPane (); GridBagLayout layout = new GridBagLayout (); contentPane.setLayout (layout); GridBagConstraints constr = new GridBagConstraints (); constr.fill = GridBagConstraints.BOTH; constr.weightx = 1; constr.weighty = 1; constr.insets = new Insets (5, 5, 5, 5); contentPane.add (tablePane); layout.setConstraints (tablePane, constr); constr.gridx = 0; constr.gridy = 1; constr.weightx = 1; constr.weighty = 0; constr.fill = GridBagConstraints.VERTICAL; constr.anchor = GridBagConstraints.CENTER; contentPane.add (btnOK); layout.setConstraints (btnOK, constr); } class ResultDialogEventHandler extends WindowAdapter { public void windowClosed (WindowEvent e) { setVisible (false); } } class OKButtonListener implements ActionListener { public void actionPerformed (ActionEvent e) { setVisible (false); } } } PK Fl.dd,com/ptc/jlinkdemo/configdb/ResultEntry.class-'      !"#modelLjava/lang/String; configuration subEntriesLjava/util/Vector;'(Ljava/lang/String;Ljava/lang/String;)VCodeLineNumberTablegetModel()Ljava/lang/String;getConfiguration getSubEntries()Ljava/util/Vector; addSubEntry+(Lcom/ptc/jlinkdemo/configdb/ResultEntry;)V SourceFileResultEntry.java $ java/util/Vector %&&com/ptc/jlinkdemo/configdb/ResultEntryjava/lang/Object()V addElement(Ljava/lang/Object;)V     ])*****+*,*Y" (***$% *+ )*PK r.-ll+com/ptc/jlinkdemo/configdb/ResultEntry.java package com.ptc.jlinkdemo.configdb; import java.util.Vector; class ResultEntry { private String model = null; private String configuration = null; private Vector subEntries = null; public ResultEntry (String in_model, String in_configuration) { model = in_model; configuration = in_configuration; subEntries = new Vector (); } public String getModel () { return (model); } public String getConfiguration () { return (configuration); } public Vector getSubEntries () { return (subEntries); } public void addSubEntry (ResultEntry entry) { subEntries.addElement (entry); } } PK Fl.X%1com/ptc/jlinkdemo/configdb/ResultTableModel.class-M *+,- ./ 0 1 234 56 7 89 8:; < =>?entriesLjava/util/Vector;class$java$lang$StringLjava/lang/Class; Synthetic(Ljava/util/Vector;)VCodeLineNumberTablegetColumnCount()I getColumnName(I)Ljava/lang/String;getColumnClass(I)Ljava/lang/Class; getRowCount getValueAt(II)Ljava/lang/Object;class$%(Ljava/lang/String;)Ljava/lang/Class; SourceFileResultTableModel.java@ A' java/lang/ClassNotFoundExceptionjava/lang/NoClassDefFoundErrorB CD E F  In SessionDB Model java.lang.String &'G H IJ&com/ptc/jlinkdemo/configdb/ResultEntry KD LD+com/ptc/jlinkdemo/configdb/ResultTableModel$javax/swing/table/AbstractTableModeljava/lang/ClassforNamejava/lang/Throwable getMessage()Ljava/lang/String;(Ljava/lang/String;)V()Vjava/util/Vectorsize elementAt(I)Ljava/lang/Object;getModelgetConfiguration!3***+ "& *  +,.!".  Y  3# * 8$%>*N--= >?A&'2*LY+()PK r.0com/ptc/jlinkdemo/configdb/ResultTableModel.java package com.ptc.jlinkdemo.configdb; import java.util.Vector; //import java.util.Hashtable; import javax.swing.table.*; import javax.swing.event.*; public class ResultTableModel extends AbstractTableModel { private Vector entries = null; public ResultTableModel (Vector in_entries) { entries = in_entries; /* entries = new Vector (); Hashtable map = new Hashtable (); int nEntries = in_entries.size (); for (int iE = 0; iE < nEntries; iE++) { ResultEntry entry = (ResultEntry) in_entries.elementAt (iE); String modelName = entry.getModel (); if (map.put (modelName, entry) == null) entries.addElement (entry); } */ } public int getColumnCount () { return (2); } public String getColumnName (int col) { if (col == 0) return ("In Session"); else return ("DB Model"); } public Class getColumnClass (int col) { return (String.class); } public int getRowCount () { return (entries.size ()); } public Object getValueAt (int row, int col) { ResultEntry entry = (ResultEntry) entries.elementAt (row); if (col == 0) return (entry.getModel ()); else return (entry.getConfiguration ()); } } PK Fl.Nb\\6com/ptc/jlinkdemo/configdb/TestDBBoolParamOption.class-   (Ljava/lang/String;)VCodeLineNumberTablegetType()I SourceFileTestDBInterface.java 0com/ptc/jlinkdemo/configdb/TestDBBoolParamOption0com/ptc/jlinkdemo/configdb/TestDBParameterOption "*+ _` d  PK Fl.p446com/ptc/jlinkdemo/configdb/TestDBComponentOption.class-.    ! " #$% &'(compIdI(I)VCodeLineNumberTablegetType()IgetName()Ljava/lang/String;getTitlegetId()Ljava/lang/Object; SourceFileTestDBInterface.java ) java/lang/StringBufferc_ *+ *, - Componentjava/lang/Integer 0com/ptc/jlinkdemo/configdb/TestDBComponentOption'com/ptc/jlinkdemo/configdb/TestDBOption()Vappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString 3*** /Y* $ Y* PK Fl.r4\  4com/ptc/jlinkdemo/configdb/TestDBConfiguration.class- %B $CD E $F G H IJ KLM NO P QR S TU VW IXY B $Z [\ ] ^_ ^`a ^bcd e f gh ijklnameLjava/lang/String;valuesLjava/util/Vector;(Ljava/lang/String;I)VCodeLineNumberTablereadData0(Ljava/util/StringTokenizer;Ljava/util/Vector;)V writeData(Ljava/io/PrintWriter;)VgetName()Ljava/lang/String;getValueByIndex(I)Ljava/lang/Object; ExceptionssetValue(ILjava/lang/Object;)V addOption()V removeOption(I)VtoStringprintMsg(Ljava/lang/String;)V SourceFileTestDBInterface.java *: &'java/util/Vector *< () mn opq r3 s5'com/ptc/jlinkdemo/configdb/TestDBOption*t uv wpx yz {|} y~ y java/lang/StringBuffer 23  =3 ? n ?$com/ptc/jlinkdemo/configdb/XDataBase$Invalid configuration value index - *? <TestDBConfiguration >.com/ptc/jlinkdemo/configdb/TestDBConfigurationjava/lang/Object addElement(Ljava/lang/Object;)Vsize()Ijava/util/StringTokenizer nextToken elementAtjava/lang/Stringequals(Ljava/lang/Object;)ZgetTypejava/lang/DoublevalueOf&(Ljava/lang/String;)Ljava/lang/Double; setElementAt(Ljava/lang/Object;I)Vjava/lang/Boolean'(Ljava/lang/String;)Ljava/lang/Boolean;java/lang/Integer'(Ljava/lang/String;)Ljava/lang/Integer; hasMoreTokens()Zappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/io/PrintWriterprintprintln(I)Ljava/lang/StringBuffer;removeElementAt&com/ptc/jlinkdemo/configdb/DebugOutput'(Ljava/lang/String;Ljava/lang/String;)V $%&'() *+,[+**+*Y>*- "* ./,,>6+:, : | q3DU3fUUDf*0***+ \-N  &),dr u$%*+/3501,a+Y**=>1* : +  +d ++-2 9;"<'>1?6@?BECLDR<ZG`H23,*-L45,O/*YY * -Q R&T678,T0*YY *,-Y Z&\/]69:,% *- ab6;<,S/*YY *!-f g&i.j6=3,*-n >?,#"*#- st@APK Fl.ZW%226com/ptc/jlinkdemo/configdb/TestDBDimensionOption.class-.    ! " #$% &'(dimIdI(I)VCodeLineNumberTablegetType()IgetName()Ljava/lang/String;getTitlegetId()Ljava/lang/Object; SourceFileTestDBInterface.java ) java/lang/StringBufferd_ *+ *, - Dimensionjava/lang/Integer 0com/ptc/jlinkdemo/configdb/TestDBDimensionOption'com/ptc/jlinkdemo/configdb/TestDBOption()Vappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString 3***'$ ()-/Y*2 7$ Y* <PK Fl. t!^^8com/ptc/jlinkdemo/configdb/TestDBDoubleParamOption.class-   (Ljava/lang/String;)VCodeLineNumberTablegetType()I SourceFileTestDBInterface.java 2com/ptc/jlinkdemo/configdb/TestDBDoubleParamOption0com/ptc/jlinkdemo/configdb/TestDBParameterOption "*+ {|   PK Fl.i004com/ptc/jlinkdemo/configdb/TestDBFeatureOption.class-.    ! " #$% &'(featIdI(I)VCodeLineNumberTablegetType()IgetName()Ljava/lang/String;getTitlegetId()Ljava/lang/Object; SourceFileTestDBInterface.java ) java/lang/StringBufferf_ *+ *, -Featurejava/lang/Integer .com/ptc/jlinkdemo/configdb/TestDBFeatureOption'com/ptc/jlinkdemo/configdb/TestDBOption()Vappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString 3*** /Y* $ Y* PK Fl.;@F?F?0com/ptc/jlinkdemo/configdb/TestDBInterface.class-7 a `  ` `            `   S  &  ) + - / 1 3 5 7  9 9    D   D  D  D  dbTablesLjava/util/Vector;()VCodeLineNumberTableconnectionOpenconnectionClosereadData writeDatacreateOrGetTable&(Ljava/lang/String;)Ljava/lang/Object; Exceptions deleteTable(Ljava/lang/Object;)VhasTable(Ljava/lang/String;)Z getTableIndex(Ljava/lang/String;)I getTableCount()IgetTableByIndex(I)Ljava/lang/Object; getTableName&(Ljava/lang/Object;)Ljava/lang/String; addDimension'(Ljava/lang/Object;I)Ljava/lang/Object; addBoolParam8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; addIntParamaddDoubleParamaddStringParamaddNoteIdParamaddLayer addFeature addComponent removeOption'(Ljava/lang/Object;Ljava/lang/Object;)V getOptionType'(Ljava/lang/Object;Ljava/lang/Object;)I getOptionId8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;getOptionCount(Ljava/lang/Object;)IgetOptionByIndexgetConfigurationgetDimensionValueJ(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Double;getBoolParamValueK(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean;getIntParamValueK(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Integer;getDoubleParamValuegetStringParamValueJ(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;getNoteIdParamValue getLayerValuegetFeatureValuegetComponentValuegetConfigurationCountgetConfigurationByIndexgetConfigurationName8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;printMsg(Ljava/lang/String;)VaddConfigurationsetDimensionValueK(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Double;)VsetBoolParamValueL(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Boolean;)VsetIntParamValueL(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Integer;)VsetDoubleParamValuesetStringParamValueK(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;)VsetNoteIdParamValue setLayerValuesetFeatureValuesetComponentValue SourceFileTestDBInterface.java ef cdjava/util/Vector kf lf java/io/FileDB e   &com/ptc/jlinkdemo/configdb/TestDBTablejava/lang/StringBufferDB/    k$com/ptc/jlinkdemo/configdb/XDataBase java/io/IOException q   w y  l tuInvalid table handle -   Table does not exist - sInvalid table index -  0com/ptc/jlinkdemo/configdb/TestDBDimensionOption e !"0com/ptc/jlinkdemo/configdb/TestDBBoolParamOption/com/ptc/jlinkdemo/configdb/TestDBIntParamOption2com/ptc/jlinkdemo/configdb/TestDBDoubleParamOption2com/ptc/jlinkdemo/configdb/TestDBStringParamOption2com/ptc/jlinkdemo/configdb/TestDBNoteIdParamOption,com/ptc/jlinkdemo/configdb/TestDBLayerOption.com/ptc/jlinkdemo/configdb/TestDBFeatureOption0com/ptc/jlinkdemo/configdb/TestDBComponentOption'com/ptc/jlinkdemo/configdb/TestDBOptionInvalid option handle - # $%Option  is not in the table &w '( w ) *.com/ptc/jlinkdemo/configdb/TestDBConfigurationInvalid configuration handle - +, does not exist in table -.Configuration Option is not a dimension - /yjava/lang/Double$Option is not a boolean parameter - java/lang/Boolean%Option is not an integer parameter - java/lang/Integer#Option is not a double parameter - #Option is not a string parameter - java/lang/String!Option is not a note parameter - Option is not a layer - Option is not a feature - Option is not a component - w 0TestDBInterface1 2 e3 4 56*com/ptc/jlinkdemo/configdb/TestDBInterfacejava/lang/Object&com/ptc/jlinkdemo/configdb/DBInterfacelist()[Ljava/lang/String;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;!com/ptc/jlinkdemo/common/UIHelper showException(Ljava/lang/Throwable;)V addElementdelete()Zmkdirsize elementAtgetName,(Ljava/lang/Object;)Ljava/lang/StringBuffer; removeElement(Ljava/lang/Object;)ZequalsIgnoreCase(I)Ljava/lang/StringBuffer;(I)V addOptionT(Lcom/ptc/jlinkdemo/configdb/TestDBOption;)Lcom/ptc/jlinkdemo/configdb/TestDBOption;,(Lcom/ptc/jlinkdemo/configdb/TestDBOption;)VcontainsOption,(Lcom/ptc/jlinkdemo/configdb/TestDBOption;)ZgetTypegetId()Ljava/lang/Object;,(I)Lcom/ptc/jlinkdemo/configdb/TestDBOption;D(Ljava/lang/String;)Lcom/ptc/jlinkdemo/configdb/TestDBConfiguration;getOptionIndex,(Lcom/ptc/jlinkdemo/configdb/TestDBOption;)IcontainsConfiguration3(Lcom/ptc/jlinkdemo/configdb/TestDBConfiguration;)ZgetValueByIndex3(I)Lcom/ptc/jlinkdemo/configdb/TestDBConfiguration;&com/ptc/jlinkdemo/configdb/DebugOutput'(Ljava/lang/String;Ljava/lang/String;)V(Ljava/lang/String;I)VD(Lcom/ptc/jlinkdemo/configdb/TestDBConfiguration;)Ljava/lang/Object;setValue(ILjava/lang/Object;)V!`abcd2efg9***Yh ifg!*h jfg!*h kfgjY L+ M,>6N Y,2 : Y,2:: *%@C%@Mh6  %CJMTW`ilfg Y L+ M,>6+Y Y,2 :W+W+W*66:* : Y :űmhB 7=FKPY_mmng[+*+=N*N Y+ N*--h !)opqgqI+ Y Y+ *+!Y Y"+ h"-H orsg&*+h otugZ.*=>+* #h "$,vwg *hoxygO/*Y Y$% *h$ %&'oz{gJ*+ Y Y+ + h,-"/o|}g`8+ Y Y+ + N&Y':-(h89";'<1=o~g`8+ Y Y+ + N)Y,*:-(hCD"F'G1Hog`8+ Y Y+ + N+Y,,:-(hNO"Q'R1Sog`8+ Y Y+ + N-Y,.:-(hYZ"\']1^og`8+ Y Y+ + N/Y,0:-(hde"g'h1iog`8+ Y Y+ + N1Y,2:-(hop"r's1tog`8+ Y Y+ + N3Y,4:-(hz{"}'~1o}g`8+ Y Y+ + N5Y6:-(h"'1o}g`8+ Y Y+ + N7Y8:-(h"'1ogV+ Y Y+ + N,9Y Y:, ,9:-;h""'.IOUog+ Y Y+ + N,9Y Y:, ,9:-<(Y Y=>- ?h& "'.IOX}og+ Y Y+ + N,9Y Y:, ,9:-<(Y Y=>- @h& "'.IOX}ogP,+ Y Y+ + M,Ah"'o}gQ-+ Y Y+ + N-Bh"'ogQ-+ Y Y+ + N-,Ch"'ogc + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YJ KLhF"(/JPWrx ogd + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YM KNhF"(/JPWrx "#&'*ogd + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YO KPhF12"3(5/6J7P9W:r<x>?@BCFGJogd + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YQ KLhFQR"S(U/VJWPYWZr\x^_`bcfgjogd + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YR KShFqr"s(u/vJwPyWzr|x~ogd + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YT KPhF"(/JPWrxoge + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YU KPhF"(/JPWrxoge + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YV KNhF"(/JPWrxoge + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YW KShF"(/JPWrx ogP,+ Y Y+ + M,Xh"'o}gQ-+ Y Y+ + N-Yh" '"og+ Y Y+ + N,DY YE, ,D:-H(Y YI>- Zh& )*"+'-..I0O2X3}6o g#[*\h ;<gd<+ Y Y+ + NDY,-A]:-^hEF"G'I5Kogf  + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YJ _hJST"U(W/XJYP[W\r^x`abdehil mogg  + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YM _hJtu"v(x/yJzP|W}rx ogg  + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YO _hJ"(/JPWrx ogg  + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YQ _hJ"(/JPWrx ogg  + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YR _hJ"(/JPWrx ogg  + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YT _hJ"(/JPWrx    ogh  + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YU _hJ"(/JP!W"r$x&'(*+./2 3ogh  + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YV _hJ:;"<(>/?J@PBWCrExGHIKLOPS Togh  + Y Y+ + :-9Y Y:- -9:,DY YE- ,D:F6)Y Y=G H)Y YIG ?Y YW _hJ[\"](_/`JaPcWdrfxhijlmpqt uoPK r.s:^ݹݹ/com/ptc/jlinkdemo/configdb/TestDBInterface.java package com.ptc.jlinkdemo.configdb; import java.util.*; import java.io.*; import com.ptc.jlinkdemo.common.UIHelper; // Note: All the methods throw exceptions if some DB problem occured //***************************************************************************** abstract class TestDBOption { public abstract String getName (); public abstract String getTitle (); public abstract Object getId (); public abstract int getType (); public String toString () { return (getTitle () + getId ()); } } //***************************************************************************** class TestDBDimensionOption extends TestDBOption { private int dimId = -1; public TestDBDimensionOption (int in_dimId) { dimId = in_dimId; } public int getType () { return (DBInterface.optionDimension); } public String getName () { return ("d_" + dimId); } public String getTitle () { return ("Dimension"); } public Object getId () { return (new Integer (dimId)); } } //***************************************************************************** abstract class TestDBParameterOption extends TestDBOption { private String paramName = ""; public TestDBParameterOption (String in_paramName) { paramName = in_paramName; } public String getName () { return ("p_" + paramName); } public String getTitle () { return ("Parameter"); } public Object getId () { return (paramName); } } //***************************************************************************** class TestDBBoolParamOption extends TestDBParameterOption { public TestDBBoolParamOption (String in_paramName) { super (in_paramName); } public int getType () { return (DBInterface.optionBoolParam); } } //***************************************************************************** class TestDBIntParamOption extends TestDBParameterOption { public TestDBIntParamOption (String in_paramName) { super (in_paramName); } public int getType () { return (DBInterface.optionIntParam); } } //***************************************************************************** class TestDBDoubleParamOption extends TestDBParameterOption { public TestDBDoubleParamOption (String in_paramName) { super (in_paramName); } public int getType () { return (DBInterface.optionDoubleParam); } } //***************************************************************************** class TestDBStringParamOption extends TestDBParameterOption { public TestDBStringParamOption (String in_paramName) { super (in_paramName); } public int getType () { return (DBInterface.optionStringParam); } } //***************************************************************************** class TestDBNoteIdParamOption extends TestDBParameterOption { public TestDBNoteIdParamOption (String in_paramName) { super (in_paramName); } public int getType () { return (DBInterface.optionNoteIdParam); } } //***************************************************************************** class TestDBLayerOption extends TestDBOption { private String layerName = ""; public TestDBLayerOption (String in_layerName) { layerName = in_layerName; } public int getType () { return (DBInterface.optionLayer); } public String getName () { return ("l_" + layerName); } public String getTitle () { return ("Layer"); } public Object getId () { return (layerName); } } //***************************************************************************** class TestDBFeatureOption extends TestDBOption { private int featId = -1; public TestDBFeatureOption (int in_featId) { featId = in_featId; } public int getType () { return (DBInterface.optionFeature); } public String getName () { return ("f_" + featId); } public String getTitle () { return ("Feature"); } public Object getId () { return (new Integer (featId)); } } //***************************************************************************** class TestDBComponentOption extends TestDBOption { private int compId = -1; public TestDBComponentOption (int in_compId) { compId = in_compId; } public int getType () { return (DBInterface.optionComponent); } public String getName () { return ("c_" + compId); } public String getTitle () { return ("Component"); } public Object getId () { return (new Integer (compId)); } } //***************************************************************************** class TestDBConfiguration { private String name; private Vector values; public TestDBConfiguration (String in_name, int in_size) { name = in_name; values = new Vector (in_size); for (int iE = 0; iE < in_size; iE++) values.addElement (null); } public void readData (StringTokenizer tokens, Vector options) { int optionCount = options.size (); int iO = 0; while (tokens.hasMoreTokens () && iO < optionCount) { String token = tokens.nextToken (); TestDBOption option = (TestDBOption) options.elementAt (iO); if (token.equals ("*")) { iO++; continue; } switch (option.getType ()) { case DBInterface.optionDimension: case DBInterface.optionDoubleParam: values.setElementAt (Double.valueOf (token), iO); break; case DBInterface.optionBoolParam: case DBInterface.optionFeature: values.setElementAt (Boolean.valueOf (token), iO); break; case DBInterface.optionIntParam: case DBInterface.optionNoteIdParam: case DBInterface.optionLayer: values.setElementAt (Integer.valueOf (token), iO); break; case DBInterface.optionStringParam: case DBInterface.optionComponent: values.setElementAt (token, iO); break; } iO++; } } public void writeData (PrintWriter output) { output.print (getName () + "\t"); int valueCount = values.size (); for (int iV = 0; iV < valueCount; iV++) { Object value = values.elementAt (iV); if (value == null) output.print ("*"); else output.print (value); if (iV < valueCount - 1) output.print ("\t"); } output.println (""); } public String getName () { return (name); } public Object getValueByIndex (int index) throws XDataBase { if (index >= values.size ()) throw (new XDataBase ("Invalid configuration value index - " + index)); return (values.elementAt (index)); } public void setValue (int index, Object value) throws XDataBase { if (index >= values.size ()) throw (new XDataBase ("Invalid configuration value index - " + index)); values.setElementAt (value, index); } public void addOption () throws XDataBase { values.addElement (null); } public void removeOption (int index) throws XDataBase { if (index >= values.size ()) throw (new XDataBase ("Invalid configuration value index - " + index)); values.removeElementAt (index); } public String toString () { return (getName ()); } private static void printMsg (String msg) { DebugOutput.printMsg ("TestDBConfiguration", msg); } }; //***************************************************************************** class TestDBTable { private String tableName = ""; private Vector tableOptions = null; private Vector tableConfigurations = null; public TestDBTable (String objName) { tableName = objName; tableOptions = new Vector (); tableConfigurations = new Vector (); } public void readData (String filePath) throws XDataBase, IOException { BufferedReader input = new BufferedReader ( new FileReader (filePath)); String line = null; for (line = input.readLine (); line != null; line = input.readLine ()) { if (line.length () != 0) break; } StringTokenizer tokens = new StringTokenizer (line); boolean isOK = true; while (tokens.hasMoreTokens ()) { String token = tokens.nextToken (); TestDBOption option = null; if (token.startsWith ("d_")) option = new TestDBDimensionOption (Integer.valueOf ( token.substring (2)). intValue ()); else if (token.startsWith ("pb_")) option = new TestDBBoolParamOption (token.substring (3)); else if (token.startsWith ("pi_")) option = new TestDBIntParamOption (token.substring (3)); else if (token.startsWith ("pd_")) option = new TestDBDoubleParamOption (token.substring (3)); else if (token.startsWith ("ps_")) option = new TestDBStringParamOption (token.substring (3)); else if (token.startsWith ("pn_")) option = new TestDBNoteIdParamOption (token.substring (3)); else if (token.startsWith ("l_")) option = new TestDBLayerOption (token.substring (2)); else if (token.startsWith ("f_")) option = new TestDBFeatureOption (Integer.valueOf ( token.substring (2)). intValue ()); else if (token.startsWith ("c_")) option = new TestDBComponentOption (Integer.valueOf ( token.substring (2)). intValue ()); else isOK = false; if (!isOK) break; try { addOption (option); } catch (XDataBase x) { isOK = false; break; } } if (!isOK) throw (new XDataBase ("Invalid table data - " + this)); int optionCount = tableOptions.size (); for (line = input.readLine (); line != null; line = input.readLine ()) { if (line.length () == 0) continue; tokens = new StringTokenizer (line); if (!tokens.hasMoreTokens ()) { isOK = false; break; } String name = tokens.nextToken (); TestDBConfiguration config = new TestDBConfiguration ( name, optionCount); config.readData (tokens, tableOptions); try { addConfiguration (config); } catch (XDataBase x) { UIHelper.showException (x); continue; } } if (!isOK) throw (new XDataBase ("Invalid table data - " + this)); input.close (); } public void writeData (String filePath) throws IOException { int optionCount = tableOptions.size (); /* if (optionCount == 0) return; */ PrintWriter output = new PrintWriter ( new FileOutputStream (filePath)); output.print ("\t"); for (int iO = 0; iO < optionCount; iO++) { TestDBOption option = (TestDBOption) tableOptions.elementAt (iO); switch (option.getType ()) { case DBInterface.optionDimension: output.print ("d"); break; case DBInterface.optionBoolParam: output.print ("pb"); break; case DBInterface.optionIntParam: output.print ("pi"); break; case DBInterface.optionDoubleParam: output.print ("pd"); break; case DBInterface.optionStringParam: output.print ("ps"); break; case DBInterface.optionNoteIdParam: output.print ("pn"); break; case DBInterface.optionLayer: output.print ("l"); break; case DBInterface.optionFeature: output.print ("f"); break; case DBInterface.optionComponent: output.print ("c"); break; } output.print ("_" + option.getId ()); if (iO < optionCount - 1) output.print ("\t"); } output.println (""); int configCount = tableConfigurations.size (); for (int iC = 0; iC < configCount; iC++) { TestDBConfiguration config = (TestDBConfiguration) tableConfigurations.elementAt (iC); config.writeData (output); } output.close (); } public String getName () { return (tableName); } public TestDBOption addOption (TestDBOption dbOption) throws XDataBase { int index = getOptionIndex (dbOption); if (index >= 0) return (getOptionByIndex (index)); tableOptions.addElement (dbOption); int configCount = tableConfigurations.size (); for (int iC = 0; iC < configCount; iC++) ((TestDBConfiguration ) tableConfigurations.elementAt (iC)). addOption (); return (dbOption); } public void removeOption (TestDBOption dbOption) throws XDataBase { int index = getOptionIndex (dbOption); if (index < 0) throw (new XDataBase ("Option does not exist: " + dbOption)); tableOptions.removeElementAt (index); int configCount = tableConfigurations.size (); for (int iC = 0; iC < configCount; iC++) ((TestDBConfiguration ) tableConfigurations.elementAt (iC)). removeOption (index); } public boolean containsOption (TestDBOption dbOption) { return (getOptionIndex (dbOption) >= 0); } public int getOptionCount () { return (tableOptions.size ()); } public TestDBOption getOptionByIndex (int index) throws XDataBase { if (index >= getOptionCount ()) throw (new XDataBase ("Invalid option index - " + index)); return ((TestDBOption) tableOptions.elementAt (index)); } public int getOptionIndex (TestDBOption dbOption) { int optionCount = tableOptions.size (); String name = dbOption.getName (); for (int iO = 0; iO = getConfigurationCount ()) throw (new XDataBase ("Invalid configuration index - " + index)); return ((TestDBConfiguration) tableConfigurations.elementAt (index)); } public boolean containsConfiguration (TestDBConfiguration dbConfig) { return (getConfigurationIndex (dbConfig.getName ()) >= 0); } public TestDBConfiguration getConfiguration (String cfgName) throws XDataBase { int index = getConfigurationIndex (cfgName); if (index < 0) throw (new XDataBase ("Configuration does not exist - " + cfgName)); return ((TestDBConfiguration) tableConfigurations.elementAt (index)); } public Object addConfiguration ( TestDBConfiguration dbConfig) throws XDataBase { int index = getConfigurationIndex (dbConfig.getName ()); if (index >= 0) return (getConfigurationByIndex (index)); tableConfigurations.addElement (dbConfig); return (tableConfigurations.elementAt ( tableConfigurations.size () - 1)); } private int getConfigurationIndex (String name) { int configCount = tableConfigurations.size (); for (int iC = 0; iC < configCount; iC++) if (name.equalsIgnoreCase ( ((TestDBConfiguration) tableConfigurations.elementAt (iC)). getName ())) return (iC); return (-1); } public String toString () { return (getName ()); } private static void printMsg (String msg) { DebugOutput.printMsg ("TestDBTable", msg); } } //***************************************************************************** public class TestDBInterface implements DBInterface { private Vector dbTables = null; public TestDBInterface () { dbTables = new Vector (); } public void connectionOpen () { readData (); } public void connectionClose () { writeData (); } private void readData () { File dbDir = new File ("DB"); String [] dbFiles = dbDir.list (); int fileCount = dbFiles.length; for (int iF = 0; iF < fileCount; iF++) { TestDBTable table = new TestDBTable (dbFiles [iF]); try { table.readData ("DB/" + dbFiles [iF]); } catch (XDataBase x) { UIHelper.showException (x); continue; } catch (IOException x) { UIHelper.showException (x); continue; } dbTables.addElement (table); } } private void writeData () { File dbDir = new File ("DB"); String [] dbFiles = dbDir.list (); int fileCount = dbFiles.length; for (int iF = 0; iF < fileCount; iF++) { File dbFile = new File ("DB/" + dbFiles [iF]); dbFile.delete (); } dbDir.delete (); dbDir.mkdir (); int tableCount = dbTables.size (); for (int iT = 0; iT < tableCount; iT++) { TestDBTable table = (TestDBTable) dbTables.elementAt (iT); try { table.writeData ("DB/" + table.getName ()); } catch (IOException x) { UIHelper.showException (x); continue; } } } // // Create/Delete table // public Object createOrGetTable (String objName) throws XDataBase { int index = getTableIndex (objName); Object table = null; if (index >= 0) table = dbTables.elementAt (index); else { table = new TestDBTable (objName); dbTables.addElement (table); } return (table); } public void deleteTable (Object tableHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); if (!dbTables.removeElement (tableHandle)) throw (new XDataBase ("Table does not exist - " + tableHandle)); } public boolean hasTable (String objName) throws XDataBase { return (getTableIndex (objName) >= 0); } private int getTableIndex (String objName) { int tableCount = dbTables.size (); for (int iT = 0; iT < tableCount; iT++) if (objName.equalsIgnoreCase ( ((TestDBTable) dbTables.elementAt (iT)).getName ())) return (iT); return (-1); } // // Iterate through tables // public int getTableCount () throws XDataBase { return (dbTables.size ()); } public Object getTableByIndex (int tableIndex) throws XDataBase { if (tableIndex >= dbTables.size ()) throw (new XDataBase ("Invalid table index - " + tableIndex)); return (dbTables.elementAt (tableIndex)); } public String getTableName (Object tableHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); return (((TestDBTable) tableHandle).getName ()); } // // Option set manipulation // public Object addDimension (Object tableHandle, int dimId) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; TestDBOption option = new TestDBDimensionOption (dimId); return (table.addOption (option)); } public Object addBoolParam (Object tableHandle, String paramName) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; TestDBOption option = new TestDBBoolParamOption (paramName); return (table.addOption (option)); } public Object addIntParam (Object tableHandle, String paramName) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; TestDBOption option = new TestDBIntParamOption (paramName); return (table.addOption (option)); } public Object addDoubleParam (Object tableHandle, String paramName) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; TestDBOption option = new TestDBDoubleParamOption (paramName); return (table.addOption (option)); } public Object addStringParam (Object tableHandle, String paramName) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; TestDBOption option = new TestDBStringParamOption (paramName); return (table.addOption (option)); } public Object addNoteIdParam (Object tableHandle, String paramName) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; TestDBOption option = new TestDBNoteIdParamOption (paramName); return (table.addOption (option)); } public Object addLayer (Object tableHandle, String layerName) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; TestDBOption option = new TestDBLayerOption (layerName); return (table.addOption (option)); } public Object addFeature (Object tableHandle, int featureId) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; TestDBOption option = new TestDBFeatureOption (featureId); return (table.addOption (option)); } public Object addComponent (Object tableHandle, int componentId) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; TestDBOption option = new TestDBComponentOption (componentId); return (table.addOption (option)); } public void removeOption (Object tableHandle, Object optionHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; table.removeOption (option); } public int getOptionType (Object tableHandle, Object optionHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!table.containsOption (option)) throw (new XDataBase ("Option " + option + " is not in the table " + table)); return (option.getType ()); } public Object getOptionId (Object tableHandle, Object optionHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!table.containsOption (option)) throw (new XDataBase ("Option " + option + " is not in the table " + table)); return (option.getId ()); } // // Iterate through the options in the table. // public int getOptionCount (Object tableHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; return (table.getOptionCount ()); } public Object getOptionByIndex (Object tableHandle, int optionIdx) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; return (table.getOptionByIndex (optionIdx)); } // // Accessing configuration values // public Object getConfiguration ( Object tableHandle, String cfgName) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; return (table.getConfiguration (cfgName)); } public Double getDimensionValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionDimension) throw (new XDataBase ("Option is not a dimension - " + option)); return ((Double) config.getValueByIndex (index)); } public Boolean getBoolParamValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionBoolParam) throw (new XDataBase ("Option is not a boolean parameter - " + option)); return ((Boolean) config.getValueByIndex (index)); } public Integer getIntParamValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionIntParam) throw (new XDataBase ("Option is not an integer parameter - " + option)); return ((Integer) config.getValueByIndex (index)); } public Double getDoubleParamValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionDoubleParam) throw (new XDataBase ("Option is not a double parameter - " + option)); return ((Double) config.getValueByIndex (index)); } public String getStringParamValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionStringParam) throw (new XDataBase ("Option is not a string parameter - " + option)); return ((String) config.getValueByIndex (index)); } public Integer getNoteIdParamValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionNoteIdParam) throw (new XDataBase ("Option is not a note parameter - " + option)); return ((Integer) config.getValueByIndex (index)); } public Integer getLayerValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionLayer) throw (new XDataBase ("Option is not a layer - " + option)); return ((Integer) config.getValueByIndex (index)); } public Boolean getFeatureValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionFeature) throw (new XDataBase ("Option is not a feature - " + option)); return ((Boolean) config.getValueByIndex (index)); } public String getComponentValue (Object tableHandle, Object cfgHandle, Object optionHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionComponent) throw (new XDataBase ("Option is not a component - " + option)); return ((String) config.getValueByIndex (index)); } // // Iterate through the configurations in the table. // public int getConfigurationCount ( Object tableHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; return (table.getConfigurationCount ()); } public Object getConfigurationByIndex ( Object tableHandle, int cfgIdx) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; return (table.getConfigurationByIndex (cfgIdx)); } public String getConfigurationName ( Object tableHandle, Object cfgHandle) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + cfgHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " is not in the table " + table)); return (config.getName ()); } private static void printMsg (String msg) { DebugOutput.printMsg ("TestDBInterface", msg); } // // Configuration editing // public Object addConfiguration ( Object tableHandle, String cfgName) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; TestDBConfiguration config = new TestDBConfiguration ( cfgName, table.getOptionCount ()); return (table.addConfiguration (config)); } public void setDimensionValue (Object tableHandle, Object cfgHandle, Object optionHandle, Double value) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionDimension) throw (new XDataBase ("Option is not a dimension - " + option)); config.setValue (index, value); } public void setBoolParamValue (Object tableHandle, Object cfgHandle, Object optionHandle, Boolean value) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionBoolParam) throw (new XDataBase ("Option is not a boolean parameter - " + option)); config.setValue (index, value); } public void setIntParamValue (Object tableHandle, Object cfgHandle, Object optionHandle, Integer value) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionIntParam) throw (new XDataBase ("Option is not an integer parameter - " + option)); config.setValue (index, value); } public void setDoubleParamValue (Object tableHandle, Object cfgHandle, Object optionHandle, Double value) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionDoubleParam) throw (new XDataBase ("Option is not a double parameter - " + option)); config.setValue (index, value); } public void setStringParamValue (Object tableHandle, Object cfgHandle, Object optionHandle, String value) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionStringParam) throw (new XDataBase ("Option is not a string parameter - " + option)); config.setValue (index, value); } public void setNoteIdParamValue (Object tableHandle, Object cfgHandle, Object optionHandle, Integer value) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionNoteIdParam) throw (new XDataBase ("Option is not a note parameter - " + option)); config.setValue (index, value); } public void setLayerValue (Object tableHandle, Object cfgHandle, Object optionHandle, Integer value) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionLayer) throw (new XDataBase ("Option is not a layer - " + option)); config.setValue (index, value); } public void setFeatureValue (Object tableHandle, Object cfgHandle, Object optionHandle, Boolean value) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionFeature) throw (new XDataBase ("Option is not a feature - " + option)); config.setValue (index, value); } public void setComponentValue (Object tableHandle, Object cfgHandle, Object optionHandle, String value) throws XDataBase { if (!(tableHandle instanceof TestDBTable)) throw (new XDataBase ("Invalid table handle - " + tableHandle)); TestDBTable table = (TestDBTable) tableHandle; if (!(optionHandle instanceof TestDBOption)) throw (new XDataBase ("Invalid option handle - " + optionHandle)); TestDBOption option = (TestDBOption) optionHandle; if (!(cfgHandle instanceof TestDBConfiguration)) throw (new XDataBase ("Invalid configuration handle - " + optionHandle)); TestDBConfiguration config = (TestDBConfiguration) cfgHandle; int index = table.getOptionIndex (option); if (index < 0) throw (new XDataBase ("Option " + option + " does not exist in table " + table)); if (!table.containsConfiguration (config)) throw (new XDataBase ("Configuration " + config + " does not exist in table " + table)); if (option.getType () != optionComponent) throw (new XDataBase ("Option is not a component - " + option)); config.setValue (index, value); } } PK Fl.K[[5com/ptc/jlinkdemo/configdb/TestDBIntParamOption.class-   (Ljava/lang/String;)VCodeLineNumberTablegetType()I SourceFileTestDBInterface.java /com/ptc/jlinkdemo/configdb/TestDBIntParamOption0com/ptc/jlinkdemo/configdb/TestDBParameterOption "*+ mn r  PK Fl.d2com/ptc/jlinkdemo/configdb/TestDBLayerOption.class-)     !"#$ layerNameLjava/lang/String;(Ljava/lang/String;)VCodeLineNumberTablegetType()IgetName()Ljava/lang/String;getTitlegetId()Ljava/lang/Object; SourceFileTestDBInterface.java % java/lang/StringBufferl_ &' (Layer,com/ptc/jlinkdemo/configdb/TestDBLayerOption'com/ptc/jlinkdemo/configdb/TestDBOption()Vappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString  4***+ /Y* *PK Fl.^^8com/ptc/jlinkdemo/configdb/TestDBNoteIdParamOption.class-   (Ljava/lang/String;)VCodeLineNumberTablegetType()I SourceFileTestDBInterface.java 2com/ptc/jlinkdemo/configdb/TestDBNoteIdParamOption0com/ptc/jlinkdemo/configdb/TestDBParameterOption "*+    PK Fl.02cc-com/ptc/jlinkdemo/configdb/TestDBOption.class-%        !()VCodeLineNumberTablegetName()Ljava/lang/String;getTitlegetId()Ljava/lang/Object;getType()ItoString SourceFileTestDBInterface.java java/lang/StringBuffer  "#  "$ 'com/ptc/jlinkdemo/configdb/TestDBOptionjava/lang/Objectappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;   * 1Y**PK Fl.~cL6com/ptc/jlinkdemo/configdb/TestDBParameterOption.class-'      !" paramNameLjava/lang/String;(Ljava/lang/String;)VCodeLineNumberTablegetName()Ljava/lang/String;getTitlegetId()Ljava/lang/Object; SourceFileTestDBInterface.java # java/lang/StringBufferp_ $% & Parameter0com/ptc/jlinkdemo/configdb/TestDBParameterOption'com/ptc/jlinkdemo/configdb/TestDBOption()Vappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString  4***+FC GH/Y*L Q*VPK Fl.c^^8com/ptc/jlinkdemo/configdb/TestDBStringParamOption.class-   (Ljava/lang/String;)VCodeLineNumberTablegetType()I SourceFileTestDBInterface.java 2com/ptc/jlinkdemo/configdb/TestDBStringParamOption0com/ptc/jlinkdemo/configdb/TestDBParameterOption "*+    PK Fl.l,*?gg,com/ptc/jlinkdemo/configdb/TestDBTable.class-' n m m m            " % ( + . m  3 3 3 3 1  ; ; m  B A A  H H A ; A m m  ;  ; m 3 H m ; m m m  tableNameLjava/lang/String; tableOptionsLjava/util/Vector;tableConfigurations(Ljava/lang/String;)VCodeLineNumberTablereadData Exceptions writeDatagetName()Ljava/lang/String; addOptionT(Lcom/ptc/jlinkdemo/configdb/TestDBOption;)Lcom/ptc/jlinkdemo/configdb/TestDBOption; removeOption,(Lcom/ptc/jlinkdemo/configdb/TestDBOption;)VcontainsOption,(Lcom/ptc/jlinkdemo/configdb/TestDBOption;)ZgetOptionCount()IgetOptionByIndex,(I)Lcom/ptc/jlinkdemo/configdb/TestDBOption;getOptionIndex,(Lcom/ptc/jlinkdemo/configdb/TestDBOption;)IgetConfigurationCountgetConfigurationByIndex3(I)Lcom/ptc/jlinkdemo/configdb/TestDBConfiguration;containsConfiguration3(Lcom/ptc/jlinkdemo/configdb/TestDBConfiguration;)ZgetConfigurationD(Ljava/lang/String;)Lcom/ptc/jlinkdemo/configdb/TestDBConfiguration;addConfigurationD(Lcom/ptc/jlinkdemo/configdb/TestDBConfiguration;)Ljava/lang/Object;getConfigurationIndex(Ljava/lang/String;)ItoStringprintMsg SourceFileTestDBInterface.java t op qr srjava/util/Vectorjava/io/BufferedReaderjava/io/FileReader tu t } java/util/StringTokenizer }d_ 0com/ptc/jlinkdemo/configdb/TestDBDimensionOption    t pb_0com/ptc/jlinkdemo/configdb/TestDBBoolParamOptionpi_/com/ptc/jlinkdemo/configdb/TestDBIntParamOptionpd_2com/ptc/jlinkdemo/configdb/TestDBDoubleParamOptionps_2com/ptc/jlinkdemo/configdb/TestDBStringParamOptionpn_2com/ptc/jlinkdemo/configdb/TestDBNoteIdParamOptionl_,com/ptc/jlinkdemo/configdb/TestDBLayerOptionf_.com/ptc/jlinkdemo/configdb/TestDBFeatureOptionc_0com/ptc/jlinkdemo/configdb/TestDBComponentOption ~$com/ptc/jlinkdemo/configdb/XDataBase   java/lang/StringBufferInvalid table data -     } .com/ptc/jlinkdemo/configdb/TestDBConfiguration t x   java/io/PrintWriterjava/io/FileOutputStream t u 'com/ptc/jlinkdemo/configdb/TestDBOption dpbpipdpspnlfc_  u {  ! ~Option does not exist: "  Invalid option index -  # |} $ Invalid configuration index - Configuration does not exist -  TestDBTable% &&com/ptc/jlinkdemo/configdb/TestDBTablejava/lang/Objectjava/io/IOException()V(Ljava/io/Reader;)VreadLinejava/lang/Stringlength nextToken startsWith(Ljava/lang/String;)Z substring(I)Ljava/lang/String;java/lang/IntegervalueOf'(Ljava/lang/String;)Ljava/lang/Integer;intValue(I)V hasMoreTokens()Zappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;size(Ljava/lang/String;I)V0(Ljava/util/StringTokenizer;Ljava/util/Vector;)V!com/ptc/jlinkdemo/common/UIHelper showException(Ljava/lang/Throwable;)Vclose(Ljava/io/OutputStream;)Vprint elementAt(I)Ljava/lang/Object;getTypegetId()Ljava/lang/Object;println(Ljava/io/PrintWriter;)V addElement(Ljava/lang/Object;)VremoveElementAt(I)Ljava/lang/StringBuffer;equalsIgnoreCase&com/ptc/jlinkdemo/configdb/DebugOutput'(Ljava/lang/String;Ljava/lang/String;)V mnopqrsrtuvd0*****+*Y*Yw"z {|$/xuv/ +Y Y+ MN, N-  , N-Y-:68::Y:Y:Y:Y :!"Y#:$%Y&:f'(Y):J*+Y,:(-.Y/:6*0W :6 21Y3Y456*789*:6, NZ- KY-:2 6<:;Y<:*=*>W :  ?, N-1Y3Y456*789,@`gj11w8!$-7:=DGQis3=UX]`jorz &*y1z{uv *:=AYBY+CDN-EF6*GH:I1:CLU^gpy-JFH-KF?-LF6-MF--NF$-OF-PF-QF -RF-3Y4S6T78Fd -EF?-U*:66*G;:-V-Ww#$2hnqwz     "$%yz|}v*w)~vx@*+X= *Y*+Z*:>6*G;[+w& ./ 024 5&655>8y1vU*+X=1Y3Y4\6+789*]*:>6*G;^w& => ?%A-C5D;EKDTGy1v&*+XwKv *:wPvO/*_1Y3Y4`6a89*GHwUV#Xy1vg7*:=+bN6-*GHbcw]^ _`)b,_5cv *:whvO/*d1Y3Y4e6a89*G;wno#qy1v)*+fgwvvU1*+g=1Y3Y4h6+689*G;w|} ~%y1vT,*+fg= *i*+Z**:dGw  y1vZ.*:=>+*G;fcw "$,}v*jw uv#k*lw PK Fl."aa.com/ptc/jlinkdemo/configdb/XConfigDBDemo.class-  (Ljava/lang/String;)VCodeLineNumberTabletoString()Ljava/lang/String; SourceFileXConfigDBDemo.java   (com/ptc/jlinkdemo/configdb/XConfigDBDemojava/lang/Throwable getMessage!"*+   *  PK r.dpV-com/ptc/jlinkdemo/configdb/XConfigDBDemo.java package com.ptc.jlinkdemo.configdb; public class XConfigDBDemo extends Throwable { public XConfigDBDemo (String msg) { super (msg); } public String toString () { return (getMessage ()); } } PK Fl.y<  *com/ptc/jlinkdemo/configdb/XDataBase.class-    (Ljava/lang/String;)VCodeLineNumberTable SourceFileXDataBase.java $com/ptc/jlinkdemo/configdb/XDataBase(com/ptc/jlinkdemo/configdb/XConfigDBDemo!"*+   PK r.?=w)com/ptc/jlinkdemo/configdb/XDataBase.java package com.ptc.jlinkdemo.configdb; public class XDataBase extends XConfigDBDemo { public XDataBase (String msg) { super (msg); } } PK m.com/ptc/jlinkdemo/custom/PK & 2com/ptc/jlinkdemo/custom/CustomParameterType.class-mnopqr 1 1 2 3 3 3 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I ]M ]S ]W ]Z iU jO kQ t[ uV vX wK xL yL zJ ~P c P J e W b J R L f()I()Ljava/lang/Class;()Ljava/lang/String;()V()[Ljava/lang/Object;(I)C(I)I(I)Z(II)Ljava/lang/String;(ILjava/lang/Object;)V&(Ljava/lang/Object;)Ljava/lang/Object;(Ljava/lang/Object;)V(Ljava/lang/Object;)Z(Ljava/lang/String;)V(Ljava/lang/String;)Z'(Ljava/lang/String;)[Ljava/lang/String;(Ljava/lang/String;I)V([Ljava/lang/Object;)V)([Ljava/lang/String;I)[Ljava/lang/Object;Code ConstantValueCustomParameterType.java ExceptionsI7Lcom/ptc/jlinkdemo/custom/CustomParameterTypeException;LineNumberTableLjava/io/PrintStream;Ljava/lang/String;LocalVariables SourceFile addElementcharAt checkType checkValue,com/ptc/jlinkdemo/common/BaseParameterHelper,com/ptc/jlinkdemo/custom/CustomParameterType5com/ptc/jlinkdemo/custom/CustomParameterTypeException3com/ptc/jlinkdemo/custom/IncompatibleValueException3com/ptc/jlinkdemo/custom/NullValueSuppliedException6com/ptc/jlinkdemo/custom/UnsupportedValueTypeExceptioncommitNewValuecopyIntoequalsequalsIgnoreCasegetClassgetCustomTypeName getMessage getProETypegetStringArraygetTableCellEditorComponentType getUIValuesindexOf isValidTypejava/io/PrintStreamjava/lang/Booleanjava/lang/Bytejava/lang/Doublejava/lang/Integerjava/lang/Numberjava/lang/NumberFormatExceptionjava/lang/Objectjava/lang/Shortjava/lang/Stringjava/lang/Systemjava/lang/Throwablejava/util/Vector lastException lastIndexOflengthoutparseStringValuesprintMsgprintlnproeTypesize substringtrimtypeName!bfclVsTkQ|J}NyL^-*'*'$d ? @uV^w;*+ + ++M*0,#!*,,%d* HI JKMO*P,R7S9UzJ^*,d]xL^*0deU^**,Y*0*,+Y*0+"W*,r$%]H%+ + + Y*,++ Y*,++Y*,+Y*0*,dNn opq+s0uXyY~`gno|a\^(!\++ N66- Y+2S+WY+2-+ :66 Y+2S+WY+2Y*0+JM g d^ "(++1@JMN[]dggm}a{Y^ +/W+)=+ &>+ (6 Y+SY:66/+ !Y+.:`6лY+`.:-:   dN '039DU[bl~ W^$**+d ]M^*dh`PK &7dd9com/ptc/jlinkdemo/custom/CustomParameterTypeCreator.class-n?@IKLMNOSTUVhijZ[\]^_`defg , - . / / / 0 1 2 3 4 A6 A: A< A> Y9 c; k; l5 m7()Ljava/lang/String;()V(I)Ljava/lang/String;B(Ljava/lang/String;)Lcom/ptc/jlinkdemo/custom/CustomParameterType;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V(Ljava/lang/String;)ZL(Ljava/lang/String;Lcom/ptc/jlinkdemo/custom/CustomParameterTypeException;)VU(Ljava/lang/String;Ljava/lang/String;I)Lcom/ptc/jlinkdemo/custom/CustomParameterType;((Ljava/lang/String;Ljava/lang/String;I)V0  0.0 1.0 0.25BOOLEANCode ConstantValueCustomParameterTypeCreator.javaDOUBLE ExceptionsICINITIAL PROTOTYPE PREPRODUCTION PRODUCTION RELEASED LEGACY OBSOLETEINTEGER LEFT RIGHTLISTLIST_LRLIST_RELEASE_LEVELLRLineNumberTableLocalVariablesNOTERANGE RANGE_INCRANGE_INC_FOURTHSRANGE_POSITIVE_INTSSTRING SourceFileappend,com/ptc/jlinkdemo/common/BaseParameterHelper3com/ptc/jlinkdemo/custom/CustomParameterTypeCreator5com/ptc/jlinkdemo/custom/CustomParameterTypeException-com/ptc/jlinkdemo/custom/InvalidParameterType*com/ptc/jlinkdemo/custom/ListParameterType6com/ptc/jlinkdemo/custom/RangeIncrementalParameterType+com/ptc/jlinkdemo/custom/RangeParameterTypecreateCustomTypedefaultCustomTypeFromStringequalsIgnoreCasejava/lang/Integerjava/lang/Objectjava/lang/Stringjava/lang/StringBufferlistrange range_inc startsWithtoStringvalueOf!WHDJHDFHDBHDRHD b8C* ( *(Y  $* (Y  $*("Y Y"+'*&*(Y%LY*+#ssP2 !"$&((5*>,].f0s3t5~7 a=Cd* ) *)Y*+$*) *)Y*+&*) *)Y*+%NY*-#YYP* @ACE/G:ILKWMYOZQA6C*!PXEPK &NGG;com/ptc/jlinkdemo/custom/CustomParameterTypeException.class-  (Ljava/lang/String;)VCode ConstantValue!CustomParameterTypeException.java ExceptionsLineNumberTableLocalVariables SourceFile5com/ptc/jlinkdemo/custom/CustomParameterTypeExceptionjava/lang/Exception!"*+   PK &=~Ȱ9com/ptc/jlinkdemo/custom/IncompatibleRangeException.class-%!"#         $ and the maximum # are not compatible in custom type ()Ljava/lang/String;(D)Ljava/lang/StringBuffer;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V(Ljava/lang/String;DD)VCode ConstantValue ExceptionsIncompatibleRangeException.javaLineNumberTableLocalVariables SourceFileThe minimum value append5com/ptc/jlinkdemo/custom/CustomParameterTypeException3com/ptc/jlinkdemo/custom/IncompatibleRangeExceptionjava/lang/StringBuffertoString!D(*Y(    +  'PK &bjj9com/ptc/jlinkdemo/custom/IncompatibleValueException.class-1&)*+-          ( ( , . /! 0$' is not compatible with parameter type ()Ljava/lang/String;(I)Ljava/lang/String;(ILjava/lang/Object;)V,(Ljava/lang/Object;)Ljava/lang/StringBuffer;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)VCode ConstantValue ExceptionsIIncompatibleValueException.javaLineNumberTableLjava/lang/Object;LocalVariablesProvided value  SourceFileappend,com/ptc/jlinkdemo/common/BaseParameterHelper5com/ptc/jlinkdemo/custom/CustomParameterTypeException3com/ptc/jlinkdemo/custom/IncompatibleValueExceptiongetTypeNameForTypejava/lang/StringBuffertoStringtypevalue1/!0$O+*Y,   * *,# %*'"PK & 3com/ptc/jlinkdemo/custom/InvalidParameterType.class-%     # $()I()V()[Ljava/lang/Object;(I)Z&(Ljava/lang/Object;)Ljava/lang/Object;(Ljava/lang/Object;)ZL(Ljava/lang/String;Lcom/ptc/jlinkdemo/custom/CustomParameterTypeException;)VCode ConstantValue ExceptionsInvalidParameterType.java7Lcom/ptc/jlinkdemo/custom/CustomParameterTypeException;LineNumberTableLjava/lang/String;LocalVariables SourceFile checkType checkValue(com/ptc/jlinkdemo/common/ParamCellEditor,com/ptc/jlinkdemo/custom/CustomParameterType-com/ptc/jlinkdemo/custom/InvalidParameterTypecommitNewValuegetTableCellEditorComponentType getUIValues lastExceptiontypeName! +" *! 2" :3**+*,AC DAPK &%m0com/ptc/jlinkdemo/custom/ListParameterType.class-K89:;<=D            ) )& ?$ @% C# E. F4 G( H- I5 J1()I()V()[Ljava/lang/Object;(I)Z&(Ljava/lang/Object;)Ljava/lang/Object;(Ljava/lang/Object;)V(Ljava/lang/Object;)Z'(Ljava/lang/String;)[Ljava/lang/String;:(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/String;)V((Ljava/lang/String;Ljava/lang/String;I)V)([Ljava/lang/String;I)[Ljava/lang/Object;Code ConstantValue ExceptionsI7Lcom/ptc/jlinkdemo/custom/CustomParameterTypeException;LineNumberTableListParameterType.javaLjava/lang/String;LocalVariables SourceFile[Ljava/lang/Object;[Ljava/lang/String; checkType checkValue,com/ptc/jlinkdemo/common/BaseParameterHelper(com/ptc/jlinkdemo/common/ParamCellEditor,com/ptc/jlinkdemo/custom/CustomParameterType5com/ptc/jlinkdemo/custom/CustomParameterTypeException*com/ptc/jlinkdemo/custom/ListParameterType+com/ptc/jlinkdemo/custom/NotInListExceptioncommitNewValueequalsgetStringArraygetTableCellEditorComponentType getUIValuesisInListjava/lang/Object lastException listValuesparseStringValuesproeType stringValuestypeName!F4I57$*L*+ * M*,  /   !"C#*X0=+*2 *Y*+* /+-/+2,>"*+/:6!*8/CDE FHA*/PB **/X)'*Q%**+***, ***/_b cde$_,30PK &D]Dcom/ptc/jlinkdemo/custom/MissingCustomParameterValuesException.class-"       ! found. of type ()Ljava/lang/String;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V'(Ljava/lang/String;Ljava/lang/String;)VCode ConstantValue ExceptionsLineNumberTableLocalVariables*MissingCustomParameterValuesException.javaNo values for parameter  SourceFileappend5com/ptc/jlinkdemo/custom/CustomParameterTypeException>com/ptc/jlinkdemo/custom/MissingCustomParameterValuesExceptionjava/lang/StringBuffertoString!?#*Y+  ,   "PK &=R?com/ptc/jlinkdemo/custom/NotEnoughValuesSuppliedException.class-%!"#         $()Ljava/lang/String;(I)Ljava/lang/StringBuffer;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V(Ljava/lang/String;II)V) supplied to custom type  , minimum is Code ConstantValue ExceptionsLineNumberTableLocalVariablesNot enough values (%NotEnoughValuesSuppliedException.java SourceFileappend5com/ptc/jlinkdemo/custom/CustomParameterTypeException9com/ptc/jlinkdemo/custom/NotEnoughValuesSuppliedExceptionjava/lang/StringBuffertoString!C'*Y    +  &PK &!1com/ptc/jlinkdemo/custom/NotInListException.class-# !         "" was not found in the custom list ()Ljava/lang/String;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V:(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/String;)VCode ConstantValue ExceptionsLineNumberTableLocalVariablesNotInListException.java SourceFile The value append5com/ptc/jlinkdemo/custom/CustomParameterTypeException+com/ptc/jlinkdemo/custom/NotInListExceptionjava/lang/StringBuffertoString :*Y, +  PK &]O6com/ptc/jlinkdemo/custom/NotOnIncrementException.class-,&()*         ' ' ' ' + above the minimum  does not fall on the increment ()Ljava/lang/String;(D)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V*(Ljava/lang/String;Ljava/lang/Object;DDD)V)(Ljava/lang/String;Ljava/lang/Object;II)VCode ConstantValue ExceptionsLineNumberTableLocalVariablesNotOnIncrementException.java SourceFile The value append5com/ptc/jlinkdemo/custom/CustomParameterTypeException0com/ptc/jlinkdemo/custom/NotOnIncrementExceptionjava/lang/StringBuffertoString!D(*Y,     " 'D (*Y,    ) " '%$PK &F.>339com/ptc/jlinkdemo/custom/NullValueSuppliedException.class-        ()Ljava/lang/String;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V*A null value was given to the custom type Code ConstantValue ExceptionsLineNumberTableLocalVariablesNullValueSuppliedException.java SourceFileappend5com/ptc/jlinkdemo/custom/CustomParameterTypeException3com/ptc/jlinkdemo/custom/NullValueSuppliedExceptionjava/lang/StringBuffertoString!1*Y+ PK &2com/ptc/jlinkdemo/custom/OutOfRangeException.class-7/02345        $! 1 1 1 1 6 . is  the boundary value ()Ljava/lang/String;(D)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V)(Ljava/lang/String;Ljava/lang/Object;DI)V)(Ljava/lang/String;Ljava/lang/Object;II)VCode ConstantValue ExceptionsILineNumberTableLocalVariablesOutOfRangeException.java SourceFileTOO_HIGHTOO_LOW The value aboveappendbelow5com/ptc/jlinkdemo/custom/CustomParameterTypeException,com/ptc/jlinkdemo/custom/OutOfRangeExceptionjava/lang/StringBuffertoString! .(&-(&$#%S7* Y , ) 6$"%S7* Y ,) ) 6,+PK &,<com/ptc/jlinkdemo/custom/RangeIncrementalParameterType.class-fLMNOPQRST^_ ! " # $ % & ' ' ( ) * + , - . / 0 1 2?PbM ?8 ?9 ?: ?; ?< ?= U3 VB YB Z4 [5 \5 ]6 `E aB bB cD eG()D()I(Ljava/lang/Number;)V(Ljava/lang/Object;)V(Ljava/lang/Object;)Z(Ljava/lang/String;DD)V(Ljava/lang/String;I)V(Ljava/lang/String;II)V*(Ljava/lang/String;Ljava/lang/Object;DDD)V)(Ljava/lang/String;Ljava/lang/Object;II)V((Ljava/lang/String;Ljava/lang/String;I)V([Ljava/lang/Object;)VCode ConstantValueD ExceptionsI7Lcom/ptc/jlinkdemo/custom/CustomParameterTypeException;LineNumberTableLjava/lang/String;LocalVariables"RangeIncrementalParameterType.java SourceFile checkValue,com/ptc/jlinkdemo/common/BaseParameterHelper,com/ptc/jlinkdemo/custom/CustomParameterType5com/ptc/jlinkdemo/custom/CustomParameterTypeException3com/ptc/jlinkdemo/custom/IncompatibleRangeException9com/ptc/jlinkdemo/custom/NotEnoughValuesSuppliedException0com/ptc/jlinkdemo/custom/NotOnIncrementException6com/ptc/jlinkdemo/custom/RangeIncrementalParameterType+com/ptc/jlinkdemo/custom/RangeParameterType6com/ptc/jlinkdemo/custom/UnsupportedValueTypeException doubleValueepsilon getEpsilon getIncrement incrementintValue isInRange isOnIncrement isValidTypejava/lang/Doublejava/lang/Number lastExceptionmaximumminimumproeTypesetRangeValuestypeName!YBVBK7@d$*+*+ *+ *M*,F&   "!\5@ |***=*>+dpY*+*8+*g*s**kY*+*** Y** F. +-.01.3/578R9k;l>C?=@/*+,*FI{FCd>@+Y*++2 M+2 N+2 :*,*-*+*+2 :***Y*** F:RSUV#W+Y3Z;[D]R_Z`cbocOCX3@*FmW3@*FwJIPK &?> > 1com/ptc/jlinkdemo/custom/RangeParameterType.class-jOPQRSTUVWb     ! " # $ % & ' ( ) * + , - . A1 A9 A: A; A< A= Y/ \8 _0 `4 a6 cG dD eD f@ gF h? iI()D()I()V()[Ljava/lang/Object;(I)Z(Ljava/lang/Number;)V&(Ljava/lang/Object;)Ljava/lang/Object;(Ljava/lang/Object;)V(Ljava/lang/Object;)Z'(Ljava/lang/String;)[Ljava/lang/String;(Ljava/lang/String;DD)V(Ljava/lang/String;I)V(Ljava/lang/String;II)V)(Ljava/lang/String;Ljava/lang/Object;DI)V)(Ljava/lang/String;Ljava/lang/Object;II)V((Ljava/lang/String;Ljava/lang/String;I)V([Ljava/lang/Object;)V)([Ljava/lang/String;I)[Ljava/lang/Object;Code ConstantValueD ExceptionsI7Lcom/ptc/jlinkdemo/custom/CustomParameterTypeException;LineNumberTableLjava/lang/String;LocalVariablesRangeParameterType.java SourceFile checkType checkValue,com/ptc/jlinkdemo/common/BaseParameterHelper(com/ptc/jlinkdemo/common/ParamCellEditor,com/ptc/jlinkdemo/custom/CustomParameterType5com/ptc/jlinkdemo/custom/CustomParameterTypeException3com/ptc/jlinkdemo/custom/IncompatibleRangeException9com/ptc/jlinkdemo/custom/NotEnoughValuesSuppliedException,com/ptc/jlinkdemo/custom/OutOfRangeException+com/ptc/jlinkdemo/custom/RangeParameterType6com/ptc/jlinkdemo/custom/UnsupportedValueTypeExceptioncommitNewValue doubleValue getMaximum getMinimumgetStringArraygetTableCellEditorComponentType getUIValuesintValue isInRange isValidTypejava/lang/Number lastExceptionmaximumminimumparseStringValuesproeTypesetRangeValuestypeName!eDdD N7BX*+*+ *M*,H" `4B*>*=*>+Y*++Y*+*@+*Y*+*+*Y*+* Y** H>)+,./+132B4C6K8W9i;u<>AEX5B+HJM3BGHRST UVWX]0BHa^2BHiA>BU%* *+**,:*:*Hps tyz|$pEh?BT+Y*++2 M+2 N*,*-**Y*** H& #+3?SE[/B*HZ/B*HLKPK &y<com/ptc/jlinkdemo/custom/UnsupportedValueTypeException.class-,"%&')        $ ( * +/ is not supported by the custom parameter type ()Ljava/lang/String;(I)Ljava/lang/String;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V(Ljava/lang/String;I)V.Code ConstantValue ExceptionsILineNumberTableLocalVariables SourceFileThe parameter type "UnsupportedValueTypeException.javaappend,com/ptc/jlinkdemo/common/BaseParameterHelper5com/ptc/jlinkdemo/custom/CustomParameterTypeException6com/ptc/jlinkdemo/custom/UnsupportedValueTypeExceptiongetTypeNameForTypejava/lang/StringBuffertoStringtype1+K+*Y   +  * %*!#PK m.com/ptc/jlinkdemo/material/PK &[j8com/ptc/jlinkdemo/material/MaterialCommandListener.class-\ACNTUFGHIJKLMOPQRS ! ! " # $ % & ' ( ( ) * + , 60 62 64 :. ;- E3 V> W4 X4 Y< Z5 [/()Lcom/ptc/pfc/pfcModel/Model; ()Lcom/ptc/pfc/pfcWindow/Window;()Ljava/lang/String;()V#(Lcom/ptc/pfc/pfcSession/Session;)VM(Ljava/awt/Frame;Lcom/ptc/pfc/pfcSession/Session;Lcom/ptc/pfc/pfcPart/Part;)V,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V(Z)VCode ConstantValue ExceptionsGetCurrentWindowGetModel Lcom/ptc/pfc/pfcSession/Session;LineNumberTableLjava/io/PrintStream;LocalVariablesMaterialCommandListener.javaMaterialCommandListener:  OnCommandRegistered button press... SourceFileappendcom/ptc/cipjava/jxthrowable2com/ptc/jlinkdemo/material/MaterialCommandListener)com/ptc/jlinkdemo/material/MaterialDialog+com/ptc/jlinkdemo/material/MaterialSelector5com/ptc/pfc/pfcCommand/DefaultUICommandActionListenercom/ptc/pfc/pfcPart/Part"com/ptc/pfc/pfcSession/BaseSessioncom/ptc/pfc/pfcWindow/Windowcurrent model is not a partjava/awt/Componentjava/awt/Framejava/io/PrintStreamjava/lang/StringBufferjava/lang/Systemno current windowno model in current windowoutprintMsgprintlnsession setVisibletoString  Y<617* **+= B07T*L+ +M, , YY*, N-=F!"$%( )$+),*/116275B6J5N7S9 W473Y* = =;D@PK &:^1com/ptc/jlinkdemo/material/MaterialDialog$1.class-<+,-./678        * 0 9 : ;)()I()Ljava/lang/String;()Ljava/util/Vector;()V(I)Ljava/lang/Object;(I)Ljava/lang/String;(II)Ljava/lang/Object;(II)Z([Ljava/lang/String;)VCode ConstantValue Exceptions InnerClassesLineNumberTableLocalVariablesMaterialDialog.java SourceFile Synthetic[Ljava/lang/String;access$0)com/ptc/jlinkdemo/material/MaterialDialog+com/ptc/jlinkdemo/material/MaterialDialog$1+com/ptc/jlinkdemo/material/MaterialDialog$23com/ptc/jlinkdemo/material/MaterialDialog$SymAction3com/ptc/jlinkdemo/material/MaterialDialog$SymWindow elementAtgetColumnCount getColumnName getRowCount getValueAtisCellEditablejava/lang/Stringjava/util/Vector$javax/swing/table/AbstractTableModelsizetoStringval$columnNames0;)(2 " *2 $P3  $R1 *$S4 '   $V5 $Z " * *+$L('&# PK &e1com/ptc/jlinkdemo/material/MaterialDialog$2.class-' !"$%&   #()V#(Ljava/io/File;Ljava/lang/String;)Z(Ljava/lang/String;)Z.matCode ConstantValue Exceptions InnerClassesLineNumberTableLocalVariablesMaterialDialog.java SourceFile Syntheticaccept)com/ptc/jlinkdemo/material/MaterialDialog+com/ptc/jlinkdemo/material/MaterialDialog$1+com/ptc/jlinkdemo/material/MaterialDialog$23com/ptc/jlinkdemo/material/MaterialDialog$SymAction3com/ptc/jlinkdemo/material/MaterialDialog$SymWindowendsWithjava/io/FilenameFilterjava/lang/Objectjava/lang/String0- ,  *  PK &-ۻ9com/ptc/jlinkdemo/material/MaterialDialog$SymAction.class-C56789?@A            # $- %- (- 4- : ; < = > B+()Ljava/lang/Object;()V.(Lcom/ptc/jlinkdemo/material/MaterialDialog;)V(Ljava/awt/event/ActionEvent;)VAssignCancelCode ConstantValueDisplay Exceptions InnerClasses+Lcom/ptc/jlinkdemo/material/MaterialDialog;LineNumberTableLjavax/swing/JButton;LocalVariablesMaterialDialog.java SourceFile SymAction SyntheticactionPerformedbutton4)com/ptc/jlinkdemo/material/MaterialDialog+com/ptc/jlinkdemo/material/MaterialDialog$1+com/ptc/jlinkdemo/material/MaterialDialog$23com/ptc/jlinkdemo/material/MaterialDialog$SymAction3com/ptc/jlinkdemo/material/MaterialDialog$SymWindowdoAssigndoCancel doDisplaydoSearch getSourcejava/awt/event/ActionListenerjava/lang/Objectjava/util/EventObjectthis$0 B+23"&Q+M,* *,* *,* *,* *,6 #*+6=>IP#!&7* *+*+, " "0/* 1PK &r$ʏ9com/ptc/jlinkdemo/material/MaterialDialog$SymWindow.class-,!"#$%'(      & ) *()V.(Lcom/ptc/jlinkdemo/material/MaterialDialog;)V(Ljava/awt/event/WindowEvent;)V(Z)VCode ConstantValue Exceptions InnerClasses+Lcom/ptc/jlinkdemo/material/MaterialDialog;LineNumberTableLocalVariablesMaterialDialog.java SourceFile SymWindow SyntheticZ)com/ptc/jlinkdemo/material/MaterialDialog+com/ptc/jlinkdemo/material/MaterialDialog$1+com/ptc/jlinkdemo/material/MaterialDialog$23com/ptc/jlinkdemo/material/MaterialDialog$SymAction3com/ptc/jlinkdemo/material/MaterialDialog$SymWindowisShowingChildDlgjava/awt/Componentjava/awt/event/WindowAdapter setVisiblethis$0 windowClosing *+3* *   7**+ *+  " " PK &ME\/com/ptc/jlinkdemo/material/MaterialDialog.class-  "#$%&BEz123456789:RSTUVWXYZ[\]^_`abcdefghijklmno  " 4 7 = < '   ; 9  * + , 2     ! % % 5 4 ) 2   4 6 6 6 6     : $ 9 = = = 1   1 + 3 )   . *     8 % 8 = 8 > 5 & $ &   1 2 / #     ) ) * + , - . / 0 ; < = > ? @ G H I J K L M N O P' Q p q r s t u v w x y { | } ~               ()I()Ljava/awt/Component;()Ljava/awt/Container;()Ljava/lang/Object;()Ljava/lang/String;()Ljava/util/Vector;()Ljavax/swing/Box;()Ljavax/swing/JRootPane;"()Ljavax/swing/ListSelectionModel;()V(I)Ljava/awt/Component;(I)V(II)Ljava/lang/Object;(II)Ljava/lang/String;(II)V.(Lcom/ptc/jlinkdemo/material/MaterialDialog;)V(Ljava/awt/Color;)V*(Ljava/awt/Component;)Ljava/awt/Component;(Ljava/awt/Component;)V)(Ljava/awt/Component;Ljava/lang/Object;)V;(Ljava/awt/Component;Ljava/lang/String;Ljava/lang/String;)V>(Ljava/awt/Component;Ljava/lang/Throwable;Ljava/lang/String;)V(Ljava/awt/Dimension;)VM(Ljava/awt/Frame;Lcom/ptc/pfc/pfcSession/Session;Lcom/ptc/pfc/pfcPart/Part;)V%(Ljava/awt/Frame;Ljava/lang/String;)V&(Ljava/awt/Frame;Ljava/lang/String;Z)VE(Ljava/awt/Frame;Ljava/util/Vector;Lcom/ptc/pfc/pfcSession/Session;)V(Ljava/awt/LayoutManager;)V(Ljava/awt/Window;)V"(Ljava/awt/event/ActionListener;)V"(Ljava/awt/event/WindowListener;)V-(Ljava/io/FilenameFilter;)[Ljava/lang/String;(Ljava/io/Reader;)V(Ljava/lang/Object;)V(Ljava/lang/String;)I2(Ljava/lang/String;)Lcom/ptc/pfc/pfcPart/Material;&(Ljava/lang/String;)Ljava/lang/Double;,(Ljava/lang/String;)Ljava/lang/StringBuffer;&(Ljava/lang/String;)Ljava/util/Vector;(Ljava/lang/String;)V!(Ljavax/swing/table/TableModel;)V(Z)V([Ljava/lang/String;)V.=AssignCancelCenterCloseCodeConduct. ConstantValueDisplay ExceptionsHARDNESSHardness InnerClassesLcom/ptc/pfc/pfcPart/Part; Lcom/ptc/pfc/pfcSession/Session;LineNumberTableLjava/awt/Color;Ljava/io/PrintStream;Ljava/util/Vector;Ljavax/swing/JButton;Ljavax/swing/JTable;LocalVariablesMaterialMaterial SelectorMaterialDialog.javaMaterialDialog:  POISSON_RATIOPoissonRetrieveMaterialSearch SourceFile SymAction SymWindow SyntheticTHERMAL_CONDUCTIVITY-The VALUES are invalid in the MATERIAL FILE:  View File YOUNG_MODULUSYoungZaccess$0addaddActionListener addElementaddWindowListenerappendbutton4 centerWindowclonecom/ptc/cipjava/jxthrowable!com/ptc/jlinkdemo/common/UIHelper)com/ptc/jlinkdemo/material/MaterialDialog+com/ptc/jlinkdemo/material/MaterialDialog$1+com/ptc/jlinkdemo/material/MaterialDialog$23com/ptc/jlinkdemo/material/MaterialDialog$SymAction3com/ptc/jlinkdemo/material/MaterialDialog$SymWindow+com/ptc/jlinkdemo/material/MaterialSearcher$com/ptc/jlinkdemo/material/SelectBoxcom/ptc/pfc/pfcPart/PartcreateHorizontalBoxcreateHorizontalGluecreateVerticalBoxcreateVerticalStrutdatadata1doAssigndoAssign: nothing selecteddoCancel doDisplaydoDisplay: nothing selecteddoSearch fieldName fillContentgetContentPane getParent getRootPanegetSelectedRowgetSelectionModel getValueAtindexOfisShowingChildDlgjTable1java/awt/BorderLayoutjava/awt/Colorjava/awt/Componentjava/awt/Containerjava/awt/Dialogjava/awt/Dimensionjava/awt/Framejava/awt/Windowjava/io/BufferedReader java/io/Filejava/io/FileReaderjava/io/IOExceptionjava/io/PrintStreamjava/lang/Doublejava/lang/NumberFormatExceptionjava/lang/Stringjava/lang/StringBufferjava/lang/Systemjava/util/Vectorjavax/swing/AbstractButtonjavax/swing/Boxjavax/swing/JButtonjavax/swing/JComponentjavax/swing/JDialogjavax/swing/JRootPanejavax/swing/JScrollPanejavax/swing/JSeparatorjavax/swing/JTablejavax/swing/ListSelectionModeljavax/swing/SwingConstantslengthlistoutpackpartprintMsgprintlnreadLinereadMatreadMatsreading material fileselectMaterialsession setBackground setLayoutsetMinimumSizesetModelsetPreferredSizesetSelectionModesetTextsetTitle setVisiblesetting materialshowshowErrorMessage showExceptionshowMaterialFile substringtoStringvalueOfwhite!9 G ? @P'|t .Q H*+ J*m*,z*-s*e7( 89;5Hv B*xbb]4c1Y SYSY SYSYSL4YBd=d+2X+Y+PN*h:f:'YddF}'Y2F"YA|`:V*=YDn*n-~*n{*njaUW;Y*nIUWaUW)()Ljava/lang/Object;()VD(Lcom/ptc/jlinkdemo/material/MaterialSearcher;)Ljavax/swing/JButton;0(Lcom/ptc/jlinkdemo/material/MaterialSearcher;)V(Ljava/awt/event/ActionEvent;)VCancel_ActionPerformedCode ConstantValueDisplay_ActionPerformed Exceptions InnerClasses-Lcom/ptc/jlinkdemo/material/MaterialSearcher;LineNumberTableLocalVariablesMaterialSearcher.javaNSearch_ActionPerformedRSearch_ActionPerformed SourceFile SymAction Syntheticaccess$0access$1access$2access$3actionPerformed+com/ptc/jlinkdemo/material/MaterialSearcher5com/ptc/jlinkdemo/material/MaterialSearcher$SymAction5com/ptc/jlinkdemo/material/MaterialSearcher$SymWindow getSourcejava/awt/event/ActionListenerjava/lang/Objectjava/util/EventObjectthis$0 >)16!$U+M,* *+ ,* *+ ,* *+ ,* *+*6 EFGFH$I,H-J8K@JALLMTC" $7**+*+*A  A A/,( 0PK &ȃ==;com/ptc/jlinkdemo/material/MaterialSearcher$SymWindow.class-) !#$%      " & '()V0(Lcom/ptc/jlinkdemo/material/MaterialSearcher;)V(Ljava/awt/event/WindowEvent;)V(Z)VCode ConstantValue Exceptions InnerClasses-Lcom/ptc/jlinkdemo/material/MaterialSearcher;LineNumberTableLocalVariablesMaterialSearcher.java SourceFile SymWindow Synthetic+com/ptc/jlinkdemo/material/MaterialSearcher5com/ptc/jlinkdemo/material/MaterialSearcher$SymAction5com/ptc/jlinkdemo/material/MaterialSearcher$SymWindowdisposejava/awt/Componentjava/awt/Windowjava/awt/event/WindowAdapter setVisiblethis$0 windowClosing '(0*  * <=:7**+ *+ 8  8 8 PK &f6u#u#1com/ptc/jlinkdemo/material/MaterialSearcher.class-*+,./0147:<=@ACDQRTWXY]^_`abcefhijklpqrstuwx ; < J R V U 9 = 3 4 T P ? A G M Q N 2 2 2 2 2 2 2 2 2 8 K J > G G 1 ? L L L 2 > D J ; 2 2 S 7 P N R R Y ; F ; F 2 H > 2 I C ? 2 2 O < N 8 R O O N W 7 1 5 J F G F D ; ; 6 - - - - - - - - -$ -) 2L 6M :L ?& UL ZM [L d% vO } ~    #      K    B  K        B ! I  K J  $  $  N F   (  '     (       " 9 9 H()D()I()Ljava/awt/Component;()Ljava/awt/Container;()Ljava/lang/Object;()Ljava/lang/String;()Ljavax/swing/Box;()Ljavax/swing/JRootPane;"()Ljavax/swing/ListSelectionModel;()V(I)Ljava/awt/Component;(I)Ljava/lang/Object;(I)V(II)Ljava/lang/String;(II)V(IIII)VD(Lcom/ptc/jlinkdemo/material/MaterialSearcher;)Ljavax/swing/JButton;0(Lcom/ptc/jlinkdemo/material/MaterialSearcher;)V(Ljava/awt/Color;)V*(Ljava/awt/Component;)Ljava/awt/Component;(Ljava/awt/Component;)V4(Ljava/awt/Component;Ljava/awt/GridBagConstraints;)V;(Ljava/awt/Component;Ljava/lang/String;Ljava/lang/String;)V(Ljava/awt/Dimension;)V%(Ljava/awt/Frame;Ljava/lang/String;)V&(Ljava/awt/Frame;Ljava/lang/String;Z)VE(Ljava/awt/Frame;Ljava/util/Vector;Lcom/ptc/pfc/pfcSession/Session;)V(Ljava/awt/LayoutManager;)V(Ljava/awt/Window;)V(Ljava/awt/event/ActionEvent;)V"(Ljava/awt/event/ActionListener;)V"(Ljava/awt/event/WindowListener;)V(Ljava/io/Reader;)V&(Ljava/lang/Object;)Ljava/lang/String;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;(Ljava/lang/Object;)V(Ljava/lang/String;)I&(Ljava/lang/String;)Ljava/lang/Double;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V(Ljava/util/Vector;)I&(Ljava/util/Vector;)Ljava/util/Vector;(Ljava/util/Vector;)V(Z)V([Ljava/lang/Object;)V.mat.mat: <=> BEND_TABLE CONDITIONCancelCancel_ActionPerformedCloseCodeCond Condition ConstantValueDDisplayDisplay_ActionPerformed EMISSIVITY Emissivity Exceptions GetAllValHARDNESSHardnessIINITIAL_BEND_Y_FACTORInitial_Bend_Y_Factor InnerClasses Lcom/ptc/pfc/pfcSession/Session;LineNumberTableLjava/awt/Color;Ljava/awt/Insets;Ljava/io/PrintStream;Ljava/util/Vector;Ljavax/swing/JButton;Ljavax/swing/JComboBox;Ljavax/swing/JList;Ljavax/swing/JTextField;LocalVariables MASS_DENSITY Mass_DensityMaterialSearcher.javaMaterialSearcher: NSearchNSearch_ActionPerformed New Search POISSON_RATIO Poisson_RatioPropRSearchRSearch_ActionPerformed Refine Search SHEAR_MODULUS SPECIFIC_HEATSTRESS_LIMIT_FOR_COMPRESSIONSTRESS_LIMIT_FOR_SHEARSTRESS_LIMIT_FOR_TENSIONSTRUCTURAL_DAMPING_COEFFICIENTSearchSearch for Material Shear_Modulus SourceFile Specific_HeatStress_Limit_For_CompressionStress_Limit_For_ShearStress_Limit_For_TensionStructural_Damping_Coefficient SymAction SymWindow SyntheticTHERMAL_CONDUCTIVITYTHERMAL_EXPANSION_COEFFICIENTTHERM_EXPANSION_REF_TEMPERATURETherm_Expansion_Ref_CoefficeintThermal_Expansion_CoefficientThremal_ConductivityVal YOUNG_MODULUS Young_Modulusaccess$0access$1access$2access$3addaddActionListener addElementaddWindowListenerappend centerWindowclose!com/ptc/jlinkdemo/common/UIHelper+com/ptc/jlinkdemo/material/MaterialSearcher5com/ptc/jlinkdemo/material/MaterialSearcher$SymAction5com/ptc/jlinkdemo/material/MaterialSearcher$SymWindow$com/ptc/jlinkdemo/material/SelectBox conditioncreateHorizontalBoxcreateHorizontalGluecreateHorizontalStrutdatadispose doubleValue elementAtexception reading fill fillContent founddatagetContentPane getParent getRootPanegetSelectedIndexgetSelectedValuegetSelectionModelgetText gridwidthindexOfinsets invalid valuejava/awt/Colorjava/awt/Componentjava/awt/Containerjava/awt/Dimensionjava/awt/Framejava/awt/GridBagConstraintsjava/awt/GridBagLayoutjava/awt/Insetsjava/awt/Windowjava/io/BufferedReaderjava/io/FileNotFoundExceptionjava/io/FileReaderjava/io/IOExceptionjava/io/PrintStreamjava/lang/Doublejava/lang/NumberFormatExceptionjava/lang/Stringjava/lang/StringBufferjava/lang/Systemjava/lang/Throwablejava/util/Vectorjavax/swing/AbstractButtonjavax/swing/Boxjavax/swing/JButtonjavax/swing/JComboBoxjavax/swing/JComponentjavax/swing/JDialogjavax/swing/JLabeljavax/swing/JListjavax/swing/JRootPanejavax/swing/JScrollPanejavax/swing/JSeparatorjavax/swing/JTextFieldjavax/swing/ListSelectionModeljavax/swing/SwingConstantsjavax/swing/text/JTextComponentlengthnamesoutpackprintMsgprintStackTraceprintlnreadLine resultListsession setBackgroundsetConstraints setEditable setLayout setListDatasetMinimumSizesetPreferredSizesetSelectedIndexsetSelectionMode setVisibleshowErrorMessageshowMaterialFilesize substringtoStringvalueOfweightxweightywhite!2P KKKFZM6MvON[L:L2LUL -5`0*+e*JY\*JY\*-**,oG+,#.'//)5 *JY\*L+M+9Ydd`+9Y`$?5A=BBCKD[FbGdFgGiFlGnFqGsFvHxF{H}FIFIFJFJFKFKFKFKFLFNOPRSTUWYZ%[,\-[2]?_L`Yafbsdxefghijklmnopqstuv wxy&z-|7}?~FLRZagmw 2d%5)E*q`=*m>*JY\JY\:*t9++6Z+JD*+JFw+wy+JD`+w*+Jw>+JD%+w*+Jw+&*** W*0.*&14EG2 &&5@C`impy~  &145= ?&5ǻJY\LJY\M>:*JF:+w?YAYGYhzgf:Wh,|'q(f[PE:&/ $ +`w0+`wY: |,+wJY\LS:GY/hzzy+:GY/hzzy*T,-QT@XjmBXjEG5'--QTUXX[fq|     (3?DJU Z!_"g#jm%o'()+-./24V5& **sWG T R\5& **sWG Z X;5?*FM,*:,G_ `b]35* **Ghi f $53GYh*zG omy 5*pG&oz 5*rG#o{ 5*nG$o| 5*lG%ogSE42n32mPK &xa1com/ptc/jlinkdemo/material/MaterialSelector.class-o78DENOQVY`fmZ[\]^abcde ' ( ) * + , - . / 0 1 2 3 4 5 6 C; C= C@ I9 S< TB UA W; X> X? _J gL h@ i; j@ n:% ------------------------------------"()Lcom/ptc/pfc/pfcSession/Session;()Ljava/lang/String;()V(Lcom/ptc/pfc/pfcCommand/UICommand;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V#(Lcom/ptc/pfc/pfcSession/Session;)V,(Ljava/lang/Object;)Ljava/lang/StringBuffer;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)Vf(Ljava/lang/String;Lcom/ptc/pfc/pfcCommand/UICommandActionListener;)Lcom/ptc/pfc/pfcCommand/UICommand;K(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V ApplicationsApplications.psh_util_pprocCode ConstantValue ExceptionsGetProESession Lcom/ptc/pfc/pfcSession/Session;LineNumberTableLjava/io/PrintStream;LocalVariablesMatDemo Material DemoMaterialSelector.javaMaterialSelector:  SourceFile UIAddButton UIAddMenuUICreateCommandUser Applications addButtonappendclick to startcom/ptc/cipjava/jxthrowable2com/ptc/jlinkdemo/material/MaterialCommandListener+com/ptc/jlinkdemo/material/MaterialSelectorcom/ptc/pfc/pfcGlobal/pfcGlobalcom/ptc/pfc/pfcSession/Session curSession exception: java/io/PrintStreamjava/lang/Objectjava/lang/StringBufferjava/lang/Systemjava/lang/Throwable ootkmsg.txtoutprintMsgprintStackTraceprintlnstartstopstoppedtoString! _J k;Fm-!#KY *&#*$"% K&  ! #$!%)(, l;F" #K ., W;F Y!KL!*L#MY ,&#,$"%! !+  MY ,&#,$"%  <_` Kj5 4 7 9 <;9>@0A4B<D<HAICJGHLNROVPZN_D`RaTtUxV2 h@F3"Y* &%K ][C;F*KRPPK &aecc3com/ptc/jlinkdemo/material/SelectBox$SymMouse.class-.$%&()*        ' , -()Ljava/lang/Object;()V)(Lcom/ptc/jlinkdemo/material/SelectBox;)V(Ljava/awt/event/MouseEvent;)V(Z)VCode ConstantValue Exceptions InnerClasses&Lcom/ptc/jlinkdemo/material/SelectBox;LineNumberTableLjavax/swing/JButton;LocalVariablesOKAYSelectBox.java SourceFileSymMouse Synthetic$com/ptc/jlinkdemo/material/SelectBox-com/ptc/jlinkdemo/material/SelectBox$SymMouse.com/ptc/jlinkdemo/material/SelectBox$SymWindow getSourcejava/awt/Componentjava/awt/event/MouseAdapterjava/util/EventObject mousePressed setVisiblethis$0 -#+=+ M,*  *  wxyu7**+ *+ s  s s!  "PK &4com/ptc/jlinkdemo/material/SelectBox$SymWindow.class-$     ! "()V)(Lcom/ptc/jlinkdemo/material/SelectBox;)V(Ljava/awt/event/WindowEvent;)V(Z)VCode ConstantValue Exceptions InnerClasses&Lcom/ptc/jlinkdemo/material/SelectBox;LineNumberTableLocalVariablesSelectBox.java SourceFile SymWindow Synthetic$com/ptc/jlinkdemo/material/SelectBox-com/ptc/jlinkdemo/material/SelectBox$SymMouse.com/ptc/jlinkdemo/material/SelectBox$SymWindowjava/awt/Componentjava/awt/event/WindowAdapter setVisiblethis$0 windowClosing "#% * om 7**+*+k  k k PK &8q *com/ptc/jlinkdemo/material/SelectBox.class-q M M M N O P P Q R S T T !T U V W X Y Z [ \ ] ^ _ ` a b c d #e !f g h i j k l m n o p w y z { | } x u r u s v w t w ~  t  is not found()Ljava/awt/Component;()Ljava/awt/Container;()Ljava/lang/String;()Ljavax/swing/Box;()Ljavax/swing/JRootPane;()V(C)Ljava/lang/StringBuffer;(I)V(II)V)(Lcom/ptc/jlinkdemo/material/SelectBox;)V*(Ljava/awt/Component;)Ljava/awt/Component;)(Ljava/awt/Component;Ljava/lang/Object;)V;(Ljava/awt/Component;Ljava/lang/String;Ljava/lang/String;)V>(Ljava/awt/Component;Ljava/lang/Throwable;Ljava/lang/String;)V(Ljava/awt/Dimension;)V(Ljava/awt/Font;)V%(Ljava/awt/Frame;Ljava/lang/String;)V7(Ljava/awt/Frame;Ljava/lang/String;Ljava/lang/String;)V&(Ljava/awt/Frame;Ljava/lang/String;Z)V(Ljava/awt/LayoutManager;)V(Ljava/awt/Window;)V!(Ljava/awt/event/MouseListener;)V"(Ljava/awt/event/WindowListener;)V(Ljava/io/Reader;)V&(Ljava/lang/Object;)Ljava/lang/String;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V(Ljava/lang/String;II)V(Z)V.matCenterCloseCode ConstantValueCourier ExceptionsFile:  InnerClassesLineNumberTableLjavax/swing/JButton;Ljavax/swing/JTextArea;LocalVariablesMaterial File: OKAYSelectBox.java SourceFileSymMouse SymWindowaddaddMouseListeneraddWindowListenerappend centerWindow!com/ptc/jlinkdemo/common/UIHelper$com/ptc/jlinkdemo/material/SelectBox-com/ptc/jlinkdemo/material/SelectBox$SymMouse.com/ptc/jlinkdemo/material/SelectBox$SymWindowcreateHorizontalBoxcreateHorizontalGluecreateVerticalBoxgetContentPane getRootPanejava/awt/BorderLayoutjava/awt/Componentjava/awt/Containerjava/awt/Dialogjava/awt/Dimension java/awt/Fontjava/awt/Windowjava/io/BufferedReaderjava/io/FileNotFoundExceptionjava/io/FileReaderjava/io/IOExceptionjava/lang/Stringjava/lang/StringBufferjavax/swing/AbstractButtonjavax/swing/Boxjavax/swing/JButtonjavax/swing/JComponentjavax/swing/JDialogjavax/swing/JRootPanejavax/swing/JSeparatorjavax/swing/JTextAreajavax/swing/SwingConstantsjavax/swing/text/JTextComponentpackreadLinereading material file  setEditablesetFont setLayoutsetMinimumSizesetPreferredSizesetTextshowshowErrorMessage showExceptionshowMaterialFile textArea1toStringvalueOf! h*+,,*>:=:Ydd(DY1(E Y$C<:4*!Y-0J*JA*JY 1B*J3W Y'3W::3W*Y&2*2F;3W*23W;3W* Y**6*2 Y*)5*?*9f " #%$&6.B/G0P2\3d4w579:;<=>?CDGH 5Y+L/8KMYY,.-NY%:8W 7W-@Y: Y*Y/,8KK+GW*Y/,88KY/,8KHN*-Y/,8KIjkjfMNQ#P$R-T0V8W@TJZ_[dZg\jNk^l`mab`NdfgfK PK m.com/ptc/jlinkdemo/parameditor/PK &,y7/com/ptc/jlinkdemo/parameditor/ParamEditor.class-h=>ADIKPX]fRSTUVWYZ[\ $ % & ' ( ) * + , - . / 0 1 2 <5 <7 <9 C3 M6 N: O5 Q8 ^G _9 `9 aE b5 c; g4"()Lcom/ptc/pfc/pfcSession/Session;()Ljava/lang/String;()V(Lcom/ptc/pfc/pfcCommand/UICommand;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V#(Lcom/ptc/pfc/pfcSession/Session;)V,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)Vf(Ljava/lang/String;Lcom/ptc/pfc/pfcCommand/UICommandActionListener;)Lcom/ptc/pfc/pfcCommand/UICommand;*(Ljava/lang/Throwable;Ljava/lang/String;)V ApplicationsApplications.psh_util_pprocCode ConstantValueEdit model parameters ExceptionsGetProESessionJLink Parameter Editor Lcom/ptc/pfc/pfcSession/Session;LineNumberTableLjava/io/PrintStream;LocalVariables ParamEditorParamEditor.java ParamEditor:  SourceFile UIAddButtonUICreateCommand addButtonadding release check buttonappendcom/ptc/cipjava/jxthrowable!com/ptc/jlinkdemo/common/UIHelper)com/ptc/jlinkdemo/parameditor/ParamEditor1com/ptc/jlinkdemo/parameditor/ParamEditorListenercom/ptc/pfc/pfcGlobal/pfcGlobalcom/ptc/pfc/pfcSession/Sessiongetting Pro/E sessionjava/io/PrintStreamjava/lang/Objectjava/lang/StringBufferjava/lang/Systemmsg_peditor.txtoutprintMsgprintlnsessionsetLookAndFeel showExceptionstartstopstoppedtoString!  aE d5?S K*"! F"   ! e5?" F '% O5?1 Y K * K*"() FB-010/34567!8#3(-):*<0+ _9?3Y*#F CA<5?*FLJPK &F! ! 7com/ptc/jlinkdemo/parameditor/ParamEditorListener.class-Kilmqrstuvwxy 3 3 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J ^P ^U ^Z bM eN oX pY z\ {S |P }Q ~L Z f Z R c P [ V L g O W Error()I()Lcom/ptc/pfc/pfcModel/Model;'()Lcom/ptc/pfc/pfcModelItem/Parameters;()Ljava/lang/String;()V'(I)Lcom/ptc/pfc/pfcModelItem/Parameter;,(Lcom/ptc/pfc/pfcModelItem/ParameterOwner;)Vy(Lcom/ptc/pfc/pfcModelItem/ParameterOwner;Lcom/ptc/pfc/pfcModelItem/Parameter;)Lcom/ptc/jlinkdemo/common/ParameterHelper;#(Lcom/ptc/pfc/pfcSession/Session;)Va(Lcom/ptc/pfc/pfcSession/Session;[Lcom/ptc/jlinkdemo/common/ParameterHelper;ZLjava/lang/String;)V<(Ljava/awt/Component;Ljava/lang/Object;Ljava/lang/String;I)V&(Ljava/lang/Object;)Ljava/lang/String;(Ljava/lang/Object;)V,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V*(Ljava/lang/Throwable;Ljava/lang/String;)V([Ljava/lang/Object;)VCode ConstantValue ExceptionsGetCurrentModel Lcom/ptc/pfc/pfcSession/Session;LineNumberTable ListParamsLjava/io/PrintStream;Ljava/lang/String;LocalVariablesNo current model OnCommandParamEditorListener.javaParamEditorListener: Parameter Editor SourceFile addElementappendcom/ptc/cipjava/jxthrowable$com/ptc/jlinkdemo/common/ParamWindow(com/ptc/jlinkdemo/common/ParameterHelper!com/ptc/jlinkdemo/common/UIHelper1com/ptc/jlinkdemo/parameditor/ParamEditorListener5com/ptc/pfc/pfcCommand/DefaultUICommandActionListener'com/ptc/pfc/pfcModelItem/ParameterOwner#com/ptc/pfc/pfcModelItem/Parameters"com/ptc/pfc/pfcSession/BaseSessioncopyIntocreatedisposeget getarraysizejava/awt/Dialogjava/awt/Framejava/awt/Windowjava/io/PrintStreamjava/lang/Stringjava/lang/StringBufferjava/lang/Systemjava/lang/Throwablejava/util/Vectorjavax/swing/JOptionPanemsgBoxoutperforming release checksprintMsgprintlnprocessParameterOwnersessionshow showExceptionshowMessageDialogsizetitletoStringvalueOf cg^T_* **++d(* (jP_f"*+L+ '*+*L+-d* 79 :;:=7?A!3R_o+M,&>Y:6",%:+#:  /:"Y*+0:,$dBMN OPR#S+T0V7P@\H[J]Q_d`ianJa Z_3(Y*!1)d ge Z_N"Y*Y02!1.dlmnol!j]P_"0d #nkPK Do.com/ptc/tracker/PK m.Jcom/ptc/tracker/Labeler.class- O P P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | }  ~ ~ ()Ljava/lang/String;()V()[Ljava/lang/reflect/Field;&(Ljava/lang/Class;)[Ljava/lang/String;(Ljava/lang/Object;)I&(Ljava/lang/Object;)Ljava/lang/Object;(Ljava/lang/Object;)Z%(Ljava/lang/String;)Ljava/lang/Class;-(Ljava/lang/String;)Ljava/lang/reflect/Field;(Ljava/lang/String;)VCode ConstantValueI Labeler.javaLineNumberTableLjava/lang/Class;MAX_ARRAY_SIZE SourceFile Synthetic[Ljava/lang/String;__Lastclass$#class$com$ptc$pfc$pfcBase$Placement"class$com$ptc$pfc$pfcBase$StdColor&class$com$ptc$pfc$pfcBase$StdLineStyle,class$com$ptc$pfc$pfcDimension$DimensionType*class$com$ptc$pfc$pfcFeature$FeatureStatus(class$com$ptc$pfc$pfcFeature$FeatureType.class$com$ptc$pfc$pfcGeometry$ContourTraversal(class$com$ptc$pfc$pfcLayer$DisplayStatus(class$com$ptc$pfc$pfcModel$CGMExportType'class$com$ptc$pfc$pfcModel$CGMScaleType%class$com$ptc$pfc$pfcModel$ExportType$class$com$ptc$pfc$pfcModel$ModelType(class$com$ptc$pfc$pfcModel$PlotPageRange(class$com$ptc$pfc$pfcModel$PlotPaperSize,class$com$ptc$pfc$pfcModelItem$ModelItemType-class$com$ptc$pfc$pfcModelItem$ParamValueType&class$com$ptc$pfc$pfcSession$ParamTypecom.ptc.pfc.pfcBase.Placementcom.ptc.pfc.pfcBase.StdColor com.ptc.pfc.pfcBase.StdLineStyle&com.ptc.pfc.pfcDimension.DimensionType$com.ptc.pfc.pfcFeature.FeatureStatus"com.ptc.pfc.pfcFeature.FeatureType(com.ptc.pfc.pfcGeometry.ContourTraversal"com.ptc.pfc.pfcLayer.DisplayStatus"com.ptc.pfc.pfcModel.CGMExportType!com.ptc.pfc.pfcModel.CGMScaleTypecom.ptc.pfc.pfcModel.ExportTypecom.ptc.pfc.pfcModel.ModelType"com.ptc.pfc.pfcModel.PlotPageRange"com.ptc.pfc.pfcModel.PlotPaperSize&com.ptc.pfc.pfcModelItem.ModelItemType'com.ptc.pfc.pfcModelItem.ParamValueType com.ptc.pfc.pfcSession.ParamType"com/ptc/pfc/pfcFeature/FeatureTypecom/ptc/tracker/LabelerforNamegetgetField getFieldsgetInt getLength getMessagegetNameinitStringArrayinvalid isInstancejava/lang/Class java/lang/ClassNotFoundExceptionjava/lang/NoClassDefFoundErrorjava/lang/Objectjava/lang/Stringjava/lang/Throwablejava/lang/reflect/Arrayjava/lang/reflect/FieldpfcCGMExportTypepfcCGMScaleTypepfcContourTraversalpfcDimensionTypepfcDisplayStatus pfcExportTypepfcFeatureStatuspfcFeatureTypepfcModelItemType pfcModelType pfcParamTypepfcParamValueType pfcPlacementpfcPlotPageRangepfcPlotPaperSize pfcStdColorpfcStdLineStyle!#(̲# # "Y#<J$ $ "Y$<M% % "Y%<N& & "Y&<A( ( "Y(<E' ' "Y'<D) )  "Y)<@* *  "Y*<B+ +  "Y+<>, ,  "Y,<?- -  "Y-<C. . "Y.<G/ / "Y/<K0 0 "Y0<L1 1 "Y1<F2 2 "Y2<I3 3 "Y3<HJ "6$Q&l(*,.024)6D8_:z<>@*2*4LY+:   L6*+6:*7:+WԽ:>Y!Sԡ8=+WԽ:>Y!Sԡ::>Y!S>$*25=2;S9٧W>EH$HIPR SPUWX$Y1X;Z>^>_E^HaIcQdVecdmfpivj|klknoqstonxz|PK &K6>>com/ptc/tracker/Labeler.javapackage com.ptc.tracker; /*****************************************************************************\ FILE: Labeler.java PURPOSE: Returns a string correspondign to the specified J-Link enum value. 09-Apr-99 I-01-34 JCN $$1 Created. \*****************************************************************************/ //---------------------------PFC imports------------------------// import com.ptc.pfc.pfcBase.*; import com.ptc.pfc.pfcDimension.*; import com.ptc.pfc.pfcFeature.*; import com.ptc.pfc.pfcGeometry.*; import com.ptc.pfc.pfcLayer.*; import com.ptc.pfc.pfcModel.*; import com.ptc.pfc.pfcModelItem.*; import com.ptc.pfc.pfcSession.*; //---------------------------Java imports-----------------------// import java.lang.reflect.*; public class Labeler { public static final int MAX_ARRAY_SIZE = FeatureType.__Last - 1; public static final String pfcPlacement[] = initStringArray(Placement.class); public static final String pfcStdColor[] = initStringArray(StdColor.class); public static final String pfcStdLineStyle[] = initStringArray(StdLineStyle.class); public static final String pfcDimensionType[] = initStringArray(DimensionType.class); public static final String pfcFeatureType[] = initStringArray(FeatureType.class); public static final String pfcFeatureStatus[] = initStringArray(FeatureStatus.class); public static final String pfcContourTraversal[] = initStringArray(ContourTraversal.class); public static final String pfcDisplayStatus[] = initStringArray(DisplayStatus.class); public static final String pfcCGMExportType[] = initStringArray(CGMExportType.class); public static final String pfcCGMScaleType[] = initStringArray(CGMScaleType.class); public static final String pfcExportType[] = initStringArray(ExportType.class); public static final String pfcModelType[] = initStringArray(ModelType.class); public static final String pfcPlotPageRange[] = initStringArray(PlotPageRange.class); public static final String pfcPlotPaperSize[] = initStringArray(PlotPaperSize.class); public static final String pfcModelItemType[] = initStringArray(ModelItemType.class); public static final String pfcParamValueType[] = initStringArray(ParamValueType.class); public static final String pfcParamType[] = initStringArray(ParamType.class); /** * Returns an array of strings representing the names of the fields of a * J-Link enumerated type. */ public static String [] initStringArray(Class typeclass) { String last_type = "__Last"; int num_types,i, j=0; Field temp []; Field last; String [] invalid; String [] ret; try { last=typeclass.getField(last_type); temp=typeclass.getFields(); } catch (Throwable n) { invalid = new String [MAX_ARRAY_SIZE]; for (i=0; i(Lcom/ptc/pfc/pfcModel/Model;)Lcom/ptc/pfc/pfcFeature/Feature;((Lcom/ptc/pfc/pfcModelItem/ParamValue;)V@(Lcom/ptc/pfc/pfcSession/Session;Lcom/ptc/pfc/pfcModel/Models;)VZ(Ljava/lang/Boolean;Lcom/ptc/pfc/pfcFeature/FeatureType;)Lcom/ptc/pfc/pfcFeature/Features;(Ljava/lang/Object;)V(Ljava/lang/Object;)Z9(Ljava/lang/String;)Lcom/ptc/pfc/pfcModelItem/ParamValue;8(Ljava/lang/String;)Lcom/ptc/pfc/pfcModelItem/Parameter;,(Ljava/lang/String;)Ljava/lang/StringBuffer;(Ljava/lang/String;)V](Ljava/lang/String;Lcom/ptc/pfc/pfcModelItem/ParamValue;)Lcom/ptc/pfc/pfcModelItem/Parameter;$(Ljava/util/Date;)Ljava/lang/String;([Ljava/util/Vector;I)V ACCESS_PARAMCREATION_PARAMCode ConstantValue CreateParamCreateStringParamValue ExceptionsExitingFALSEGetDescr GetFeatType GetFullNameGetIdGetNameGetParamGetPath GetStatusGetStringValueGetTypeGetValueGetVersionStamp Getting information from model: JLINK_TRACKER_ACCESS_PARAMJLINK_TRACKER_CREATION_PARAMLcom/ptc/pfc/pfcModel/Models; Lcom/ptc/pfc/pfcSession/Session;Lcom/ptc/tracker/TrackerDialog;LineNumberTableListFeaturesByTypeLjava/io/PrintStream;Ljava/lang/Boolean;Ljava/lang/String; MDL_ASSEMBLYMDL_PARTNEWNo models in sessionNo features in solid modelSetValueShowing dialog SourceFile Tracker.java[Ljava/lang/String;[Ljava/util/Vector; addElementappendcom/ptc/cipjava/jxthrowablecom/ptc/pfc/pfcFeature/Feature$com/ptc/pfc/pfcFeature/FeatureStatus"com/ptc/pfc/pfcFeature/FeatureTypecom/ptc/pfc/pfcFeature/Featurescom/ptc/pfc/pfcModel/Model$com/ptc/pfc/pfcModel/ModelDescriptorcom/ptc/pfc/pfcModel/ModelTypecom/ptc/pfc/pfcModel/Models&com/ptc/pfc/pfcModelItem/BaseParameter"com/ptc/pfc/pfcModelItem/ModelItem#com/ptc/pfc/pfcModelItem/ParamValue'com/ptc/pfc/pfcModelItem/ParameterOwner%com/ptc/pfc/pfcModelItem/pfcModelItemcom/ptc/pfc/pfcSolid/Solidcom/ptc/tracker/Labelercom/ptc/tracker/Trackercom/ptc/tracker/TrackerDialogdialogequalsexitformatgetgetDateTimeInstancegetLastFeature getModelInfogetValue getarraysizejava/io/PrintStreamjava/lang/Booleanjava/lang/Integerjava/lang/Objectjava/lang/Stringjava/lang/StringBufferjava/lang/Systemjava/text/DateFormatjava/util/Datejava/util/Vector modelDatamodelsno_nameoutpfcFeatureStatuspfcFeatureType pfcModelTypeprintMsgprintlnsessiontoString!!\*(+X,QQO>*V*VD*'P6 *J* V*Y*P.B>$&' ()+,$-(00264<2E6K7[$  c+1>:N6 * VF:5=6"F:5> :=>"$,4:CKPTV` yQGN'Y +M-4:*#Y-AYV,@-;:UM2:,@-2:8:,@ Y-=,: , @H: -7:   &Y)E0: - /:  <:  :: , @-7:0:-/:<:::,@ &Y)E0:?C Cy*-I: *P,S6: :,@3:TL2:,@ Y5*:,@9:SK2:,@*P,S0cdgh/i5l=mHnNqVr_sevtwzz} '.3:;DMS\gm} $R+W PK &8com/ptc/tracker/Tracker.javapackage com.ptc.tracker; /*****************************************************************************\ FILE: Tracker.java PURPOSE: Tracks model information and displays this information in a dialog upon creation. 09-Apr-99 I-01-34 JCN $$1 Created. \*****************************************************************************/ import com.ptc.cipjava.*; import com.ptc.pfc.pfcSession.*; import com.ptc.pfc.pfcModel.*; import com.ptc.pfc.pfcModelItem.*; import com.ptc.pfc.pfcFeature.*; import com.ptc.pfc.pfcSolid.*; import com.ptc.pfc.pfcExceptions.*; import java.util.*; import java.text.DateFormat; public class Tracker { TrackerDialog dialog; Vector [] modelData; static Session session; static Models models; // Constants public static final String CREATION_PARAM = "JLINK_TRACKER_CREATION_PARAM"; public static final String ACCESS_PARAM = "JLINK_TRACKER_ACCESS_PARAM"; public Tracker (Session inSession, Models inModels) throws jxthrowable { session = inSession; models = inModels; int modelCount = models.getarraysize(); if (modelCount < 1) { printMsg("No models in session"); printMsg("Exiting"); System.exit(-1); } modelData = new Vector [modelCount]; for (int i = 0; i< modelCount; i++) { getModelInfo(i); } printMsg("Showing dialog"); dialog = new TrackerDialog (modelData, modelCount); } /* Info collected and displayed: * Model FullName (String) * Model Type (String) * Directory path (String) * Model Version stamp (Integer) * Creation date (String) * Last access date (String) * Last feature created (String) * Last feature type (String) * Last feature id (Integer) * Last feature display status (String) */ public void getModelInfo(int index) throws jxthrowable { Vector data_i; Model model_i; /* Model data */ String name; ModelType type; String typeString; ModelDescriptor desc; String path; Integer versionStamp; DateFormat defaultDateFormat; Parameter creation; ParamValue creationValue; String creationString; Parameter access; ParamValue accessValue; String accessString; Feature last; String fname; FeatureType ftype; String ftypeString; Integer fid; FeatureStatus fstatus; String fstatusString; model_i = models.get(index); data_i = new Vector (10); /* Get model full name */ name = model_i.GetFullName(); printMsg("Getting information from model: "+name); data_i.addElement(name); /* Get model type */ type = model_i.GetType(); typeString = Labeler.pfcModelType[type.getValue()]; data_i.addElement(typeString); /* Get directory path */ desc = model_i.GetDescr(); path = desc.GetPath(); data_i.addElement(path); /* Get version stamp */ versionStamp = new Integer(model_i.GetVersionStamp()); data_i.addElement(versionStamp); /* Get creation date from a user parameter */ defaultDateFormat = DateFormat.getDateTimeInstance(); creation = model_i.GetParam(CREATION_PARAM); if (creation == null) { // Parameter does not yet exist creationValue = pfcModelItem.CreateStringParamValue(defaultDateFormat.format(new Date())); creation = model_i.CreateParam(CREATION_PARAM, creationValue); } creationValue = creation.GetValue(); creationString = creationValue.GetStringValue(); data_i.addElement(creationString); /* Get access date from a user parameter */ access = model_i.GetParam(ACCESS_PARAM); if (access == null) { // Parameter does not yet exist accessValue = pfcModelItem.CreateStringParamValue("NEW"); access = model_i.CreateParam(ACCESS_PARAM, accessValue); } accessValue = access.GetValue(); accessString = accessValue.GetStringValue(); data_i.addElement(accessString); //Set the value to the current date accessValue = pfcModelItem.CreateStringParamValue(defaultDateFormat.format(new Date())); access.SetValue(accessValue); if (typeString.equals("MDL_PART") || typeString.equals("MDL_ASSEMBLY")) { /* Get last feature */ last = getLastFeature(model_i); if (last == null) { modelData[index] = data_i; return; } fname = last.GetName(); if (fname == null) fname = "no_name"; data_i.addElement(fname); /* Get feature type */ ftype = last.GetFeatType(); ftypeString = Labeler.pfcFeatureType[ftype.getValue()]; data_i.addElement(ftypeString); /* Get feature id */ fid = new Integer(last.GetId()); data_i.addElement(fid); /* Get feature status */ fstatus = last.GetStatus(); fstatusString = Labeler.pfcFeatureStatus[fstatus.getValue()]; data_i.addElement(fstatusString); } modelData[index] = data_i; return; } private Feature getLastFeature (Model model) throws jxthrowable { int latest_id; int next_id; int featCount; Features feats; Feature latest; Feature next; feats = ((Solid)model).ListFeaturesByType(Boolean.FALSE, null); featCount = feats.getarraysize(); if (featCount < 1) { printMsg("No features in solid model"); return (null); } latest = feats.get(0); latest_id = latest.GetId(); for (int i =1; i latest_id) { latest = next; latest_id = next_id; } } return (latest); } private void printMsg (String Msg) { System.out.println(Msg); } } PK m.:KM#com/ptc/tracker/TrackerCanvas.class-]89:;?@ABCFINOPQRST ! " # $ % & ' ( ) * + , 60 H= J> K4 L1 M/ UG W= X2 Y2 Z- [. \=()I()Ljava/lang/String;()Ljava/util/Enumeration;()V(I)Ljava/lang/Object;(Ljava/awt/Color;)V(Ljava/awt/Graphics;)V(Ljava/lang/String;II)V(Ljava/util/Vector;)VCodeLast feature created:Last feature id:Last feature status:Last feature type:LineNumberTableLjava/awt/Color;Ljava/util/Vector;Model accessed on:Model created on:Model full name: Model path: Model type: SourceFileTrackerCanvas.javaVersion stamp:[Ljava/lang/String;blackcom/ptc/tracker/TrackerCanvasdata drawString elementAtelementsjava/awt/Canvasjava/awt/Colorjava/awt/Componentjava/awt/Graphicsjava/lang/Objectjava/lang/Stringjava/util/Vectorlabelspaintred setBackgroundsetColorsizetoStringwhite! UGJ>657I** YSY SYSY SYSYSYSYSYSY S*+<Z "%'+-1379=?CHV37 l:::6**M6;*N++*2 ++-*<>&' ()+-!0'21374F5L6Y7\0k"DEPK &LZi"com/ptc/tracker/TrackerCanvas.javapackage com.ptc.tracker; /*****************************************************************************\ FILE: TrackerCanvas.java PURPOSE: Prints model information by building a java.awt.Canvas component. 09-Apr-99 I-01-34 JCN $$1 Created. \*****************************************************************************/ import java.util.*; import java.awt.*; public class TrackerCanvas extends Canvas { String[] labels = {"Model full name:", "Model type:", "Model path:", "Version stamp:", "Model created on:", "Model accessed on:", "Last feature created:", "Last feature type:", "Last feature id:", "Last feature status:"}; Vector data; public TrackerCanvas (Vector inData) { data = inData; } public void paint (Graphics g) { Enumeration e; Object element; Color red = Color.red; Color white = Color.white; Color black = Color.black; int y_loc = 20; setBackground (white); e = data.elements(); for (int i =0; i < data.size(); i++) { element = data.elementAt(i); g.setColor (black); g.drawString(labels[i], 10, y_loc); g.setColor(red); g.drawString(element.toString(), 150, y_loc); y_loc += 20; } } } PK m.2v>%com/ptc/tracker/TrackerChoice$1.class-L89:@ABCDEF           ! " *% 6' 70 ;, <) =# >$ G5 H4 I% J. K%()Ljava/awt/Container;()Ljava/lang/String;()V"(Lcom/ptc/tracker/TrackerChoice;)V*(Ljava/awt/Component;)Ljava/awt/Component;(Ljava/awt/event/ItemEvent;)V(Ljava/lang/Object;)ZCodeI InnerClassesLcom/ptc/tracker/TrackerChoice;LineNumberTableLjava/awt/Panel; SourceFile SyntheticTrackerChoice.java[Ljava/awt/Panel;[Ljava/lang/String;add changePanelcom/ptc/tracker/TrackerChoicecom/ptc/tracker/TrackerChoice$1com/ptc/tracker/TrackerDialogcountequals getParentgetSelectedItemitemStateChangedjava/awt/Choicejava/awt/Componentjava/awt/Containerjava/awt/Paneljava/awt/event/ItemListenerjava/lang/Objectjava/lang/Stringnamespanels removeAllthis$0validate0 J.2*&+" * *+/(2?(+j*M,N*:6>*2)* * -2 W* */* + ,-."082B3T4Z.i)13- PK m.Uq@#com/ptc/tracker/TrackerChoice.class-.'(+,           $ % & ) * -#()V"(Lcom/ptc/tracker/TrackerChoice;)V&(Ljava/awt/Panel;[Ljava/lang/String;)V (Ljava/awt/event/ItemListener;)V(Ljava/lang/Object;)I(Ljava/lang/String;)VCodeI InnerClassesLineNumberTableLjava/awt/Panel; SourceFileTrackerChoice.java[Ljava/lang/String;addaddItemListener changePanelcom/ptc/tracker/TrackerChoicecom/ptc/tracker/TrackerChoice$1count getLengthjava/awt/Choicejava/lang/reflect/Arraynames!& -#)x@**, *+ ** >** 2* *Y*&  !#%(#3(?!" PK !&C"com/ptc/tracker/TrackerChoice.javapackage com.ptc.tracker; /*****************************************************************************\ FILE: TrakerChoice.java PURPOSE: Controls the changing of the dialog when a different model is selected. 09-Apr-99 I-01-34 JCN $$1 Created. \*****************************************************************************/ import java.awt.*; import java.awt.event.*; import java.lang.reflect.*; public class TrackerChoice extends Choice { Panel changePanel; String [] names; int count; public TrackerChoice(Panel panel, String [] mNames) { names = mNames; changePanel = panel; count = Array.getLength(names); for (int i =0; iCode InnerClassesLcom/ptc/tracker/TrackerDialog;LineNumberTable SourceFile SyntheticTrackerDialog.javaactionPerformedcom/ptc/tracker/TrackerDialog$1disposejava/awt/Dialogjava/awt/event/ActionListenerjava/lang/Objectthis$00 " **+@ $* DB PK m.&:jyy#com/ptc/tracker/TrackerDialog.class-mGMTUVW^_`abcdef % % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 F9 F= F? F@ FB FD R> SA XI YC ZQ [; \: ]9 gL h9 iP j< k9 lL()V()[Ljava/lang/String;(I)Ljava/lang/Object;(II)V"(Lcom/ptc/tracker/TrackerDialog;)V*(Ljava/awt/Component;)Ljava/awt/Component;&(Ljava/awt/Frame;Ljava/lang/String;Z)V&(Ljava/awt/Panel;[Ljava/lang/String;)V"(Ljava/awt/event/ActionListener;)V(Ljava/lang/String;)V$(Ljava/util/Vector;)Ljava/awt/Panel;(Ljava/util/Vector;)V([Ljava/util/Vector;I)VCloseCodeI InnerClassesLineNumberTableLjava/awt/Panel;Pro/J.Link Tracker Information SourceFileTrackerDialog.java[Ljava/awt/Panel;[Ljava/util/Vector;addaddActionListenercom/ptc/tracker/TrackerCanvascom/ptc/tracker/TrackerChoicecom/ptc/tracker/TrackerDialogcom/ptc/tracker/TrackerDialog$1count createPaneldata elementAt getModelNamesinitjava/awt/Buttonjava/awt/Componentjava/awt/Containerjava/awt/Dialogjava/awt/Framejava/awt/Paneljava/awt/Windowjava/lang/Stringjava/util/Vector mainPanelpackpanelssetSizeshowsubPanel! ZQXIiPgLlLFEHa-* Y+**X,"* *#K" !#$$%(',YCHY- YMY+N-",-W,",KVXY[!]+_\:HO'L=+2S+Kfh jh%m]9H* Y* Y$* !>*!*2S*$*!2W**$WYM,Y**,WY*$*L*+W**WKB/ 02 8%:48><L=X?b@nGwH~JKM*NOJ PK &&C"com/ptc/tracker/TrackerDialog.javapackage com.ptc.tracker; /*****************************************************************************\ FILE: TrackerDialog.java PURPOSE: Prints model information in the dialog using java.awt components. 09-Apr-99 I-01-34 JCN $$1 Created. \*****************************************************************************/ import java.awt.*; import java.awt.event.*; import java.util.*; public class TrackerDialog extends Dialog { static Vector[] data; static int count; Panel [] panels; Panel mainPanel, subPanel; public TrackerDialog (Vector[] modelData, int modelCount) { super (new Frame(), "Pro/J.Link Tracker Information", true); data=modelData; count =modelCount; init(); setSize(600, 300); pack(); show(); } private void init () { TrackerChoice choice; Button closeButton; mainPanel = new Panel(); subPanel = new Panel(); panels = new Panel [count]; for (int i =0; i 1) { choice = new TrackerChoice(subPanel, getModelNames()); mainPanel.add(choice); } add(mainPanel); } private Panel createPanel (Vector v) { Panel panel; TrackerCanvas canvas; panel =new Panel(); canvas = new TrackerCanvas(v); canvas.setSize(500, 250); panel.add(canvas); panel.setSize(505, 255); return (panel); } private String [] getModelNames() { String names [] = new String [count]; for (int i =0; icom/ptc/jlinkdemo/configdb/ParamDialog$SetButtonListener.classPK Fl.Pm,lcom/ptc/jlinkdemo/configdb/ParamDialog.classPK r.nj||+)com/ptc/jlinkdemo/configdb/ParamDialog.javaPK r.ge4zCcom/ptc/jlinkdemo/configdb/pfcParameterExamples.javaPK r.߾p/Jcom/ptc/jlinkdemo/configdb/pfcuParamValue.classPK r.ӫ.Ocom/ptc/jlinkdemo/configdb/pfcuParamValue.javaPK Fl.G>Ucom/ptc/jlinkdemo/configdb/ResultDialog$OKButtonListener.classPK Fl.}eFXcom/ptc/jlinkdemo/configdb/ResultDialog$ResultDialogEventHandler.classPK Fl.339com/ptc/jlinkdemo/custom/NullValueSuppliedException.classPK &2"com/ptc/jlinkdemo/custom/OutOfRangeException.classPK &,<`com/ptc/jlinkdemo/custom/RangeIncrementalParameterType.classPK &?> > 1}com/ptc/jlinkdemo/custom/RangeParameterType.classPK &y< com/ptc/jlinkdemo/custom/UnsupportedValueTypeException.classPK m.{com/ptc/jlinkdemo/material/PK &[j8com/ptc/jlinkdemo/material/MaterialCommandListener.classPK &:^1com/ptc/jlinkdemo/material/MaterialDialog$1.classPK &e1com/ptc/jlinkdemo/material/MaterialDialog$2.classPK &-ۻ9!com/ptc/jlinkdemo/material/MaterialDialog$SymAction.classPK &r$ʏ9 'com/ptc/jlinkdemo/material/MaterialDialog$SymWindow.classPK &ME\/*com/ptc/jlinkdemo/material/MaterialDialog.classPK &eJl;>Gcom/ptc/jlinkdemo/material/MaterialSearcher$SymAction.classPK &ȃ==;oLcom/ptc/jlinkdemo/material/MaterialSearcher$SymWindow.classPK &f6u#u#1Pcom/ptc/jlinkdemo/material/MaterialSearcher.classPK &xa1scom/ptc/jlinkdemo/material/MaterialSelector.classPK &aecc3|com/ptc/jlinkdemo/material/SelectBox$SymMouse.classPK &4vcom/ptc/jlinkdemo/material/SelectBox$SymWindow.classPK &8q *com/ptc/jlinkdemo/material/SelectBox.classPK m.Ǒcom/ptc/jlinkdemo/parameditor/PK &,y7/com/ptc/jlinkdemo/parameditor/ParamEditor.classPK &F! ! 7com/ptc/jlinkdemo/parameditor/ParamEditorListener.classPK Do.xcom/ptc/tracker/PK m.Jcom/ptc/tracker/Labeler.classPK &K6>>޷com/ptc/tracker/Labeler.javaPK m.z44Vcom/ptc/tracker/Tracker.classPK &8com/ptc/tracker/Tracker.javaPK m.:KM#com/ptc/tracker/TrackerCanvas.classPK &LZi"com/ptc/tracker/TrackerCanvas.javaPK m.2v>%com/ptc/tracker/TrackerChoice$1.classPK m.Uq@#com/ptc/tracker/TrackerChoice.classPK !&C">com/ptc/tracker/TrackerChoice.javaPK m.賡,,%com/ptc/tracker/TrackerDialog$1.classPK m.&:jyy# com/ptc/tracker/TrackerDialog.classPK &&C"Hcom/ptc/tracker/TrackerDialog.javaPK><