urn:netbeans-org:apichanges NetBeans API Changes netbeans.org 2009-11-07T07:53:39Z urn:netbeans-org:apichanges:ProgressUtils [org.netbeans.api.progress] ProgressUtils class with runOffEventDispatchThread methods was added. 2009-11-02T00:00:00Z t_h t_h@netbeans.org ProgressUtils class with runOffEventDispatchThread methods was added. These methods allow movement of operations out of AWT thread while blocking UI. urn:netbeans-org:apichanges:URLStreamHandlerRegistration [org.openide.util] Added @URLStreamHandlerRegistration 2009-10-30T00:00:00Z jglick jglick@netbeans.org

Introduced an annotation to register URL protocols.

urn:netbeans-org:apichanges:GeneratorUtilities.copyComments [org.netbeans.modules.java.source] Added GeneratorUtilities.copyComments method. 2009-10-27T00:00:00Z jlahoda jlahoda@netbeans.org Added GeneratorUtilities.copyComments method, which copies comments from one tree to another tree. urn:netbeans-org:apichanges:default-visible [org.netbeans.spi.palette] Make palette hidden by default for selected document types. 2009-10-21T00:00:00Z saubrecht saubrecht@netbeans.org

A new boolean attribute can be set on palette's root node or on palette's root folder in XML layer to hide the palette window by default when a document the palette is associated with is activated. User then must open the palette window manually for the first time. The attribute's name is "paletteDefaultVisible" and the default value is "true".

urn:netbeans-org:apichanges:JavaRunner-runtime-encoding [org.netbeans.modules.java.project] Added JavaRunner.PROP_RUNTIME_ENCODING property for COS Runner 2009-10-19T00:00:00Z tzezula tzezula@netbeans.org

Added JavaRunner.PROP_RUNTIME_ENCODING property to allow project types to pass the runtime encoding to jvm.

urn:netbeans-org:apichanges:TreeView.setAutoWaitCursor [org.openide.explorer] TreeView.setAutoWaitCursor added. 2009-10-19T00:00:00Z t_h t_h@netbeans.org Added method to control automatic setting of wait cursor when node is expanded. urn:netbeans-org:apichanges:java-classpath-processorpath [org.netbeans.api.java] Introducing JavaClassPathConstants.PROCESSOR_PATH 2009-10-18T00:00:00Z jlahoda jlahoda@netbeans.org

Class org.netbeans.api.java.classpath.JavaClassPathConstants is created to hold java specific classpath constants. org.netbeans.api.java.classpath.JavaClassPathConstants.PROCESSOR_PATH constant is created as a key for Java processor path.

urn:netbeans-org:apichanges:Notification.SILENT [org.openide.awt] Support for silent notifications 2009-10-16T00:00:00Z jtulach jtulach@netbeans.org New priority to show a notification but without its details initially. The user can display the details baloon manually later. urn:netbeans-org:apichanges:Actions.checkbox [org.openide.awt] Actions.checkbox() can represent a boolean key in Preferences. 2009-10-09T00:00:00Z mmetelka mmetelka@netbeans.org checkbox added to create an action that represents a key in Preferences. urn:netbeans-org:apichanges:endorsed-classpath [org.netbeans.modules.java.api.common] Add support for endorsed libraries 2009-10-07T00:00:00Z dkonecny dkonecny@netbeans.org

Add ability to create bootclasspath with given endorsed libraries.

urn:netbeans-org:apichanges:vcs-indexing-bridge [org.netbeans.modules.parsing.api] IndexingManager extended to support integration with VCS 2009-10-01T00:00:00Z vstejskal vstejskal@netbeans.org

Added IndexingManager.refreshAllIndices(boolean fullRescan, boolean wait, File... filesOrFolders), <T> T IndexingManager.runProtected(Callable<T> operation)

urn:netbeans-org:apichanges:CloneableEditorSupport.asynchronousOpen [org.openide.text] Add CloneableEditorSupport.asynchronousOpen 2009-10-01T00:00:00Z mslama mslama@netbeans.org

Add CloneableEditorSupport.asynchronous to control if CloneableEditorSupport.open opens document synchronously or not. If CloneableEditorSupport.asynchronous return true then CloneableEditorSupport.open opens document synchronously and handles UserQuestionException. If CloneableEditorSupport.asynchronous return false then CloneableEditorSupport.open does not open document. Document is then opened during initialization of CloneableEditor form non AWT thread and UserQuestionException is handled there. Implementation of method asynchronous in CloneableEditorSupport returns false ie. it keeps original behavior of CloneableEditorSupport.open. Subclasses can overwrite method asynchronous to return true to avoid blocking AWT thread by call CloneableEditorSupport.open which calls CloneableEditorSupport.openDocument.

urn:netbeans-org:apichanges:issue-172694 [org.netbeans.spi.viewmodel] Introduction of AsynchronousModelFilter. 2009-09-25T00:00:00Z mentlicher mentlicher@netbeans.org This API introduced AsynchronousModelFilter that can be used by clients to override the default threading of their model implementations. urn:netbeans-org:apichanges:ListenableWebModuleImplementation2 [org.netbeans.api.web.webmodule] Adding ability to listen on WebModuleImplementation2 changes 2009-09-21T00:00:00Z dkonecny dkonecny@netbeans.org

Adding ability to listen on changes of document base or WEB-INF folder. WebModuleImplementation2 was introduced in this release so I'm taking advantage of it and adding requested methods.

urn:netbeans-org:apichanges:recursive-listener [org.openide.filesystems] Support for recursive listeners 2009-09-18T00:00:00Z jtulach jtulach@netbeans.org

One can register a recursive listener on a file object by calling FileObject.addRecursiveListener(FileChangeListener).

urn:netbeans-org:apichanges:annotations [org.netbeans.modules.options.api] Annotations to register dialog panels 2009-09-14T00:00:00Z jglick jglick@netbeans.org

Introduced three annotations inside OptionsPanelController to register Options dialog panels declaratively.

urn:netbeans-org:apichanges:LayerBuilder.instanceFile [org.openide.filesystems] Non-initializing LayerBuilder.instanceFile added 2009-09-14T00:00:00Z jglick jglick@netbeans.org

New overload of instanceFile makes it easier to create instances for use with lazy factories.

urn:netbeans-org:apichanges:issue-171342 [org.netbeans.api.debugger.jpda] API for ability to plug-in evaluator engine. 2009-09-10T00:00:00Z mentlicher mentlicher@netbeans.org

An Evaluator interface is introduced, with evaluate() method. It's implementation should be registered for the desired language that compiles into bytecode.

urn:netbeans-org:apichanges:CompositeCategoryProvider.Registration [org.netbeans.modules.projectuiapi] Customizer panel registrations using annotations 2009-09-10T00:00:00Z jglick jglick@netbeans.org

@CompositeCategoryProvider.Registration may be used to register project customizer panels.

urn:netbeans-org:apichanges:LayerBuilder.folder [org.openide.filesystems] LayerBuilder.folder added 2009-09-10T00:00:00Z jglick jglick@netbeans.org

Now possible to create empty folders from layer-generating processors.

urn:netbeans-org:apichanges:ImageUtilities.createDisabled [org.openide.util] ImageUtilities.createDisabledIcon and ImageUtilities.createDisabledImage added. 2009-09-10T00:00:00Z t_h t_h@netbeans.org

ImageUtilities.createDisabledIcon now can be used to create low color saturation icon for disabled buttons. Also ImageUtilities.createDisabledImage was added.

urn:netbeans-org:apichanges:IndexingManager.refreshAllIndices [org.netbeans.modules.parsing.api] Added IndexingManager.refreshAllIndices(boolean fullRescan, boolean wait, FileObject... folders) 2009-09-07T00:00:00Z vstejskal vstejskal@netbeans.org

Added refreshAllIndices(boolean fullRescan, boolean wait, FileObject... folders).

urn:netbeans-org:apichanges:DataEditorSupport.annotateName [org.openide.loaders] Added annotateName and toolTip to DataEditorSupport 2009-09-03T00:00:00Z jglick jglick@netbeans.org

Added two convenience methods permitting modules with nonstandard editor-like windows to use the regular modified and read-only status annotations.

urn:netbeans-org:apichanges:IndexingSupport.createDocument-IndexResult.getIndexable [org.netbeans.modules.parsing.api] Added IndexingSupport.createDocument(FileObject) and IndexResult.getIndexable() 2009-09-01T00:00:00Z tzezula tzezula@netbeans.org

Added methods IndexingSupport.createDocument(FileObject) and IndexResult.getIndexable() in order to allow CustomIndexers and BinaryIndexers to use IndexingSupport.

urn:netbeans-org:apichanges:issue-171194 [org.netbeans.spi.viewmodel] Check extension to NodeModel. 2009-09-01T00:00:00Z mentlicher mentlicher@netbeans.org This API change allows to change a node selection in the tree table view. SelectionChanged event is used to select a set of nodes (rows).

Added classes:
org.netbeans.spi.viewmodel.ModelEvent.SelectionChanged,

urn:netbeans-org:apichanges:Repository.defaultFileSystem.status [org.openide.filesystems] System filesystem label/icon annotations work without full module system 2009-08-31T00:00:00Z jglick jglick@netbeans.org

For convenience from unit tests, the system filesystem will now always process annotations such as displayName in its FileSystem.Status.

urn:netbeans-org:apichanges:runWhenDeliveryOver [org.openide.filesystems] Support for processing batch events 2009-08-25T00:00:00Z jtulach jtulach@netbeans.org

FileEvent.runWhenDeliveryOver(Runnable) method added to support easier processing of batch sets of events.

urn:netbeans-org:apichanges:IndexingSupport.isValid [org.netbeans.modules.parsing.api] Added a method for checking an index validity 2009-08-24T00:00:00Z tzezula tzezula@netbeans.org

Added a method for checking an index validity. The method should be called by IndexerFactories to check the index integrity and prevent exceptions during the run on the IDE when the index is broken (for example the IDE was killed during write to the index).

urn:netbeans-org:apichanges:AlwaysEnabledAction.CheckBox [org.openide.awt] AlwaysEnabledAction can represent a boolean key in Preferences. 2009-08-24T00:00:00Z mmetelka mmetelka@netbeans.org alwaysEnabledAction was enhanced to understand <attr name="PreferencesKey" stringvalue="boolean-key-name"/> together with <attr name="PreferencesNode" stringvalue="prefstype:/nodepath"/> where prefstype can be
  • "system" for Preferences.systemRoot()
  • "user" for Preferences.userRoot()
  • "nb" for NbPreferences.root()
or the property value can be Preferences instance or it can be a Lookup with the Preferences instance in it. The action will be represented by check box menu item in both menu and popup menu automatically.
urn:netbeans-org:apichanges:new-operation-container [org.netbeans.modules.autoupdate.services] New operation type introduced together with method for create appropriate container 2009-08-19T00:00:00Z dlipin dlipin@netbeans.org

New operation type - OperationSupport.OperationType.INTERNAL_UPDATE is introduced. This operation can be used to find out elements which have updates and which the particular element has the dependency on.

urn:netbeans-org:apichanges:SourceIndexerFactory [org.netbeans.modules.parsing.api] Added methods scanStarted and scanFinished. Moved up common methods of EmbeddingIndexerFactory and CustomIndexerFactory 2009-08-19T00:00:00Z tzezula tzezula@netbeans.org

Added scanStarted and scanFinished methods for notifying indexers about start and finish of the indexing of given root. Refactored EmbeddingIndexerFactory and CustomIndexerFactory to move up common methods into super class SourceIndexerFactory.

urn:netbeans-org:apichanges:TreeUtilities.isEnumConstant [org.netbeans.modules.java.source] Added TreeUtilities.isEnumConstant() method. 2009-08-14T00:00:00Z msauer msauer@netbeans.org Added TreeUtilities.isEnumConstant() method, which determines whether tree represents an enum constant. urn:netbeans-org:apichanges:CompilationInfo.getSourceVersion [org.netbeans.modules.java.source] Added CompilationInfo.getSourceVersion() method. 2009-08-12T00:00:00Z dbalek dbalek@netbeans.org Added CompilationInfo.getSourceVersion() to return the SourceVersion used by the javac compiler. urn:netbeans-org:apichanges:removing-of-unused-roots [org.netbeans.modules.parsing.api] Notifying indexers about unused roots 2009-08-12T00:00:00Z tzezula tzezula@netbeans.org

Modified CustomIndexerFactory, EmbeddingIndexerFactory and BinaryIndexerFactory to have a method rootsRemoved(Iterable<? extends URL>).This method is used to notify indexers about unused roots. Indexers may do a clean up of memory caches or close indexes.

urn:netbeans-org:apichanges:add-fallback-content-to-sfs [org.openide.filesystems] Allow modules to provide fallback layer content 2009-08-12T00:00:00Z jtulach jtulach@netbeans.org

One can provide fallback content of system filesystem by returning Boolean.TRUE from call to fs.getRoot().getAttribute("fallback").

urn:netbeans-org:apichanges:NbDocument.findRecentEditorPane [org.openide.text] Add NbDocument.findRecentEditorPane 2009-08-12T00:00:00Z mslama mslama@netbeans.org

Add NbDocument.findRecentEditorPane to allow non blocking retrieval of recently selected editor pane. Method returns null when editor pane initialization is not finished. Client is notified about finished pane initialization by property change event EditorCookie.Observable.PROP_OPENED_PANES. NbDocument.findRecentEditorPane is replacement for EditorCookie.getOpenedPanes which waits till all editor panes are initialized. It is nonblocking only when EditorCookie is instanceof CloneableEditorSupport.

urn:netbeans-org:apichanges:MimeTypeInitializer [org.netbeans.modules.editor.lib] Adding interface enabling initialization of lookups performed by SideBarFactory implementations. 2009-08-10T00:00:00Z msauer msauer@netbeans.org

Adding MimeTypeInitializer providing init(mimeType) method. SideBarFactory implementations can use this to perform time-consuming operations (ie. lookups) outside AWT.

urn:netbeans-org:apichanges:convert.as.javabean [org.netbeans.modules.settings] @ConvertAsJavaBean annotation 2009-08-07T00:00:00Z jtulach jtulach@netbeans.org Easy way to use JavaBean's archiver for persistence of objects. urn:netbeans-org:apichanges:issue_support [org.netbeans.spi.tasklist] Task List implementation uses Indexing API to cache scanned tasks. 2009-08-07T00:00:00Z saubrecht saubrecht@netbeans.org

Task List API and user interface has been extended to support a generic URL as the resource the task is associated with. This allows for example bug tracking issues to be displayed in Task List window.

urn:netbeans-org:apichanges:ExternalURLDisplayer [org.openide.awt] URLDisplayer can show URLs in an external browser even if the preferred browser is an internal one. 2009-08-07T00:00:00Z saubrecht saubrecht@netbeans.org URLDisplayer.showURL(URL) shows the given page using preferred web browser defined in IDE options. However when the preffered browser is an internal one (either embedded native browser or SwingBrowser) then there's need to show some URLs in an external browser, e.g. when a modal dialog is showing. Method showURLExternal(URL) attempts to display the given page in an external browser. The default implementation just delegates to showURL(URL). urn:netbeans-org:apichanges:JavaSource.patchedPublic [org.netbeans.modules.java.source] Removing the binary compatibility methods (using bytecode patching) from JavaSource 2009-08-06T00:00:00Z tzezula tzezula@netbeans.org The JavaSource class contains methods introduced to keep binary compatibility among milestones of NB 6.0. These methods are not needed anymore and will be removed. urn:netbeans-org:apichanges:NbBundle.varargs [org.openide.util] NbBundle.getMessage can take arbitrarily many format arguments 2009-08-05T00:00:00Z jglick jglick@netbeans.org

NbBundle.getMessage now has a varargs overload that permits you to specify four or more format arguments without explicitly constructing an array.

urn:netbeans-org:apichanges:HtmlBrowser.toolbar [org.openide.awt] Added 'location' String property to HtmlBrowser.Impl 2009-08-04T00:00:00Z saubrecht saubrecht@netbeans.org HtmlBrowser.Impl class now has a String property to set/get browser location. The location doesn't have to be a valid URL, for example "about:config" may be accepted as well depeneding on actual browser implementation. The default property implementation attempts to convert the String location to/from URL address. urn:netbeans-org:apichanges:Actions.asynchronous [org.openide.awt] Support for asynchronous actions 2009-07-30T00:00:00Z jtulach jtulach@netbeans.org The layer definition used by factory methods for context and callback and alwaysEnabledAction were enhanced to understand <attr name="asynchronous" boolvalue="true"/> attribute. This extends these new factories with capabilities already present in old SystemAction, thus makes it easier to migrate from old to new while retaining compatible behaviour. urn:netbeans-org:apichanges:EditableProperties [org.openide.util] Copied API from project.ant for EditableProperties. 2009-07-29T00:00:00Z jglick jglick@netbeans.org

EditableProperties now available in Utilities API so it can be used more broadly.

urn:netbeans-org:apichanges:Color-printing [org.openide.io] Adding API to have better control of text color and hyperlinks 2009-07-24T00:00:00Z t_h t_h@netbeans.org

Adding class for color printing. IOColorPrint,

urn:netbeans-org:apichanges:ActionProvider.global [org.netbeans.modules.projectuiapi] Globally registered ActionProviders 2009-07-23T00:00:00Z jglick jglick@netbeans.org

ActionProviders may now be registered in global lookup so as to enable certain file-sensitive actions on certain selections without the support of any project.

urn:netbeans-org:apichanges:ProjectUtils.getCacheDirectory [org.netbeans.modules.projectapi] API complement to CacheDirectoryProvider 2009-07-21T00:00:00Z jglick jglick@netbeans.org

Added ProjectUtils.getCacheDirectory to complement the SPI interface CacheDirectoryProvider.

urn:netbeans-org:apichanges:version-1.21 [org.netbeans.modules.editor.settings.storage] EditorSettings.PROP_MIME_TYPES 2009-07-16T00:00:00Z vstejskal vstejskal@netbeans.org

Adding EditorSettings.PROP_MIME_TYPES to notify about changes in mimetypes returned from EditorSettings.getAllMimeTypes() and EditorSettings.getMimeTypes().

urn:netbeans-org:apichanges:HtmlBrowser.dispose [org.openide.awt] Added HtmlBrowser.dispose 2009-07-15T00:00:00Z saubrecht saubrecht@netbeans.org Added method dispose() to HtmlBrowser.Impl class which should be invoked when the browser component is no longer needed. The method is needed for embedded browser to release native component(s). The default implementation does nothing. urn:netbeans-org:apichanges:wm_openedtcs [org.openide.windows] New method to retrieve the list of TopComponents opened in a Mode. 2009-07-15T00:00:00Z saubrecht saubrecht@netbeans.org Added new a method to WindowManager to retrieve the list of TopComponents opened in a given Mode. This method does not iterate through all the TopComponents in the Mode so it prevents already closed TopComponents from being deserialized from disk. urn:netbeans-org:apichanges:LifecycleManager.markForRestart [org.openide.util] Added way to request that the platform restart. 2009-07-14T00:00:00Z jglick jglick@netbeans.org

Can now use LifecycleManager.markForRestart to cause the application to restart after exiting. Formerly needed to create special files in the userdir or use similar tricks.

urn:netbeans-org:apichanges:version-1.19 [org.netbeans.modules.diff] New DiffController API 2009-07-07T00:00:00Z tstupka tstupka@netbeans.org Adding PatchUtils.java to the API. Contains two new methods - isPatch(patchFile) and applyPatch(patchFile, contextFile) urn:netbeans-org:apichanges:modifying-filesDeleted-filesDirty [org.netbeans.modules.parsing.api] Modifying CustomIndexerFactory and EmbeddingIndexerFactory 2009-07-03T00:00:00Z vstejskal vstejskal@netbeans.org

Modified CustomIndexerFactory and EmbeddingIndexerFactory to have methods filesDeleted(Iterable<? extends Indexable> deleted, Context context); and filesDirty(Iterable<? extends Indexable> deleted, Context context);.

These two methods supersede thier older version, which accepted Collection rather than Iterable. The new methods allow the infrastructure to optimize files crawling and improve the overall performance of scanning.

urn:netbeans-org:apichanges:Adding_requresWebXml [org.netbeans.api.web.webmodule] Adding method requiresWebXml 2009-07-01T00:00:00Z pslechta@netbeans.org pslechta@netbeans.org@netbeans.org

New method requiresWebXml added. Framework specifies via this method if it reqires web.xml DD or not.

urn:netbeans-org:apichanges:added-component-removed-property [org.netbeans.modules.editor.lib2] EditorRegistry.COMPONENT_REMOVED_PROPERTY added. 2009-07-01T00:00:00Z dbalek dbalek@netbeans.org EditorRegistry.COMPONENT_REMOVED_PROPERTY is fired when a component is removed from component hierarchy. urn:netbeans-org:apichanges:issue-138116 [org.netbeans.modules.extexecution] New SPI for improved external process termination 2009-07-01T00:00:00Z mkleint mkleint@netbeans.org Added API/SPI support to kill the whole process tree on Process.destroy(). urn:netbeans-org:apichanges:Actions.context [org.openide.awt] Context Aware Action Factories 2009-07-01T00:00:00Z jtulach jtulach@netbeans.org

Two new factory methods for creating context and callback actions and bunch of context interfaces.

As part of introduction of the context interfaces, several already existing interfaces (usually carrying Cookie suffix in their name) were retrofitted to extend these new alternatives. This is binary and semantically compatible (as the methods closure remains the same) and the module providing cookies already had a runtime dependency on org.openide.awt module. However this change can cause problems during compilation. Those who compiled against Nodes API only and implemented one of the cookie interfaces need to add (compile time) dependency on org.openide.awt as well.