Search in sources :

Example 11 with ConvertigoException

use of com.twinsoft.convertigo.engine.ConvertigoException 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);
}
Also used : ConvertigoException(com.twinsoft.convertigo.engine.ConvertigoException) ScreenClass(com.twinsoft.convertigo.beans.core.ScreenClass) IScreenClassContainer(com.twinsoft.convertigo.beans.core.IScreenClassContainer)

Aggregations

ConvertigoException (com.twinsoft.convertigo.engine.ConvertigoException)11 DatabaseObject (com.twinsoft.convertigo.beans.core.DatabaseObject)4 Project (com.twinsoft.convertigo.beans.core.Project)4 TreeViewer (org.eclipse.jface.viewers.TreeViewer)3 RequestableObject (com.twinsoft.convertigo.beans.core.RequestableObject)2 ScreenClass (com.twinsoft.convertigo.beans.core.ScreenClass)2 TreeObject (com.twinsoft.convertigo.eclipse.views.projectexplorer.model.TreeObject)2 EngineException (com.twinsoft.convertigo.engine.EngineException)2 IOException (java.io.IOException)2 CoreException (org.eclipse.core.runtime.CoreException)2 SAXException (org.xml.sax.SAXException)2 Connector (com.twinsoft.convertigo.beans.core.Connector)1 Criteria (com.twinsoft.convertigo.beans.core.Criteria)1 IScreenClassContainer (com.twinsoft.convertigo.beans.core.IScreenClassContainer)1 IVariableContainer (com.twinsoft.convertigo.beans.core.IVariableContainer)1 MobileObject (com.twinsoft.convertigo.beans.core.MobileObject)1 RequestableStep (com.twinsoft.convertigo.beans.core.RequestableStep)1 Sheet (com.twinsoft.convertigo.beans.core.Sheet)1 Statement (com.twinsoft.convertigo.beans.core.Statement)1 Step (com.twinsoft.convertigo.beans.core.Step)1