public void run() { try { doMonitor(); } catch (Exception e) { e.printStackTrace(); } } };
public void startService(Long [] id) { try { bc.getBundle(id[0].longValue()).start(); } catch (BundleException e) { e.printStackTrace(); } }
public void stopService(Long [] id) { try { bc.getBundle(id[0].longValue()).stop(); } catch (BundleException e) { e.printStackTrace(); } }
public void windowClosing(WindowEvent e) { try { Activator.context.getBundle().stop(); } catch (BundleException ex) { ex.printStackTrace(); } } });
public void windowClosing(WindowEvent e){ try { Activator.context.getBundle().stop(); } catch (BundleException ex) { ex.printStackTrace(); } }
protected void stopBundle(Bundle bundle) { if (bundle.getState() == Bundle.ACTIVE) { LOG.debug("Stopping bundle %s version %s", bundle.getSymbolicName(), bundle.getVersion()); try { bundle.stop(); } catch (BundleException e) { System.out.println("Failed to start " + bundle.getSymbolicName() + " " + bundle.getVersion() + ". " + e); e.printStackTrace(); } } } }
public void windowClosing(WindowEvent e) { try { Activator.context.getBundle().stop(); } catch (BundleException ex) { ex.printStackTrace(); } } });
public void install(String location) { try { bc.installBundle(location); } catch (BundleException e) { e.printStackTrace(); } }
public void uninstall(Long [] id) { try { bc.getBundle(id[0].longValue()).uninstall(); } catch (BundleException e) { e.printStackTrace(); } }
public void update(Long [] id) { try { bc.getBundle(id[0].longValue()).update(); } catch (BundleException e) { e.printStackTrace(); } }
public void windowClosing(WindowEvent e) { try { context.getBundle().stop(); } catch (BundleException ex) { ex.printStackTrace(); } } });
protected void stopBundle(Bundle bundle) { if (bundle.getState() == Bundle.ACTIVE) { LOG.debug("Stopping bundle %s version %s", bundle.getSymbolicName(), bundle.getVersion()); try { bundle.stop(); } catch (BundleException e) { System.out.println("Failed to start " + bundle.getSymbolicName() + " " + bundle.getVersion() + ". " + e); e.printStackTrace(); } } } }
public void close() { synchronized (BundleFrameworkManager.SHARED_FRAMEWORK_LOCK) { try { _sharedBundleFramework.close(); } catch (BundleException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
@Override public void run() { try { m_context.getBundle(0).stop(); } catch (BundleException e) { e.printStackTrace(); } } }, delay);
@Override protected void processBundle(Bundle bundle) { stopBundle(bundle); if (bundle.getState() != Bundle.UNINSTALLED) { LOG.debug("Uninstalling bundle %s version %s", bundle.getSymbolicName(), bundle.getVersion()); try { bundle.uninstall(); } catch (BundleException e) { System.out.println("Failed to start " + bundle.getSymbolicName() + " " + bundle.getVersion() + ". " + e); e.printStackTrace(); } } }
private void createSystemBundle() { try { systemBundle = new InternalSystemBundle(this); systemBundle.getBundleData().setBundle(systemBundle); } catch (BundleException e) { // fatal error e.printStackTrace(); throw new RuntimeException(NLS.bind(Msg.OSGI_SYSTEMBUNDLE_CREATE_EXCEPTION, e.getMessage()), e); } }
private void createSystemBundle() { try { systemBundle = new InternalSystemBundle(this); systemBundle.getBundleData().setBundle(systemBundle); } catch (BundleException e) { // fatal error e.printStackTrace(); throw new RuntimeException(NLS.bind(Msg.OSGI_SYSTEMBUNDLE_CREATE_EXCEPTION, e.getMessage()), e); } }
@Override public void run() { try { systemModule.lockStateChange(ModuleEvent.UNRESOLVED); try { systemModule.stop(); } finally { systemModule.unlockStateChange(ModuleEvent.UNRESOLVED); } } catch (BundleException e) { e.printStackTrace(); } } });
@Override public void run() { try { systemModule.lockStateChange(ModuleEvent.UNRESOLVED); try { systemModule.stop(); } finally { systemModule.unlockStateChange(ModuleEvent.UNRESOLVED); } } catch (BundleException e) { e.printStackTrace(); } } });
@Override public void run() { try { systemModule.lockStateChange(ModuleEvent.UNRESOLVED); try { systemModule.stop(); } finally { systemModule.unlockStateChange(ModuleEvent.UNRESOLVED); } } catch (BundleException e) { e.printStackTrace(); } } });