org.eclipse.jdt.core.prefs
is really important and control how you compile your java project.org.eclipse.jst.common.project.facet.core.prefs
adds a Facet, basically a way to introduce functionality to projects in Eclipse, therefore a project can have one or more facets (ie. it could be a Java project and a EJB project). See here for illustration (search the word 'Facet')org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
is a way to Configuring XDoclet annotation supportorg.eclipse.wst.common.component
is relate to the deployment structure.org.eclipse.wst.common.project.facet.core.xml
is used to Specifying target servers for J2EE projectsorg.eclipse.wst.validation.prefs
refers to Wst validationorg.eclipse.wst.jsdt.ui.superType.container/name
as explained here, is a configuration for JSDT part:
By default, plain javascript files (.js) inherit members from object Global. HTML files contained in a static/dynamic web project inherit members from object Window.
So if your context is a plain javaScript file it will appear that only Window.window or Window.alert(..) is valid since none of the Window members are inherited. What you really want is to inherit this field + method from an instance of the Window object.
,
The JSDT supports a configurable super type at the project level. Each .js or .html file within a project inherits all the fields and methods from the projects super type. By default the type is Global for standalone JavaScript projects and Window for Static/Dynamic Web Projects.
,
You can change the super type for a project from the JavaScript Include Path properties page from Object Global to Object Window to achieve the results you desire... On the Global Order/SuperType page change the Super Type to Window in the ECMA library.
.settings各文件的作用
最新推荐文章于 2024-06-09 21:34:22 发布