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 67917 - Action wiz - missing mime-types in Editor popup registration combo
Summary: Action wiz - missing mime-types in Editor popup registration combo
Status: VERIFIED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-01 14:56 UTC by pzajac
Modified: 2005-11-04 15:59 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 pzajac 2005-11-01 14:59:07 UTC
[200510301800]
few editor has not any registered popup action. So there is no Popup folder in
system filesystem for the action instances. 

The editor mime-type registration combobox ignores these mime types. It will be
nice to add all the editor types located in these folders:
Editor/text/*
Editor/application/*
Comment 1 Martin Krauskopf 2005-11-04 13:16:17 UTC
If I udnerstand it correctly, it doesn't makes too much sense to put such
mime-types there. Since this wizard should provide the user an ability to add
menuitem to the file and/or editor context menu. But if this is not supported by
the Loader (DataLoader.actionsContext() returns null) the user wouldn't see the
item in the menu, even if we create "Loaders/major/minor/Actions" in the layer
-> even more confusion IMHO.
Not sure if the same apply to the Editor. Would be logical, but not sure.
Anybody with more insigh feel free to reopen with more information.
Comment 2 Martin Krauskopf 2005-11-04 13:18:27 UTC
Umm. You meant Editor *only*. So you probably know what's going on here ;)
Reopening, investigating....
Comment 3 Martin Krauskopf 2005-11-04 14:15:18 UTC
Don't know how it works yet, but you are right. There is another mechanism than
with loaders. Just tried with SQL editor.
Comment 4 Martin Krauskopf 2005-11-04 15:10:30 UTC
Ok. Finally I think this is really WONTFIX. Since the way we recognize a valid
mime-types to which the user may add an editor popup menu item is that it
contains a Popup folder. Otherwise we wouldn't be able to recognize between e.g.
"Editors/text/x-sql", "Editors/CityLights/Default" and "Editors/ahoj/nazdar"
(all without Popup subfolder).

Unless mime-type folders have some special attribute or we would use some
special keyword filtering (probably nonsense - we can't predict here).

So closing as WONTFIX and proposing to force all Editors providers (filling bugs
for them) to create empty "Editors/mime/type/Popup" folder in the SFS (in their
layer.xml) which should be very easy for them and make it work in our wizard.
(probably they should use xml declarative system anyway - not sure since I don't
know how exactly all that editors thinks work at all).

Feel free to reopen and possibly enlighten me. Thanks.
Comment 5 pzajac 2005-11-04 15:32:23 UTC
Yes it is good idea to report issues to owner of all editors implementation. I
will do it. 
Comment 6 pzajac 2005-11-04 15:36:02 UTC
BTW it is not wrong to expect that all folders text/* are mime-types?
Comment 7 Martin Krauskopf 2005-11-04 15:59:18 UTC
It would bring probably some level of discrepanies. But maybe we would probably
do this for "discrete media types" as defined in RFC 2046 (text/*, image/*,
audio/*, video/*, application/*). But may be also for other nb-specific
mime-type I'm not aware of. But it is rather enhancement (could you fill it?).