Package com.dmissoh.biologic.models

Examples of com.dmissoh.biologic.models.ISequence


  public List<Family> getFamilies() {
    return getInputAsSequence().getFamilies();
  }

  public void save(String selectedFile) {
    ISequence sequence = ((SequenceEditorInput) getEditorInput())
        .getSequence();
    ExportUtils.getInstance().save(selectedFile, sequence);
  }
View Full Code Here


        .getActiveWorkbenchWindow().getActivePage().getActivePart();
    if (part instanceof SequenceEditor) {
      SequenceEditor editor = (SequenceEditor) part;
      Object inputObj = editor.getInputAsSequence();
      if (inputObj instanceof ISequence) {
        ISequence sequence = (ISequence) inputObj;
        if (sequence != null && sequence.getLogEntries() != null
            && !sequence.getLogEntries().isEmpty()) {
          FileDialog dialog = new FileDialog(window.getShell(),
              SWT.SAVE);
          dialog.setFileName("backup.log");
          String[] extentions = new String[] { "*.log", "*.*" };
          dialog.setFilterExtensions(extentions);
View Full Code Here

    }
    return contents.toString();
  }

  public ISequence convertBusinessToStored(ISequence sequence) {
    ISequence storedSequence = new SequenceStoreObject();
    storedSequence.setDescription(sequence.getDescription());
    storedSequence.setLogEntries(sequence.getLogEntries());
    storedSequence.setStartTime(sequence.getStartTime());
    storedSequence.setEndTime(sequence.getEndTime());
    storedSequence.setLive(sequence.isLive());
    return storedSequence;
  }
View Full Code Here

TOP

Related Classes of com.dmissoh.biologic.models.ISequence

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.