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 65627 - [50cat] Implement support for Modes
Summary: [50cat] Implement support for Modes
Status: RESOLVED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-02 14:39 UTC by misterm
Modified: 2010-05-04 23:18 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 misterm 2005-10-02 14:39:39 UTC
[ BUILD # : 5.0 beta ]
[ JDK VERSION : 1.4.2_xx ]

It is a very common need to create a new Mode. Currently, there is no support for that in the new API Support.

There should be a new Mode wizard and probably a Mode editor as well.
Comment 1 Jesse Glick 2005-10-03 22:53:56 UTC
Not convinced that this is indeed common enough to provide a wizard for, but
will leave to Milos to decide this.
Comment 2 Milos Kleint 2005-10-04 07:47:40 UTC
can you write in more detail in what situations is that common? in my
experience, the current set of netbeans IDE modes is quite sufficient and we
hardly ever add a new mode.
however I believe we should have all modes defined already in the platform and
these should have more neutral names (not debugger/output/palette).

not for 5.0 though.
Comment 3 misterm 2005-10-04 16:08:57 UTC
I guess it will be much more common for platform users, who might be building 
their own applications that can be quite different from NetBeans. In my 
specific case, I was writing a module to bring back the old Execution window, 
so I needed a new mode located besides the Output window, as the old mode in NB 
3.6 used to work. And defining modes is harder than defining a TopComponent, 
for example, since there are those "misterious" number/weight attributes which 
take quite a while to understand.
Comment 4 Milos Kleint 2005-10-05 10:28:28 UTC
part of the problem is that modes are scattered around the IDE and it's clusters. 
Mode definitions are tightly coupled together, I suspect if only part of the
modes get into platform, it might not even work correctly.

in your specific case, you probably want to include the mode definition from
debugger module.

my current idea of solving the modes problem is to put all mode definitions into
one place, make it part of platform , possibly define more default modes than
there are currently. give them more descriptive names as well.
that should solve the problem for 99% of platform/IDE users and no  apisupport
for that are should ne necessary (apart for some visual display of the layout
maybe when creating a topcomponent.)

Comment 5 Jesse Glick 2010-05-04 23:18:27 UTC
mkleint's ideas seem more promising.