public static final class IContentTypeManager.ContentTypeChangeEvent extends EventObject
Types of changes include a change in the file associations or a change in the encoding setting.
source
Constructor and Description |
---|
ContentTypeChangeEvent(IContentType source)
Constructor for a new content type change event.
|
ContentTypeChangeEvent(IContentType source,
IScopeContext context)
Constructor for a new content type change event.
|
Modifier and Type | Method and Description |
---|---|
IContentType |
getContentType()
Return the content type object associated with this change event.
|
IScopeContext |
getContext()
Return the preference scope where the setting changed, or
null , if the change happened in the content type manager
default context. |
getSource, toString
public ContentTypeChangeEvent(IContentType source)
source
- the content type that changedpublic ContentTypeChangeEvent(IContentType source, IScopeContext context)
source
- the content type that changedcontext
- the context where a setting changed, or null
public IContentType getContentType()
public IScopeContext getContext()
null
, if the change happened in the content type manager
default context.null
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.