|
|
List of the main features:
ThreadLocal
variable registered into the JMManager
for this purpose. Details are in
#49609
org.netbeans.editor
- core of the editor generic infrastructure; indenpendent of the NetBeans IDE.
org.netbeans.editor.ext
- extra (non-essential) generic editor infrastructure; indenpendent of the NetBeans IDE.
org.netbeans.editor.ext.html
- HTML editor infrastructure; independent of the NetBeans IDE.
org.netbeans.editor.ext.html.dtd
- DTD parsing support for determining of the valid input at particular place of a HTML source (offered by code completion); independent of the NetBeans IDE.
org.netbeans.editor.ext.java
- Java editor infrastructure; independent of the NetBeans IDE.
org.netbeans.editor.ext.plain
- Plain text editor infrastructure; independent of the NetBeans IDE.
org.netbeans.editor.view.spi
- A rudiment of a generic view architecture SPI though now it is only used privately in the editor module; independent of the NetBeans IDE.
org.netbeans.modules.editor
- NetBeans-specific editor infrastructure
org.netbeans.modules.editor.html
- NetBeans-specific editor infrastructure
org.netbeans.modules.editor.java
- NetBeans-specific java editor infrastructure
org.netbeans.modules.editor.options
- Editor generic options support plus options for plain, html and java editors
org.netbeans.modules.editor.plain
- NetBeans-specific plain text editor infrastructure
java.io.File
directly?
Answer:
No.
Question (resources-layer):
Does your module provide own layer? Does it create any files or
folders in it? What it is trying to communicate by that and with which
components?
Answer:
Yes, files are created for menus, actions, shortcuts, annotations,
settings storage:
JavaFastOpenAction
) registered into /Actions/Edit
and its shortcut into /Shortcuts folder.
Files and subfolders of Editors/|mime-type|:
<file name="EditorKit.instance"> <attr name="instanceClass" stringvalue="org.netbeans.modules.editor.html.HTMLKit"/> </file>
<folder name="Popup"> <file name="org-openide-actions-CutAction.instance"/> <attr name="org-openide-actions-CutAction.instance/org-openide-actions-CopyAction.instance" boolvalue="true"/> <file name="org-openide-actions-CopyAction.instance"/> </folder>
Editor's actions are referenced by their name (Action.NAME
property)
which each editor action mandatorily has:
<folder name="Popup"> <file name="format"/> </folder>will add an editor action named "format" into popup.
Please see layer.xml for further details.
Question (resources-read): Does your module read any resources from layers? For what purpose? Answer: No. Question (resources-mask): Does your module mask/hide/override any resources provided by other modules in their layers? Answer: No.org.openide.util.Lookup
or any similar technology to find any components to communicate with? Which ones?
Answer:
In src/org/netbeans/modules/editor/EditorModule.java: Lookup.getDefault().lookup(DataLoaderPool.class)
In src/org/netbeans/modules/editor/EditorModule.java: Lookup.getDefault().lookup(DataLoaderPool.class))
In src/org/netbeans/modules/editor/EditorModule.java: Lookup.getDefault().lookup(WindowManager.class)
In src/org/netbeans/modules/editor/NbEditorKit.java: Lookup.getDefault().lookup(Keymap.class)
In src/org/netbeans/modules/editor/NbEditorKit.java: Lookup.getDefault().lookup(ClassLoader.class)
In src/org/netbeans/modules/editor/NbEditorUtilities.java: Lookup.getDefault().lookup(ErrorManager.class)
In src/org/netbeans/modules/editor/NbImplementationProvider.java: Lookup.getDefault().lookup(ClassLoader.class)
In src/org/netbeans/modules/editor/options/BaseOptions.java: Lookup.getDefault().lookup(getDefaultIndentEngineClass())
In src/org/netbeans/modules/editor/options/ColoringArrayEditorPanel.java: Lookup.getDefault().lookup(ClassLoader.class)
In src/org/netbeans/modules/editor/options/KeyBindingsEditorPanel.java: Lookup.getDefault().lookup(ClassLoader.class);
In src/org/netbeans/modules/editor/options/MIMEOptionFile.java: Lookup.getDefault().lookup(ModuleInfo.class);
Question (lookup-register):
Do you register anything into lookup for other code to find?
Answer:
No.
Question (lookup-remove):
Do you remove entries of other modules from lookup?
Answer:
No.
System.getProperty
) property?
Answer:
java.io.Reader
by an EditorKit
.
java.awt.Graphics
of the component being rendered.
javax.swing.text.Document.getProperty()
)
that influence the document execution:
org.openide.text
package.
DataObject
or FileObject
from which the Document
content was loaded.
org.openide.text
package.
java.io.Reader
by an EditorKit.read()
.
instanceof
,
work with java.lang.Class
, etc.)?
Answer:
No.
Question (exec-threading):
What threading models, if any, does your module adhere to?
Answer:
Threading model of the document model adheres to javax.swing.text.Document interface. There can be multiple reader threads accessing the document simultaneously but only one mutating thread at the time.
Document.render(Runnable) must be used for all the readonly operations accessing the document. The editor fully supports org.openide.text.NbDocument.runAtomic() and NbDocument.runAtomicAsUser() extensions that allow transactions on top of the document.
All the UI-related tasks adhere to Swing/AWT conventions i.e. they must be performed in EQ thread.
Question (security-policy): Does your functionality require modifications to the standard policy file? Answer:XXX no answer for security-policy
Question (security-grant): Does your code grant additional rights to some other code? Answer:XXX no answer for security-grant
java.awt.datatransfer.Transferable
?
Answer: