Package org.eclim.plugin

Examples of org.eclim.plugin.PluginResources


   * @return The ResourceBundle.
   */
  public static ResourceBundle getResourceBundle(String plugin)
  {
    if(plugin != null){
      PluginResources resources = (PluginResources)pluginResources.get(plugin);
      if(resources != null){
        return resources.getResourceBundle();
      }
    }
    return null;
  }
View Full Code Here


   * @param plugin The plugin name.
   * @return The PluginResources or null if none found.
   */
  public static PluginResources getPluginResources(String plugin)
  {
    PluginResources resources = (PluginResources)pluginResources.get(plugin);
    if(resources == null){
      throw new IllegalArgumentException(
          Services.getMessage("plugin.resources.not.found", plugin));
    }
    return resources;
View Full Code Here

    bundles.add(Platform.getBundle("org.eclim.core"));
    framework.refreshBundles(bundles, new FrameworkListener[0]);

    // avoid Services.getMessage due to race condition on reload which can
    // result in a ConcurrentModificationException.
    PluginResources resources = Services.getPluginResources("org.eclim");
    return resources.getMessage("plugins.reloaded");
  }
View Full Code Here

      InetAddress address = InetAddress.getByName(host);
      server = new NGServer(address, port, getExtensionClassLoader());
      server.setCaptureSystemStreams(false);

      logger.info("Loading plugin org.eclim");
      PluginResources defaultResources = Services.getPluginResources("org.eclim");
      defaultResources.registerCommand(ReloadCommand.class);

      logger.info("Loading plugin org.eclim.core");

      Bundle bundle = Platform.getBundle(CORE);
      if(bundle == null){
View Full Code Here

  @Override
  public Object execute(CommandLine commandLine)
    throws Exception
  {
    if(versions == null){
      PluginResources resources = Services.getPluginResources("org.eclim");

      versions = new HashMap<String,String>();
      versions.put("eclim", resources.getProperty("pluginVersion"));
      versions.put("eclipse", getVersion());
    }

    return versions;
  }
View Full Code Here

TOP

Related Classes of org.eclim.plugin.PluginResources

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.