com.sun.star.lang.DisposedException Java Examples
The following examples show how to use
com.sun.star.lang.DisposedException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ManagedOfficeProcess.java From kkFileViewOfficeEdit with Apache License 2.0 | 5 votes |
private void doStopProcess() { try { XDesktop desktop = OfficeUtils.cast(XDesktop.class, connection.getService(OfficeUtils.SERVICE_DESKTOP)); desktop.terminate(); } catch (DisposedException disposedException) { // expected } catch (Exception exception) { // in case we can't get hold of the desktop doTerminateProcess(); } doEnsureProcessExited(); }
Example #2
Source File: ManagedOfficeProcess.java From kkFileView with Apache License 2.0 | 5 votes |
private void doStopProcess() { try { XDesktop desktop = OfficeUtils.cast(XDesktop.class, connection.getService(OfficeUtils.SERVICE_DESKTOP)); desktop.terminate(); } catch (DisposedException disposedException) { // expected } catch (Exception exception) { // in case we can't get hold of the desktop doTerminateProcess(); } doEnsureProcessExited(); }
Example #3
Source File: ManagedOfficeProcess.java From wenku with MIT License | 5 votes |
private void doStopProcess() { try { XDesktop desktop = OfficeUtils.cast(XDesktop.class, connection.getService(OfficeUtils.SERVICE_DESKTOP)); desktop.terminate(); } catch (DisposedException disposedException) { // expected } catch (Exception exception) { // in case we can't get hold of the desktop doTerminateProcess(); } doEnsureProcessExited(); }