Package org.tuba.plugins

Examples of org.tuba.plugins.IConfigurationProvider


  public IConfigurationProvider instantiateConfigurationProvider(
      MetaConfigurablePlugin plugin) {
    if (plugin == null)
      return null;
    String clazz = plugin.getConfigurationProvider();
    IConfigurationProvider configurationProvider;
    configurationProvider = configurationProviderInstances.get(clazz);

    if (configurationProvider != null)
      return configurationProvider;
View Full Code Here


      return;
    if (!plugin.hasConfigurationProvider()) {
      showNotConfigurableMessage(plugin, shell);
      return;
    }
    IConfigurationProvider provider = pluginManager
        .instantiateConfigurationProvider(plugin);
    if (provider == null) {
      showNotConfigurableMessage(plugin, shell);
      return;
    }

    Configuration oldConfiguration = plugin.getConfiguration();
    Configuration configuration = provider.provideConfiguration(shell,
        oldConfiguration);
    if (configuration == null)
      return;
    plugin.setConfiguration(configuration);
  }
View Full Code Here

TOP

Related Classes of org.tuba.plugins.IConfigurationProvider

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.