}
StringBuilder atomSpecs = new StringBuilder();
boolean first = true;
+
for (AtomSpec atom : atoms)
{
int pdbResNum = atom.getPdbResNum();
* Formatting as #0:34.A,#1:33.A doesn't work as desired, so instead we
* concatenate multiple 'show' commands
*/
- atomSpecs.append(first ? "" : ";show ");
+ atomSpecs.append(first ? "" : ",");
first = false;
- atomSpecs.append("#" + cms.get(0).getModelNumber());
+ atomSpecs.append(cms.get(0).getModelNumber());
atomSpecs.append(":" + pdbResNum);
if (!chain.equals(" "))
{
viewerCommandHistory(false);
if (atomSpec.length() > 0)
{
- command.append("show ").append(atomSpec);
+ command.append("show #").append(atomSpec);
viewer.sendChimeraCommand(command.toString(), false);
}
viewerCommandHistory(true);
*/
public abstract void refreshGUI();
+ @Override
public void setLoadingFromArchive(boolean loadingFromArchive)
{
this.loadingFromArchive = loadingFromArchive;
* @return true if Chimeral is still restoring state or loading is still going
* on (see setFinsihedLoadingFromArchive)
*/
+ @Override
public boolean isLoadingFromArchive()
{
return loadingFromArchive && !loadingFinished;
*
* @param finishedLoading
*/
+ @Override
public void setFinishedLoadingFromArchive(boolean finishedLoading)
{
loadingFinished = finishedLoading;