Package de.taliis.editor.plugin

Examples of de.taliis.editor.plugin.Plugin


  public int getChildCount(Object parent) {
    if(rooted==true) countViews();
   
    if(parent==root) return fm.getFileList().size();
    else if(parent instanceof menuNode) {
      Plugin p = ((menuNode)parent).view;

      if(p instanceof PluginStorage) {
        openedFile f = ((menuNode)parent).file;
        Vector<Plugin> tmp = (Vector<Plugin>)views.get(f.getExtension());
        if(tmp!=null)
View Full Code Here


 
  public boolean isLeaf(Object node) {
    if(node==root) return false;
    else if(node instanceof menuNode) {
      Plugin p = ((menuNode)node).view;
      if(p instanceof PluginStorage)return false;
      else return true;
    }
    return true;
  }
View Full Code Here

    openedFile of = new openedFile(f);
   
   
  // find a plugin that can handle this file 
    String name = f.getName();
    Plugin storage = null;
   
    for(Plugin p : ppool) {
      if((p.getPluginType() & p.PLUGIN_TYPE_STORAGE)!=0) {
        for(String s : p.getSupportedDataTypes()) {
          if(name.endsWith(s)) {
View Full Code Here

    return 0;
  }
 
  public int saveFile(openedFile f) {
    String name = f.f.getName();
    Plugin storage = null;
   
    for(Plugin p : ppool) {
      if((p.getPluginType() & p.PLUGIN_TYPE_STORAGE)!=0) {
        for(String s : p.getSupportedDataTypes()) {
          if(name.endsWith(s)) {
View Full Code Here

     
      return c;
    }
    // views
    else if(parent instanceof menuNode) {
      Plugin p = ((menuNode)parent).view;

      if(p instanceof PluginStorage) {
        openedFile f = ((menuNode)parent).file;
        Vector<Plugin> tmp = (Vector<Plugin>)views.get(f.getExtension());
        if(tmp!=null)
View Full Code Here

 
  public boolean isLeaf(Object node) {
    if(node==root) return false;
    else if(node instanceof menuNode) {
      Plugin p = ((menuNode)node).view;
      if(p instanceof PluginStorage)return false;
      else return true;
    }
    return true;
  }
View Full Code Here

      }
    }
   
  // find a plugin that can handle this file 
    String name = f.getName();
    Plugin storage = null;
   
    for(Plugin p : ppool) {
      if((p.getPluginType() & p.PLUGIN_TYPE_STORAGE)!=0) {
        for(String s : p.getSupportedDataTypes()) {
          if(name.toLowerCase().endsWith(s)) {
View Full Code Here

      System.err.println("File got not prepared to have a file name!");
      return -1;
    }
   
    String name = f.f.getName();
    Plugin storage = null;
   
    for(Plugin p : ppool) {
      if((p.getPluginType() & p.PLUGIN_TYPE_STORAGE)!=0) {
        for(String s : p.getSupportedDataTypes()) {
          if(name.endsWith(s)) {
View Full Code Here

TOP

Related Classes of de.taliis.editor.plugin.Plugin

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.