|
org.openide.filesystems 8.5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=SOURCE) public static @interface MIMEResolver.Registration
Registration that allows effective, declarative registration of
complex mime resolvers.
For simpler cases rather consider using
MIMEResolver.NamespaceRegistration or
MIMEResolver.ExtensionRegistration.
The resource
attribute of the annotation should be a relative reference to
an XML like document describing
the rules that will be interpreted by the mime recognizing infrastructure.
The definition is pre-processed during compile time in order to eliminate XML parsing during execution.@NbBundle.Messages({ "NICE_NAME=Nice name!" })@MIMEResolver.Registration( displayName="#NICE_NAME" resource="your-resolver-definition.xml" ) class AnyClassYouHave { // ... }
| Required Element Summary | |
|---|---|
String |
displayName
Display name to present this type of objects to the user. |
String |
resource
Relative path
to resource XML file describing
the mime recognition rules. |
| Optional Element Summary | |
|---|---|
int |
position
In case ordering of mime resolvers is important, one can specify it by defining their position. |
String[] |
showInFileChooser
Show file filters for registered MIME types. |
| Element Detail |
|---|
public abstract String resource
Relative path
to resource XML file describing
the mime recognition rules.
public abstract String displayName
public abstract int position
position.
public abstract String[] showInFileChooser
FileChooserBuilder.addDefaultFileFilters()
|
org.openide.filesystems 8.5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||