|
Eclipse CDT Pre-release 3.0 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.core.model.LanguageMappingChangeEvent
A minimal implementation of ILanguageMappingsChangeEvent.
Field Summary |
---|
Fields inherited from interface org.eclipse.cdt.core.model.ILanguageMappingChangeEvent |
---|
TYPE_FILE, TYPE_PROJECT, TYPE_WORKSPACE |
Constructor Summary | |
---|---|
LanguageMappingChangeEvent()
|
Method Summary | |
---|---|
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. |
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(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LanguageMappingChangeEvent()
Method Detail |
public IContentType[] getAffectedContentTypes()
ILanguageMappingChangeEvent
getAffectedContentTypes
in interface ILanguageMappingChangeEvent
public IFile getFile()
ILanguageMappingChangeEvent
getFile
in interface ILanguageMappingChangeEvent
public String getFilename()
ILanguageMappingChangeEvent
getFilename
in interface ILanguageMappingChangeEvent
ILanguageMappingChangeEvent.getProject()
public IPath getPath()
ILanguageMappingChangeEvent
getPath
in interface ILanguageMappingChangeEvent
ILanguageMappingChangeEvent.getProject()
public IProject getProject()
ILanguageMappingChangeEvent
getProject
in interface ILanguageMappingChangeEvent
public int getType()
ILanguageMappingChangeEvent
getType
in interface ILanguageMappingChangeEvent
TYPE_WORKSPACE
,
TYPE_PROJECT
,
TYPE_FILE
public void setAffectedContentTypes(IContentType[] affectedContentTypes)
affectedContentTypes
- public void setFile(IFile file)
file
- the IFile to setpublic void setFileName(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_FILE
|
Eclipse CDT Pre-release 3.0 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |