Class JavaManipulation
java.lang.Object
org.eclipse.jdt.core.manipulation.JavaManipulation
Central access point for the Java Manipulation plug-in (id
"org.eclipse.jdt.core.manipulation"
).-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final org.eclipse.text.templates.ContextTypeRegistry
static final org.eclipse.text.templates.TemplateStoreCore
static String
getPreference
(String key, IJavaProject project) Returns the value for the given key in the given context for the JDT UI plug-in.static final String
static final void
setCodeTemplateContextRegistry
(org.eclipse.text.templates.ContextTypeRegistry in) static final void
setCodeTemplateStore
(org.eclipse.text.templates.TemplateStoreCore in) static final void
Sets the preference node to be used for basic Java preferences.
-
Field Details
-
ID_PLUGIN
The id of the Java Manipulation plug-in (value"org.eclipse.jdt.core.manipulation"
).- See Also:
-
-
Constructor Details
-
JavaManipulation
public JavaManipulation()
-
-
Method Details
-
getPreferenceNodeId
- Returns:
- The id of the preference node for some basic Java preferences.
Generally this will be
"org.eclipse.jdt.ui"
but some environments may not have the 'org.eclipse.jdt.ui' bundle, so a different one can be set. - Since:
- 1.10
-
setPreferenceNodeId
Sets the preference node to be used for basic Java preferences. The client should set the value back to null when finished.- Parameters:
id
- the Id to use for the preference node- Since:
- 1.10
-
getCodeTemplateStore
public static final org.eclipse.text.templates.TemplateStoreCore getCodeTemplateStore()- Since:
- 1.11
-
setCodeTemplateStore
public static final void setCodeTemplateStore(org.eclipse.text.templates.TemplateStoreCore in) - Since:
- 1.11
-
getCodeTemplateContextRegistry
public static final org.eclipse.text.templates.ContextTypeRegistry getCodeTemplateContextRegistry()- Since:
- 1.11
-
setCodeTemplateContextRegistry
public static final void setCodeTemplateContextRegistry(org.eclipse.text.templates.ContextTypeRegistry in) - Since:
- 1.11
-
getPreference
Returns the value for the given key in the given context for the JDT UI plug-in.- Parameters:
key
- The preference keyproject
- The current context ornull
if no context is available and the workspace setting should be taken. Note that passingnull
should be avoided.- Returns:
- Returns the current value for the string.
- Since:
- 1.10
-