/** * Tries to build the new construction from the given XML string. */ private void buildConstruction(StringBuilder consXML, String oldXML) throws Exception { buildConstruction(consXML, oldXML, null); }
private void restoreAfterRedefine(String oldXML) throws Exception { if (restoreCurrentUndoInfo()) { return; } if (oldXML != null) { buildConstruction(new StringBuilder(oldXML), null); } }
buildConstruction(consXML, oldXML); } catch (Exception e) { throw e;
/** * Changes the given casCell taking care of necessary redefinitions. This * may change the logic of the construction and is a very powerful * operation. * * @param casCell * casCell to be changed * @throws Exception * in case of malformed XML */ public void changeCasCell(GeoCasCell casCell) throws Exception { setUpdateConstructionRunning(true); // move all predecessors of casCell to the left of casCell in // construction list updateConstructionOrder(casCell); // get current construction XML StringBuilder consXML = getCurrentUndoXML(false); // build new construction to make sure all ceIDs are correct after the // redefine buildConstruction(consXML, null); setUpdateConstructionRunning(false); }
buildConstruction(consXML, oldXML, info); if (moveMode) { GeoElement selGeo = kernel.lookupLabel(oldSelection);