org.mule.devkit.generation.studio
Class AbstractMuleStudioGenerator

java.lang.Object
  extended by org.mule.devkit.generation.studio.AbstractMuleStudioGenerator
All Implemented Interfaces:
Generator
Direct Known Subclasses:
AbstractMuleStudioNamespaceGenerator, MuleStudioEditorXmlGenerator, MuleStudioFeatureGenerator, SerializableArchiverPlanGenerator, StudioSiteXmlGenerator

public abstract class AbstractMuleStudioGenerator
extends Object
implements Generator


Constructor Summary
AbstractMuleStudioGenerator()
           
 
Method Summary
 List<Product> consumes()
           
 Context ctx()
           
protected  String getFeatureId(Collection<org.mule.devkit.model.module.Module> modules)
          Returns the ID used to identify the eclipse feature.
protected  String getLabel(Collection<org.mule.devkit.model.module.Module> modules, String defaultExtensionName)
           
protected  org.mule.common.MuleVersion getMaxVersion(Collection<org.mule.devkit.model.module.Module> modules)
           
protected  String getPluginId(String symbolicName, org.mule.devkit.model.module.Module module)
          Returns the ID used to identify the eclipse plugin.
 List<Product> produces()
           
 void setCtx(Context generationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMuleStudioGenerator

public AbstractMuleStudioGenerator()
Method Detail

ctx

public Context ctx()
Specified by:
ctx in interface Generator

setCtx

public void setCtx(Context generationContext)
Specified by:
setCtx in interface Generator

consumes

public List<Product> consumes()
Specified by:
consumes in interface Generator

produces

public List<Product> produces()
Specified by:
produces in interface Generator

getFeatureId

protected String getFeatureId(Collection<org.mule.devkit.model.module.Module> modules)
Returns the ID used to identify the eclipse feature. Features with the same ID are considered the same component inside Studio Feature IDs have the following format: org.mule.tooling.ui.contribution.{connectorName}.{connectorMinMuleVersion}

Parameters:
modules - List of feature modules
Returns:
Returns the ID used to identify the eclipse feature.

getPluginId

protected String getPluginId(String symbolicName,
                             org.mule.devkit.model.module.Module module)
Returns the ID used to identify the eclipse plugin. Plugins with the same ID are considered the same component inside Studio Plugins IDs have the following format: org.mule.tooling.ui.contribution.{connectorName}.{connectorMinMuleVersion}

Parameters:
symbolicName - Suffix containing org.mule.tooling.ui.contribution.{connectorName}
module - The module
Returns:
Returns the ID used to identify the eclipse plugin.

getMaxVersion

protected org.mule.common.MuleVersion getMaxVersion(Collection<org.mule.devkit.model.module.Module> modules)

getLabel

protected String getLabel(Collection<org.mule.devkit.model.module.Module> modules,
                          String defaultExtensionName)


Copyright © 2010–2014 MuleSoft, Inc.. All rights reserved.