use of com.twinsoft.convertigo.beans.core.IScreenClassContainer in project convertigo by convertigo.
the class ScreenClassTreeObject method rename.
public boolean rename(String newName, Boolean bDialog) {
ScreenClass sc = getObject();
IScreenClassContainer<?> scc = (IScreenClassContainer<?>) sc.getConnector();
if (!sc.getName().equalsIgnoreCase(newName) && scc.getScreenClassByName(newName) != null) {
ConvertigoPlugin.logException(new ConvertigoException("The name \"" + newName + "\" is already used by another screen class."), "Unable to change the object name.", bDialog);
return false;
}
return super.rename(newName, bDialog);
}
Aggregations