Package starlight.taliis.core.files

Examples of starlight.taliis.core.files.wowfile


    return "Holes";
  }

  @Override
  public JPanel createView() {
    wowfile f = (wowfile)fm.getActiveFile().obj;
    if(f instanceof adt) {
      return new adtholeFileTable ( (adt)f );
    }
    return null;
  }
View Full Code Here


    return "AreaIDs";
  }

  @Override
  public JPanel createView() {
    wowfile f = (wowfile)fm.getActiveFile().obj;
    for(Plugin p : pp) {
      if(p.getClass().toString().endsWith("mpqFileRequest"))
        dLoader=new dbcLoader(fm, p)
    }
   
View Full Code Here

                    choices.toArray(),
                    null);
      if(result==null) return -2;
     
      PluginStorage n = result.ref;
      wowfile tmp = n.create();
     
      // register only at empty return. maybe
      // the plugin want to register it itself
      if(tmp!=null) {
        fm.registerObject(tmp, null);
View Full Code Here

  }

  @Override
  public JPanel createView() {
    // TODO Auto-generated method stub
    wowfile f = (wowfile)fm.getActiveFile().obj;
    if(f instanceof m2) {
      return new m2TextureTable ( (m2)f );
    }
    return null;
  }
View Full Code Here

 
  public int save(openedFile f) {
    //TODO: catch failures and so on
    if(f.obj instanceof wowfile) {
      wowfile o = (wowfile)f.obj;
     
      o.render();
      fileLoader.saveBuffer(o.buff , f.f.getAbsolutePath());
     
      return 1;
    }
    return -1;
View Full Code Here

  fileMananger fm;
  ImageIcon viewIcon = null;

  public JPanel createView() {
    JPanel tmp = new JPanel();
    wowfile f = (wowfile)fm.getActiveFile().obj;
   
    String text = "";
    if(f instanceof adt) text = "ADT File";
    else if(f instanceof dbc) text = "DBC File";
    else text = f.getClass().toString();
     
    tmp.add(new JLabel(text), "Center");
    return tmp;
  }
View Full Code Here

  public void setPluginPool(Vector<Plugin> ref) {
   
  }

  public JPanel createView() {
    wowfile f = (wowfile)fm.getActiveFile().obj;
    if(f instanceof dbc) {
      return new dbcStringTable ( (dbc)f );
    }
    return null;
  }
View Full Code Here

  public void setPluginPool(Vector<Plugin> ref) {
   
  }

  public JPanel createView() {
    wowfile f = (wowfile)fm.getActiveFile().obj;
    if(f instanceof adt) {
      return new adtObjectFileTable ( (adt)f );
    }
    return null;
  }
View Full Code Here

  @Override
  public int save(openedFile f) {
    // TODO Auto-generated method stub
    if(f.obj instanceof wowfile) {
      wowfile o = (wowfile)f.obj;
      o.render();
        fileLoader.saveBuffer(o.buff , f.f.getAbsolutePath());
        return 1;
    }
    return -1;
  }
View Full Code Here

  public void setPluginPool(Vector<Plugin> ref) {
   
  }

  public JPanel createView() {
    wowfile f = (wowfile)fm.getActiveFile().obj;
    if(f instanceof adt) {
      return new adtTextureFileTable( (adt)f );
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of starlight.taliis.core.files.wowfile

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.