org.eclipse.wst.common.project.facet.core
Class MinimalConfigurationPresetFactory
java.lang.Object
org.eclipse.wst.common.project.facet.core.MinimalConfigurationPresetFactory
- All Implemented Interfaces:
- IPresetFactory
public class MinimalConfigurationPresetFactory
- extends Object
- implements IPresetFactory
Preset factory for the minimal.configuration
preset. This preset only contains
fixed facets. The version of the facets are calculated as follows:
- If a runtime is selected, the versions are looked up using
IRuntime.getDefaultFacets(Set)
.
- If no runtime is selected, this versions are the default versions as specified
by
IProjectFacet.getDefaultVersion()
.
- Since:
- 3.0
- Author:
- Konstantin Komissarchik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PRESET_ID
public static final String PRESET_ID
- See Also:
- Constant Field Values
MinimalConfigurationPresetFactory
public MinimalConfigurationPresetFactory()
createPreset
public PresetDefinition createPreset(String presetId,
Map<String,Object> context)
throws CoreException
- Description copied from interface:
IPresetFactory
- The factory method for creating a preset definition. The definition contains all of the
information necessary for the system to create a preset. The factory can take into account
the context that the preset will be used in when creating a preset definition. See
IDynamicPreset
for documentation on what type of information the context can contain.
- Specified by:
createPreset
in interface IPresetFactory
- Parameters:
presetId
- the id of the presetcontext
- the information about context that this preset will be used in
- Returns:
- the created preset definition or
null
if this factory is not applicable
to the provided context
- Throws:
CoreException
- if failed while creating the preset definition
Copyright (c) 2008 BEA Systems, Inc. and others. All rights reserved.