[netbeans-website] branch master updated: Update debug-visual.asciidoc
This is an automated email from the ASF dual-hosted git repository. mbien pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans-website.git The following commit(s) were added to refs/heads/master by this push: new f2f63d2 Update debug-visual.asciidoc new e07434a Merge pull request #588 from rquarry/master f2f63d2 is described below commit f2f63d2ce638aa198ae489f37ba49e4c3e9ecb82 Author: Ryan Quarry AuthorDate: Tue Feb 15 14:30:22 2022 -0500 Update debug-visual.asciidoc --- .../src/content/kb/docs/java/debug-visual.asciidoc | 43 +++--- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/netbeans.apache.org/src/content/kb/docs/java/debug-visual.asciidoc b/netbeans.apache.org/src/content/kb/docs/java/debug-visual.asciidoc index c1ce0ea..90eedf0 100644 --- a/netbeans.apache.org/src/content/kb/docs/java/debug-visual.asciidoc +++ b/netbeans.apache.org/src/content/kb/docs/java/debug-visual.asciidoc @@ -1,4 +1,4 @@ -// +// // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information @@ -6,9 +6,9 @@ // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -19,7 +19,7 @@ = Using the Visual Debugger in NetBeans IDE :jbake-type: tutorial -:jbake-tags: tutorials +:jbake-tags: tutorials :jbake-status: published :icons: font :syntax: true @@ -28,22 +28,39 @@ :toc-title: :description: Using the Visual Debugger in NetBeans IDE - Apache NetBeans :keywords: Apache NetBeans, Tutorials, Using the Visual Debugger in NetBeans IDE +:experimental: + +This tutorial describes how to use the Visual Debugger to help you locate and debug the code for visual elements in your Java GUI applications. Specifically, you can use the Visual Debugger in Java Swing and JavaFX GUI applications. + +You will use the Visual Debugger to explore the Anagram Game sample project, which is a Java Swing application distributed with NetBeans. This document will demonstrate how to take a GUI snapshot of the application and then work with the snapshot to locate source code, add listeners to events, and view the event log of GUI components. -This document describes how to use the Visual Debugger to help you locate and debug the code for visual elements in your Java GUI applications. Specifically, you can use the Visual Debugger in Java Swing and JavaFX GUI applications. +== Creating the Anagram Game sample project -In this document you will use the Visual Debugger to explore the Anagram Game sample project, which is a Java Swing application distributed with NetBeans. This document will demonstrate how to take a GUI snapshot of the application and then work with the snapshot to locate source code, add listeners to events, and view the event log of GUI components. +To open a new Java project, press: + +[cols="1,4"] +|=== +|*Windows*(TM)/Linux |kbd:[Ctrl+Shift+N] +|*macOS*(TM) |kbd:[Command+Shift+N] +|=== + +or, select *File > New Project...* from the menu bar. Then *Choose Project* by selecting *Categories: Samples*, *Categories: Java with Ant* and *Projects: Anagram Game*, then click *Next >*. + +For *Name and Location*, set *Project Name: MyAnagram*. Change *Project Location:* to any directory on your computer. From now on, this tutorial refers to this directory as `_NetBeansProjects_`. == Taking a GUI Snapshot -In this tutorial you will use the Anagram Game sample application, a Java desktop application with a simple GUI that is available as a sample in the New Project wizard. After you create the project, you will start a debugging session and take a GUI snapshot of the application. +To start a debugging session, press: + +[cols="1,4"] +|=== +|*Windows*(TM)/Linux |kbd:[Ctrl+F5] +|*macOS*(TM) |kbd:[Command+F5] +|=== -1. Choose File > New Project from the main menu (Ctrl-Shift-N; ⌘-Shift-N on Mac) to open the New Project wizard. -2. Select Anagram Game in the Samples > Java category. Click Next. -3. Specify a location for the project. Click Finish. When you click Finish, the IDE creates the project and opens the project in the Projects window. -4. Click the Debug button in the toolbar (Ctrl-F5; ⌘-F5 on Mac) to start the debugging session. Alternatively, right-click the project node in the Projects window and choose Debug. When you start the session, the IDE will launch the Anagram Game application and open the Debugging window. -5. Choose Debug > Take GUI Snapshot from the main menu. +or,
[jira] [Updated] (NETBEANS-6459) Netbeans Won't Run Application
[ https://issues.apache.org/jira/browse/NETBEANS-6459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marc Private updated NETBEANS-6459: --- Attachment: netbeans.PNG > Netbeans Won't Run Application > -- > > Key: NETBEANS-6459 > URL: https://issues.apache.org/jira/browse/NETBEANS-6459 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.5 > Environment: Fedora >Reporter: Marc Private >Priority: Major > Attachments: netbeans.PNG > > > OS: Fedora x64 > Simple application (helloworld) will compile but not run inside Netbeans 12.5 > because it can't find main class. Tried selecting properties>run>etc. Tried > deleting cache. It's not the program as I can run it from the command line. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-6459) Netbeans Won't Run Application
Marc Private created NETBEANS-6459: -- Summary: Netbeans Won't Run Application Key: NETBEANS-6459 URL: https://issues.apache.org/jira/browse/NETBEANS-6459 Project: NetBeans Issue Type: Bug Affects Versions: 12.5 Environment: Fedora Reporter: Marc Private OS: Fedora x64 Simple application (helloworld) will compile but not run inside Netbeans 12.5 because it can't find main class. Tried selecting properties>run>etc. Tried deleting cache. It's not the program as I can run it from the command line. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans-jenkins-lib] branch master updated: Add milestone for 13-rc4
This is an automated email from the ASF dual-hosted git repository. neilcsmith pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans-jenkins-lib.git The following commit(s) were added to refs/heads/master by this push: new 5743654 Add milestone for 13-rc4 new 917cb29 Merge pull request #54 from neilcsmith-net/nb130 5743654 is described below commit 5743654ef3db434fbfe7955fb0a51a91fdbd0c1d Author: Neil C Smith AuthorDate: Tue Feb 15 16:18:20 2022 + Add milestone for 13-rc4 --- meta/netbeansrelease.json | 4 1 file changed, 4 insertions(+) diff --git a/meta/netbeansrelease.json b/meta/netbeansrelease.json index d367e38..83f2351 100644 --- a/meta/netbeansrelease.json +++ b/meta/netbeansrelease.json @@ -647,6 +647,10 @@ "b3553a6fb9b350ec936670a5f211408c442eac24": { "version": "rc3", "position": "3" +}, +"00d6d969bf4d9b14e7406c9ee9cc13a61dc39655": { +"version": "rc4", +"position": "4" } }, "releasedate": { - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch release130 updated (b3553a6 -> 00d6d96)
This is an automated email from the ASF dual-hosted git repository. neilcsmith pushed a change to branch release130 in repository https://gitbox.apache.org/repos/asf/netbeans.git. from b3553a6 Merge pull request #3514 from apache/delivery add c8e143d [#3593] Don't assume contract StructureItem#getElementHandle is never null is held add 336fa90 [#3593] Implement StructureItem#getElementHandle contract for CSS structure items add b09ce42 Merge pull request #3597 from matthiasblaesing/fix_csl_elementhandle add c1ebdea [#3590] Prevent suspicious NPE forn Gradle SubProjectsNode add 5a1e8be Merge pull request #3591 from lkishalmi/GH-3590 add 8012879 fixed wrong nb-javac module name so that it can be installed. add 677372e Merge pull request #3575 from mbien/nb-javac-libname-fix_delivery new 00d6d96 Merge pull request #3610 from apache/delivery The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../modules/gradle/nodes/SubProjectsNode.java | 20 ++- .../modules/csl/navigation/ElementNode.java| 11 +- .../editor/module/main/TopLevelStructureItem.java | 136 + .../css/prep/editor/CPCategoryStructureItem.java | 100 +++ .../modules/css/prep/editor/CPCssEditorModule.java | 2 +- .../j2semodule/ui/customizer/Bundle.properties | 2 +- .../j2seproject/ui/customizer/Bundle.properties| 2 +- .../modules/java/source/JBrowseModule.java | 4 +- .../modules/maven/customizer/Bundle.properties | 2 +- 9 files changed, 192 insertions(+), 87 deletions(-) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] 01/01: Merge pull request #3610 from apache/delivery
This is an automated email from the ASF dual-hosted git repository. neilcsmith pushed a commit to branch release130 in repository https://gitbox.apache.org/repos/asf/netbeans.git commit 00d6d969bf4d9b14e7406c9ee9cc13a61dc39655 Merge: b3553a6 677372e Author: Neil C Smith AuthorDate: Tue Feb 15 16:12:19 2022 + Merge pull request #3610 from apache/delivery Sync delivery to release130 for 13-rc4 .../modules/gradle/nodes/SubProjectsNode.java | 20 ++- .../modules/csl/navigation/ElementNode.java| 11 +- .../editor/module/main/TopLevelStructureItem.java | 136 + .../css/prep/editor/CPCategoryStructureItem.java | 100 +++ .../modules/css/prep/editor/CPCssEditorModule.java | 2 +- .../j2semodule/ui/customizer/Bundle.properties | 2 +- .../j2seproject/ui/customizer/Bundle.properties| 2 +- .../modules/java/source/JBrowseModule.java | 4 +- .../modules/maven/customizer/Bundle.properties | 2 +- 9 files changed, 192 insertions(+), 87 deletions(-) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch delivery updated: fixed wrong nb-javac module name so that it can be installed.
This is an automated email from the ASF dual-hosted git repository. neilcsmith pushed a commit to branch delivery in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/delivery by this push: new 8012879 fixed wrong nb-javac module name so that it can be installed. new 677372e Merge pull request #3575 from mbien/nb-javac-libname-fix_delivery 8012879 is described below commit 8012879df5b272c0c3c818b11db695ea54e4c112 Author: Michael Bien AuthorDate: Wed Feb 9 01:36:15 2022 +0100 fixed wrong nb-javac module name so that it can be installed. --- .../netbeans/modules/java/j2semodule/ui/customizer/Bundle.properties | 2 +- .../netbeans/modules/java/j2seproject/ui/customizer/Bundle.properties | 2 +- .../src/org/netbeans/modules/java/source/JBrowseModule.java | 4 ++-- .../maven/src/org/netbeans/modules/maven/customizer/Bundle.properties | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java/java.j2semodule/src/org/netbeans/modules/java/j2semodule/ui/customizer/Bundle.properties b/java/java.j2semodule/src/org/netbeans/modules/java/j2semodule/ui/customizer/Bundle.properties index aa60c2c..078a809 100644 --- a/java/java.j2semodule/src/org/netbeans/modules/java/j2semodule/ui/customizer/Bundle.properties +++ b/java/java.j2semodule/src/org/netbeans/modules/java/j2semodule/ui/customizer/Bundle.properties @@ -601,7 +601,7 @@ ACSD_librariesLocation=Folder containing location of the library definition file ACSD_jButtonEdit=Edit classpath items ACSD_BuildJarAfterCompile=Build JAR after compiling option LBL_CustomizeRun_Enable_Quick_Run=Enable Quick Run -CustomizerCompile.CompileOnSave=Compile on &Save (requires nb-javac plugin) +CustomizerCompile.CompileOnSave=Compile on &Save AD_CustomizerCompile.CompileOnSave=If selected, files are compiled when you save them. This option saves you time when you run or debug your application in the IDE. LBL_CompileOnSaveDescription=If selected, files are compiled when you save them.\ This option saves you time when you run or debug your application in the IDE.\ diff --git a/java/java.j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/Bundle.properties b/java/java.j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/Bundle.properties index 9cb2102..acf0a8a 100644 --- a/java/java.j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/Bundle.properties +++ b/java/java.j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/Bundle.properties @@ -601,7 +601,7 @@ ACSD_librariesLocation=Folder containing location of the library definition file ACSD_jButtonEdit=Edit classpath items ACSD_BuildJarAfterCompile=Build JAR after compiling option LBL_CustomizeRun_Enable_Quick_Run=Enable Quick Run -CustomizerCompile.CompileOnSave=Compile on &Save (requires nb-javac plugin) +CustomizerCompile.CompileOnSave=Compile on &Save AD_CustomizerCompile.CompileOnSave=If selected, files are compiled when you save them. This option saves you time when you run or debug your application in the IDE. LBL_CompileOnSaveDescription=If selected, files are compiled when you save them.\ This option saves you time when you run or debug your application in the IDE.\ diff --git a/java/java.source/src/org/netbeans/modules/java/source/JBrowseModule.java b/java/java.source/src/org/netbeans/modules/java/source/JBrowseModule.java index 9776a42..f6410ab 100644 --- a/java/java.source/src/org/netbeans/modules/java/source/JBrowseModule.java +++ b/java/java.source/src/org/netbeans/modules/java/source/JBrowseModule.java @@ -83,7 +83,7 @@ public class JBrowseModule extends ModuleInstall { Dialog[] d = new Dialog[1]; DialogDescriptor dd = new DialogDescriptor(Bundle.DESC_FeaturesLimited(), Bundle.TITLE_FeaturesLimited(), true, new Object[] {install, DialogDescriptor.CANCEL_OPTION}, install, DialogDescriptor.DEFAULT_ALIGN, HelpCtx.DEFAULT_HELP, evt -> { if (install.equals(evt.getActionCommand())) { - PluginManager.installSingle("org.netbeans.lib.nbjavac", Bundle.DN_nbjavac()); + PluginManager.installSingle("org.netbeans.libs.nbjavacapi", Bundle.DN_nbjavac()); } d[0].setVisible(false); }); @@ -92,7 +92,7 @@ public class JBrowseModule extends ModuleInstall { } catch (HeadlessException ex) { Exceptions.printStackTrace(Exceptions.attachSeverity(ex, Level.FINE)); } -prefs.putBoolean(KEY_WARNING_SHOWN, true); +//prefs.putBoolean(KEY_WARNING_SHOWN, true); // show warning on every boot until fixed } }); }); diff --git a/java/maven/src/org/netbeans/modules/maven/customize
[netbeans] branch delivery updated: [#3590] Prevent suspicious NPE forn Gradle SubProjectsNode
This is an automated email from the ASF dual-hosted git repository. neilcsmith pushed a commit to branch delivery in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/delivery by this push: new c1ebdea [#3590] Prevent suspicious NPE forn Gradle SubProjectsNode new 5a1e8be Merge pull request #3591 from lkishalmi/GH-3590 c1ebdea is described below commit c1ebdea491f1687a9ba675151712fa13ab906fac Author: Laszlo Kishalmi AuthorDate: Fri Feb 11 14:16:45 2022 -0800 [#3590] Prevent suspicious NPE forn Gradle SubProjectsNode --- .../modules/gradle/nodes/SubProjectsNode.java| 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/extide/gradle/src/org/netbeans/modules/gradle/nodes/SubProjectsNode.java b/extide/gradle/src/org/netbeans/modules/gradle/nodes/SubProjectsNode.java index 662284b..54b0fe0 100644 --- a/extide/gradle/src/org/netbeans/modules/gradle/nodes/SubProjectsNode.java +++ b/extide/gradle/src/org/netbeans/modules/gradle/nodes/SubProjectsNode.java @@ -26,8 +26,8 @@ import java.awt.Image; import java.awt.event.ActionEvent; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; -import java.util.ArrayList; import java.util.Collection; +import java.util.Collections; import java.util.List; import javax.swing.AbstractAction; import javax.swing.Action; @@ -48,6 +48,8 @@ import org.openide.util.RequestProcessor; import static org.netbeans.modules.gradle.nodes.Bundle.*; import java.util.Set; +import java.util.logging.Level; +import java.util.logging.Logger; import org.netbeans.api.project.ProjectUtils; import org.netbeans.modules.gradle.api.GradleBaseProject; import org.netbeans.modules.gradle.spi.Utils; @@ -59,6 +61,8 @@ import org.openide.nodes.Children; */ public class SubProjectsNode extends AbstractNode { +private static final Logger LOG = Logger.getLogger(SubProjectsNode.class.getName()); + @StaticResource private static final String SP_BADGE = "org/netbeans/modules/gradle/resources/gradle-large-badge.png"; @@ -122,13 +126,21 @@ public class SubProjectsNode extends AbstractNode { protected boolean createKeys(final List projects) { Set containedProjects = ProjectUtils.getContainedProjects(project, false); -projects.addAll(containedProjects); +if (containedProjects != null) { +projects.addAll(containedProjects); +} else { +LOG.log(Level.FINE, "No ProjectContainerProvider in the lookup of: {0}", project); +} return true; } @Override protected Node createNodeForKey(Project key) { Set containedProjects = ProjectUtils.getContainedProjects(key, false); +if (containedProjects == null) { +containedProjects = Collections.emptySet(); +LOG.log(Level.FINE, "No ProjectContainerProvider in the lookup of: {0}", project); +} GradleBaseProject gbp = GradleBaseProject.get(project); String prefix = (gbp != null && !gbp.isRoot() ? gbp.getPath() : "") + ':'; Children ch = containedProjects.isEmpty() ? Children.LEAF : Children.create(new SubProjectsChildFactory(key), true); @@ -182,9 +194,7 @@ public class SubProjectsNode extends AbstractNode { @Override public Action[] getActions(boolean b) { -ArrayList lst = new ArrayList(); -lst.add(OpenProjectAction.SINGLETON); -return lst.toArray(new Action[lst.size()]); +return new Action[]{OpenProjectAction.SINGLETON}; } @Override - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch delivery updated (3ff1e3d -> b09ce42)
This is an automated email from the ASF dual-hosted git repository. neilcsmith pushed a change to branch delivery in repository https://gitbox.apache.org/repos/asf/netbeans.git. from 3ff1e3d Merge pull request #3549 from junichi11/netbeans-6177-xdebug new c8e143d [#3593] Don't assume contract StructureItem#getElementHandle is never null is held new 336fa90 [#3593] Implement StructureItem#getElementHandle contract for CSS structure items new b09ce42 Merge pull request #3597 from matthiasblaesing/fix_csl_elementhandle The 6541 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../modules/csl/navigation/ElementNode.java| 11 +- .../editor/module/main/TopLevelStructureItem.java | 136 + .../css/prep/editor/CPCategoryStructureItem.java | 100 +++ .../modules/css/prep/editor/CPCssEditorModule.java | 2 +- 4 files changed, 172 insertions(+), 77 deletions(-) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-5369) link rel preconnect marked as bad value
[ https://issues.apache.org/jira/browse/NETBEANS-5369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17492570#comment-17492570 ] Martin H. commented on NETBEANS-5369: - I can also confirm that I cannot reproduce the issue with 12.6, neither with the latest dev build using default settings. With earlier versions, it used to mark similar items as "Bad value", but now I can use whatever I decide, including link rel="hello". If this is the intentional behaviour, it might be error prone in some cases, especially with typos, e.g. there is no hint for {code:html} {code} > link rel preconnect marked as bad value > --- > > Key: NETBEANS-5369 > URL: https://issues.apache.org/jira/browse/NETBEANS-5369 > Project: NetBeans > Issue Type: Bug > Components: php - Code Analysis, php - Editor >Affects Versions: 12.0 >Reporter: Riksoft >Priority: Minor > > A common line of code like this one > {code:java} > https://fonts.gstatic.com";>{code} > is marked as "Bad value" with this phrase: > _Bad value "preconnect" for attribute "rel" on element "link": The string > "preconnect" is not a registered keyword._ > _Syntax of list of link-type keywords:_ > _A whitespace-separated list of link types listed as allowed on '' in > the HTML specification or listed as an allowed on '' on the > Microformats wiki without duplicate keywords in the list. You can register > link types on the Microformats wiki yourself._ > Actually rel="preconnect" is valid code, as shown here > [https://www.w3.org/TR/resource-hints/] so should be added to the validator. > I wonder what's and where is the Microformats wiki the message is talking > about... > -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists