This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 73340 - Need reasonable context menu in editor
Summary: Need reasonable context menu in editor
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: USABILITY
Depends on: 89298 89297
Blocks:
  Show dependency tree
 
Reported: 2006-03-07 16:33 UTC by _ gordonp
Modified: 2007-11-01 16:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gordonp 2006-03-07 16:33:21 UTC
Our current editor context menu is:

     Select in -> Projects
     Cut          Files
     Copy         Favorites
     Paste

This needs to be expanded once we've got more functionality available.
I'm opening this issue more as a reminder...
Comment 1 Andrew Krasny 2006-09-06 14:15:27 UTC
From the usability point of view at least following items should be added:

- GoTo Declaration
- GoTo Definition
- Select in ClassView
- Open Document under cursor (for opening #included files)
Comment 2 Nikolay Molchanov 2006-09-18 18:39:08 UTC
There is a menu item in context menu for java files: "Fix Imports", which is a
connection to a very nice feature: add missed import statements. It would be 
great to provide a similar feature for C/C++ files: "Fix Includes", which 
will add missed include statements. Unfortunately this feature is not implemented
yet, so we cannot add this menu item. I'll file a separate IZ for it. 
Comment 3 Nikolay Molchanov 2006-09-27 05:19:38 UTC
I added "Toggle Breakpoint" item to context menu in editor, which makes it
more consistent with editor menu for java files. I'll add "New Watch" also.

Tag: release55
User: NikMolchanov
Date: 2006/09/26 21:10:51

Modified:
   cnd/gdb/src/org/netbeans/modules/cnd/debugger/gdb/resources/mf-layer.xml

Log:
 IZ 73340 Need reasonable context menu in editor
 - Added "Toggle Breakpoint" item

File Changes:

Directory: /cnd/gdb/src/org/netbeans/modules/cnd/debugger/gdb/resources/
========================================================================

File [changed]: mf-layer.xml
Url:
http://cnd.netbeans.org/source/browse/cnd/gdb/src/org/netbeans/modules/cnd/debugger/gdb/resources/mf-layer.xml?r1=1.2.2.1&r2=1.2.2.2
Delta lines:  +10 -0
--------------------
--- mf-layer.xml	23 Aug 2006 17:58:09 -0000	1.2.2.1
+++ mf-layer.xml	27 Sep 2006 04:10:49 -0000	1.2.2.2
@@ -28,6 +28,16 @@
                         <attr name="originalFile"
stringvalue="Actions/Debug/org-netbeans-modules-cnd-debugger-gdb-actions-ToggleBreakpointAction.instance"/>
                     </file>
                 </folder>
+                <folder name="Popup">
+                    <file name="SeparatorAfterFormat.instance">
+			<attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
+                    </file>
+                    <attr name="format/SeparatorAfterFormat.instance"
boolvalue="true"/>
+                    <file
name="org-netbeans-modules-cnd-debugger-gdb-actions-ToggleBreakpointAction.shadow">
+                        <attr name="originalFile"
stringvalue="Actions/Debug/org-netbeans-modules-cnd-debugger-gdb-actions-ToggleBreakpointAction.instance"/>
+                    </file>
+                    <attr
name="org-netbeans-modules-cnd-debugger-gdb-actions-ToggleBreakpointAction.shadow/SeparatorBeforeCut.instance"
boolvalue="true"/>
+                </folder>
             </folder>
             
             <folder name="x-c">

---------------------------------------------------------------------
Comment 4 Thomas Preisler 2006-10-17 06:06:00 UTC
CVS menu and it's submenus are also missing.
Comment 5 _ gordonp 2006-10-17 18:22:31 UTC
Reassigning because I've got too many IZs to fix by FCS.
Comment 6 Alexander Simon 2006-11-01 17:48:31 UTC
-added menu items:
 goto - goto declaration/definition
 goto - goto line
 goto - C/C++ goto declaration
 reformat code
 code folds - collapse fold
 code folds - expand fold
 code folds - collapse all
 code folds - expand all

CVS log:

Checking in
completion/src/org/netbeans/modules/cnd/completion/resources/Bundle.properties;
/shared/data/ccvs/repository/cnd/completion/src/org/netbeans/modules/cnd/completion/resources/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.2.2.2; previous revision: 1.2.2.1
done
Checking in completion/src/org/netbeans/modules/cnd/completion/resources/layer.xml;
/shared/data/ccvs/repository/cnd/completion/src/org/netbeans/modules/cnd/completion/resources/layer.xml,v
 <--  layer.xml
new revision: 1.2.2.2; previous revision: 1.2.2.1
done
Checking in
completion/src/org/netbeans/modules/cnd/completion/cplusplus/Bundle.properties;
/shared/data/ccvs/repository/cnd/completion/src/org/netbeans/modules/cnd/completion/cplusplus/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.2.2.2; previous revision: 1.2.2.1
done
Checking in src/org/netbeans/modules/cnd/resources/Bundle.properties;
/shared/data/ccvs/repository/cnd/src/org/netbeans/modules/cnd/resources/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.2.2.2; previous revision: 1.2.2.1
done
Checking in src/org/netbeans/modules/cnd/resources/mf-layer.xml;
/shared/data/ccvs/repository/cnd/src/org/netbeans/modules/cnd/resources/mf-layer.xml,v
 <--  mf-layer.xml
new revision: 1.2.2.4; previous revision: 1.2.2.3
done
Checking in src/org/netbeans/modules/cnd/Bundle.properties;
/shared/data/ccvs/repository/cnd/src/org/netbeans/modules/cnd/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.2.2.2; previous revision: 1.2.2.1
done
Checking in gdb/src/org/netbeans/modules/cnd/debugger/gdb/resources/mf-layer.xml;
/shared/data/ccvs/repository/cnd/gdb/src/org/netbeans/modules/cnd/debugger/gdb/resources/mf-layer.xml,v
 <--  mf-layer.xml
new revision: 1.2.2.5; previous revision: 1.2.2.4
done

Comment 7 Alexander Simon 2006-11-14 15:58:44 UTC
Reassign because vv159170 will make context-dependent action name.
Name of "goto declaration/definition" will be:
-goto declaration
-goto include
-goto definition

Comment 8 Vladimir Voskresensky 2006-11-14 18:46:27 UTC
after extracting two ENH, it is now defect.
We need to update the display name of Go To Declaration/Definition depending on
underlined construction:
- #include directive
- identifier
- function call
Comment 9 Vladimir Voskresensky 2006-11-16 08:49:01 UTC
fixed:
- added different trimmed name (used in GoTo popup) depneding on context for Go
To Declaration:
-- Include
-- Declaration
-- Definition/Declaration
- added trimmed name for C/C++ Search...
- own Go To popup to use trimmed names (without "go to" prefix)=> Go To Line...
is now Line... as well

cvs log:

Checking in actions/SearchAction.java;
/cvs/cnd/gotodeclaration/src/org/netbeans/modules/cnd/gotodeclaration/actions/Attic/SearchAction.java,v
 <--  SearchAction.java
new revision: 1.1.2.2; previous revision: 1.1.2.1
done
Checking in resources/layer.xml;
/cvs/cnd/gotodeclaration/src/org/netbeans/modules/cnd/gotodeclaration/resources/Attic/layer.xml,v
 <--  layer.xml
new revision: 1.1.2.3; previous revision: 1.1.2.2
done
Checking in resources/Bundle.properties;
/cvs/cnd/gotodeclaration/src/org/netbeans/modules/cnd/gotodeclaration/resources/Attic/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.1.2.3; previous revision: 1.1.2.2
done
Checking in cplusplus/Bundle.properties;
/cvs/cnd/completion/src/org/netbeans/modules/cnd/completion/cplusplus/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.2.2.4; previous revision: 1.2.2.3
done
Checking in cplusplus/CCGoToDeclarationAction.java;
/cvs/cnd/completion/src/org/netbeans/modules/cnd/completion/cplusplus/CCGoToDeclarationAction.java,v
 <--  CCGoToDeclarationAction.java
new revision: 1.2.2.4; previous revision: 1.2.2.3
done
Checking in resources/layer.xml;
/cvs/cnd/completion/src/org/netbeans/modules/cnd/completion/resources/layer.xml,v
 <--  layer.xml
new revision: 1.2.2.4; previous revision: 1.2.2.3
done
Checking in editor/cplusplus/Bundle.properties;
/cvs/cnd/src/org/netbeans/modules/cnd/editor/cplusplus/Bundle.properties,v  <--
 Bundle.properties
new revision: 1.2.2.2; previous revision: 1.2.2.1
done
Checking in editor/cplusplus/CCKit.java;
/cvs/cnd/src/org/netbeans/modules/cnd/editor/cplusplus/CCKit.java,v  <--  CCKit.java
new revision: 1.2.2.3; previous revision: 1.2.2.2
done
Checking in resources/mf-layer.xml;
/cvs/cnd/src/org/netbeans/modules/cnd/resources/mf-layer.xml,v  <--  mf-layer.xml
new revision: 1.2.2.7; previous revision: 1.2.2.6
done
Comment 10 soldatov 2007-11-01 16:01:48 UTC
verified in build 200710310000