NetBeansDeveloperFAQ

(Difference between revisions)
(make plugin documentation "faq entry" so entire section will be crawled)
(Deploying Changes through AutoUpdate and using Autoupdate API: How to change the update center URL via code)
 
(46 intermediate revisions not shown)
Line 1: Line 1:
-
This is the developer-oriented FAQ for NetBeans IDE 4.x, 5.x, 6.x and 7.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 [http://netbeans.org/projects/platform/lists/dev/archive <tt>dev@platform.netbeans.org</tt>] ([http://netbeans.org/community/lists/top.html subscribe to post]).  Not writing modules?  See the [[FaqIndex| list of other FAQs]].
+
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 [http://netbeans.org/projects/platform/lists/dev/archive <tt>dev@platform.netbeans.org</tt>] ([http://netbeans.org/community/lists/top.html subscribe to post]).  Not writing modules?  See the [[FaqIndex| list of other FAQs]].
'''Want the whole FAQ in one big HTML file?''' Download it [http://deadlock.netbeans.org/hudson/job/faqsuck/lastSuccessfulBuild/artifact/other/faqsuck/build/faq.html here] for offline reading (rebuilt daily).
'''Want the whole FAQ in one big HTML file?''' Download it [http://deadlock.netbeans.org/hudson/job/faqsuck/lastSuccessfulBuild/artifact/other/faqsuck/build/faq.html here] for offline reading (rebuilt daily).
Line 16: Line 16:
* [[DevFaqAccessSourcesWeb| How do I get zipped sources for a periodic build?]]
* [[DevFaqAccessSourcesWeb| How do I get zipped sources for a periodic build?]]
* [[DefFaqMapApisToTasks| What API do I want to use for x, y or z? ]]
* [[DefFaqMapApisToTasks| What API do I want to use for x, y or z? ]]
-
* [http://www.netbeans.org/community/contribute/patches.html I have fixed a bug in NetBeans. Can I contribute the patch?]
+
* [http://netbeans.org/community/contribute/patches.html I have fixed a bug in NetBeans. Can I contribute the patch?]
* [[DevFaqSellingModules| I have written a module. Can I sell it?]]
* [[DevFaqSellingModules| I have written a module. Can I sell it?]]
* [[DevFaqGeneralPackageNamingConventions| Why are some packages org.netbeans.api.something and others are org.netbeans.something.api?]]
* [[DevFaqGeneralPackageNamingConventions| Why are some packages org.netbeans.api.something and others are org.netbeans.something.api?]]
* [[DevFaqGeneralWhatIsNetBeansExe| What is netbeans.exe, who compiles it and why is it there?]]
* [[DevFaqGeneralWhatIsNetBeansExe| What is netbeans.exe, who compiles it and why is it there?]]
-
* [http://www.netbeans.org/community/contribute/hg.html How do I get commit access to NetBeans source repository?]
+
* [http://netbeans.org/community/contribute/hg.html How do I get commit access to NetBeans source repository?]
* [[DevFaqGeneralWhereIsJavadoc| Where can I find Javadoc for the IDE and Platform?]]
* [[DevFaqGeneralWhereIsJavadoc| Where can I find Javadoc for the IDE and Platform?]]
* [[DevFaqGeneralWhereIsPlatformHowToBuild| Where is the Platform and how can I build it?]]
* [[DevFaqGeneralWhereIsPlatformHowToBuild| Where is the Platform and how can I build it?]]
Line 34: Line 34:
===Getting support, where to find examples===
===Getting support, where to find examples===
-
* [http://www.netbeans.org/community/lists/top.html NetBeans mailing lists - get help from experts all around the globe]
+
* [http://netbeans.org/community/lists/top.html NetBeans mailing lists - get help from experts all around the globe]
* [http://platform.netbeans.org/servlets/SearchList?listName=dev Search the support list for module developers]
* [http://platform.netbeans.org/servlets/SearchList?listName=dev Search the support list for module developers]
-
* [http://www.netbeans.org/servlets/SearchList?listName=nbdev Search the NetBeans development mailing list]
+
* [http://netbeans.org/servlets/SearchList?listName=nbdev Search the NetBeans development mailing list]
* [[DevFaqFileBug| Filing a bug report]]
* [[DevFaqFileBug| Filing a bug report]]
* [[DevFaqSampleCode| Examples of how to use various APIs]]
* [[DevFaqSampleCode| Examples of how to use various APIs]]
* [http://hg.netbeans.org/main/misc/file/tip/platform/samples/ Browse Samples Online]
* [http://hg.netbeans.org/main/misc/file/tip/platform/samples/ Browse Samples Online]
* [[DevFaqMoreDocsOnCertainAPIs| Where can I find more documentation on certain APIs?]]
* [[DevFaqMoreDocsOnCertainAPIs| Where can I find more documentation on certain APIs?]]
-
* [http://www.netbeans.org/kb/support.html Consider all of these support options]
+
* [http://netbeans.org/kb/support.html Consider all of these support options]
* [[NetBeansCertifiedEngineerCourse| Can I get training material for the NetBeans Certification course?]]
* [[NetBeansCertifiedEngineerCourse| Can I get training material for the NetBeans Certification course?]]
Line 90: Line 90:
* [[DevFaqModuleReload|Do I need to restart NetBeans every time to debug new changes?]]
* [[DevFaqModuleReload|Do I need to restart NetBeans every time to debug new changes?]]
* [[DevFaqAutomaticPlatformDownload|How can I have my application compiled in a specific version of the platform?]]
* [[DevFaqAutomaticPlatformDownload|How can I have my application compiled in a specific version of the platform?]]
 +
* [[DevFaqAnnotationDevelopDebug|How do I develop and debug annotations for NetBeans platform apps?]]
===Mavenized Builds===
===Mavenized Builds===
Line 122: Line 123:
* [[DevFaqActionAddMenuBar| How do I add an action to the main menu?]]
* [[DevFaqActionAddMenuBar| How do I add an action to the main menu?]]
* [[DevFaqActionAddToolBar| How do I add an action to a toolbar in the main window?]]
* [[DevFaqActionAddToolBar| How do I add an action to a toolbar in the main window?]]
 +
* [[DevFaqToggleActionAddToEditorToolbar| How do I add a toggle-able action to the toolbar/main menu?]]
 +
* [[DevFaqActionAddToEditorToolbar| How do I add an action to the toolbar of the editor?]]
* [[DevFaqActionContextSensitive| How do I make an action that is automatically enabled/disabled depending on what's selected?]]
* [[DevFaqActionContextSensitive| How do I make an action that is automatically enabled/disabled depending on what's selected?]]
-
* [[DevFaqCheckableActionPreferenceOption| How do I make a checkable action that represents a preference option?]]
+
* [[DevFaqCheckableActionPreferenceOption| How do I make a checkable/toggle-able action that represents a preference option?]]
* [[DevFaqActionsFolder| What is the Actions folder in the system filesystem, and why should I use it?]]
* [[DevFaqActionsFolder| What is the Actions folder in the system filesystem, and why should I use it?]]
 +
* [[DevFaqActionsAddAtRuntime| How do I add an action (incl. shortcut) at runtime?]]
* [[DevFaqActionAddFileMime| How do I add an action to all files of a given mime-type?]]
* [[DevFaqActionAddFileMime| How do I add an action to all files of a given mime-type?]]
-
* [[DevFaqActionAddEditorPopup| How do I add an action to the text-editor popup menu?]]
+
* [[DevFaqActionAddEditorPopup| How do I add an action to the context menu of a specific editor?]]
 +
* [[DevFaqActionAddToContextMenuOfAllEditors|How do I add an action to the context menu of all editors?]]
* [[DevFaqActionAddProjectPopUp| How do I add an action to a project popup menu?]]
* [[DevFaqActionAddProjectPopUp| How do I add an action to a project popup menu?]]
* [[DevFaqActionAddProjectTypePopUp| How do I add an action to a project popup menu of a specific project type?]]
* [[DevFaqActionAddProjectTypePopUp| How do I add an action to a project popup menu of a specific project type?]]
Line 133: Line 138:
* [[DevFaqActionAddAnyFolder| How do I add an action to any folder?]]
* [[DevFaqActionAddAnyFolder| How do I add an action to any folder?]]
* [[DevFaqActionAddJavaPackage| How do I add an action to an Java package?]]
* [[DevFaqActionAddJavaPackage| How do I add an action to an Java package?]]
 +
* [[DevFaqActionAddTools| How do I add an action to the tools menu?]]
* [[DevFaqActionAddDataObject| How do I add an action to my custom node?]]
* [[DevFaqActionAddDataObject| How do I add an action to my custom node?]]
* [[DevFaqActionNodePopupSubmenu| How do I make my Node have a submenu on its popup menu?]]
* [[DevFaqActionNodePopupSubmenu| How do I make my Node have a submenu on its popup menu?]]
Line 138: Line 144:
* [[DevFaqDropdownMenuAddToolbar| How do I add a dropdown menu to toolbar?]]
* [[DevFaqDropdownMenuAddToolbar| How do I add a dropdown menu to toolbar?]]
* [[DevFaqDropdownMenuAddToolbarEnabled| How do I add a dropdown menu to toolbar that is selectively enabled/disabled?]]
* [[DevFaqDropdownMenuAddToolbarEnabled| How do I add a dropdown menu to toolbar that is selectively enabled/disabled?]]
 +
* [[DevFaqHideRemoveToolbarMenu| How do I hide/remove default toolbar buttons and/or menu items?]]
* [[DevFaqHideShowToolbar| How do I hide/show toolbar dynamically?]]
* [[DevFaqHideShowToolbar| How do I hide/show toolbar dynamically?]]
* [[DevFaqRenamingMenuItem| Some module in the IDE etc. already has a menu item I like, but I just want to rename it. Can I?]]
* [[DevFaqRenamingMenuItem| Some module in the IDE etc. already has a menu item I like, but I just want to rename it. Can I?]]
Line 156: Line 163:
* [[DevFaqAddActionToMembersOrHierarchyView|How do I add an action to the context menu of the members or hierarchy view?]]
* [[DevFaqAddActionToMembersOrHierarchyView|How do I add an action to the context menu of the members or hierarchy view?]]
* [[DevFaqInvokeActionProgrammatically|How do I invoke an action programmatically?]]
* [[DevFaqInvokeActionProgrammatically|How do I invoke an action programmatically?]]
 +
* [[DevFaqHowOrganizeOrReuseExistingActionsWithAnnotations|How can I reuse and/or organise actions only by using annotations (@ActionReferences)?]]
 +
* [[DevFaqHowToFixPopuppresenterreturningnull|How can I fix "WARNING [org.openide.util.Utilities]: findContextMenuImpl, getPopupPresenter returning null for" when using a PopupPresenter ?]]
 +
* [[DevFaqHowToDefineTheKeyMapCategoryForAnAction|How do I define and localise the keymap category of an action?]]
 +
<!-- * [[DevFaqHowCreateAnActionObject| How can I to create an Action object and attach this action to one or more components on frame without manually editing Generated Code?]] -->
 +
* [[DevFaqAddMacroableAction|How do I create an action which can be invoked by a macro?]]
===Key Bindings===
===Key Bindings===
Line 165: Line 177:
* [[DevFaqKeybindingsInUse| Which keybindings are already being used?]]
* [[DevFaqKeybindingsInUse| Which keybindings are already being used?]]
* [[DevFaqAddDefaultActionShortcuts|How do I add default shortcuts for SystemActions (like cut, paste, etc)?]]
* [[DevFaqAddDefaultActionShortcuts|How do I add default shortcuts for SystemActions (like cut, paste, etc)?]]
 +
* [[DevFaqGetShortCutForAction|How to get the shortcut/shortkey of an action at runtime?]]
 +
* [[DevFaqAddShortCutForAction|How to set the shortcut of an action outside of your own module?]]
===Lookup===
===Lookup===
Line 219: Line 233:
===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 in the currently selected editor window?]]
 
-
* [[DevFaqOpenFileAtLine| How can I open a particular file at a particular line number?]]
 
-
* [[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]]
 +
* [[DevFaqEditorHowToAddCodeTemplates| How to add code templates?]]
=== File Management (within the IDE/Application)===
=== File Management (within the IDE/Application)===
Line 284: Line 299:
* [[DevFaqCutCopyPaste| How do I handle cut, copy and paste?]]
* [[DevFaqCutCopyPaste| How do I handle cut, copy and paste?]]
* [[DevFaqGraphicalChoiceView| How can I graphically create a ChoiceView?]]
* [[DevFaqGraphicalChoiceView| How can I graphically create a ChoiceView?]]
 +
* [[DevFaqExplorerViewsInMantisse| How can I design explorer views in Mantisse GUI editor?]]
* [[DevFaqNodePropertyForFiles| I have a Node.Property for a file. How can I control the file chooser that is the custom editor?]]
* [[DevFaqNodePropertyForFiles| I have a Node.Property for a file. How can I control the file chooser that is the custom editor?]]
* [[DevFaqPropertyEditorHints| I have a Node.Property. I want to control its appearance or custom editor somehow.  Can I do that without writing my own property editor?]]
* [[DevFaqPropertyEditorHints| I have a Node.Property. I want to control its appearance or custom editor somehow.  Can I do that without writing my own property editor?]]
* [[DevFaqNodeInjectingLookupContents| I want to allow other modules to inject objects into my Node's Lookup, or Actions into its actions]]
* [[DevFaqNodeInjectingLookupContents| I want to allow other modules to inject objects into my Node's Lookup, or Actions into its actions]]
* [[DevFaqOutlineViewHorizontalScrolling|How can I add horizontal scrolling support to the OutlineView component?]]
* [[DevFaqOutlineViewHorizontalScrolling|How can I add horizontal scrolling support to the OutlineView component?]]
 +
===Tasks and Progressbar===
===Tasks and Progressbar===
* [http://bits.netbeans.org/dev/javadoc/org-netbeans-api-progress/overview-summary.html How to use the Progress API?]
* [http://bits.netbeans.org/dev/javadoc/org-netbeans-api-progress/overview-summary.html How to use the Progress API?]
* [http://rubenlaguna.com/wp/2010/01/18/cancellable-tasks-and-progress-indicators-netbeans-platform/ Cancellable Tasks and Progress Indicators]
* [http://rubenlaguna.com/wp/2010/01/18/cancellable-tasks-and-progress-indicators-netbeans-platform/ Cancellable Tasks and Progress Indicators]
* [[DevFaqTaskLongRunningAsyncTask| How to execute a long running task from an action without blocking the GUI?]]
* [[DevFaqTaskLongRunningAsyncTask| How to execute a long running task from an action without blocking the GUI?]]
 +
* [[DevFaqExternalExecution| How to run/execute an external program?]]
===Command Line Parsing===
===Command Line Parsing===
Line 311: Line 329:
===Settings===
===Settings===
-
 
* [[DevFaqSetPrefs| How do I let the user set preferences/options/customization/configuration for my module/application?]]
* [[DevFaqSetPrefs| How do I let the user set preferences/options/customization/configuration for my module/application?]]
* [[DevFaqExtendOptionsWindow| Can I add new panels to the Options window?]]
* [[DevFaqExtendOptionsWindow| Can I add new panels to the Options window?]]
* [[DevFaqExportImport| How to register options for export/import to module's layer?]]
* [[DevFaqExportImport| How to register options for export/import to module's layer?]]
* [[DevFaqJavaStartParms| How do I change the application's Java start parameters?]]
* [[DevFaqJavaStartParms| How do I change the application's Java start parameters?]]
 +
* [[DevFaqExtendOptionsSearch| How can I configure my options panel to be found by global quicksearch or options search?]]
 +
* [[DevFaqOpenOptionsAtCategory| How do you open the option dialog with a preselected category?]]
 +
* [[DevFaqHowToChangeSettingsFromAnExternalModules| How do you change the configuration of other modules?]]
===Window System===
===Window System===
Line 357: Line 377:
* [https://blogs.oracle.com/geertjan/entry/visual_editor_part_6 How do I get started with the XML Multiview API? (Part 6)]
* [https://blogs.oracle.com/geertjan/entry/visual_editor_part_6 How do I get started with the XML Multiview API? (Part 6)]
* [https://blogs.oracle.com/geertjan/entry/visual_editor_part_7 How do I get started with the XML Multiview API? (Part 7)]
* [https://blogs.oracle.com/geertjan/entry/visual_editor_part_7 How do I get started with the XML Multiview API? (Part 7)]
 +
* [[DevFaqMultiViewChangeTabInCode| How to change selected tab of Multiview?]]
===Project Handling===
===Project Handling===
Line 363: Line 384:
* [[DevFaqGetNameOrIconForProject | How to get the name or icon of a project?]]
* [[DevFaqGetNameOrIconForProject | How to get the name or icon of a project?]]
* [[DevFaqGetNameOfProjectGroup | How to get the name of the active project group?]]
* [[DevFaqGetNameOfProjectGroup | How to get the name of the active project group?]]
 +
* [[DevFaqListenForOpeningClosingProject | How to listen for projects to be opened/closed?]]
===Project Types===
===Project Types===
Line 403: Line 425:
* [https://blogs.oracle.com/geertjan/entry/propertyeditorsupport_paintvalue How do I color the cells in a property sheet?]
* [https://blogs.oracle.com/geertjan/entry/propertyeditorsupport_paintvalue How do I color the cells in a property sheet?]
* [https://blogs.oracle.com/geertjan/entry/propertyeditorsupport_paintvalue How do I display an icon in my property sheet?]
* [https://blogs.oracle.com/geertjan/entry/propertyeditorsupport_paintvalue How do I display an icon in my property sheet?]
 +
* [[DevFaqPropertySheetHideDescription| How do I hide the description area in property window?]]
 +
* [[DevFaqPropertySheetReadonlyProperty| How do I add a readonly property?]]
===Output Window===
===Output Window===
Line 441: Line 465:
* [[DevFaqUnexpectedExceptionDialog| How can I suppress the Unexpected Exception dialog?]]
* [[DevFaqUnexpectedExceptionDialog| How can I suppress the Unexpected Exception dialog?]]
* [[DevFaqCustomizingUnexpectedExceptionDialog|How can I customize the Unexpected Exception dialog?]]
* [[DevFaqCustomizingUnexpectedExceptionDialog|How can I customize the Unexpected Exception dialog?]]
 +
* [[DevFaqAddTimestampToLogs|How can I add a timestamp to the logs?]]
 +
===JavaHelp===
===JavaHelp===
 +
* [[DevFaqHelpGuidelines| JavaHelp integration guide]]
* [[DevFaqIdeWelcome| How do I fix problems about 'ide.welcome'?]]
* [[DevFaqIdeWelcome| How do I fix problems about 'ide.welcome'?]]
* [https://blogs.oracle.com/geertjan/entry/branding_the_default_help_topic How do I change the default help topic?]
* [https://blogs.oracle.com/geertjan/entry/branding_the_default_help_topic How do I change the default help topic?]
Line 454: Line 481:
* [[DevFaqChangeLookAndFeel|How can I set the Swing look and feel on startup?]]
* [[DevFaqChangeLookAndFeel|How can I set the Swing look and feel on startup?]]
* [[DevFaqCustomFontSize| I have a custom component.  How can I make it respond to --fontsize like the rest of NetBeans?]]
* [[DevFaqCustomFontSize| I have a custom component.  How can I make it respond to --fontsize like the rest of NetBeans?]]
 +
* [[DevFaqImagesForDarkLaf|How to provide non-inverted images for dark LookAndFeels like DarkMetal/Darcula?]]
===Deploying Changes through AutoUpdate and using Autoupdate API===
===Deploying Changes through AutoUpdate and using Autoupdate API===
Line 465: Line 493:
* [https://blogs.oracle.com/rechtacek/entry/how_to_update_netbeans_platform How to update NetBeans Platform Application silently?]
* [https://blogs.oracle.com/rechtacek/entry/how_to_update_netbeans_platform How to update NetBeans Platform Application silently?]
* [[DevFaqNBMPack200| How to deal with pack200 compression in NBM?]] (''since NB6.9'')
* [[DevFaqNBMPack200| How to deal with pack200 compression in NBM?]] (''since NB6.9'')
 +
* [[DevFaqAutoUpdateCheckEveryStartup| How to force to check for updates at every startup?]]
 +
* [[DevFaqHowToChangeUpdateCenterURL|How to change the update center URL via code?]]
 +
 +
===Deployment using installers / NBI===
 +
* [[DevInstallerAddVersioningInfo| How to add versioning information to be shown in "Installed Programs" (Windows-only)?]]
===Programmatic access to Java Sources===
===Programmatic access to Java Sources===
-
The following applies only to NetBeans 6.0 and later. See [[Java_DevelopersGuide | Java_DevelopersGuide]] for details.
+
The following applies only to NetBeans 6.0 and later.  
* [[JavaHT_GetAllMembers| How do I Get All Methods/Fields/Constructors of a Class?]]
* [[JavaHT_GetAllMembers| How do I Get All Methods/Fields/Constructors of a Class?]]
Line 473: Line 506:
* [[DevFaqObtainSourcesOfAJavaClass| How to obtain a source file for a Java class and open in the editor?]]
* [[DevFaqObtainSourcesOfAJavaClass| How to obtain a source file for a Java class and open in the editor?]]
* [[DevFaqScanForClasses| How can I scan a classpath to find all classes of a particular type?]]
* [[DevFaqScanForClasses| How can I scan a classpath to find all classes of a particular type?]]
 +
* See [[Java_DevelopersGuide | Java_DevelopersGuide]] for more specific FAQ entries
===When things go wrong: Troubleshooting===
===When things go wrong: Troubleshooting===

Current revision as of 14:18, 18 September 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