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 99517 - Code snippets categories
Summary: Code snippets categories
Status: NEW
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Petr Suchomel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-30 11:18 UTC by Lukas Hasik
Modified: 2008-05-06 11:39 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2007-03-30 11:18:36 UTC
after the merge of the CDC and CLDC into one Mobility Pack it could be useful to
put the code snippets into different categories - e.g. CLDC/MIDP, CDC/PP, etc.

There is only one category "Mobility" with 2 snippets Form, Image that are
dedicated for MIDP. However they are available for any source code in a mobile
project.


The best would be to provide only code snippets that *can be used* in active
configuration (platform/configuration/profile)
Comment 1 Adam Sotona 2007-05-28 15:34:17 UTC
I agree with the categories but not with limiting the visibility.
There are various platforms available for Mobility projects and there will be
many more them in the fututre and there might be even combination of them (CDC
with MIDP and PP). I wouldn't suggest to hardcode any conditions for hiding  the
snippets.
Comment 2 Jiri Prazak 2007-05-28 16:38:30 UTC
ok, this does make sense.  I agree with Adam that we should not hide the
categories based on current configuration and so on.  For one, even CLDC code
that works on one device might not work on other CLDC device, e.g. MMAPI, JS172
are amongst some examples.  This would either require a lot of work in terms of
generating the snippets palette on the fly, or a change to the palette api which
is not very realistic in the near future.  I have to think about categories that
would make the most sense some more and will then add them.