org.eclipse.jpt.common.core
Class JptCommonCorePlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.jpt.common.core.JptCommonCorePlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class JptCommonCorePlugin
extends org.eclipse.core.runtime.Plugin


Field Summary
static org.eclipse.core.runtime.content.IContentType JAR_CONTENT_TYPE
          The content type for Java archives (JARs).
static JptResourceType JAR_RESOURCE_TYPE
          The resource type for Java archives (JARs).
static org.eclipse.core.runtime.content.IContentType JAVA_SOURCE_CONTENT_TYPE
          The content type for Java source code files.
static org.eclipse.core.runtime.content.IContentType JAVA_SOURCE_PACKAGE_INFO_CONTENT_TYPE
          The content type for package-info Java code files.
static JptResourceType JAVA_SOURCE_PACKAGE_INFO_RESOURCE_TYPE
          The resource type for package-info Java code files
static JptResourceType JAVA_SOURCE_RESOURCE_TYPE
          The resource type for Java source code files
static java.lang.String PLUGIN_ID
          The plug-in identifier of the jpt common core support (value "org.eclipse.jpt.common.core").
static java.lang.String PLUGIN_ID_
           
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
JptCommonCorePlugin()
           
 
Method Summary
static java.lang.Iterable<LibraryValidator> getLibraryValidators(JptLibraryProviderInstallOperationConfig config)
           
static org.eclipse.core.resources.IFile getPlatformFile(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath runtimePath)
           
static ResourceLocator getResourceLocator(org.eclipse.core.resources.IProject project)
           
static JptCommonCorePlugin instance()
          Return the singleton jpt common core 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.String msg, java.lang.Throwable throwable)
          Log the specified message and exception or error.
static void log(java.lang.Throwable throwable)
          Log the specified exception or error.
 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

PLUGIN_ID

public static final java.lang.String PLUGIN_ID
The plug-in identifier of the jpt common core support (value "org.eclipse.jpt.common.core").

See Also:
Constant Field Values

PLUGIN_ID_

public static final java.lang.String PLUGIN_ID_
See Also:
Constant Field Values

JAVA_SOURCE_CONTENT_TYPE

public static final org.eclipse.core.runtime.content.IContentType JAVA_SOURCE_CONTENT_TYPE
The content type for Java source code files.


JAVA_SOURCE_RESOURCE_TYPE

public static final JptResourceType JAVA_SOURCE_RESOURCE_TYPE
The resource type for Java source code files


JAR_CONTENT_TYPE

public static final org.eclipse.core.runtime.content.IContentType JAR_CONTENT_TYPE
The content type for Java archives (JARs).


JAR_RESOURCE_TYPE

public static final JptResourceType JAR_RESOURCE_TYPE
The resource type for Java archives (JARs).


JAVA_SOURCE_PACKAGE_INFO_CONTENT_TYPE

public static final org.eclipse.core.runtime.content.IContentType JAVA_SOURCE_PACKAGE_INFO_CONTENT_TYPE
The content type for package-info Java code files.


JAVA_SOURCE_PACKAGE_INFO_RESOURCE_TYPE

public static final JptResourceType JAVA_SOURCE_PACKAGE_INFO_RESOURCE_TYPE
The resource type for package-info Java code files

Constructor Detail

JptCommonCorePlugin

public JptCommonCorePlugin()
Method Detail

getResourceLocator

public static ResourceLocator getResourceLocator(org.eclipse.core.resources.IProject project)

getPlatformFile

public static org.eclipse.core.resources.IFile getPlatformFile(org.eclipse.core.resources.IProject project,
                                                               org.eclipse.core.runtime.IPath runtimePath)

getLibraryValidators

public static java.lang.Iterable<LibraryValidator> getLibraryValidators(JptLibraryProviderInstallOperationConfig config)

instance

public static JptCommonCorePlugin instance()
Return the singleton jpt common core plug-in.


log

public static void log(org.eclipse.core.runtime.IStatus status)
Log the specified status.


log

public static void log(java.lang.String msg)
Log the specified message.


log

public static void log(java.lang.Throwable throwable)
Log the specified exception or error.


log

public static void log(java.lang.String msg,
                       java.lang.Throwable throwable)
Log the specified message and exception or error.


start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.core.runtime.Plugin
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.core.runtime.Plugin
Throws:
java.lang.Exception