| |
|
| java.lang.Object org.netbeans.napi.gsfret.source.support.OpenedEditors
OpenedEditors | class OpenedEditors implements PropertyChangeListener(Code) | | This file is originally from Retouche, the Java Support
infrastructure in NetBeans. I have modified the file as little
as possible to make merging Retouche fixes back as simple as
possible.
author: Jan Lahoda |
filterSupportedMIMETypes | public static List<FileObject> filterSupportedMIMETypes(Collection<FileObject> files, String... mimeTypes) throws NullPointerException(Code) | | Filter unsupported files from the files parameter. A supported file
f is defined as follows:
JavaSource.forFileObject(f) != null
- If the
type is annotated with the
SupportedMimeTypes annotation,
the file is supported if type.getAnnotation(SupportedMimeTypes.class).value()
contains FileUtil.getMIMEType(f) .
- If the
type is not annotated with the
SupportedMimeTypes annotation,
the file is supported if FileUtil.getMIMEType(f) == "text/x-java" .
Parameters: files - the list of files to filter Parameters: type - the type to check for the SupportedMimeTypes annotation list of files that are supported (see above). throws: NullPointerException - if files == null or type == null |
getVisibleEditorsFiles | public synchronized Collection<FileObject> getVisibleEditorsFiles()(Code) | | |
stateChanged | public synchronized void stateChanged()(Code) | | |
|
|
|