NetBeansDeveloperFAQ

(Difference between revisions)
(Settings: How do you open the option dialog with a preselected category?)
(Editor and Edited Files: Reordering)
Line 228: Line 228:
===Editor and Edited Files===
===Editor and Edited Files===
 +
* [[DevFaqGetOpenEditorWindows| How can I get a list of open editors/documents?]]
 +
* [[DevFaqEditorGetCurrentDocument| How can I get the currently open document in the selected editor?]]
 +
* [[DevFaqListenEditorChanges| How can I track what file the user is currently editing?]]
 +
* [[DevFaqFindCaretPositionInEditor| How can I get the position of the caret/line in the selected editor?]]
* [[DevFaqOpenReadOnly| How can I open a file in the editor in read-only mode?]]
* [[DevFaqOpenReadOnly| How can I open a file in the editor in read-only mode?]]
 +
* [[DevFaqOpenFileAtLine| How can I open a file in the editor at a particular line number and column?]]
 +
* [[DevFaqEditorHowToGetMimeTypeFromDocumentOrJTextComponent| How to get mime type from Document or JTextComponent?]]
* [[DevFaqModifyOpenFile| Is it safe to programmatically modify a file which is open in the editor?]]
* [[DevFaqModifyOpenFile| Is it safe to programmatically modify a file which is open in the editor?]]
-
* [[DevFaqGetOpenEditorWindows| How can I get a list of open editor windows?]]
 
-
* [[DevFaqFindCaretPositionInEditor| How can I get the position of the caret/line in the currently selected editor window?]]
 
-
* [[DevFaqOpenFileAtLine| How can I open a particular file at a particular line number and column?]]
 
-
* [[DevFaqFileEditorContextMenuAddition| Can I add a menu item to the context menu of the Java source editor?]]
 
-
* [[DevFaqEditorGetCurrentDocument| How can I find the currently open document in the selected editor?]]
 
-
* [[DevFaqListenEditorChanges| How can I track what file the user is currently editing?]]
 
* [[DevFaqMultipleProgrammaticEdits| I want to make some programmatic changes to the edited file.  How can I do it so one Undo undoes it all?]]
* [[DevFaqMultipleProgrammaticEdits| I want to make some programmatic changes to the edited file.  How can I do it so one Undo undoes it all?]]
* [[DevFaqSyntaxColoring| Can I add syntax coloring for my own data object/MIME type?]]
* [[DevFaqSyntaxColoring| Can I add syntax coloring for my own data object/MIME type?]]
 +
* [[DevFaqEditorCodeCompletionAnyJEditorPane| How to add code completion to any JEditorPane]]
* [[DevFaqEditorWhatIsMimePath| What is MimePath?]]
* [[DevFaqEditorWhatIsMimePath| What is MimePath?]]
* [[DevFaqEditorWhatIsMimeLookup| What is MimeLookup?]]
* [[DevFaqEditorWhatIsMimeLookup| What is MimeLookup?]]
* [[DevFaqEditorHowIsMimeLookupComposed| How is MimeLookup composed?]]
* [[DevFaqEditorHowIsMimeLookupComposed| How is MimeLookup composed?]]
* [[DevFaqEditorJEPForMimeType| How can I create JEditorPane for a specific document type?]]
* [[DevFaqEditorJEPForMimeType| How can I create JEditorPane for a specific document type?]]
-
* [[DevFaqEditorHowToGetMimeTypeFromDocumentOrJTextComponent| How to get mime type from Document or JTextComponent?]]
 
-
* [[DevFaqEditorCodeCompletionAnyJEditorPane| How to add code completion to any JEditorPane]]
 
* [[DevFaqI18nFileEncodingQueryObject| Project Encoding vs. File Encoding - What are the precedence rules used in NetBeans 6.0?]]
* [[DevFaqI18nFileEncodingQueryObject| Project Encoding vs. File Encoding - What are the precedence rules used in NetBeans 6.0?]]
* [https://blogs.oracle.com/geertjan/entry/creating_error_annotations_in_netbeans2 I want to add annotations to my editor, for errors, or other reasons. How?]
* [https://blogs.oracle.com/geertjan/entry/creating_error_annotations_in_netbeans2 I want to add annotations to my editor, for errors, or other reasons. How?]
 +
* [[DevFaqFileEditorContextMenuAddition| Can I add a menu item to the context menu of the Java source editor?]]
* [[DevFaqEditorHowToAddDiffView| How to use the diff view in my own application/plugin?]]
* [[DevFaqEditorHowToAddDiffView| How to use the diff view in my own application/plugin?]]
* [[DevFaqEditorHowToReuseEditorHighlighting| How to reuse XML syntax highlighting in your own editor]]
* [[DevFaqEditorHowToReuseEditorHighlighting| How to reuse XML syntax highlighting in your own editor]]

Revision as of 12:44, 5 March 2016

This is the developer-oriented FAQ for NetBeans IDE 4.x, 5.x, 6.x, 7.x and 8.x. Developer in this context means "person writing NetBeans extension modules (plug-ins), or applications based on the NetBeans Platform". Don't see your developer-oriented question here? Ask on dev@platform.netbeans.org (subscribe to post). Not writing modules? See the list of other FAQs.

Want the whole FAQ in one big HTML file? Download it here for offline reading (rebuilt daily).

Here's How To Add FAQ Entries. One Big Important Thing about adding developer FAQ entries: If they don't start with "DevFaq" they are not going to get indexed properly. Please add items, but please follow this simple guideline.

Contents



Getting Started

Tutorials and important starting points

Getting support, where to find examples

Application Lifecycle and Hooks

Development issues, module basics and classpath issues, and information about RCP/Platform application configuration

Mavenized Builds

Configuration: How Modules Install Things

When There Are Multiple Ways To Do Something...

Actions: How to add things to Files, Folders, Menus, Toolbars and more


Key Bindings

Lookup

Files and Data Objects

Converting between common data types and finding things

Editor and Edited Files

File Management (within the IDE/Application)

Module System

Nodes and Explorer

Tasks and Progressbar

Command Line Parsing

Threading

Creating a Custom Programming Language

Settings

Window System

Dialogs API

XML Multiview API

Project Handling

Project Types

Also see BuildSystemDesign and ProjectGroups.

Saving

Versioning

Printing

HTML Browser

Wizards and Templates

Properties and PropertySheet

Output Window

Using Enterprise Resources from NetBeans module

Running and Writing tests

Branding your application

Authentication and Authorization in Platform Apps

Logging and Error Handling


JavaHelp

Look and Design

Deploying Changes through AutoUpdate and using Autoupdate API

Deployment using installers / NBI

Programmatic access to Java Sources

The following applies only to NetBeans 6.0 and later.

When things go wrong: Troubleshooting


Licensing Issues

Using Sounds

Contributor Agreement


Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo