
GUEST
글
eclipse 2010. 8. 16. 11:03eclipse sse
sse(Structured Source Editor)는 eclipse WTP(Web Tools Platform)의 subproject이다.
sse는 xml이나 html과 같이 구조화된 문서를 eclipse editor에서 다룰 수 있게 해 준다.
sse에 이미 기본 structured text editor가 있다.
이를 확장하여 (구조화된, structured)문서의 타입에 해당하는 editor를 만들 수 있는데,
sse framework는 subclassing없이 extention point를 이용하여 확장할 수 있게 해 놓았다.
editor configuration extention point 하위에 3개의 configuration element를 추가하고,
각 element에는 해당 configuration을 구현하는 class가 지정되어야 한다.
editor configuration extention
sourceViewerConfiguration
target : 확장할 editor나 content type id.
class : org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration 의 subclass
contentOutlineConfiguration
target : 확장할 editor나 content type id.
class : org.eclipse.wst.sse.ui.views.contentoutline.ContentOutlineConfiguration 의 subclass
propertySheetConfiguration
target : 확장할 editor나 content type id.
class : org.eclipse.wst.sse.ui.views.properties.PropertySheetConfiguration 의 subclass
cf) wtp에는 웹개발을 위한 ide로서의 eclipse를 지원하는 많은 subproject가 있다.
여타 다른 project들이 update를 통해 설치한 후 바로 사용하는데 반해, sse는 rcp나 plugin에서 editor를 직접 (확장하여) 만들 때 사용한다.
SturceViewerConfiguration
structured text editor의 다양한 속성 - systax highlighting, content assist 등을 접근하고 수정할 수 있다.
org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration을 상속받아, 편집을 원하는 문서의 확장자에 맞게 subclass를 구현하여 사용한다.
StructuredTextViewerConfigurationHTML, StructuredTextViewerConfigurationJSP, StructuredTextViewerConfigurationXML, Java SourceViewerConfiguration 등이 해당된다.
ContentOutlineConfiguration
editor의 outline view 속성을 규정한다. editor의 input 자원을 Tree control에 mapping시켜준다.
sse의 org.eclipse.wst.sse.ui.views.ContentOutlineConfiguration을 상속받아 구현한다.
PropertySheetConfiguration
editor의 properties view 속성을 규정한다. editor의 input자원을 Table control에 mapping시켜준다.
sse의 org.eclipse.wst.sse.ui.views.properties.PropertySheetConfiguration을 상속받아 구현한다.
참조
eclipse WTP : http://www.eclipse.org/webtools/
WTP sse : http://www.eclipse.org/webtools/sse/
sse editor configration : http://www.eclipse.org/webtools/wst/components/sse/designs/EditorConfiguration.html
RECENT COMMENT