return getParentFrame().getActionForward();
}
public void openClassFile(String className, BrowserPath browserPath) {
FindResult findResult = getParentFrame().getConfig().findClass(className);
while (findResult == null) {
int result = GUIHelper.showOptionDialog(getParentFrame(),
"The class " + className + " could not be found.\n" +
"You can check your classpath configuration and try again.",
new String[]{"Setup classpath", "Cancel"},
JOptionPane.WARNING_MESSAGE);
if (result == 0) {
getParentFrame().getActionSetupClasspath().actionPerformed(new ActionEvent(this, 0, null));
findResult = getParentFrame().getConfig().findClass(className);
} else {
return;
}
}
BrowserInternalFrame frame = (BrowserInternalFrame)desktopManager.getOpenFrame(new WindowState(findResult.getFileName()));
if (frame != null) {
try {
frame.setSelected(true);
frame.browserComponent.setBrowserPath(browserPath);
desktopManager.scrollToVisible(frame);
} catch (PropertyVetoException e) {
}
} else {
WindowState windowState = new WindowState(findResult.getFileName(), browserPath);
frame = new BrowserInternalFrame(desktopManager, windowState);
if (isMaximum()) {
try {
frame.setMaximum(true);
} catch (PropertyVetoException ex) {