org.eclipse.cdt.internal.ui.preferences
Class CFileTypeAssociation

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.preferences.CFileTypeAssociation

public class CFileTypeAssociation
extends java.lang.Object


Constructor Summary
CFileTypeAssociation(java.lang.String spec, int type, org.eclipse.core.runtime.content.IContentType contentType)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 boolean equalsIgnoreCaseOfSpec(CFileTypeAssociation other)
           
 org.eclipse.core.runtime.content.IContentType getContentType()
           
 java.lang.String getDescription()
           
 int getFileSpecType()
          Returns IContentType.FILE_NAME_SPEC or IContentType.FILE_EXTENSION_SPEC.
 java.lang.String getPattern()
           
 java.lang.String getSpec()
           
 int hashCode()
           
 boolean isExtSpec()
           
 boolean isFileSpec()
           
 boolean isPredefined()
           
 boolean isUserDefined()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CFileTypeAssociation

public CFileTypeAssociation(java.lang.String spec,
                            int type,
                            org.eclipse.core.runtime.content.IContentType contentType)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

equalsIgnoreCaseOfSpec

public boolean equalsIgnoreCaseOfSpec(CFileTypeAssociation other)

getContentType

public org.eclipse.core.runtime.content.IContentType getContentType()
Returns:
Returns the fSettings.

getSpec

public java.lang.String getSpec()
Returns:
Returns the fSpec.

getPattern

public java.lang.String getPattern()

isFileSpec

public boolean isFileSpec()

isExtSpec

public boolean isExtSpec()

isPredefined

public boolean isPredefined()

isUserDefined

public boolean isUserDefined()

getDescription

public java.lang.String getDescription()
Returns:
Returns the description.

getFileSpecType

public int getFileSpecType()
Returns IContentType.FILE_NAME_SPEC or IContentType.FILE_EXTENSION_SPEC.