|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.jpt.jaxb.core.JptJaxbCorePlugin
public class JptJaxbCorePlugin
The Dali JAXB core plug-in lifecycle implementation. A number of globally-available constants and methods.
Provisional API: This class is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Field Summary | |
|---|---|
static java.lang.String |
CONTENT_PREFIX
|
static java.lang.String |
CONTENT_PREFIX_
|
static java.lang.String |
DEFAULT_JAXB_PLATFORM_2_1_PREF_KEY
The key for storing the default JAXB platform ID for JAXB 2.1 in the workspace preferences. |
static java.lang.String |
DEFAULT_JAXB_PLATFORM_2_2_PREF_KEY
The key for storing the default JAXB platform ID for JAXB 2.2 in the workspace preferences. |
static org.eclipse.core.runtime.content.IContentType |
JAXB_INDEX_CONTENT_TYPE
The content type for jaxb.index files |
static JptResourceType |
JAXB_INDEX_RESOURCE_TYPE
The resource type for jaxb.index files |
static org.eclipse.core.runtime.content.IContentType |
JAXB_PROPERTIES_CONTENT_TYPE
The content type for jaxb.properties files |
static JptResourceType |
JAXB_PROPERTIES_RESOURCE_TYPE
The resource type for jaxb.properties files |
static java.lang.String |
PLATFORM_ID_PREF_KEY
The key for storing the platform id |
static java.lang.String |
PLATFORM_PREF_NODE
The node for storing a JAXB project's platform in the project's preferences. |
static java.lang.String |
PLUGIN_ID
The plug-in identifier of Dali JAXB core (value "org.eclipse.jpt.jaxb.core"). |
static java.lang.String |
PLUGIN_ID_
|
static java.lang.String |
SCHEMA_LOCATION_PREF_KEY
The key for storing a schema location (such as a uri or catalog key) in the project's preferences |
static java.lang.String |
SCHEMA_NAMESPACE_PREF_KEY
The key for storing a schema namespace in the project's preferences |
static java.lang.String |
SCHEMA_PREF_NODE_PREFIX
The node prefix for storing a particular JAXB project schema in the project's preferences. |
static java.lang.String |
SCHEMAS_PREF_NODE
The node for storing a JAXB project's schemas in the project's preferences. |
static java.lang.String |
VALIDATION_MARKER_ID
The identifier for the JAXB validation marker (value "org.eclipse.jpt.jaxb.core.jaxbProblemMarker"). |
| Fields inherited from class org.eclipse.core.runtime.Plugin |
|---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
| Constructor Summary | |
|---|---|
JptJaxbCorePlugin()
|
|
| Method Summary | |
|---|---|
static JaxbPlatformDescription |
getDefaultPlatform(org.eclipse.wst.common.project.facet.core.IProjectFacetVersion jaxbFacetVersion)
Return the default JaxbPlatformDescription for new JAXB projects with the given
JAXB facet version. |
static org.eclipse.core.runtime.preferences.IEclipsePreferences |
getDefaultPreferences()
Return the default Dali preferences |
static JaxbPlatformDescription |
getJaxbPlatformDescription(org.eclipse.core.resources.IProject project)
Return the JaxbPlatformDescription associated with the specified Eclipse project. |
static java.lang.String |
getJaxbPlatformId(org.eclipse.core.resources.IProject project)
Return the JAXB platform ID associated with the specified Eclipse project. |
static JaxbPlatformManager |
getJaxbPlatformManager()
|
static JaxbProject |
getJaxbProject(org.eclipse.core.resources.IProject project)
Return the JAXB project corresponding to the specified Eclipse project, or null if unable to associate the specified project with a
JAXB project. |
static JaxbProjectManager |
getProjectManager()
Return the singular JAXB project manager corresponding to the current workspace. |
static org.osgi.service.prefs.Preferences |
getProjectPreferences(org.eclipse.core.resources.IProject project)
|
static java.util.Map<java.lang.String,java.lang.String> |
getSchemaLocationMap(org.eclipse.core.resources.IProject project)
|
static org.eclipse.core.runtime.preferences.IEclipsePreferences |
getWorkspacePreferences()
Return the Dali preferences for the current workspace instance. |
static JptJaxbCorePlugin |
instance()
Return the singleton plug-in |
static void |
log(org.eclipse.core.runtime.IStatus status)
Log the specified status. |
static void |
log(java.lang.String msg)
Log the specified message. |
static void |
log(java.lang.Throwable throwable)
Log the specified exception or error. |
static void |
setDefaultJaxbPlatform(org.eclipse.wst.common.project.facet.core.IProjectFacetVersion jaxbFacetVersion,
JaxbPlatformDescription platform)
Set the default JaxbPlatformDescription for new JAXB projects with the given
JAXB facet version. |
static void |
setJaxbPlatform(org.eclipse.core.resources.IProject project,
JaxbPlatformDescription platform)
Set the JaxbPlatformDescription associated with the specified Eclipse project. |
static void |
setSchemaLocationMap(org.eclipse.core.resources.IProject project,
java.util.Map<java.lang.String,java.lang.String> schemaLocationMap)
|
static void |
setWorkspacePreference(java.lang.String preferenceKey,
java.lang.String preferenceValue)
Set the workspace preference. |
void |
start(org.osgi.framework.BundleContext context)
|
void |
stop(org.osgi.framework.BundleContext context)
|
| Methods inherited from class org.eclipse.core.runtime.Plugin |
|---|
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PLUGIN_ID
"org.eclipse.jpt.jaxb.core").
public static final java.lang.String PLUGIN_ID_
public static final java.lang.String PLATFORM_PREF_NODE
public static final java.lang.String PLATFORM_ID_PREF_KEY
public static final java.lang.String SCHEMAS_PREF_NODE
public static final java.lang.String SCHEMA_PREF_NODE_PREFIX
public static final java.lang.String SCHEMA_NAMESPACE_PREF_KEY
public static final java.lang.String SCHEMA_LOCATION_PREF_KEY
public static final java.lang.String DEFAULT_JAXB_PLATFORM_2_1_PREF_KEY
public static final java.lang.String DEFAULT_JAXB_PLATFORM_2_2_PREF_KEY
public static final java.lang.String VALIDATION_MARKER_ID
"org.eclipse.jpt.jaxb.core.jaxbProblemMarker").
public static final org.eclipse.core.runtime.content.IContentType JAXB_INDEX_CONTENT_TYPE
public static final JptResourceType JAXB_INDEX_RESOURCE_TYPE
public static final org.eclipse.core.runtime.content.IContentType JAXB_PROPERTIES_CONTENT_TYPE
public static final JptResourceType JAXB_PROPERTIES_RESOURCE_TYPE
public static final java.lang.String CONTENT_PREFIX
public static final java.lang.String CONTENT_PREFIX_
| Constructor Detail |
|---|
public JptJaxbCorePlugin()
| Method Detail |
|---|
public static JptJaxbCorePlugin instance()
public static JaxbProjectManager getProjectManager()
public static JaxbProject getJaxbProject(org.eclipse.core.resources.IProject project)
null if unable to associate the specified project with a
JAXB project.
public static JaxbPlatformManager getJaxbPlatformManager()
public static org.eclipse.core.runtime.preferences.IEclipsePreferences getDefaultPreferences()
JpaPreferenceInitializerpublic static org.eclipse.core.runtime.preferences.IEclipsePreferences getWorkspacePreferences()
public static void setWorkspacePreference(java.lang.String preferenceKey,
java.lang.String preferenceValue)
public static org.osgi.service.prefs.Preferences getProjectPreferences(org.eclipse.core.resources.IProject project)
public static void setDefaultJaxbPlatform(org.eclipse.wst.common.project.facet.core.IProjectFacetVersion jaxbFacetVersion,
JaxbPlatformDescription platform)
JaxbPlatformDescription for new JAXB projects with the given
JAXB facet version.
public static JaxbPlatformDescription getDefaultPlatform(org.eclipse.wst.common.project.facet.core.IProjectFacetVersion jaxbFacetVersion)
JaxbPlatformDescription for new JAXB projects with the given
JAXB facet version.
public static java.lang.String getJaxbPlatformId(org.eclipse.core.resources.IProject project)
public static JaxbPlatformDescription getJaxbPlatformDescription(org.eclipse.core.resources.IProject project)
JaxbPlatformDescription associated with the specified Eclipse project.
public static void setJaxbPlatform(org.eclipse.core.resources.IProject project,
JaxbPlatformDescription platform)
JaxbPlatformDescription associated with the specified Eclipse project.
public static java.util.Map<java.lang.String,java.lang.String> getSchemaLocationMap(org.eclipse.core.resources.IProject project)
public static void setSchemaLocationMap(org.eclipse.core.resources.IProject project,
java.util.Map<java.lang.String,java.lang.String> schemaLocationMap)
public static void log(org.eclipse.core.runtime.IStatus status)
public static void log(java.lang.String msg)
public static void log(java.lang.Throwable throwable)
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
start in interface org.osgi.framework.BundleActivatorstart in class org.eclipse.core.runtime.Pluginjava.lang.Exception
public void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
stop in interface org.osgi.framework.BundleActivatorstop in class org.eclipse.core.runtime.Pluginjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||