我有一个 Rhapsody 的 java 插件,但不知何故它没有加载代码示例:
IRPApplication app = null;
public class ProjectHistory extends RPUserPlugin{
@Override
public void RhpPluginInit(final IRPApplication rpyApplication) {
app = rpyApplication;
}
}
帮助文件如下:
#REM: Definition of the plug-in
name16=Compare...
#REM: the class that implements Rhapsody's callbacks
JavaMainClass16=com.example.rhy.ProjectHistory
#REM: Class paths your application use
JavaClassPath16=./plugins/profile.jar;./plugins/GenericLib.jar;./plugins/java_lib/api.jar
#REM: Tells Rhapsody that this helper is actually a plug-in
isPlugin16=1
isVisible16=1
#REM: Definition of the pup-up menu that trigger the plugin
name17=Compare...
#REM: Tells Rhapsody that this helper actually invokes a plug-in
isPluginCommand17=1
#REM: The command is actually the plug-in name
command17=Compare...
#REM: to create a pop-up menu item on OMDs
applicableTo17=Package
isVisible17=1
但是插件甚至没有加载。日志文件中没有错误
Rhapsody 版本是 8.1.4,用于编译的 Java 版本是 1.8