Package skyproc

Examples of skyproc.MajorRecord


  @Override
  public Object getValueAt(int index) {


    MajorRecord tempRecord = null;
    try {
      tempRecord = StaticRecordHolder.getMasters().get(index).getRecord(StaticRecordHolder.getRecord().getForm());
     
      ScriptPackage sp = (ScriptPackage) tempRecord.getSubRecords().get(Type.VMAD);
     
      if(sp.getScripts().get(this.index) != null) {
        return sp.getScripts().get(this.index).getName();
      }
    } catch (NotFound e) {
View Full Code Here


  }

  @Override
  public Object getValueAt(int index) {

    MajorRecord tempRecord = null;
    try {
      tempRecord = StaticRecordHolder.getMasters().get(index).getRecord(StaticRecordHolder.getRecord().getForm());
     
      ScriptPackage sp = (ScriptPackage) tempRecord.getSubRecords().get(Type.VMAD);
     
      return sp.getScripts().size();
    } catch (NotFound e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

    return "Object Format";
  }

  @Override
  public Object getValueAt(int index) {
    MajorRecord tempRecord = null;
    try {
      tempRecord = StaticRecordHolder.getMasters().get(index).getRecord(StaticRecordHolder.getRecord().getForm());
     
      ScriptPackage sp = (ScriptPackage) tempRecord.getSubRecords().get(Type.VMAD);
     
      return sp.getUnknown();
    } catch (NotFound e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

  }

  @Override
  public Object getValueAt(int index) {
   
    MajorRecord tempRecord = null;
    try {
      tempRecord = StaticRecordHolder.getMasters().get(index).getRecord(StaticRecordHolder.getRecord().getForm());
     
      ScriptPackage sp = (ScriptPackage) tempRecord.getSubRecords().get(Type.VMAD);
     
      return sp.getVersion();
    } catch (NotFound e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

    return "EditorID - EDID";
  }

  @Override
  public Object getValueAt(int index) {
    MajorRecord r = null;
    for(GRUP grup : StaticRecordHolder.masters.get(index).getGRUPs().values()) {
      if(grup.contains(StaticRecordHolder.record.getForm())) {
        r = grup.get(StaticRecordHolder.record.getForm());
      }
    }
   
    if(r != null) {
      return r.getEDID();
    }
   
    return "";
  }
View Full Code Here

    if( a >= b)
    {
      return;
    }
   
    MajorRecord pivot = data[b];
    int left  = a;
    int right = b - 1;
   
    while(left <= right)
    {
      while(
          left <= right
          &&
          data[left].getForm().compareTo(pivot.getForm()) <= 0
      )
      {
        ++left;
      }
      while(
          right >= left
          &&
          data[right].getForm().compareTo(pivot.getForm()) >= 0
      )
      {
        --right;
      }
      if(left <= right)
      {
        MajorRecord tmp = data[left];
        data[left= data[right];
        data[right] = tmp;
      }
    }
    MajorRecord tmp = data[left];
    data[left] = data[b];
    data[b]    = tmp;

    sortByFormID( data, a, (left-1) );
    sortByFormID( data, (left+1), b );
View Full Code Here

    if( a >= b)
    {
      return;
    }
   
    MajorRecord pivot = data[b];
    int left  = a;
    int right = b - 1;
   
    while(left <= right)
    {
      while(
          left <= right
          &&
          data[left].getEDID().compareToIgnoreCase(pivot.getEDID()) <= 0
      )
      {
        ++left;
      }
      while(
          right >= left
          &&
          data[right].getEDID().compareToIgnoreCase(pivot.getEDID()) >= 0
      )
      {
        --right;
      }
      if(left <= right)
      {
        MajorRecord tmp = data[left];
        data[left= data[right];
        data[right] = tmp;
      }
    }
    MajorRecord tmp = data[left];
    data[left] = data[b];
    data[b]    = tmp;

    sortByEditorID( data, a, (left-1) );
    sortByEditorID( data, (left+1), b );
View Full Code Here

    if( a >= b)
    {
      return;
    }
   
    MajorRecord pivot = data[b];
    int left  = a;
    int right = b - 1;
   
    while(left <= right)
    {
      while(
          left <= right
          &&
          data[left].getName().compareToIgnoreCase(pivot.getName()) <= 0
      )
      {
        ++left;
      }
      while(
          right >= left
          &&
          data[right].getName().compareToIgnoreCase(pivot.getName()) >= 0
      )
      {
        --right;
      }
      if(left <= right)
      {
        MajorRecord tmp = data[left];
        data[left= data[right];
        data[right] = tmp;
      }
    }
    MajorRecord tmp = data[left];
    data[left] = data[b];
    data[b]    = tmp;

    sortByName( data, a, (left-1) );
    sortByName( data, (left+1), b );
View Full Code Here

      if(!mod.getInfo().equals(skyrim) || !mod.getInfo().equals(update)) {

        for(GRUP grup : mod.getGRUPs().values()) {
          for(Object o : grup.getRecords()) {
            MajorRecord mr = ((MajorRecord) o);

            if(isIdenticalToMaster(mr, mod, grup)) {
              modsToExport.add(mr.getFormMaster());
              grup.removeRecord(mr.getForm());
            }
          }
        }

      }
View Full Code Here

    return "Signiture";
  }

  @Override
  public Object getValueAt(int index) {
    MajorRecord r = null;
    for(GRUP grup : masters.get(index).getGRUPs().values()) {
      if(grup.contains(record.getForm())) {
        r = grup.get(record.getForm());
      }
    }
   
    return r.getClass().getSimpleName();
  }
View Full Code Here

TOP

Related Classes of skyproc.MajorRecord

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.