This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 61877 - New File Type wiz - missing Loaders/.../Actions
Summary: New File Type wiz - missing Loaders/.../Actions
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-05 18:24 UTC by Jesse Glick
Modified: 2005-11-08 14:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2005-08-05 18:24:08 UTC
The wizard generates code to look in the layer in Loaders/.../Actions/, but does
not actually make that folder in the layer! It also needs to prepopulate it with
some reasonable default actions.

Also the DataObject should have a DataEditorSupport (from factory) in its
lookup, so you can edit the new file type. At least for text/* and
application/*+xml.
Comment 1 Jesse Glick 2005-08-05 18:38:45 UTC
Treat as P2 since it is pretty weird when the generated file has no context menu
at all.
Comment 2 Jesse Glick 2005-08-05 18:55:57 UTC
To add an editor support:

cookies.add((Node.Cookie) DataEditorSupport.create(this, getPrimaryEntry(),
cookies));

You also need to dep on org.openide.text and org.openide.windows in this case
(linked to from DES indirectly).
Comment 3 Milos Kleint 2005-08-06 07:13:52 UTC
what could be the reasonable defaults for actions? 
PropertiesAction, Open, FileSystemAction, copy, cut, paste, rename, delete?
Comment 4 Milos Kleint 2005-08-09 08:08:50 UTC
fixed.
Comment 5 pzajac 2005-11-08 14:49:30 UTC
verified