by coart 2008/08/07 09:43 coart.egloos.com/672929 덧글수 : 0 이 글은 Platform Plug-in Developer Guide의 일부분을 제 관점에서 해석한 것에 지나지 않습니다. 혹시 문제가 된다면, 즉시 삭제 하도록 하겠습니다. 조금더 자세한 내용을 알고 싶거나, 오역으로 인해서 잘 이해가 가지 않는다면 아래의 레퍼런스를 참조하시기 바랍니다. Title : Platform Plug-in Developer Guide Section : The JFace UI framework, Actions and contributions Reference : http://help.eclipse.org/help32/topic/org.eclipse.platform.doc.isv..
by coart 2008/08/06 17:43 coart.egloos.com/670227 덧글수 : 0 Editing domain이 무엇인지에대한 설명은 블로그의 다른글 'Command를 이용하여 EMF model 수정하기'를 참조하기 바랍니다. 다음은 기본적으로 editing domain을 생성하는 코드이다. // Create an adapter factory that yields item providers. adapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE); // Create the command stack that will notify this editor as commands..
by coart 2008/08/06 17:24 coart.egloos.com/670171 덧글수 : 1 XML을 사용하여 EMF의 model을 save하고 load하는 방법을 알아보자. EMF 모델의 구조를 살펴보면, 최상위에는 DocumentRoot가 위치 하게 된다. 따라서 Save나 Load를 할 때 DocumentRoot를 통해서 해야한다. 만약 XMI를 사용한다면, Root를 임으로 설정할 수 있기 때문에 원하는 Root를 선택 할 수 있다. 하지만 XML을 기반으로 EMF 모델을 저장하고 불러오고 싶다면 DocumentRoo를 통해야 한다. 모델의 구조는 다음과 같이 가정한다. Company가 모델의 최상위 node이다. 1. 불러오기(Loading) 일단 불러오는 코드를 살펴 보자. URI ..
by coart 2008/08/06 13:32 coart.egloos.com/669334 덧글수 : 0 EMF.Edit는 EMF moel을 수정할 수 있는 generic command들을 제공한다. 이 Command들은 commond command component를 확장하여 구현되어 있지만, EMF model에 대한 dependency를 가진다. 구현 되어 있는 generic command들은 reflective EObject API를 사용하여 EMF model을 수정한다. 구현 되어 있는 generic command들은 아래와 같다. 1. SetCommand Eobject의 Attribute 나 reference의 값을 설정(Set) 할 떄 사용한다. 2. AddCommand Eobject의 many..
by coart 2008/08/02 15:11 coart.egloos.com/653741 덧글수 : 0 이 글은 Modifying EMF model using Commands를 제 관점에서 해석한 것에 지나지 않습니다. 혹시 문제가 된다면, 즉시 삭제 하도록 하겠습니다. 조금더 자세한 내용을 알고 싶거나, 오역으로 인해서 잘 이해가 가지 않는다면 아래의 레퍼런스를 참조하시기 바랍니다. Title : Modifying EMF model using Commands Reference : http://help.eclipse.org/ganymede/topic/org.eclipse.emf.doc/references/overview/EMF.Edit.html 개요 EMF.edit는 Command framework를 제..
- Total
- Today
- Yesterday