apache / apache/netbeans

These code will create a new "Navigate" menu rather than using existing one

Open
#6,901 0 comments 0 reactions 0 assignees View on GitHub
kind:bug needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 20

### What happened

These code will create a new "Navigate" menu rather than using existing one

@ActionReferences({
@ActionReference(path = "Menu/Navigate", position = 0),
@ActionReference(path = "Shortcuts", name = "DO-P")
})

https://gitlab.com/mcheung63/netbeans-quick-outline/-/blob/master/src/main/java/hk/quantr/netbeansquickoutline/QuickOutlineAction.java?ref_type=heads

### Language / Project Type / NetBeans Component

Module

### How to reproduce

These code will create a new "Navigate" menu rather than using existing one

@ActionReferences({
@ActionReference(path = "Menu/Navigate", position = 0),
@ActionReference(path = "Shortcuts", name = "DO-P")
})

https://gitlab.com/mcheung63/netbeans-quick-outline/-/blob/master/src/main/java/hk/quantr/netbeansquickoutline/QuickOutlineAction.java?ref_type=heads

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

ubuntu

### JDK

20

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

nothing

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

Read src/main/java/hk/quantr/netbeansquickoutline/QuickOutlineAction.java, focusing on its @ActionReferences entries for Menu/Navigate and Shortcuts. Verify how the action is registered in the existing Navigate menu and confirm that enabling the module no longer creates a duplicate menu.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.