[jira] [Commented] (NETBEANS-4559) Web Project Properties Dialog fails to save Relative URL
[ https://issues.apache.org/jira/browse/NETBEANS-4559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17175259#comment-17175259 ] Gaurav Gupta commented on NETBEANS-4559: Thanks [~peedeeboy]/[~bht] for all the information, I have added this issue to the next sprint of Payara Community project to address it. > Web Project Properties Dialog fails to save Relative URL > > > Key: NETBEANS-4559 > URL: https://issues.apache.org/jira/browse/NETBEANS-4559 > Project: NetBeans > Issue Type: Bug > Components: projects - Maven >Affects Versions: 11.3 >Reporter: Bernard >Priority: Critical > Attachments: ProjectPropertiesActionRun.png, > ProjectPropertiesActionRun.png, ProjectPropertiesRun.png, > PropertiesBefore.png, PropertiesBeforeAfter.png, WebSocketMovieTheater.zip, > image-2020-08-07-15-48-32-635.png, image-2020-08-09-11-54-50-908.png, > messages.log > > > Please see attached images and project. > In the project properties, there is a field "Relative URL" for the page to > load relative to the context path. > If I enter it and confirm the dialog, then after re-opening the dialog again, > the value is lost. > > The project is from > [https://technology.amis.nl/2015/05/14/java-web-application-sending-json-messages-through-websocket-to-html5-browser-application-for-real-time-push/] > - just adapted to run under NetBeans. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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] [Assigned] (NETBEANS-3409) Missing popup menu for sql editor tabs
[ https://issues.apache.org/jira/browse/NETBEANS-3409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matthias Bläsing reassigned NETBEANS-3409: -- Assignee: Matthias Bläsing > Missing popup menu for sql editor tabs > -- > > Key: NETBEANS-3409 > URL: https://issues.apache.org/jira/browse/NETBEANS-3409 > Project: NetBeans > Issue Type: Bug > Components: db - SQL Editor >Affects Versions: 11.2 >Reporter: Aldo Brucale >Assignee: Matthias Bläsing >Priority: Major > > Clicking on a SQL Editor tab causes this exception, and the popup menu is not > shown. > {noformat} > java.lang.AbstractMethodError: Missing implementation of resolved method > 'abstract org.openide.util.actions.SystemAction[] getActions()' of abstract > class org.openide.filesystems.FileSystemCompat. > at > org.openide.filesystems.FileSystemCompat.getActions(FileSystemCompat.java:79) > at > org.openide.filesystems.MultiFileSystemCompat.getActions(MultiFileSystemCompat.java:71) > at > org.openide.filesystems.MultiFileSystemCompat.getActions(MultiFileSystemCompat.java:71) > at > org.openide.filesystems.CompatFileExtrasLkp.beforeLookup(CompatFileExtrasLkp.java:58) > at > org.openide.util.lookup.AbstractLookup$R.allInstances(AbstractLookup.java:1014) > at > org.openide.util.lookup.AbstractLookup$R.allInstances(AbstractLookup.java:1010) > at org.openide.util.Lookup.lookupAll(Lookup.java:287) > at > org.openide.actions.FileSystemAction.createMenu(FileSystemAction.java:127) > at > org.openide.actions.FileSystemAction$Menu.(FileSystemAction.java:244) > at > org.openide.actions.FileSystemAction$DelegateAction.getPopupPresenter(FileSystemAction.java:333) > at org.openide.util.Utilities.actionsToPopup(Utilities.java:1704) > at > org.netbeans.core.windows.view.ui.TabbedHandler.handlePopupMenuShowing(TabbedHandler.java:439) > at > org.netbeans.core.windows.view.ui.TabbedHandler.actionPerformed(TabbedHandler.java:320) > at > org.netbeans.swing.tabcontrol.TabbedContainer.postActionEvent(TabbedContainer.java:705) > at > org.netbeans.swing.tabcontrol.TabbedContainerUI.shouldPerformAction(TabbedContainerUI.java:140) > at > org.netbeans.swing.tabcontrol.plaf.DefaultTabbedContainerUI.access$2700(DefaultTabbedContainerUI.java:87) > at > org.netbeans.swing.tabcontrol.plaf.DefaultTabbedContainerUI$DisplayerActionListener.actionPerformed(DefaultTabbedContainerUI.java:1261) > at > org.netbeans.swing.tabcontrol.TabDisplayer.postActionEvent(TabDisplayer.java:589) > at > org.netbeans.swing.tabcontrol.TabDisplayerUI.shouldPerformAction(TabDisplayerUI.java:168) > at > org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI.access$1700(BasicTabDisplayerUI.java:96) > at > org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI$BasicDisplayerMouseListener.performCommand(BasicTabDisplayerUI.java:757) > at > org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI$BasicDisplayerMouseListener.potentialCommand(BasicTabDisplayerUI.java:733) > at > org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI$BasicDisplayerMouseListener.mousePressed(BasicTabDisplayerUI.java:717) > at > java.desktop/java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:287) > at > java.desktop/java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:287) > at > java.desktop/java.awt.Component.processMouseEvent(Component.java:6633) > at > java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342) > at java.desktop/java.awt.Component.processEvent(Component.java:6401) > at java.desktop/java.awt.Container.processEvent(Container.java:2263) > at > java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5012) > at > java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321) > at java.desktop/java.awt.Component.dispatchEvent(Component.java:4844) > at > java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918) > at > java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4544) > at > java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488) > at > java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307) > at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2762) > at java.desktop/java.awt.Component.dispatchEvent(Component.java:4844) > at > java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) > at >
[jira] [Updated] (NETBEANS-4635) Add JakartaEE 8 Platform module
[ https://issues.apache.org/jira/browse/NETBEANS-4635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jose updated NETBEANS-4635: --- Description: This is an improvement to the [PR-2023|https://github.com/apache/netbeans/pull/2023] from Josh Juneau. I used the _*j2ee.platform*_ module as a reference. Notes: - Add module *_jakartaee8.platform_* that contains the Javadoc - Fix JakartaEE integration with the NetBeans library (Classpath & Javadoc) from both jakartaee-api & jakartaee-web-api libraries. was: This is an improvement to the [PR-2023|https://github.com/apache/netbeans/pull/2023] from Josh Juneau. I used the _*j2ee.platform*_ module as a reference. Notes: - Add module 'jakartaee.platform' that contains the Javadoc - Fix JakartaEE integration with the NetBeans library (Classpath & Javadoc) from both jakartaee-api & jakartaee-web-api libraries. Summary: Add JakartaEE 8 Platform module (was: Add JakartaEE Platform module) > Add JakartaEE 8 Platform module > --- > > Key: NETBEANS-4635 > URL: https://issues.apache.org/jira/browse/NETBEANS-4635 > Project: NetBeans > Issue Type: Improvement > Components: projects - Libraries >Affects Versions: 12.0 >Reporter: Jose >Assignee: Jose >Priority: Minor > Fix For: 12.1 > > Time Spent: 2h > Remaining Estimate: 0h > > This is an improvement to the > [PR-2023|https://github.com/apache/netbeans/pull/2023] from Josh Juneau. I > used the _*j2ee.platform*_ module as a reference. > Notes: > - Add module *_jakartaee8.platform_* that contains the Javadoc > - Fix JakartaEE integration with the NetBeans library (Classpath & Javadoc) > from both jakartaee-api & jakartaee-web-api libraries. -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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-4552) java.lang.UnsupportedOperationException command: run
[ https://issues.apache.org/jira/browse/NETBEANS-4552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17174990#comment-17174990 ] sun java commented on NETBEANS-4552: nb-javac is not installed. i can compile my project without any error the problem appear when running the project inside the IDE. after compiling i can run it outside IDE. > java.lang.UnsupportedOperationException command: run > > > Key: NETBEANS-4552 > URL: https://issues.apache.org/jira/browse/NETBEANS-4552 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 > Environment: Windows 7 Pro SP1 > OpenJDK 14 >Reporter: sun java >Priority: Blocker > > hello > when trying to run my modular project project i get this exception.(note: I > can run the application outside IDE) > {color:#172b4d}*java.lang.UnsupportedOperationException: command: run, > JavaRunner impls: > [org.netbeans.modules.java.source.ant.ProjectRunnerImpl@52e7ee7c]java.lang.UnsupportedOperationException: > command: run, JavaRunner impls: > [org.netbeans.modules.java.source.ant.ProjectRunnerImpl@52e7ee7c] at > org.netbeans.api.java.project.runner.JavaRunner.execute(JavaRunner.java:303) > at > org.netbeans.modules.java.api.common.project.ActionProviderSupport.bypassAntBuildScript(ActionProviderSupport.java:583) > at > org.netbeans.modules.java.api.common.project.JavaActionProvider$9.performCompileOnSave(JavaActionProvider.java:1591) > at > org.netbeans.modules.java.api.common.project.ActionProviderSupport$JavaModelWork.execute(ActionProviderSupport.java:1310) > at > org.netbeans.modules.java.api.common.project.ActionProviderSupport$JavaModelWork.run(ActionProviderSupport.java:1287) > at > org.netbeans.api.java.source.ui.ScanDialog.runWhenScanFinished(ScanDialog.java:133) > at > org.netbeans.modules.java.api.common.project.ActionProviderSupport.invokeTarget(ActionProviderSupport.java:202) > at > org.netbeans.modules.java.api.common.project.JavaActionProvider$ScriptAction.invoke(JavaActionProvider.java:465) > at > org.netbeans.modules.java.api.common.project.JavaActionProvider.lambda$invokeAction$1(JavaActionProvider.java:895) > at java.base/java.util.Optional.ifPresent(Optional.java:176) at > org.netbeans.modules.java.api.common.project.JavaActionProvider.invokeAction(JavaActionProvider.java:888) > at > org.netbeans.spi.project.support.LookupProviderSupport$MergedActionProvider.invokeAction(LookupProviderSupport.java:262) > at > org.netbeans.modules.project.ui.actions.ProjectAction$2.run(ProjectAction.java:162) > at > org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEvent(NbMutexEventProvider.java:95) > at > org.netbeans.modules.openide.util.NbMutexEventProvider$Event.writeAccess(NbMutexEventProvider.java:60) > at > org.netbeans.modules.openide.util.LazyMutexImplementation.writeAccess(LazyMutexImplementation.java:56) > at org.openide.util.Mutex.writeAccess(Mutex.java:285) at > org.netbeans.modules.project.ui.actions.ProjectAction.runSequentially(ProjectAction.java:159) > at > org.netbeans.modules.project.ui.actions.MainProjectAction$1$1.run(MainProjectAction.java:115) > at > java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316) > at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at > java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at > java.base/java.security.AccessController.doPrivileged(AccessController.java:391) > at > java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) > at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) at > org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)[catch] > at > java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) > at > java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) > at > java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) > at > java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) > at > java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) > at > java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)*{color} -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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 php80-support updated (f579054 -> bcdddfa)
This is an automated email from the ASF dual-hosted git repository. tmysik pushed a change to branch php80-support in repository https://gitbox.apache.org/repos/asf/netbeans.git. from f579054 Merge pull request #2295 from junichi11/php80-class-name-literal-on-object new 84f3520 [NETBEANS-4443] PHP 8.0 Support: Match expression v2 (Part 1) new 1548472 [NETBEANS-4443] PHP 8.0 Support: Match expression v2 (Part 2) new bcdddfa Merge pull request #2303 from junichi11/php80-match-expression-v2 The 4181 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/php/editor/PHPBracesMatcher.java |2 +- .../editor/completion/CompletionContextFinder.java | 28 +- .../php/editor/completion/PHPCodeCompletion.java | 31 +- .../php/editor/completion/PHPCompletionItem.java |3 +- .../modules/php/editor/csl/FoldingScanner.java |8 + .../modules/php/editor/indent/CodeStyle.java | 17 + .../modules/php/editor/indent/FmtOptions.java |8 + .../modules/php/editor/indent/FormatToken.java |8 +- .../modules/php/editor/indent/FormatVisitor.java | 90 +- .../php/editor/indent/IndentationCounter.java | 111 +- .../modules/php/editor/indent/TokenFormatter.java | 34 +- .../modules/php/editor/indent/ui/Bundle.properties |8 + .../modules/php/editor/indent/ui/FmtBraces.form| 61 +- .../modules/php/editor/indent/ui/FmtBraces.java| 425 +- .../modules/php/editor/indent/ui/FmtSpaces.form|2 +- .../modules/php/editor/indent/ui/FmtSpaces.java| 54 +- .../modules/php/editor/indent/ui/Spaces.php| 13 + .../php/editor/lexer/PHP5ColoringLexer.java| 2401 +++--- .../modules/php/editor/lexer/PHPTokenId.java |1 + .../modules/php/editor/parser/ASTPHP5Parser.java | 5732 +++--- .../modules/php/editor/parser/ASTPHP5Scanner.java | 2352 +++--- .../modules/php/editor/parser/ASTPHP5Symbols.java | 273 +- .../php/editor/parser/EncodedActionTable1.java | 8316 ++-- .../php/editor/parser/EncodedActionTable10.java| 6316 +++ .../php/editor/parser/EncodedActionTable11.java| 5854 +++--- .../php/editor/parser/EncodedActionTable12.java| 6154 +++ .../php/editor/parser/EncodedActionTable13.java| 5824 +++--- .../php/editor/parser/EncodedActionTable14.java| 5475 +++-- .../php/editor/parser/EncodedActionTable15.java| 824 ++ .../php/editor/parser/EncodedActionTable2.java | 7528 +- .../php/editor/parser/EncodedActionTable3.java | 6214 +++ .../php/editor/parser/EncodedActionTable4.java | 7120 - .../php/editor/parser/EncodedActionTable5.java | 7044 - .../php/editor/parser/EncodedActionTable6.java | 6374 +++ .../php/editor/parser/EncodedActionTable7.java | 5914 +++--- .../php/editor/parser/EncodedActionTable8.java | 6248 +++ .../php/editor/parser/EncodedActionTable9.java | 6016 +++--- .../netbeans/modules/php/editor/parser/Utils.java |3 + .../php/editor/parser/astnodes/MatchArm.java | 82 + .../editor/parser/astnodes/MatchExpression.java| 102 + .../php/editor/parser/astnodes/Visitor.java|4 + .../astnodes/visitors/DefaultTreePathVisitor.java | 16 + .../parser/astnodes/visitors/DefaultVisitor.java | 14 + .../php/editor/resources/code-templates.xml|9 + .../typinghooks/PhpTypedBreakInterceptor.java | 65 +- .../editor/verification/PHP80UnhandledError.java | 28 + .../editor/verification/UnusedVariableHint.java| 12 + .../lexer/php80/matchExpression_01.pass| 291 + .../lexer/php80/matchExpression_02.pass| 82 + .../lexer/php80/matchExpression_03.pass| 66 + .../lexer/php80/matchExpression_04.pass| 257 + .../ASTPHP5ParserTest/parser/TextSearchQuery.pass |6 +- .../parser/php80/matchExpressionError_01.pass | 146 + .../parser/php80/matchExpressionError_02.pass | 42 + .../parser/php80/matchExpressionError_03.pass | 97 + .../parser/php80/matchExpressionError_04.pass | 94 + .../parser/php80/matchExpressionError_05.pass | 84 + .../parser/php80/matchExpressionError_06.pass | 87 + .../parser/php80/matchExpression_01.pass | 856 ++ .../parser/php80/matchExpression_02.pass | 213 + .../parser/php80/matchExpression_03.pass | 186 + .../parser/php80/matchExpression_04.pass | 817 ++ .../parser/php80/matchExpression_05.pass | 219 + .../php80/matchExpression_01.php} | 26 +- ...tFindContextForMatchExpression_01.bracecontext} | 26 +-
[netbeans] branch php80-support updated (f579054 -> bcdddfa)
This is an automated email from the ASF dual-hosted git repository. tmysik pushed a change to branch php80-support in repository https://gitbox.apache.org/repos/asf/netbeans.git. from f579054 Merge pull request #2295 from junichi11/php80-class-name-literal-on-object new 84f3520 [NETBEANS-4443] PHP 8.0 Support: Match expression v2 (Part 1) new 1548472 [NETBEANS-4443] PHP 8.0 Support: Match expression v2 (Part 2) new bcdddfa Merge pull request #2303 from junichi11/php80-match-expression-v2 The 4181 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/php/editor/PHPBracesMatcher.java |2 +- .../editor/completion/CompletionContextFinder.java | 28 +- .../php/editor/completion/PHPCodeCompletion.java | 31 +- .../php/editor/completion/PHPCompletionItem.java |3 +- .../modules/php/editor/csl/FoldingScanner.java |8 + .../modules/php/editor/indent/CodeStyle.java | 17 + .../modules/php/editor/indent/FmtOptions.java |8 + .../modules/php/editor/indent/FormatToken.java |8 +- .../modules/php/editor/indent/FormatVisitor.java | 90 +- .../php/editor/indent/IndentationCounter.java | 111 +- .../modules/php/editor/indent/TokenFormatter.java | 34 +- .../modules/php/editor/indent/ui/Bundle.properties |8 + .../modules/php/editor/indent/ui/FmtBraces.form| 61 +- .../modules/php/editor/indent/ui/FmtBraces.java| 425 +- .../modules/php/editor/indent/ui/FmtSpaces.form|2 +- .../modules/php/editor/indent/ui/FmtSpaces.java| 54 +- .../modules/php/editor/indent/ui/Spaces.php| 13 + .../php/editor/lexer/PHP5ColoringLexer.java| 2401 +++--- .../modules/php/editor/lexer/PHPTokenId.java |1 + .../modules/php/editor/parser/ASTPHP5Parser.java | 5732 +++--- .../modules/php/editor/parser/ASTPHP5Scanner.java | 2352 +++--- .../modules/php/editor/parser/ASTPHP5Symbols.java | 273 +- .../php/editor/parser/EncodedActionTable1.java | 8316 ++-- .../php/editor/parser/EncodedActionTable10.java| 6316 +++ .../php/editor/parser/EncodedActionTable11.java| 5854 +++--- .../php/editor/parser/EncodedActionTable12.java| 6154 +++ .../php/editor/parser/EncodedActionTable13.java| 5824 +++--- .../php/editor/parser/EncodedActionTable14.java| 5475 +++-- .../php/editor/parser/EncodedActionTable15.java| 824 ++ .../php/editor/parser/EncodedActionTable2.java | 7528 +- .../php/editor/parser/EncodedActionTable3.java | 6214 +++ .../php/editor/parser/EncodedActionTable4.java | 7120 - .../php/editor/parser/EncodedActionTable5.java | 7044 - .../php/editor/parser/EncodedActionTable6.java | 6374 +++ .../php/editor/parser/EncodedActionTable7.java | 5914 +++--- .../php/editor/parser/EncodedActionTable8.java | 6248 +++ .../php/editor/parser/EncodedActionTable9.java | 6016 +++--- .../netbeans/modules/php/editor/parser/Utils.java |3 + .../php/editor/parser/astnodes/MatchArm.java | 82 + .../editor/parser/astnodes/MatchExpression.java| 102 + .../php/editor/parser/astnodes/Visitor.java|4 + .../astnodes/visitors/DefaultTreePathVisitor.java | 16 + .../parser/astnodes/visitors/DefaultVisitor.java | 14 + .../php/editor/resources/code-templates.xml|9 + .../typinghooks/PhpTypedBreakInterceptor.java | 65 +- .../editor/verification/PHP80UnhandledError.java | 28 + .../editor/verification/UnusedVariableHint.java| 12 + .../lexer/php80/matchExpression_01.pass| 291 + .../lexer/php80/matchExpression_02.pass| 82 + .../lexer/php80/matchExpression_03.pass| 66 + .../lexer/php80/matchExpression_04.pass| 257 + .../ASTPHP5ParserTest/parser/TextSearchQuery.pass |6 +- .../parser/php80/matchExpressionError_01.pass | 146 + .../parser/php80/matchExpressionError_02.pass | 42 + .../parser/php80/matchExpressionError_03.pass | 97 + .../parser/php80/matchExpressionError_04.pass | 94 + .../parser/php80/matchExpressionError_05.pass | 84 + .../parser/php80/matchExpressionError_06.pass | 87 + .../parser/php80/matchExpression_01.pass | 856 ++ .../parser/php80/matchExpression_02.pass | 213 + .../parser/php80/matchExpression_03.pass | 186 + .../parser/php80/matchExpression_04.pass | 817 ++ .../parser/php80/matchExpression_05.pass | 219 + .../php80/matchExpression_01.php} | 26 +- ...tFindContextForMatchExpression_01.bracecontext} | 26 +-
[jira] [Comment Edited] (NETBEANS-4559) Web Project Properties Dialog fails to save Relative URL
[ https://issues.apache.org/jira/browse/NETBEANS-4559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17174426#comment-17174426 ] Pete Whelpton edited comment on NETBEANS-4559 at 8/10/20, 4:17 PM: --- Ok - so I have gotten somewhere on what is causing this. It is since Payara functionality was merged into NB base. What is happening is that when NB tries to get the default mappings for a Maven Web project, the first implementation of a {code:java}MavenActionsProvider{code} it finds is an instance of {code:java}MicroActionsProvider{code} from the Payara Mircro Project. This seems to be because the {code:java}MicroActionsProvider{code} is registered to Maven Web Projects: {code:java} @ProjectServiceProvider( service = MavenActionsProvider.class, projectType = MAVEN_WAR_PROJECT_TYPE ) public class MicroActionsProvider implements MavenActionsProvider { {code} It *should* be using the {code:java}J2eeActionsProvider.java{code} from the Maven web project. The Payara Micro Project has basically a blank entry for the mapping between Run (Netbeans) and Maven (Package), so that's what we now get in regular Maven Web projects [~jgauravgupta] can you offer any help? Can the MicroActionsProvider be registered for only Payara Micro Projects... was (Author: peedeeboy): Ok - so I have gotten somewhere on what is causing this. It is since Payara functionality was merged into NB base. What is happening is that when NB tries to get the default mappings for a Maven Web project, the first implementation of a {code:java}MavenActionsProvider{code} it finds is an instance of {code:java}MicroActionsProvider{code} from the Payara Mircro Project. This seems to be because the {code:java}MicroActionsProvider{code} is registered to Maven Web Projects: {code:java} @ProjectServiceProvider( service = MavenActionsProvider.class, projectType = MAVEN_WAR_PROJECT_TYPE ) public class MicroActionsProvider implements MavenActionsProvider { {code} It *should* be using the {code:java}J2eeActionsProvider.java{code} from the Maven web project. The Payara Micro Project has basically a blank entry for the mapping between Run (Netbeans) and Maven (Package), so that's what we now get in regular Maven Web projects [~jgauravgupta] can you offer any help? > Web Project Properties Dialog fails to save Relative URL > > > Key: NETBEANS-4559 > URL: https://issues.apache.org/jira/browse/NETBEANS-4559 > Project: NetBeans > Issue Type: Bug > Components: projects - Maven >Affects Versions: 11.3 >Reporter: Bernard >Priority: Critical > Attachments: ProjectPropertiesActionRun.png, > ProjectPropertiesActionRun.png, ProjectPropertiesRun.png, > PropertiesBefore.png, PropertiesBeforeAfter.png, WebSocketMovieTheater.zip, > image-2020-08-07-15-48-32-635.png, image-2020-08-09-11-54-50-908.png, > messages.log > > > Please see attached images and project. > In the project properties, there is a field "Relative URL" for the page to > load relative to the context path. > If I enter it and confirm the dialog, then after re-opening the dialog again, > the value is lost. > > The project is from > [https://technology.amis.nl/2015/05/14/java-web-application-sending-json-messages-through-websocket-to-html5-browser-application-for-real-time-push/] > - just adapted to run under NetBeans. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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] [Comment Edited] (NETBEANS-4559) Web Project Properties Dialog fails to save Relative URL
[ https://issues.apache.org/jira/browse/NETBEANS-4559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17174426#comment-17174426 ] Pete Whelpton edited comment on NETBEANS-4559 at 8/10/20, 4:16 PM: --- Ok - so I have gotten somewhere on what is causing this. It is since Payara functionality was merged into NB base. What is happening is that when NB tries to get the default mappings for a Maven Web project, the first implementation of a {code:java}MavenActionsProvider{code} it finds is an instance of {code:java}MicroActionsProvider{code} from the Payara Mircro Project. This seems to be because the {code:java}MicroActionsProvider{code} is registered to Maven Web Projects: {code:java} @ProjectServiceProvider( service = MavenActionsProvider.class, projectType = MAVEN_WAR_PROJECT_TYPE ) public class MicroActionsProvider implements MavenActionsProvider { {code} It *should* be using the {code:java}J2eeActionsProvider.java{code} from the Maven web project. The Payara Micro Project has basically a blank entry for the mapping between Run (Netbeans) and Maven (Package), so that's what we now get in regular Maven Web projects [~jgauravgupta] can you offer any help? was (Author: peedeeboy): Ok - so I have gotten somewhere on what is causing this. It is since Payara functionality was merged into NB base. What is happening is that when NB tries to get the default mappings for a Maven Web project, the first implementation of a {code:java}MavenActionsProvider{code} it finds is an instance of {code:java}MicroActionsProvider{code} from the Payara Mircro Project. This seems to be because the {code:java}MicroActionsProvider{code} is registered to Maven Web Projects: {code:java} @ProjectServiceProvider( service = MavenActionsProvider.class, projectType = MAVEN_WAR_PROJECT_TYPE ) public class MicroActionsProvider implements MavenActionsProvider { {code} It *should* be using the {code::java}J2eeActionsProvider.java{code} from the Maven web project. The Payara Micro Project has basically a blank entry for the mapping between Run (Netbeans) and Maven (Package), so that's what we now get in regular Maven Web projects [~jgauravgupta] can you offer any help? > Web Project Properties Dialog fails to save Relative URL > > > Key: NETBEANS-4559 > URL: https://issues.apache.org/jira/browse/NETBEANS-4559 > Project: NetBeans > Issue Type: Bug > Components: projects - Maven >Affects Versions: 11.3 >Reporter: Bernard >Priority: Critical > Attachments: ProjectPropertiesActionRun.png, > ProjectPropertiesActionRun.png, ProjectPropertiesRun.png, > PropertiesBefore.png, PropertiesBeforeAfter.png, WebSocketMovieTheater.zip, > image-2020-08-07-15-48-32-635.png, image-2020-08-09-11-54-50-908.png, > messages.log > > > Please see attached images and project. > In the project properties, there is a field "Relative URL" for the page to > load relative to the context path. > If I enter it and confirm the dialog, then after re-opening the dialog again, > the value is lost. > > The project is from > [https://technology.amis.nl/2015/05/14/java-web-application-sending-json-messages-through-websocket-to-html5-browser-application-for-real-time-push/] > - just adapted to run under NetBeans. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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-4559) Web Project Properties Dialog fails to save Relative URL
[ https://issues.apache.org/jira/browse/NETBEANS-4559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17174426#comment-17174426 ] Pete Whelpton commented on NETBEANS-4559: - Ok - so I have gotten somewhere on what is causing this. It is since Payara functionality was merged into NB base. What is happening is that when NB tries to get the default mappings for a Maven Web project, the first implementation of a {code:java}MavenActionsProvider{code} it finds is an instance of {code:java}MicroActionsProvider{code} from the Payara Mircro Project. This seems to be because the {code:java}MicroActionsProvider{code} is registered to Maven Web Projects: {code:java} @ProjectServiceProvider( service = MavenActionsProvider.class, projectType = MAVEN_WAR_PROJECT_TYPE ) public class MicroActionsProvider implements MavenActionsProvider { {code} It *should* be using the {code::java}J2eeActionsProvider.java{code} from the Maven web project. The Payara Micro Project has basically a blank entry for the mapping between Run (Netbeans) and Maven (Package), so that's what we now get in regular Maven Web projects [~jgauravgupta] can you offer any help? > Web Project Properties Dialog fails to save Relative URL > > > Key: NETBEANS-4559 > URL: https://issues.apache.org/jira/browse/NETBEANS-4559 > Project: NetBeans > Issue Type: Bug > Components: projects - Maven >Affects Versions: 11.3 >Reporter: Bernard >Priority: Critical > Attachments: ProjectPropertiesActionRun.png, > ProjectPropertiesActionRun.png, ProjectPropertiesRun.png, > PropertiesBefore.png, PropertiesBeforeAfter.png, WebSocketMovieTheater.zip, > image-2020-08-07-15-48-32-635.png, image-2020-08-09-11-54-50-908.png, > messages.log > > > Please see attached images and project. > In the project properties, there is a field "Relative URL" for the page to > load relative to the context path. > If I enter it and confirm the dialog, then after re-opening the dialog again, > the value is lost. > > The project is from > [https://technology.amis.nl/2015/05/14/java-web-application-sending-json-messages-through-websocket-to-html5-browser-application-for-real-time-push/] > - just adapted to run under NetBeans. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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-4700) Generate JSF Pages and Classes throws an exception
[ https://issues.apache.org/jira/browse/NETBEANS-4700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17174404#comment-17174404 ] Kristian Heitkamp commented on NETBEANS-4700: - I’ve figured out that the jdk is the reason why the process fails. If I install jdk 1.8 and activate it, the process works. > Generate JSF Pages and Classes throws an exception > -- > > Key: NETBEANS-4700 > URL: https://issues.apache.org/jira/browse/NETBEANS-4700 > Project: NetBeans > Issue Type: Bug >Reporter: Kristian Heitkamp >Priority: Major > Attachments: messages.log > > > When trying to Generate JSF Pages and Classes, I've right-clicked on the > project root and chosen "New > JSF Pages from Entity Classes ..." > The following dialogue runs through the steps 1 (Choose File Type) to 3 > (Generate JSF Pages and Classes) and after clicking "Finish" the process > creates two ...Facade.java files, while one has the correct name derived from > its Entity Class, the other one is named AbstractFacade.java > The first ("...Facade.java") file bears a red ! on it's icon. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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 master updated (2a4a18a -> 1cf4221)
This is an automated email from the ASF dual-hosted git repository. jlahoda pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git. from 2a4a18a Make it easy to create dynamically updated ProxyLookup instances without subclassing add 1cf4221 Adding support for clangd to the lightweight C/C++ support No new revisions were added by this update. Summary of changes: .../modules/cpplite/editor/UnconfiguredHint.java | 10 +- .../org/netbeans/modules/cpplite/editor/Utils.java | 94 .../cpplite/editor/lsp/LanguageServerImpl.java | 118 +++-- .../cpplite/editor/lsp/options/Bundle.properties | 6 +- .../cpplite/editor/lsp/options/CPPLitePanel.form | 87 --- .../cpplite/editor/lsp/options/CPPLitePanel.java | 101 +++--- .../editor/spi/CProjectConfigurationProvider.java | 3 + .../CPPLiteCProjectConfigurationProvider.java | 27 - .../netbeans/modules/lsp/client/LSPBindings.java | 31 +- .../client/bindings/CompletionProviderImpl.java| 7 +- .../lsp/client/bindings/NavigatorPanelImpl.java| 2 +- .../TextDocumentSyncServerCapabilityHandler.java | 93 ++-- 12 files changed, 470 insertions(+), 109 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] [Updated] (NETBEANS-4702) Netbeans sometimes not responding after pressing Ctrl+F
[ https://issues.apache.org/jira/browse/NETBEANS-4702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jakub Herkel updated NETBEANS-4702: --- Summary: Netbeans sometimes not responding after pressing Ctrl+F (was: Netbeans sometimes not responding after pressing Ctrl+F (inplace find in a window)) > Netbeans sometimes not responding after pressing Ctrl+F > --- > > Key: NETBEANS-4702 > URL: https://issues.apache.org/jira/browse/NETBEANS-4702 > Project: NetBeans > Issue Type: Bug > Components: editor - Search >Affects Versions: 12.0 > Environment: fedora linux 32 (wayland) - jdk 14 update 2. >Reporter: Jakub Herkel >Priority: Major > > From time to time I have a problem that Netbeans were not responding when I > tried to open find dialog(via Ctrl+F). I.e It is possible to switch a window > via mouse click but I have to wait around 10 seconds. This laziness can be > reverted when I close the window in which I tried to open a find dialog. In > a error log I can see this exception: > java.lang.NullPointerException > SEVERE [null]: Last record repeated more than 10 times, further logs of this > record are ignored until the log record changes. > SEVERE [null]: Last record repeated 7547 times in total. > SEVERE [global] > java.lang.NullPointerException > at > java.desktop/javax.swing.text.JTextComponent.write(JTextComponent.java:1655) > at java.desktop/javax.swing.JEditorPane.getText(JEditorPane.java:1451) > at org.netbeans.modules.editor.search.SearchBar.gainFocus(SearchBar.java:821) > at > org.netbeans.modules.editor.search.actions.SearchAction.actionPerformed(SearchAction.java:77) > at > org.netbeans.spi.editor.AbstractEditorAction.actionPerformed(AbstractEditorAction.java:482) > at > java.desktop/javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1810) > at > java.desktop/javax.swing.JComponent.processKeyBinding(JComponent.java:2900) > at > java.desktop/javax.swing.JComponent.processKeyBindings(JComponent.java:2948) > at java.desktop/javax.swing.JComponent.processKeyEvent(JComponent.java:2862) > at java.desktop/java.awt.Component.processEvent(Component.java:6413) > at java.desktop/java.awt.Container.processEvent(Container.java:2263) > at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5012) > at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321) > at java.desktop/java.awt.Component.dispatchEvent(Component.java:4844) > at > java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1950) > at > java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:870) > at > java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1139) > at > java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1009) > at > java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:835) > at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4893) > at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321) > at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2764) > at java.desktop/java.awt.Component.dispatchEvent(Component.java:4844) > at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) > at > java.base/java.security.AccessController.doPrivileged(AccessController.java:391) > at > java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) > at > java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) > at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) > at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743) > at > java.base/java.security.AccessController.doPrivileged(AccessController.java:391) > at > java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) > at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742) > at > org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136) > [catch] at > java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) > at > java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) > at > java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) > at > java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) > at >
[jira] [Created] (NETBEANS-4702) Netbeans sometimes not responding after pressing Ctrl+F (inplace find in a window)
Jakub Herkel created NETBEANS-4702: -- Summary: Netbeans sometimes not responding after pressing Ctrl+F (inplace find in a window) Key: NETBEANS-4702 URL: https://issues.apache.org/jira/browse/NETBEANS-4702 Project: NetBeans Issue Type: Bug Components: editor - Search Affects Versions: 12.0 Environment: fedora linux 32 (wayland) - jdk 14 update 2. Reporter: Jakub Herkel >From time to time I have a problem that Netbeans were not responding when I >tried to open find dialog(via Ctrl+F). I.e It is possible to switch a window >via mouse click but I have to wait around 10 seconds. This laziness can be >reverted when I close the window in which I tried to open a find dialog. In a >error log I can see this exception: java.lang.NullPointerException SEVERE [null]: Last record repeated more than 10 times, further logs of this record are ignored until the log record changes. SEVERE [null]: Last record repeated 7547 times in total. SEVERE [global] java.lang.NullPointerException at java.desktop/javax.swing.text.JTextComponent.write(JTextComponent.java:1655) at java.desktop/javax.swing.JEditorPane.getText(JEditorPane.java:1451) at org.netbeans.modules.editor.search.SearchBar.gainFocus(SearchBar.java:821) at org.netbeans.modules.editor.search.actions.SearchAction.actionPerformed(SearchAction.java:77) at org.netbeans.spi.editor.AbstractEditorAction.actionPerformed(AbstractEditorAction.java:482) at java.desktop/javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1810) at java.desktop/javax.swing.JComponent.processKeyBinding(JComponent.java:2900) at java.desktop/javax.swing.JComponent.processKeyBindings(JComponent.java:2948) at java.desktop/javax.swing.JComponent.processKeyEvent(JComponent.java:2862) at java.desktop/java.awt.Component.processEvent(Component.java:6413) at java.desktop/java.awt.Container.processEvent(Container.java:2263) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5012) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4844) at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1950) at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:870) at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1139) at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1009) at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:835) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4893) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2764) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4844) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(AccessController.java:391) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743) at java.base/java.security.AccessController.doPrivileged(AccessController.java:391) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136) [catch] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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:
[jira] [Closed] (NETBEANS-1685) Running on Mac OSX a java source file editor fails to open - nullPointerException
[ https://issues.apache.org/jira/browse/NETBEANS-1685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neil C Smith closed NETBEANS-1685. -- Resolution: Abandoned > Running on Mac OSX a java source file editor fails to open - > nullPointerException > - > > Key: NETBEANS-1685 > URL: https://issues.apache.org/jira/browse/NETBEANS-1685 > Project: NetBeans > Issue Type: Bug > Components: java - Editor >Affects Versions: 9.0 >Reporter: David Gradwell >Priority: Critical > > Using Mac OSX Mojave version 10.14.1, NetBeans 9.0, Java 9. > > When I click on a java file in the projects window I always get the following > exception. I've not succeeded in viewing a source file when running on Mac > OS X and NetBeans 9.0 yet ! > > java.lang.NullPointerException > at > org.netbeans.modules.editor.fold.ui.CodeFoldingSideBar.resolveBackColor(CodeFoldingSideBar.java:350) > at > org.netbeans.modules.editor.fold.ui.CodeFoldingSideBar.updateColors(CodeFoldingSideBar.java:365) > at > org.netbeans.modules.editor.fold.ui.CodeFoldingSideBar.access$200(CodeFoldingSideBar.java:99) > at > org.netbeans.modules.editor.fold.ui.CodeFoldingSideBar$2.preferenceChange(CodeFoldingSideBar.java:228) > at > org.netbeans.modules.editor.fold.ui.CodeFoldingSideBar.addNotify(CodeFoldingSideBar.java:284) > at java.awt.Container.addNotify(Container.java:2797) > at javax.swing.JComponent.addNotify(JComponent.java:4775) > at > org.netbeans.modules.editor.impl.CustomizableSideBar$WestSidebarHolder.addNotify(CustomizableSideBar.java:286) > at java.awt.Container.addNotify(Container.java:2797) > at javax.swing.JComponent.addNotify(JComponent.java:4775) > at java.awt.Container.addNotify(Container.java:2797) > at javax.swing.JComponent.addNotify(JComponent.java:4775) > at java.awt.Container.addNotify(Container.java:2797) > at javax.swing.JComponent.addNotify(JComponent.java:4775) > at java.awt.Container.addImpl(Container.java:1141) > at java.awt.Container.add(Container.java:993) > at > org.openide.text.CloneableEditorInitializer.initCustomEditor(CloneableEditorInitializer.java:523) > at > org.openide.text.CloneableEditorInitializer.initCustomEditorAndDecorationsInEDT(CloneableEditorInitializer.java:573) > [catch] at > org.openide.text.CloneableEditorInitializer.run(CloneableEditorInitializer.java:321) > at > org.openide.text.CloneableEditorInitializer.processPendingEDTRequests(CloneableEditorInitializer.java:135) > at > org.openide.text.CloneableEditorInitializer$1.run(CloneableEditorInitializer.java:84) > at > org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1546) > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) > at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:759) > at java.awt.EventQueue.access$500(EventQueue.java:97) > at java.awt.EventQueue$3.run(EventQueue.java:712) > at java.awt.EventQueue$3.run(EventQueue.java:706) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:75) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:729) > at > org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136) > at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:190) > at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:115) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:104) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:100) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:81) -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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 master updated: Make it easy to create dynamically updated ProxyLookup instances without subclassing
This is an automated email from the ASF dual-hosted git repository. jtulach pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new 2a4a18a Make it easy to create dynamically updated ProxyLookup instances without subclassing 2a4a18a is described below commit 2a4a18a201fec8b66c167eef012004e2c4be21f3 Author: Tim Boudreau AuthorDate: Mon Aug 10 11:06:50 2020 +0200 Make it easy to create dynamically updated ProxyLookup instances without subclassing --- platform/openide.util.lookup/apichanges.xml| 27 +++ platform/openide.util.lookup/manifest.mf | 2 +- .../src/org/openide/util/lookup/ProxyLookup.java | 184 +-- .../util/lookup/ProxyLookupFactoryMethodsTest.java | 196 + 4 files changed, 358 insertions(+), 51 deletions(-) diff --git a/platform/openide.util.lookup/apichanges.xml b/platform/openide.util.lookup/apichanges.xml index 99c701f..f3d71c3 100644 --- a/platform/openide.util.lookup/apichanges.xml +++ b/platform/openide.util.lookup/apichanges.xml @@ -25,6 +25,33 @@ Lookup API + + +Add ProxyLookup.Controller to set lookups dynamically without +subclassing + + + + + + +One of the most common usages of ProxyLookup +is to dynamically change the set of lookups being delegated to. However the +setLookups(...) +method is protected. To avoid the need to subclass +ProxyLookup +this change introduces +ProxyLookup.Controller +that gives the creator of ProxyLookup +a way to call +setLookups(...) +without exposing the method to others having just a reference to +the ProxyLookup. + + + + + Declare support for all source levels. diff --git a/platform/openide.util.lookup/manifest.mf b/platform/openide.util.lookup/manifest.mf index 7b0558c..372496f 100644 --- a/platform/openide.util.lookup/manifest.mf +++ b/platform/openide.util.lookup/manifest.mf @@ -1,5 +1,5 @@ Manifest-Version: 1.0 OpenIDE-Module: org.openide.util.lookup OpenIDE-Module-Localizing-Bundle: org/openide/util/lookup/Bundle.properties -OpenIDE-Module-Specification-Version: 8.42 +OpenIDE-Module-Specification-Version: 8.43 diff --git a/platform/openide.util.lookup/src/org/openide/util/lookup/ProxyLookup.java b/platform/openide.util.lookup/src/org/openide/util/lookup/ProxyLookup.java index e18d04d..17cb46e 100644 --- a/platform/openide.util.lookup/src/org/openide/util/lookup/ProxyLookup.java +++ b/platform/openide.util.lookup/src/org/openide/util/lookup/ProxyLookup.java @@ -57,6 +57,25 @@ public class ProxyLookup extends Lookup { public ProxyLookup(Lookup... lookups) { data = ImmutableInternalData.EMPTY.setLookupsNoFire(lookups, true); } +/** + * Create a {@code ProxyLookup} whose contents can be set dynamically + * subclassing. The passed + * {@link Controller} can be later be used to call + * {@link Controller#setLookups} which then + * {@link ProxyLookup#setLookups changes} the lookups this {@code ProxyLookup} + * delegates to. The passed controller may + * only be used for one ProxyLookup. + * + * @param controller A {@link Controller} which can be used to set the lookups + * @throws IllegalStateException if the passed controller has already + * been attached to another ProxyLookup + * @since 8.43 + */ +@SuppressWarnings("LeakingThisInConstructor") +public ProxyLookup(Controller controller) { +this(); +controller.setProxyLookup(this); +} /** * Create a lookup initially proxying to no others. @@ -89,7 +108,72 @@ public class ProxyLookup extends Lookup { } return map.keySet(); } - + +/** + * A controller which allows the set of lookups being proxied to be + * set dynamically for those who create the instance of + * {@link ProxyLookup}. + * + * @since 8.43 + */ +public static final class Controller { + +private ProxyLookup consumer; + +/** + * Creates a new controller to be attached to a {@link ProxyLookup}. + * @since 8.43 + */ +public Controller() { +} + +/** + * Set the lookups on the {@link ProxyLookup} this controller controls. + * If called before a {@link ProxyLookup} has been attached to this + * controller, an IllegalStateException will be thrown. + * + * @param notifyIn an executor to notify changes in + * @param lookups an array of Lookups to be proxied + * @throws IllegalStateException if called