Bug 202224 - The menu item Run As>>Run On Server doesn't exist if JST or JDT is not installed.
Summary: The menu item Run As>>Run On Server doesn't exist if JST or JDT is not instal...
Status: NEW
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: wst.web (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: wst.web CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-04 23:00 EDT by Robert Goodman CLA
Modified: 2007-09-05 12:18 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Goodman CLA 2007-09-04 23:00:52 EDT
I create a configuration with the eclipse platform and WST and any needed dependencies. The best way to do this is the download the  eclipse runtime binary which doesn't contain JDT. Go to updated manager and install WST and it require dependencies. This configuration doesn't contain JST or JDT. If I only have WST installed and I right click on a HTML file in a Static Web Project, the menu item Run As>>Run On Server doesn't exist. The problem seems to be caused by the fact there is no org.eclipse.debug.ui.actions.ILaunchable defined. There only has to be one defined in any plugin in the configuration. It happens that both JST and JDT have the adapter defined. In ATF I defined a fake entry like the following below to get around the problem.

   <extension point="org.eclipse.core.runtime.adapters">
      <factory 
         class="" 
         adaptableType="org.eclipse.core.resources.IResource">
         <adapter type="org.eclipse.debug.ui.actions.ILaunchable"/>
      </factory>
   </extension>

I wrote this against the server, but maybe wst.web should handle it since that is where the Static Web project deployables are defined. I guess it also could be consider a problem in org.eclipse.debug.
Comment 1 Tim deBoer CLA 2007-09-05 12:18:58 EDT
Hi Bob,

You're talking about the Run menu not being available at all? If so, then this is an issue between the 'project type' owner and debug. The expected behaviour from platform debug is that the Run menu won't appear unless the resource/selection adapts to ILaunchable. Project owners are responsible for adapting the right objects to make the menu appear, and I'm not sure how/why JDT/JST is providing this for cases they don't handle. I'll transfer to wst.web.