이클립스의 Editor View에서만 팝업 메뉴를 활성화하고자 찾아본 결과

다음과 같았다.

 

<command commandId="org.my.command.IdCommand"
      id="org.my.popup.IdCommand">
   <visibleWhen>
      <with variable="selection">
         <instanceof value="org.eclipse.jface.text.iTextSelection"/>
      </with>
   </visibleWhen>
참조 사이트 : stackoverflow.com/questions/1694748/adding-item-to-eclipse-text-viewer-context-menu
Posted by 테리
: