searchButton.setToolTipText(
"Shows a File Open dialog to allow you to find a configuration file");
simplePortModel.addElement(new PortBased() {
private void unsupported() {
throw new UnsupportedOperationException(
"Should not be used in this context");
}
public String getName() {
unsupported();
return null;
}
public boolean isActive() {
unsupported();
return false;
}
public int getPort() {
return 4445;
}
public String toString() {
return getPort() + " (Old style/standard Chainsaw port)";
}
});
simplePortModel.addElement(new PortBased() {
private void unsupported() {
throw new UnsupportedOperationException(
"Should not be used in this context");
}