From: <ez...@us...> - 2006-10-07 19:39:18
|
Revision: 7186 http://svn.sourceforge.net/jedit/?rev=7186&view=rev Author: ezust Date: 2006-10-07 12:39:14 -0700 (Sat, 07 Oct 2006) Log Message: ----------- efficiency fix... Modified Paths: -------------- plugins/ProjectViewer/trunk/projectviewer/vpt/VPTContextMenu.java Modified: plugins/ProjectViewer/trunk/projectviewer/vpt/VPTContextMenu.java =================================================================== --- plugins/ProjectViewer/trunk/projectviewer/vpt/VPTContextMenu.java 2006-10-07 19:14:01 UTC (rev 7185) +++ plugins/ProjectViewer/trunk/projectviewer/vpt/VPTContextMenu.java 2006-10-07 19:39:14 UTC (rev 7186) @@ -265,13 +265,13 @@ } String menu = ProjectViewerConfig.getInstance().getUserContextMenu(); - int userItems = 0; + boolean usersFirst =jEdit.getBooleanProperty("projectviewer.contextmenu.userfirst"); if (menu != null) { jEdit.setTemporaryProperty("projectviewer.tmp_menu", menu); JPopupMenu pm = GUIUtilities.loadPopupMenu("projectviewer.tmp_menu"); Component[] userActions = pm.getComponents(); if (userActions != null && userActions.length > 0) { - boolean usersFirst =jEdit.getBooleanProperty("projectviewer.contextmenu.userfirst"); + if (!usersFirst) popupMenu.addSeparator(); int i=0; for (i = 0; i < userActions.length; i++) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |