Free Netbeans Platform Crash Course: Geertjan Wielenga
Free Netbeans Platform Crash Course: Geertjan Wielenga
Key Terms
Runtime Container Modularity Pluggability Virtual filesystem Loose coupling Swing Extensions to Swing
Commonalities
Very large Windows, toolbars, menus, etc. Very domain-specific Extensible/pluggable at runtime Distributed development Flexible Community-oriented
10
11
12
13
14
Runtime Container
Lifecycle management Modularity Virtual filesystem Module loading Classloading Versioning Dependency management
15
NetBeans Module
M a nifes t-V ers io n: 1.0 A nt-V ers io n: A pa c he A nt 1.7.0 C rea ted-B y: 1.5.0_14-b03 (S un M ic ro s ys tem s I nc .) O penI D E -M o dule-P ublic -P a c k a g es : O penI D E -M o dule-M o dule-D ependenc ies : o rg .netbea ns .a pi.ja va /1, ... O penI D E -M o dule-J a va -D ependenc ies : J a va > 1.5 O penI D E -M o dule-B uild-V ers io n: 200804211638 O penI D E -M o dule-S pec ific a tio n-V ers io n: 2.12.0.4.1.1.6 O penI D E -M o dule: o rg .netbea ns .m o dules .ja va .edito r/1 O penI D E -M o dule-I m plem enta tio n-V ers io n: 4 O penI D E -M o dule-L o c a lizing -B undle: o rg /netbea ns /m o dules /ja va /edito r/B undle.pro perties
16
NetBeans Module
O penI D E -M o dule-I ns ta ll: o rg /netbea ns /m o dules /ja va /edito r/J a va E dito rM o dule.c la s s O penI D E -M o dule-L a yer: o rg /netbea ns /m o dules /ja va /edito r/res o urc es /la yer.x m l O penI D E -M o dule-R equires : o rg .o penide.m o dules .M o dule Fo rm a t1 A uto U pda te-S ho w -I n-C lient: fa ls e
17
18
19
give me a SaveCookie
SaveAction
Editor
s
s == null ?
20%
no
yes
57% 15%
interface SaveCookie { void save(); }
disable action
20
21
22
23
24
25
26
27
Out-of-the-Box Components
JavaHelp Plugin Manager Favorites window Properties window Navigator Output window Options window
28
29
Business Reasons
1.Modularity
> Dependency & versioning management > Flexibility For users For developers
2.Swing Extensions
> > > >
Window system Widget library Nodes & Explorer views Out-of-the-box components
30
31
32
33
34
35
Summary
Runtime Container Modularity Pluggability Virtual filesystem Loose coupling Swing Extensions to Swing
36
Next Steps
platform.netbeans.org platform.netbeans.org/screenshots platform.netbeans.org/tutorials/ nbm-10-top-apis.html www.apress.com/book/view/ 9781430224174
37
38