.settings各文件的作用
2015-04-18 14:53
267 查看
org.eclipse.jdt.core.prefsis
really important and control how you compile your java project.
org.eclipse.jst.common.project.facet.core.prefsadds
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.prefsis
a way to Configuring XDoclet annotation
support
org.eclipse.wst.common.componentis
relate to the deployment structure.
org.eclipse.wst.common.project.facet.core.xmlis
used to Specifying target servers
for J2EE projects
org.eclipse.wst.validation.prefsrefers
to Wst validation
org.eclipse.wst.jsdt.ui.superType.container/nameas
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.
相关文章推荐
- 【笔记(3)】phpcms目录caches下的各个文件的作用详解
- Python模块包中__init__.py文件的作用
- 关于tomcat conf下各文件的作用、
- 1.2.2.3、Django虚拟目录作用以及文件说明
- android项目中values中几个文件的作用
- NET文件中AssemblyInfo.cs文件的作用
- C语言里 头文件 和 源文件 作用是什么?
- Linux下各头文件作用
- 当输入流和输出流同时作用一个文件
- 描述下 “reset” CSS 文件的作用和使用它的好处。
- Linux/Unix下pid文件作用浅析
- tomcat的server.xml配置文件中三个端口的作用
- Java web开发项目中各文件的作用
- VS2010(c++)中各后缀文件的含义和作用总结
- inline函数定义放在头文件中的作用
- Oracle 11gR2 Patchset 不同文件作用 说明
- Struts2+hibernate+spring 配置文件中scope="prototype"的作用
- stdafx.h 文件的作用
- #line 的作用是改变当前行数和文件名称
- C++ 关于声明,定义,类的定义,头文件作用,防止头文件在同一个编译单元重复引用,不具名空间