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 54218 - Missing Compile/Run/Debug in JSP context menu
Summary: Missing Compile/Run/Debug in JSP context menu
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords: REGRESSION, SIMPLEFIX
: 54820 55619 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-31 14:20 UTC by zikmund
Modified: 2006-03-24 12:56 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch (13.82 KB, patch)
2005-02-23 16:07 UTC, Martin Krauskopf
Details | Diff
patch (13.82 KB, patch)
2005-02-23 16:07 UTC, Martin Krauskopf
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zikmund 2005-01-31 14:20:39 UTC
Build 200501301900

1) Have a WebApp
2) Open context menu (in Projects view) on a JSP file
3) ERROR:
Missing actions:
  - Compile
  - Run file
  - Debug file

Note: see similar actions in java file context menu.
Comment 1 zikmund 2005-01-31 14:30:35 UTC
Menu items are present in build 200501271900 - probably a side effect
of a commit?
Comment 2 Martin Grebac 2005-02-14 15:20:25 UTC
*** Issue 54820 has been marked as a duplicate of this issue. ***
Comment 3 Jiri Kovalsky 2005-02-14 15:23:58 UTC
Please note that this applies also to HTML editor.
Comment 4 Martin Krauskopf 2005-02-23 15:06:40 UTC
I'll try to help with this.
Comment 5 zikmund 2005-02-23 15:35:17 UTC
Issue 52124 is similar (in editor context menu).
Comment 6 Martin Krauskopf 2005-02-23 16:06:24 UTC
Ok, reassigned as well. Started... Patch follows...

If you don't like the patch let me know. Otherwise I will commit it.

I've used layer-declarative approach for all actions. I would like to
also remove duplicating of commons actions for html and x-jsp. It
would be possible with xml entities or another xml related approach as
I was hint by Yarda.
Comment 7 Martin Krauskopf 2005-02-23 16:07:17 UTC
Created attachment 20481 [details]
patch
Comment 8 Martin Krauskopf 2005-02-23 16:07:20 UTC
Created attachment 20482 [details]
patch
Comment 9 Martin Krauskopf 2005-02-23 16:07:54 UTC
Ups, sorry for double-submit of the patch...
Comment 10 Marek Fukala 2005-02-23 16:47:55 UTC
seems to be OK to me. Only one question: Shouldn't be the actions
declarations for HTML DO present in html module layer insted of jsp
module???
Comment 11 Martin Krauskopf 2005-02-23 23:50:10 UTC
Yes, you are right. Only part of them which doesn't belong to the web
project only (run, debug). So I distributed them across both modules -
html, web/project - and replace "incode" style with layer declarative
approach.

Fixed.

Checking in html/src/org/netbeans/modules/html/HtmlLoader.java;
new revision: 1.39; previous revision: 1.38
Checking in html/src/org/netbeans/modules/html/mf-layer.xml;
new revision: 1.8; previous revision: 1.7
Checking in
web/core/src/org/netbeans/modules/web/core/jsploader/JspLoader.java;
new revision: 1.20; previous revision: 1.19
Checking in
web/project/src/org/netbeans/modules/web/project/ui/resources/layer.xml;
new revision: 1.17; previous revision: 1.16

Comment 12 zikmund 2005-02-25 09:56:29 UTC
Verified in 200502241900.
Comment 13 zikmund 2005-03-01 12:30:26 UTC
*** Issue 55619 has been marked as a duplicate of this issue. ***