public abstract class AbstractUIPluginACTF extends AbstractUIPlugin
AbstractUIPlugin
. This class enables to
create temporary directory and files under the plugin state area.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
Constructor and Description |
---|
AbstractUIPluginACTF() |
Modifier and Type | Method and Description |
---|---|
File |
createTempFile(String prefix,
String suffix)
Create temporary file under the plugin state directory.
|
File |
getTempDirectory()
Return temporary directory for this plugin.
|
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, shutdown, startup
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
public void start(org.osgi.framework.BundleContext context) throws Exception
start
in interface org.osgi.framework.BundleActivator
start
in class AbstractUIPlugin
Exception
public void stop(org.osgi.framework.BundleContext context) throws Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class AbstractUIPlugin
Exception
public File createTempFile(String prefix, String suffix) throws IOException
prefix
- the prefix string to be used in generating the file's name;
must be at least three characters longsuffix
- the suffix string to be used in generating the file's name;
may be null, in which case the suffix ".tmp" will be usedFile
IOException