public void clearGotoLine() { try { JTabbedPane tabbedPane = center.frame.getTabbedPane(); SrcCodeViewer viewer = (SrcCodeViewer) tabbedPane.getSelectedComponent(); if (viewer != null) { viewer.clearGotoLine(); } } catch (Exception e) { e.printStackTrace(); } }
public void running(String fileName, String lineNumber) { try { if (fileName != null) { SrcCodeViewer viewer = table.get(fileName); if (viewer != null) { viewer.gotoLine(Integer.parseInt(lineNumber.trim())); JTabbedPane tabbedPane = center.frame.getTabbedPane(); tabbedPane.setSelectedComponent(viewer); if (center.frame.isAlwaysOnTop()) { center.frame.setAlwaysOnTop(true); } if (center.frame.isVisible()) { center.frame.setVisible(true); } center.frame.setIsDebugging(true); } } } catch (Exception e) { e.printStackTrace(); } // System.out.println(fileName + lineNumber); }