Package org.eclipse.core.runtime.content
Class IContentTypeManager.ContentTypeChangeEvent
java.lang.Object
java.util.EventObject
org.eclipse.core.runtime.content.IContentTypeManager.ContentTypeChangeEvent
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- IContentTypeManager
An event object which describes the details of a change to a
content type.
Types of changes include a change in the file associations or a change in the encoding setting.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionContentTypeChangeEvent
(IContentType source) Constructor for a new content type change event.ContentTypeChangeEvent
(IContentType source, IScopeContext context) Constructor for a new content type change event. -
Method Summary
Modifier and TypeMethodDescriptionReturn the content type object associated with this change event.Return the preference scope where the setting changed, ornull
, if the change happened in the content type manager default context.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ContentTypeChangeEvent
Constructor for a new content type change event.- Parameters:
source
- the content type that changed
-
ContentTypeChangeEvent
Constructor for a new content type change event.- Parameters:
source
- the content type that changedcontext
- the context where a setting changed, ornull
- Since:
- 3.1
-
-
Method Details
-
getContentType
Return the content type object associated with this change event.- Returns:
- the content type
-
getContext
Return the preference scope where the setting changed, ornull
, if the change happened in the content type manager default context.- Returns:
- the context where the change happened, or
null
- Since:
- 3.1
-