private void commonConstructor() { System.err.println("Render Navigator View ..."); this.startTimeMSecs = System.currentTimeMillis(); // isDebugPrint = true; isDebugPrint = false; // timelineColorMap = createTimelineColorMap(); highlightPathNodesList = null; this.setName(navigatorFrame.getTitle()); viewName = ViewConstants.NAVIGATOR_VIEW; navLinkMap = new HashMap(); entityNavNodeMap = new HashMap(); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); jGoView = new NavigatorJGoView(this); jGoView.addViewListener(createViewListener()); jGoView.setBackground(ViewConstants.VIEW_BACKGROUND_COLOR); add(jGoView, BorderLayout.NORTH); jGoView.validate(); jGoView.setVisible(true); this.setVisible(true); // SwingUtilities.invokeLater( runInit); final SwingWorker worker = new SwingWorker() { public Object construct() { init(); return null; } }; worker.start(); } // end commonConstructor
/** * <code>invokeFindEntityPathClasses</code> * * @param entityKey1 - <code>Integer</code> - * @param entityKey2 - <code>Integer</code> - * @param pathClasses - <code>List</code> - * @param doPathExists - <code>boolean</code> - * @param maxPathLength - <code>int</code> - * @param dialogWindowFrame - <code>MDIInternalFrame</code> - */ public void invokeFindEntityPathClasses( final Integer entityKey1, final Integer entityKey2, final List pathClasses, final boolean doPathExists, final int maxPathLength, final MDIInternalFrame dialogWindowFrame) { // System.err.println( "invoke entityKey1 " + entityKey1); // System.err.println( "invoke entityKey2 " + entityKey2); // for (int i = 0, n = pathClasses.size(); i < n; i++) { // System.err.println( "invoke pathClass i=" + i + " " + // ((Class) pathClasses.get( i)).getName()); // } // System.err.println( "invoke doPathExists " + doPathExists); // System.err.println( "invoke maxPathLength " + maxPathLength); if ((entityKey1 == null) || (entityKey2 == null) || (pathClasses == null)) { return; } final SwingWorker worker = new SwingWorker() { public Object construct() { FindEntityPath findEntityPath = new FindEntityPath( entityKey1, entityKey2, pathClasses, doPathExists, maxPathLength, partialPlan, NavigatorView.this, dialogWindowFrame); findEntityPath.invokeAndWait(); return null; } }; worker.start(); } // end invokeFindEntityPathClasses