|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IContentTypeSettings
Gives access to the user settings for a content type.
This interface is not intended to be implemented by clients.
IContentType,
IContentType.getSettings(IScopeContext)| Field Summary | |
|---|---|
static int |
FILE_EXTENSION_SPEC
File spec type constant, indicating a file extension specification. |
static int |
FILE_NAME_SPEC
File spec type constant, indicating a file name specification. |
| Method Summary | |
|---|---|
void |
addFileSpec(java.lang.String fileSpec,
int type)
Adds a user-defined file specification to the corresponding content type. |
java.lang.String |
getDefaultCharset()
Returns the default charset for the corresponding content type if it has been set, or null otherwise. |
java.lang.String[] |
getFileSpecs(int type)
Returns the file specifications for the corresponding content type. |
java.lang.String |
getId()
Returns the corresponding content type's unique identifier. |
void |
removeFileSpec(java.lang.String fileSpec,
int type)
Removes a user-defined file specification from the corresponding content type. |
void |
setDefaultCharset(java.lang.String userCharset)
Sets the default charset for the corresponding content type. |
| Field Detail |
|---|
static final int FILE_EXTENSION_SPEC
static final int FILE_NAME_SPEC
| Method Detail |
|---|
void addFileSpec(java.lang.String fileSpec,
int type)
throws CoreException
fileSpec - the file specificationtype - the type of the file specification. One of
FILE_NAME_SPEC,
FILE_EXTENSION_SPEC.
java.lang.IllegalArgumentException - if the type bit mask is
incorrect
CoreException - if this method fails. Reasons include:
FILE_NAME_SPEC,
FILE_EXTENSION_SPECjava.lang.String getDefaultCharset()
null otherwise.
nulljava.lang.String[] getFileSpecs(int type)
type - a bit-wise or of file specification type constants. Valid
flags are one of FILE_EXTENSION_SPEC or
FILE_NAME_SPEC
FILE_NAME_SPEC,
FILE_EXTENSION_SPECjava.lang.String getId()
void removeFileSpec(java.lang.String fileSpec,
int type)
throws CoreException
fileSpec - the file specificationtype - the type of the file specification. One of
FILE_NAME_SPEC,
FILE_EXTENSION_SPEC.
java.lang.IllegalArgumentException - if the type bit mask is
incorrect
CoreException - if this method fails. Reasons include:
FILE_NAME_SPEC,
FILE_EXTENSION_SPEC
void setDefaultCharset(java.lang.String userCharset)
throws CoreException
null is provided, restores the pre-defined default charset.
userCharset - the new charset for the content type, or
null
CoreException - if this method fails. Reasons include:
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.