您的位置:首页 > 其它

.settings各文件的作用

2015-04-18 14:53 267 查看
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
support
org.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 projects
org.eclipse.wst.validation.prefs
refers
to Wst validation
org.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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: