Package runjettyrun.tabs.classpath

Examples of runjettyrun.tabs.classpath.UserClassesClasspathModel


      Plugin.logError(e);
    }
  }
  public UserClassesClasspathModel createClasspathModel(
      ILaunchConfiguration configuration) throws Exception {
    UserClassesClasspathModel theModel = new UserClassesClasspathModel("Project Scan Folders","Custom Scan Folder and Files");
    List<IRuntimeClasspathEntry> entries = getClasspathProvider().getDefaultScanList(configuration);
    for (IRuntimeClasspathEntry entry:entries) {
      switch (entry.getClasspathProperty()) {
        case IRuntimeClasspathEntry.USER_CLASSES:
          theModel.addEntry(UserClassesClasspathModel.USER, entry);
          break;
      }
    }

    IRuntimeClasspathEntry[] customentries = getClasspathProvider().computeUnresolvedCustomClasspath(
        configuration, getCustomAttributeName());

    for (int i = 0; i < customentries.length; i++) {
      theModel.addEntry(UserClassesClasspathModel.CUSTOM, customentries[i]);
    }

    return theModel;

  }
View Full Code Here


    return  Plugin.ATTR_JETTY_CLASSPATH_NON_CHECKED;
  }

  public UserClassesClasspathModel createClasspathModel(ILaunchConfiguration configuration)
      throws Exception {
    UserClassesClasspathModel theModel= new UserClassesClasspathModel("Default Jetty Classpath","Custom Jetty Classpath");
    IRuntimeClasspathEntry[] entries= getClasspathProvider().computeUnresolvedJettyClasspath(configuration);
    for (int i = 0; i < entries.length; i++) {
      IRuntimeClasspathEntry entry = entries[i];
      switch (entry.getClasspathProperty()) {
        case IRuntimeClasspathEntry.USER_CLASSES:
          theModel.addEntry(UserClassesClasspathModel.USER, entry);
          break;
      }
    }

    entries= getClasspathProvider().computeUnresolvedCustomClasspath(configuration,
        getCustomAttributeName());

    for (int i = 0; i < entries.length; i++) {
      theModel.addEntry(UserClassesClasspathModel.CUSTOM, entries[i]);
    }

    return theModel;

  }
View Full Code Here

    return Plugin.ATTR_WEB_CONTEXT_CLASSPATH_NON_CHECKED;
  }

  public UserClassesClasspathModel createClasspathModel(
      ILaunchConfiguration configuration) throws Exception {
    UserClassesClasspathModel theModel = new UserClassesClasspathModel();
    IRuntimeClasspathEntry[] entries = getClasspathProvider().computeWebcontextClassPath(configuration);
    for (int i = 0; i < entries.length; i++) {
      IRuntimeClasspathEntry entry = entries[i];
      theModel.addEntry(UserClassesClasspathModel.USER, entry);
    }

    entries = getClasspathProvider().computeUnresolvedCustomClasspath(
        configuration, getCustomAttributeName());

    for (int i = 0; i < entries.length; i++) {
      theModel.addEntry(UserClassesClasspathModel.CUSTOM, entries[i]);
    }

    return theModel;

  }
View Full Code Here

TOP

Related Classes of runjettyrun.tabs.classpath.UserClassesClasspathModel

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.