public void initOnNewParameters() { atlasMetadata = null; uftAtlas = UFTAtlas.CreateInstance <UFTAtlas>(); //get free name string atlasName = UFTFileUtil.getFileName(ATLAS_FILE_MASK); uftAtlas.atlasName = atlasName; readWidthHeightFromEditorPrefs(); }
public void onAtlasMetadataObjectChanged(UFTAtlasMetadata atlasMetadata) { registerAtlasSnapshot(); initOnNewParameters(); if (atlasMetadata != null) { //create UFTAtlas from metadata. uftAtlas = UFTAtlas.CreateInstance <UFTAtlas>(); uftAtlas.readPropertiesFromMetadata(atlasMetadata); } }