public class LanguageMappingChangeEvent extends java.lang.Object implements ILanguageMappingChangeEvent
TYPE_FILE, TYPE_PROJECT, TYPE_WORKSPACE| Constructor and Description |
|---|
LanguageMappingChangeEvent() |
| Modifier and Type | Method and Description |
|---|---|
IContentType[] |
getAffectedContentTypes()
Returns an array of IContentTypes for which mappings have been changed, or an empty collection
if there are no affected content types.
|
IFile |
getFile()
Returns an IFile corresponding to the file for which settings have changed if this
event's type is TYPE_FILE, or null otherwise.
|
java.lang.String |
getFilename()
Returns a String corresponding to the full path to the file for which settings have changed if this
event's type is TYPE_FILE, or null otherwise.
|
IPath |
getPath()
Returns an IPath corresponding to the file for which settings have changed if this
event's type is TYPE_FILE, or null otherwise.
|
IProject |
getProject()
Returns an IProject corresponding to the project for which settings have changed if this
event's type is TYPE_PROJECT or TYPE_FILE, or null otherwise.
|
int |
getType()
Returns the type of even being reported.
|
void |
setAffectedContentTypes(IContentType[] affectedContentTypes)
Sets the associated IContentTypes for this event.
|
void |
setFile(IFile file)
Sets the associated IFile for this event.
|
void |
setFileName(java.lang.String fileName)
Sets the associated String filename for this event.
|
void |
setPath(IPath path)
Sets the associated IPath for this event.
|
void |
setProject(IProject project)
Sets the associated project for this event.
|
void |
setType(int type)
Sets the type of this event.
|
public IContentType[] getAffectedContentTypes()
ILanguageMappingChangeEventgetAffectedContentTypes in interface ILanguageMappingChangeEventpublic IFile getFile()
ILanguageMappingChangeEventgetFile in interface ILanguageMappingChangeEventpublic java.lang.String getFilename()
ILanguageMappingChangeEventgetFilename in interface ILanguageMappingChangeEventILanguageMappingChangeEvent.getProject()public IPath getPath()
ILanguageMappingChangeEventgetPath in interface ILanguageMappingChangeEventILanguageMappingChangeEvent.getProject()public IProject getProject()
ILanguageMappingChangeEventgetProject in interface ILanguageMappingChangeEventpublic int getType()
ILanguageMappingChangeEventgetType in interface ILanguageMappingChangeEventILanguageMappingChangeEvent.TYPE_WORKSPACE,
ILanguageMappingChangeEvent.TYPE_PROJECT,
ILanguageMappingChangeEvent.TYPE_FILEpublic void setAffectedContentTypes(IContentType[] affectedContentTypes)
affectedContentTypes - public void setFile(IFile file)
file - the IFile to setpublic void setFileName(java.lang.String fileName)
fileName - the fFileName to setpublic void setPath(IPath path)
path - the IPath to setpublic void setProject(IProject project)
project - the IProject to setpublic void setType(int type)
type - the type to setILanguageMappingChangeEvent.TYPE_WORKSPACE,
ILanguageMappingChangeEvent.TYPE_PROJECT,
ILanguageMappingChangeEvent.TYPE_FILECopyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.