/** delete this fit */ private void delete() { RInterface rInterface = RInterfaceFactory.getRInterfaceInstance(); rInterface.insertComment("Deleting fit result"); rInterface.evaluateCommand( "rm(" + this.getFitQtlResult().getAccessorExpressionString() + ")"); QtlProjectManager projectManager = QtlProjectTree.this.getProjectManager(); projectManager.notifyActiveProjectModified(); projectManager.refreshProjectDataStructures(); }
/** Delete this cross */ private void delete() { RInterface rInterface = RInterfaceFactory.getRInterfaceInstance(); rInterface.insertComment("Deleting cross object"); for (ScanTwoResult scanTwoResult : this.getCross().getScanTwoResults()) { rInterface.evaluateCommand("rm(" + scanTwoResult.getAccessorExpressionString() + ")"); } for (ScanOneResult scanOneResult : this.getCross().getScanOneResults()) { rInterface.evaluateCommand("rm(" + scanOneResult.getAccessorExpressionString() + ")"); } for (FitQtlResult fitResult : this.getCross().getFitQtlResults()) { rInterface.evaluateCommand("rm(" + fitResult.getAccessorExpressionString() + ")"); } rInterface.evaluateCommand("rm(" + this.getCross().getAccessorExpressionString() + ")"); QtlProjectManager projectManager = QtlProjectTree.this.getProjectManager(); projectManager.notifyActiveProjectModified(); projectManager.refreshProjectDataStructures(); }