http://blog.elitecoderz.net/category/development/java/eclipse-java-development/

The usefull information in this special case is: org.apache.commons.lang.exception.NestableError: Java Model Exception: Java Model Status [src/net/project/windows [in project] does not exist] for any reason, eclipse can not open a special file on the workbench. After several tries I found a way to solve this problem:

  • Make a backup of your “.metadata“-folder (very important!!)
  • navigate into the “.plugins“-folder located inside “.metadata
  • delete the folder “org.eclipse.ui.workbench
  • startup eclipse again and check if there is still everything you need
Posted by zennken

Eclipse Remote Debugging

Eclipse 2009. 7. 31. 11:54
Debugging Target 
java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1044 -jar xxx.jar

Eclipse
Debug as Remote Server
참조: http://www.eclipsezone.com/eclipse/forums/t53459.html

Posted by zennken
Run Configuration 기반에서 확인하기
1. 해당 프로젝트의 Run As -> Run Configuration-> Plug-ins에서 다음의 플러그인을 추가
org.eclipse.help.webapp
org.eclipse.help.ui

2.
같은 화면에서 Add Required Plug-ins를 실행한 후, Validate Plug-ins를 수행하여 필요한 플러그인들이 전부 들어 있는지 확인한다.

3. Eclipse내에서 Run Configuration기반으로 실행하여 (Ctrl + F11) 필요한 플러그인들이 모두 추가 되었는지 확인한다.

Product 기반에서 확인하기
4. 해당 프로젝트의 product화면에서 'Testing'항목에서 Synchronize를 시킨 후, Lauch an Eclipse application을 실행하여 빠진 플러그인이 없는 지 확인한다.

5. 빠진 플러그인들이 있으면 feature 프로젝트의 feature.xml-> Plug-ins에 추가한뒤, Dependencies화면에서 'Compute'를 수행한다.

6. 4번항목을 다시 수행하여 문제가 있으면 5번을 다시 반복한다. 문제가 없으면 Product를 Export시킨다.



Posted by zennken
RCP에 추가되는 Plugin에 Help를 추가

1. Pluing.xml -> Extensions -> "Add" -> Extension Wizards -> Help Content -> Primary 선택
2. Plugin.xml -> Build -> html & help관련 xml들을 추가한다.
Posted by zennken

Snippet007FullSelection

Demonstrates how you can use a use inline editing in tables with multiple columns which requires to use SWT.FULL_SELECTION but hiding the selection from the user.

Posted by zennken

JFace TreeViewer에서 item을 더블클릭했을 때, 열고 닫기

public class NodeDoubleClickListener implements IDoubleClickListener {

 @Override
 public void doubleClick(DoubleClickEvent event)
 {
  TreeViewer viewer = (TreeViewer) event.getViewer();
  Object obj = ((IStructuredSelection) event.getSelection()).getFirstElement();
  
  if (viewer.getExpandedState(obj))
  {
   viewer.collapseToLevel(obj, 1);
  }
  else
  {//하위 전체를 열기
    viewer.expandToLevel(obj, AbstractTreeViewer.ALL_LEVELS);
  }
  
 }
}

Posted by zennken

TabItem의 Focus이동

Eclipse/SWT 2009. 2. 19. 21:52
TabFolder.setSelection(tabItemIndex);
TabFolder.setFocus();
출처: http://dev.eclipse.org/newslists/news.eclipse.tools/msg37643.html
 
Posted by zennken
Posted by zennken
Ganymede에서 업데이트하는 중에 EMF, GEF 설치 중에 자꾸 문제를 일으킨다.

eclipse.stu.edu.tw 라는 곳이 문제인데, 업데이트 할 플러그인을 다운로드 받다가 서 버린다.

Update할 mirror 를 내 마음대로 설정하는 법을 찾아봐도 못 찾겠어서 그냥 그 사이트에 접속 자체를 못하게 해서 문제를 피해간다.

Windows XP Pro  c:\winnt\system32\drivers\etc\hosts 파일을 편집했다.
hosts파일에 추가한 내용: 127.0.0.1 eclipse.stu.edu.tw
이제는 업데이트가 잘 된다... :)

Ubuntu의 경우 /etc/hosts 파일에다 위 내용을 추가하면 된다.

Posted by zennken

Eclipse에서는 Data Tools 1.6.1을 설치하기 위한 requirements를 Eclipse 3.3.2 SDK, EMF 2.2.2 (EMF + SDO) and GEF 3.3 가지로 규정하고 있다.

근데, 아무리 설치해도 Preference에서 Data Management 메뉴와 Connectivity, SQL Development view가 안 뜬다...--;;

2% 부족한 부분은 Graphical Modeling Framework (GMF)였다. GMF Runtim과 SDK를 설치해주니까 제대로 뜬다...
Posted by zennken
123

zennken

달력