コード例 #1
0
 public void run(IAction action) {
   if (!(activeSelection.getParent() instanceof BaseGroupComponent)) {
     return;
   }
   IFile modelFile = ((BaseGroupComponent) activeSelection.getParent()).getFile();
   JMSListener listener = (JMSListener) activeSelection.getListener();
   try {
     listener.stop();
     JMSUtils.unsubscribe(listener);
     DataModelManager.getInstance().removeDestination(modelFile, activeSelection.getListener());
   } catch (Exception e) {
     MessageDialog.openError(
         Display.getDefault().getActiveShell(),
         "Failed to Unsubscribe the Listener.",
         e.getMessage());
   }
 }
コード例 #2
0
 private boolean isDurableSubscriber() {
   if (activeSelection instanceof ListenerComponent) {
     return JMSUtils.isDurableSubscriber((JMSListener) activeSelection.getListener());
   }
   return false;
 }