플러그인을 위한 Java 클래스 정의

이 태스크 정보

플러그인을 위해 Java 클래스를 정의하려면 다음을 수행합니다.

프로시저

  1. 패키지 탐색기 보기에서 프로젝트를 마우스 오른쪽 단추로 클릭하십시오.
  2. 새로 작성 > 클래스를 선택하십시오.
  3. 새 Java 클래스 창이 표시되면 클래스 이름을 지정하고 수퍼 클래스에 대해 RPUserPlugin을 입력한 후 상속된 추상 메소드 선택란이 선택되어 있는지 확인하십시오.

결과

플러그인 클래스가 다음 메소드를 구현해야 합니다.

//called when the plug-in is loaded
public abstract void RhpPluginInit(final IRPApplication rhpApp);
//called when the plug-in's menu item under the "Tools" menu is selected
public void RhpPluginInvokeItem();
//called when the plug-in popup menu (if applicable) is selected
public void OnMenuItemSelect(String menuItem);
//called when the plug-in popup trigger (if applicable) is fired
public void OnTrigger(String trigger);
//called when the project is closed - if true is returned, the plug-in will be
unloaded
public boolean RhpPluginCleanup();
//called when Rhapsody exits
public void RhpPluginFinalCleanup();

피드백