Examples of PluginResources


Examples of net.sourceforge.squirrel_sql.client.plugin.PluginResources

   {
      super.initialize();
      IApplication app = getApplication();

      _resources =
         new PluginResources(
            "net.sourceforge.squirrel_sql.plugins.userscript.userscript",
            this);


View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.plugin.PluginResources

  /**
   * Initialize this plugin.
   */
  public synchronized void initialize() throws PluginException
  {
    _resources = new PluginResources("net.sourceforge.squirrel_sql.plugins.example.example", this);
  }
View Full Code Here

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

Examples of org.eclim.plugin.PluginResources

   * @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

Examples of org.eclim.plugin.PluginResources

    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

Examples of org.eclim.plugin.PluginResources

      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

Examples of org.eclim.plugin.PluginResources

  @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

Examples of org.eclim.plugin.cdt.PluginResources

  @Override
  public List<Error> update(IProject project, CommandLine commandLine)
    throws Exception
  {
    PluginResources resources = (PluginResources)
      Services.getPluginResources(PluginResources.NAME);
    List<Error> errors = XmlUtils.validateXml(
        project.getName(),
        ".cproject",
        resources.getResource(CPROJECT_XSD).toString());
    if(errors.size() > 0){
      return errors;
    }

    // FIXME: force load of file from disk
View Full Code Here

Examples of org.eclim.plugin.dltk.PluginResources

  {
    IScriptProject scriptProject = DLTKCore.create(project);
    scriptProject.getResource().refreshLocal(IResource.DEPTH_INFINITE, null);

    // validate that .buildpath xml is well formed and valid.
    PluginResources resources = (PluginResources)
      Services.getPluginResources(PluginResources.NAME);
    List<Error> errors = XmlUtils.validateXml(
        scriptProject.getProject().getName(),
        BUILDPATH,
        resources.getResource(BUILDPATH_XSD).toString());
    if(errors.size() > 0){
      return errors;
    }

    String dotbuildpath = scriptProject.getProject().getFile(BUILDPATH)
View Full Code Here

Examples of org.eclim.plugin.jdt.PluginResources

    IJavaProject javaProject = JavaUtils.getJavaProject(project);
    javaProject.getResource().refreshLocal(IResource.DEPTH_INFINITE, null);

    // validate that .classpath xml is well formed and valid.
    PluginResources resources = (PluginResources)
      Services.getPluginResources(PluginResources.NAME);
    List<Error> errors = XmlUtils.validateXml(
        javaProject.getProject().getName(),
        CLASSPATH,
        resources.getResource(CLASSPATH_XSD).toString());
    if(errors.size() > 0){
      return errors;
    }

    String dotclasspath = javaProject.getProject().getFile(CLASSPATH)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.