urn:netbeans-org:apichanges NetBeans API Changes netbeans.org 2009-07-23T05:11:02Z urn:netbeans-org:apichanges:SourcesHelper-SourceGroupModifierImplementation [org.netbeans.modules.project.ant] Added SourceGroupModifierImplementation implementation for Ant-based projects 2009-06-04T00:00:00Z rmichalsky rmichalsky@netbeans.org

Added method SourcesHelper.createSourceGroupModifierImplementation creating SourceGroupModifierImplementation implementation for Ant-based projects. Also added SourcesHelper.SourceRootConfig class and SourcesHelper.sourceRoot(String location) method for more readable configuration of source roots. These support additional parameter hint(), which is required for the implementation to work. Existing SourcesHelper.addPrincipalSourceRoot and SourcesHelper.addTypedSourceRoot methods are deprecated.

urn:netbeans-org:apichanges:TreeMaker.Method [org.netbeans.modules.java.source] Added new Method allowing creating varargs methods. 2009-05-07T00:00:00Z moonko moonko@netbeans.org Addint TreeMake.Method(..., boolean isVarArg) to allow creation of methods with variable lenght of arguments. urn:netbeans-org:apichanges:issue-90210 [org.netbeans.modules.db] Add a DatabaseConnection.getJDBCDriver() method 2009-05-06T00:00:00Z jrechtacek jrechtacek@netbeans.org Currently there is no easy way to get the JDBCDriver instance that a DatabaseConnection will use / used to connect to a database. A DatabaseConnection.getJDBCDriver() method should be added. urn:netbeans-org:apichanges:open-with-progress [org.netbeans.modules.projectuiapi] OpenProjects.open() supports visual progress 2009-05-06T00:00:00Z ovrabec ovrabec@netbeans.org

OpenProjects.open has now new overloaded variant that supports visual indication of the open progress.

urn:netbeans-org:apichanges:Hide-close-button-in-CloseButtonTabbedPane [org.openide.awt] API to hide close button in CloseButtonTabbedPane 2009-05-06T00:00:00Z jbecicka jbecicka@netbeans.org Added possibility to hide close button in CloseButtonTabbedPane through tab's client property component.putClientProperty(TabbedPaneFactory.NO_CLOSE_BUTTON, Boolean.TRUE) urn:netbeans-org:apichanges:source-group-modifier [org.netbeans.modules.autoupdate.services] Feature enabled only when all its dependencies are enabled 2009-04-15T00:00:00Z jtulach jtulach@netbeans.org

The behaviour of UpdateItem.createFeature().getInstalled().isEnabled() has been changed. Now it returns true only if all dependencies are enabled.

urn:netbeans-org:apichanges:isProjectOpen [org.netbeans.modules.projectuiapi] Utility method OpenProjects.isProjectOpen 2009-04-07T00:00:00Z jtulach jtulach@netbeans.org

It came to our attention that often users of OpenProjects want to find out if their project is opened or not. To simplify such code we offer a handy utility method.

urn:netbeans-org:apichanges:AlwaysEnabledAction-extra-properties-and-name-sync [org.openide.awt] AlwaysEnabledAction extra properties and Action.NAME synchronization 2009-04-07T00:00:00Z mmetelka mmetelka@netbeans.org Actions.alwaysEnabled() now checks whether Action.NAME property value of the delegate action (if defined) matches to the one in the declared for the action in the xml-layer. The AlwaysEnabledAction.getValue() now resolves all the keys in Acxtion.getValue() against the defined attributes in the xml-layer. urn:netbeans-org:apichanges:DependencyIsSerializable [org.openide.modules] Dependency class made serializable 2009-04-06T00:00:00Z jtulach jtulach@netbeans.org

Dependency now implements Serializable

urn:netbeans-org:apichanges:SourcesHelper-Project-constructor [org.netbeans.modules.project.ant] Added SourcesHelper constructor accepting Project 2009-04-02T00:00:00Z jglick jglick@netbeans.org

The new constructor enables simplified control flow.

urn:netbeans-org:apichanges:ServicesTabProcessor [org.netbeans.core.ide] Annotation to register Nodes into Services tab 2009-04-01T00:00:00Z jtulach jtulach@netbeans.org

Use ServicesTabNodeRegistration to register your nodes into Services in the IDE.

urn:netbeans-org:apichanges:NodeOp.factory [org.openide.nodes] Support for declarative Node registrations 2009-04-01T00:00:00Z jtulach jtulach@netbeans.org

NodeOp.factory is new layer based factory method to allow declarative definition of a root node into the UI.

urn:netbeans-org:apichanges:Comment.create [org.netbeans.modules.java.source] Changed Comment API 2009-03-31T00:00:00Z moonko moonko@netbeans.org Addint Comment.create(Comment.Style, String) to create new comment of any style from string. urn:netbeans-org:apichanges:indexing_api [org.netbeans.spi.tasklist] Task List implementation uses Indexing API to cache scanned tasks. 2009-03-31T00:00:00Z saubrecht saubrecht@netbeans.org

Task List implementation uses Indexing API to persist tasks created by FileTaskScanners. If a file hasn't changed since the last scan then the tasks associated with that file are loaded from cache to improve Task List performance. Therefore task's ActionListener isn't available when the task is restored from cache. Task providers must switch to PushTaskScanner if ActionListener is required to be available at all times.

urn:netbeans-org:apichanges:classic [org.netbeans.modules.options.api] "Classic" mode fully implemented in module 2009-03-30T00:00:00Z jglick jglick@netbeans.org The Advanced Options button (also known as "classic" mode) is now fully implemented in the Options Dialog and SPI module, rather than in Core. The functionality remains the same: any displayable objects (such as beans) present under the UI/Services configuration folder will trigger the button to be displayed which opens a special dialog for them. urn:netbeans-org:apichanges:AntSession.getIO [org.apache.tools.ant.module] Added AntSession.getIO 2009-03-16T00:00:00Z jglick jglick@netbeans.org

Added ability to get the underlying InputOutput object for advanced formatting.

urn:netbeans-org:apichanges:issue-159545 [org.netbeans.spi.viewmodel] Check extension to NodeModel. 2009-03-08T00:00:00Z mentlicher mentlicher@netbeans.org This API change allows to display check-boxes next to the node icons in the tree column.

Added classes:
org.netbeans.spi.viewmodel.CheckNodeModel, org.netbeans.spi.viewmodel.CheckNodeModelFilter

urn:netbeans-org:apichanges:CheckNodes [org.openide.explorer] Support for check-boxes displayed next to node icons. 2009-03-08T00:00:00Z mentlicher mentlicher@netbeans.org Nodes can have check-boxes rendered next to their icons or display names. urn:netbeans-org:apichanges:Color-control-prg-scrolling [org.openide.io] Adding API to control output color and programmatical scrolling 2009-03-06T00:00:00Z t_h t_h@netbeans.org

Adding "feature class" to control output color and programmatical scrolling. IOColorLines, IOColors, IOPosition,

urn:netbeans-org:apichanges:Notifications [org.openide.awt] Support for showing of notification-like messages in the main status line. 2009-03-05T00:00:00Z saubrecht saubrecht@netbeans.org Notifications are generic events that require user's attention and are visualized in a way similar to 'new email' notifications in e.g. Thunderbird. Each notification has an associated icon, title, details text and an action to be invoked on mouse click. The default implementation of this API shows each new notification in a balloon-like tooltip for a few seconds and a list of all notifications is available on mouse-click in the main status bar. Each notification is available until cleared either by user action or programmatically by calling clear() method. urn:netbeans-org:apichanges:antbasedprojectregistration [org.netbeans.modules.project.ant] Register Ant based projects with @annotation 2009-03-03T00:00:00Z jtulach jtulach@netbeans.org

Introducing AntBasedProjectRegistration to simplify registering Ant based projects. Just write the project class and annotate it.

urn:netbeans-org:apichanges:PropertiesInitializer [org.netbeans.api.debugger] Support for providing initial values of properties. 2009-02-28T00:00:00Z mentlicher mentlicher@netbeans.org

Properties.Initializer interface introduced to provide initial values of properties. This is necessary when properties are accessed from more places and it's not practical to copy default values to every such location.

urn:netbeans-org:apichanges:PropertiesListener [org.netbeans.api.debugger] Support for listening to changes of property values. 2009-02-28T00:00:00Z mentlicher mentlicher@netbeans.org

addPropertyChangeListener() and removePropertyChangeListener() methods added to Properties class.

urn:netbeans-org:apichanges:source-group-modifier-constants [org.netbeans.modules.java.project] Constants for SourceGroupModifier 2009-02-18T00:00:00Z mkleint mkleint@netbeans.org

Added a few constants to JavaProjectConstants for use by SourceGroupModifier with relation to java projects.

urn:netbeans-org:apichanges:source-group-modifier [org.netbeans.modules.projectapi] introduction of SourceGroupModifier, a way to create SourceGroup if missing 2009-02-18T00:00:00Z mkleint mkleint@netbeans.org

SourceGroupModifier provides ways of create specific folders (SourceGroup root folders) in case they don't exist, eg. cannot be retrieved from Sources. The project supporting automated creation of SourceGroup root folders needs to provide SourceGroupModifierImplementation in the project's lookup.

urn:netbeans-org:apichanges:added.SimpleValueNames.ALT_HYPERLINK_ACTIVATION_MODIFIERS [org.netbeans.modules.editor.settings] Adding SimpleValueNames.ALT_HYPERLINK_ACTIVATION_MODIFIERS 2009-02-16T00:00:00Z vv159170 vv159170@netbeans.org

Adding a new constant SimpleValueNames.ALT_HYPERLINK_ACTIVATION_MODIFIERS as the name of an editor setting that determins shortcut for activating alternative (other than go to declaration) hyperlink action.

urn:netbeans-org:apichanges:IO-enhancements [org.openide.io] Multiple IOProvider support, possibility to specify "parent container" for IO tab 2009-02-05T00:00:00Z t_h t_h@netbeans.org

Added static IOProvider.get(String name) to get specific implementation of IOProvider. Added IOProvider.getName() which should be overriden by subclasses to provide its name (ID).

IOContainer was introduced as an accessor to "parent container" for IO components (tab). IOProvider.getIO(String name, Action[] additionalActions, IOContainer ioContainer) can be used to specify alternative container.

First "feature class" IOTab added to provide API for getting/setting icon/tooltip for IO tab.

urn:netbeans-org:apichanges:FileObject.asText [org.openide.filesystems] Read files with asText(), asBytes() and asLines() 2009-02-03T00:00:00Z jtulach jtulach@netbeans.org

Added asBytes(), asText(encoding), and asLines(encoding) methods into FileObject to simplify reading of its content.

urn:netbeans-org:apichanges:PathLookup [org.netbeans.api.debugger] Lookup improvements and service annotation registration. 2009-02-02T00:00:00Z mentlicher mentlicher@netbeans.org

In order to be able to register debugger services on System FileSystem, which brings more flexibility and better performance (see also ), we add non-recursive content of org.openide.util.Lookups.forPath() into debugger lookup. Since debugger needs retrieve context-aware services from the lookup, ContextAwareService interface is introduced.

Annotations are added for easy registration on module layers. DebuggerServiceRegistration to register implementations of interfaces, *Provider.Registration to register implementations of appropriate providers.

urn:netbeans-org:apichanges:version-2.19 [org.netbeans.api.debugger.jpda] Annotations for debugger service registration. 2009-02-02T00:00:00Z mentlicher mentlicher@netbeans.org

Annotations are added for easy registration on module layers. *Provider.Registration annotations are introduced to register implementations of appropriate providers.

urn:netbeans-org:apichanges:tc_customization [org.openide.windows] Window system customizations on TopComponent level 2009-01-29T00:00:00Z saubrecht saubrecht@netbeans.org Added a group of client properties that modify TopComponent's behavior in window system. E.g. disable closing, sliding, undocking etc. urn:netbeans-org:apichanges:ImageUtilities.loadImageIcon [org.openide.util] Added loadImageIcon(String resource, boolean localized) 2009-01-26T00:00:00Z t_h t_h@netbeans.org

Convenient method for loading icons.

urn:netbeans-org:apichanges:ProjectServiceProvider [org.netbeans.modules.projectapi] Add annotations @ProjectServiceProvider and @LookupMerger.Registration 2009-01-23T00:00:00Z jglick jglick@netbeans.org

Added annotations to register entries to project lookup individually. These can be used instead of implementing a LookupProvider. Since the entries are loaded on demand, this can help avoid needless class loading.

urn:netbeans-org:apichanges:version-1.0 [org.netbeans.api.annotations.common] Initial version released 2009-01-22T00:00:00Z phejl phejl@netbeans.org First initial release of the Common Annotations API. urn:netbeans-org:apichanges:FileUtil.addFileChangeListener2 [org.openide.filesystems] Possibility to add FileChangeListeners on File (even not existing) 2009-01-14T00:00:00Z jskrivanek jskrivanek@netbeans.org

Added FileUtil.addFileChangeListener(FileChangeListener listener, File path) and FileUtil.addFileChangeListener(FileChangeListener listener, File path). It permits you to listen to a file which does not yet exist, or continue listening to it after it is deleted and recreated, etc.

urn:netbeans-org:apichanges:issue-156368 [org.netbeans.api.debugger.jpda] Improve threading model. 2009-01-13T00:00:00Z mentlicher mentlicher@netbeans.org ReadWriteLock is introduced to synchronize the access to JPDAThread. ReadLock of that read/write pair is publicly available through the new method JPDAThread.getReadAccessLock(). Clients can use this lock to assure that the thread is not resumed in the mean time.

Added methods:
JPDAThread.getReadAccessLock(),

urn:netbeans-org:apichanges:projectfactory2 [org.netbeans.modules.projectapi] Provide project icon without actually loading the project 2009-01-13T00:00:00Z mkleint mkleint@netbeans.org

Introducing ProjectFactory2 that extends ProjectFactory and return ProjectManager.Result instead of a simple boolean value. Also add ProjectManager.isProject2(FileObject) method that can be used by 3rd party modules that need a fast (yet not 100% reliable) way of finding the project icon for a folder.

urn:netbeans-org:apichanges:FileUtil.getConfigFile [org.openide.filesystems] Added FileUtil.getConfigFile and getConfigRoot for simpler access to default filesystem 2009-01-12T00:00:00Z jskrivanek jskrivanek@netbeans.org

Rather than having to call Repository.getDefault().getDefaultFileSystem().getRoot().getFileObject("foo/bar"), you can simply call FileUtil.getConfigFile("foo/bar").

urn:netbeans-org:apichanges:readResolveBehaviour [org.netbeans.modules.settings] readProperties can designate its replace 2009-01-10T00:00:00Z jtulach jtulach@netbeans.org Semantics of readProperties method has been extended to allow the method to return an object. Read more. urn:netbeans-org:apichanges:convertor.propertyannotation [org.netbeans.modules.settings] @ConvertAsProperties annotation 2009-01-10T00:00:00Z jtulach jtulach@netbeans.org Human friendly way to register XML property based convertor via the @ConvertAsProperties annotation. urn:netbeans-org:apichanges:Utilities.keyToString [org.openide.util] Added keyToString(KeyStroke stroke, boolean portable) 2009-01-08T00:00:00Z msauer msauer@netbeans.org

keyToString(KeyStroke stroke, boolean portable) provides cross-platform compitable keystroke textual representation instead of hardcoding Ctrl, Meta or Alt key.

urn:netbeans-org:apichanges:StatusTextImportance [org.openide.awt] Allow messages to show in the main status line permanently. 2009-01-06T00:00:00Z saubrecht saubrecht@netbeans.org Because of merging of editor's status line with main window's status line it is necessary to define the 'importance' of messages being displayed in the main status line. Messages with higher importance will replace messages with lower importance. These important messages will stay permanently visible until explicitly cleared or replaced (as opposed to current implementation when all status line messages are removed after some time) or when handle object associated with these messages gets garbage-collected. urn:netbeans-org:apichanges:PatchedPublic [org.openide.modules] Added annotation @PatchedPublic 2009-01-06T00:00:00Z jglick jglick@netbeans.org

Added @PatchedPublic to request that the module system treat binary references to a method as public even if in source is is not public.

urn:netbeans-org:apichanges:FileUtil.setMIMEType [org.openide.filesystems] Persisted registration of file extension to MIME type 2008-12-19T00:00:00Z jskrivanek jskrivanek@netbeans.org

Method FileUtil.setMIMEType(String extension, String mimeType) resurrected to register file extension for specified MIME type. It is persisted in userdir contrary to previous implementation. Added method FileUtil.getMIMETypeExtensions(String mimeType) to get list of file extensions associated with specified MIME type.

urn:netbeans-org:apichanges:FileChooserBuilder [org.openide.filesystems] FileChooserBuilder added 2008-12-01T00:00:00Z tboudreau tboudreau@netbeans.org

Added FileChooserBuilder, a utility class for working with JFileChoosers. In particular, FileChooserBuilder makes it easy to create file chooser dialogs which remember what directory the user last invoked them on, across sessions.

urn:netbeans-org:apichanges:convertor.recognize.xml [org.netbeans.modules.settings] Allow convertors to recognize .xml files in specially attributed folders. 2008-11-28T00:00:00Z saubrecht saubrecht@netbeans.org If a folder in SFS has attribute recognizeXML=true then Convertors will attempt to process also files with .xml extension. urn:netbeans-org:apichanges:Dialogs_NotificationLineSupport [org.openide.dialogs] Simplify handling error/warning/info messages in dialogs 2008-11-28T00:00:00Z jrechtacek jrechtacek@netbeans.org Two new methods in NotifyDescriptor were added to allow API client to create NotificationLineSupport which allow handling error/warning/info messages in dialogs. If a dialog descriptor creates this support, DialogDisplayer allocates necessary space at the bottom of dialog where API clients can set info/warning/error messages with appropriate icons. urn:netbeans-org:apichanges:Toolbars.DnD [org.openide.loaders] Deprecation of Toolbar drag and drop API 2008-11-28T00:00:00Z saubrecht saubrecht@netbeans.org

Deprecated methods related to Toolbar drag and drop.

urn:netbeans-org:apichanges:ChildFactory.Detachable [org.openide.nodes] Adding ChildFactory.Detachable to allow ChildFactory implementations to attach and detach listeners more easily 2008-11-25T00:00:00Z tboudreau tboudreau@netbeans.org ChildFactory is useful for creating node children lazily on a background thread, and for simplifying working with Children.Keys. One oversight in the original API was providing for notification that the ChildFactory is no longer in use and should clean up any resources and detach any listeners it can.

ChildFactory.Detachable is an abstract class which adds addNotify() and removeNotify() methods to ChildFactory. addNotify() is called immediately before the first call to createKeys() after creation or a call to removeNotify().

urn:netbeans-org:apichanges:parsing.api [org.netbeans.modules.java.source] Migrated to the parsing.api 2008-11-24T00:00:00Z tzezula tzezula@netbeans.org The java source module migrated to use the common parsing api. urn:netbeans-org:apichanges:version-1.13 [org.netbeans.modules.extexecution] Published as a stable API 2008-11-20T00:00:00Z phejl phejl@netbeans.org Published as a stable API. Refactored to API packages. urn:netbeans-org:apichanges:nodefactory-ann [org.netbeans.modules.projectuiapi] Add annotation @NodeFactory.Registration 2008-11-20T00:00:00Z mkleint mkleint@netbeans.org

Add annotation @NodeFactory.Registration to replace registration in layer files.

urn:netbeans-org:apichanges:DeclarativeMIMEResolvers [org.openide.filesystems] Added new elements to MIME resolver DTD 2008-11-18T00:00:00Z jskrivanek jskrivanek@netbeans.org

It is now possible to write declarive MIME resolvers checking file names (element name) and file content (element pattern).

urn:netbeans-org:apichanges:lookupprovider-ann [org.netbeans.modules.projectapi] Add annotation @LookupProvider.Registration 2008-11-13T00:00:00Z mkleint mkleint@netbeans.org

Add annotation @LookupProvider.Registration to replace registration in layer files.

urn:netbeans-org:apichanges:LayerGeneratingProcessor [org.openide.filesystems] Support for annotation processors generating XML layer fragments 2008-11-01T00:00:00Z jglick jglick@netbeans.org

It is now possible to write JSR 269-compliant annotation processors which create XML layer (i.e. system filesystem) entries.

urn:netbeans-org:apichanges:ServiceProvider [org.openide.util] Added ServiceProvider annotation 2008-11-01T00:00:00Z jglick jglick@netbeans.org

Added annotations ServiceProvider and ServiceProviders to simplify registration of global singleton services.

urn:netbeans-org:apichanges:DataFilter.FileBased [org.openide.loaders] Faster Filtering based on FileObjects 2008-10-30T00:00:00Z jtulach jtulach@netbeans.org

DataFilter interface used to support filtering based on DataObjects. With the introduction of more effective nodes, this is slowing down the visualization of folders significantly. That is why we introduce new pre-filter which can operate on FileObjects, whithout the need to instantiate DataObjects.

urn:netbeans-org:apichanges:stop-repeat-build [org.netbeans.modules.projectuiapi] Pluggable Repeat/Stop build actions 2008-10-23T00:00:00Z mkleint mkleint@netbeans.org

Added spi for plugging into the Repeat Build/Run and Stop Build/Run actions that were previously accessible by ant based projects only.