I have just spent the better part of a couple of weeks "porting" two Platform applications to 12.6 from the dark ages. There was a lot of stuff that I didn't remember "why did I do that?", and going back to the tutorials helped.
On the whole, I am impressed by how easy the "port" was. My layers broke, but I always hated layer files anyway. I never really understood what I was doing, so a lot of it was copy pasta. 12.6 did strange things with them (my File menu was gone, other menus were moved around). Rebuilding my actions was pretty easy once I saw how the IDE built a new action with annotations. There are some cases where I would still prefer my text to be in a Bundle because a couple of different action/menus/buttons share the same text - so having multiple copies of the annotations means having fix typos in multiple places. There's probably an easier way to do it, I just don't know what it is yet. I had a DataLoader that was really unnecessary, but it took me a while to figure that out and just get rid of it. There's probably some power there, but I wasn't using it. The StackOverflow article I found that looked pretty recent said to add it to a layer, so that was what tipped me to getting rid of it. I particularly liked being able to manipulate the layers in the IDE once the annotations were in place. I couldn't do that with my old layer files. MultiView windows are what is giving me the most grief, but I'm slowly working past it. My old code's OpenSupport gathered up all of the MultiViewDescriptors and called MultiViewFactory.createCloneableMultiView(). Each of my views was derived from TopComponent, which gave me access to the lookup (etc) - but the new scheme doesn't like views that subclass from TCs, so that's been some work. In particular, I can't figure out how to connect my views to the TC containing them. I probably need to go revisit the lookup tutorial. Other than that, I'm happy with the IDE (except for its problems with my older freestyle and absolute layouts) and the compatibility of everything. My goal was to replace layer files with annotations, so from that perspective the lion's share of the older tutorials aren't particularly useful - but, they're still a good resource. I am very pleased with how easy it is to create a platform application, even though the winds of change seem to be shifting away from desktop applications for one of my two apps. Peter ________________________________ From: Christian Lenz <[email protected]> Sent: Saturday, January 29, 2022 9:29 AM To: [email protected] <[email protected]> Subject: AW: "Original" NB tutorials? Not really outdated. With luck all the stuff is still working, also for the other NetBeans tutorial where it says „required NB6“. Sure a lot of Things changed but the tutorials helped a lot. I had luck to find the stuff on the wayback machine. So if you still have an Oracle link which is not working anymore, just check the Archive. No Images, but the text is still there 😊. Cheers Chris Von: Geertjan Wielenga Gesendet: Samstag, 29. Januar 2022 17:12 An: dev Betreff: Re: "Original" NB tutorials? They're all by me personally and don't think they're anywhere anymore and certainly outdated. Gj On Sat, Jan 29, 2022 at 5:08 PM Eric Bresie <[email protected]> wrote: > Assume many are no longer available (i.e. videos by folks no longer with > Oracle or just moved away) but are any of the videos referenced here still > available, relevant, or superseded someplace? > > https://netbeans.apache.org/tutorials/nbm-10-top-apis.html > > Eric Bresie > [email protected] > > > On Wed, Jan 26, 2022 at 1:44 AM antonio <[email protected]> wrote: > > > Hi again, Peter, > > > > Yeah, time is the main problem with open source :-). > > > > Thanks for pointing this out! Based on your comments I created this new > > branch > > > > > > > https://github.com/vieiro/netbeans-website/tree/hotfix/images-for-tutorials-2/netbeans.apache.org/src/content/tutorials > > > > That I think solves the issue. It's not ready for PR (we may want to do > > some 'git rm' to remove dangling images first). > > > > What we want is to have each tutorial folder to have the images under > > the immediate 'images' subfolder. This is, '70/*.asciidoc' images should > > be kept under '70/images' subfolder, for instance. Without any > > cross-linking between directories. > > > > This will make some images being duplicated, but will also make it > > easier for us to remove those '60/*', '61/*' ... '80/*' subdirectories > > that we have been carrying along for ages since the migration, and that > > are not relevant anymore for Apache NetBeans. > > > > Thanks and kind regards, > > Antonio > > > > El 26/1/22 a las 3:58, Peter Blemel escribió: > > > I'm out of time for tonight. I have some other things to do, but will > > get back to this soon. > > > > > > This version<https://1drv.ms/u/s!ArASQL2pSWgomUx_1ksXsCcFOETh?e=p3dthW > > > > has every image in one monolithic folder, which avoids cross-directory > > links. I'm still thinking about how to split images into version folders > > in an automated way.... It also has broken links in comments. Have a > look > > if you have time. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > For further information about the NetBeans mailing lists, visit: > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > > > > > > >
