|
Eclipse Platform Release 3.7 |
|||||||||
| 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(String fileSpec,
int type)
Adds a user-defined file specification to the corresponding content type. |
String |
getDefaultCharset()
Returns the default charset for the corresponding content type if it has been set, or null otherwise. |
String[] |
getFileSpecs(int type)
Returns the file specifications for the corresponding content type. |
String |
getId()
Returns the corresponding content type's unique identifier. |
void |
removeFileSpec(String fileSpec,
int type)
Removes a user-defined file specification from the corresponding content type. |
void |
setDefaultCharset(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(String fileSpec,
int type)
throws CoreException
fileSpec - the file specificationtype - the type of the file specification. One of
FILE_NAME_SPEC,
FILE_EXTENSION_SPEC.
IllegalArgumentException - if the type bit mask is
incorrect
CoreException - if this method fails. Reasons include:
FILE_NAME_SPEC,
FILE_EXTENSION_SPECString getDefaultCharset()
null otherwise.
nullString[] 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_SPECString getId()
void removeFileSpec(String fileSpec,
int type)
throws CoreException
fileSpec - the file specificationtype - the type of the file specification. One of
FILE_NAME_SPEC,
FILE_EXTENSION_SPEC.
IllegalArgumentException - if the type bit mask is
incorrect
CoreException - if this method fails. Reasons include:
FILE_NAME_SPEC,
FILE_EXTENSION_SPEC
void setDefaultCharset(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.7 |
|||||||||
| 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, 2011. All rights reserved.