public interface IContentTypeSettings
This interface is not intended to be implemented by clients.
IContentType
,
IContentType.getSettings(IScopeContext)
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
static final int FILE_EXTENSION_SPEC
static final int FILE_NAME_SPEC
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
incorrectCoreException
- if this method fails. Reasons include:
FILE_NAME_SPEC
,
FILE_EXTENSION_SPEC
String getDefaultCharset()
null
otherwise.null
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_SPEC
String 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
incorrectCoreException
- 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:
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.