목 차
Eclipse RCP란?
Eclipse 살펴보기
HelloWorld RCP
실행 환경
RCP 생명주기
SWT/JFACE
View and Editor
Commands and Actions
Perspectives
Perference Pages
Dialogs and Wizards
실습
Eclipse RCP란?
Eclipse 3.0 때부터 출발
컴포넌트화
미들웨어 및 기반구조
네이티브 UI제공
이식성
제품설치와 업데이트
비 연결성 동작
개발 도구 지원
컴포넌트 라이브러리
Eclipse RCP란?
환경
JDK 6.0
Eclipse for RCP/Plug-in Developers
3.4 M20090211-1700
SWT Designer 6.7.1
Eclipse RCP 요소 살펴보기
Eclipse 살펴보기
Eclipse 살펴보기
HelloWorld RCP
New PlugIn Project
HelloWorld RCP
plugin.xml : Plugin 정보를 수록한다.
MANIFEST.MF : OSGi 파일로, Plugin 이름, 버
전 ID, Classpath, Plugin dependenc등이 있다.
Application : Workbench, Application UI 시작
ApplicationWorkbenchAdvisor : Workbench의
시작과 종료를 관리한다.
ApplicatonWorkbenchWindowAdvisor : 메뉴,
툴바, 상태표시줄 등과 원도우를 정의한다.
ApplicationActionBarAdvisor : 메뉴, 툴바, 상
태표시바의 액션을 정의한다.
Perspective : 화면을 구성한다.
HelloWorld RCP
Overview : plugin 요약정보 출력
Dependencies : 포함된 플러그인 정보 출력
Runtime : 외부 plugin이 자신을 참조 할수 있
는 지 여부와 외부 library(jar)등을 정의
Extensions : 외부 plugin에서 정의한 기능을
확장하기 위한 정의
Extension Points : 자신의 확장점을 정의.
Build : 배포시 포함 해야할 리소스 정의
MANIFEST.MF :
plugin.xml :
build.properties :
실행 환경
실행 할 Product 설정 및 설정 파일을 저장할 디렉 토리 설정
실행 환경 OSGi 옵션 설정 및 JVM
옵션 설정한다.
Ex)
-os ${target.os}
-ws ${target.ws}
-arch ${target.arch}
-nl ${target.nl}
실행할 RCP를 영어로 실행
해 주고 싶을 경우 –nl
en 으로 바꾸어서 테스
트 해볼수 있다.
혹은 –consolelog, -console,
-debug등을 입력하여 osgi
메시지를 확인할 수 있
다.
실행 환경
실행 할 플러그인 및
참조해야 할 플러그인 설
정한다.
실행할 플러그인을
(HelloWorld)를 선택한 후
-> Add Required Plug-Ins
선택한다. 선택하면
HelloWrold Plug-in이 필요
한 플러그인이 자동으로
추가된다.
Validate Plug-ins 를 클릭하여
이상이 없다는 메시지가
출력되면 정상이다.
RUN을 눌러 정상작동 되는지
확인한다.
RCP 생명주기
SWT/JFACE
SWT?(Standard Widget Toolkit)
- 2001년도 발표.
- CPL(Common Public License) 라이선스
소스코드의 변경, 상업적 이용 모두 무료
- OS에 최적화 된 native library 제공
Windows, Linux, Unix, Mac OS
- www.eclipse.org/swt
View and Editor
Viewer Editor
모든 editor가 공유하고 editor영역안에
자신만의 메뉴와 툴바를 가질수 있다. 위치한다. Editor영역안에서 분할은 가능
드래그하여 워크벤치 원도우 밖으로 하지만 벗어날수 없다.
빼낼수 있다. 주메뉴와 공통 툴바를 공유한다
사용자가 변경을 수행해도 바로 저장되
지 않는다. 명시적으로 요청해야한다.
Extension Extension
org.eclipse.ui.views org.eclipse.ui.views
View and Editor
Extensions
ViewPart.java
….
public static String ID = \"HelloWorld.tableView\";
@Override
public void createPartControl(Composite parent) {
final Label helloWorldLabel = new
Label(parent, SWT.NONE);
helloWorldLabel.setText(\"Hello World\");
}
…
Commands and Actions
메뉴나 툴바를 이용하여
사용자에게 행위 부여
-Extension
위치 Extensions 비고
Workbench와 window org.eclipse.ui.actionSets
Viewer org.eclipse.ui.viewActions
Editor org.eclipse.ui.editorActions
Menu org.eclipse.ui.popupMenus
Perspectives
현재 출력 시켜 줄 관점을 정의한다.
-Extensions
org.eclipse.ui.perspectives
Preference Pages
시스템 환경변수 설정
- Extensions
org.eclipse.ui.preferencePages
org.eclipse.core.runtime.preferencs
Dialogs and Wizards
시스템환경 설정
- Extensions
org.eclipse.ui.importWizard
org.eclipse.ui.exportWizard
org.eclipse.ui.newWizard
org.eclipse.ui.propertyPages
Dialogs and Wizards
종류
ErrorDialog
MessageDialog
InputDialog
ProgressMonitorDialog
0 comments
Post a comment