To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=60473
                  Issue #:|60473
                  Summary:|OOoBean: no way to terminate office
                Component:|api
                  Version:|OOo 2.0.1
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|jl
              Reported by:|jl





------- Additional comments from [EMAIL PROTECTED] Fri Jan 13 00:56:06 -0800 
2006 -------
The OOoBean should have a method that terminates the office. CAlling 

bean.getDesktop().terminate() 
does not work because OOoBean uses a TerminationListener and vetos the
termination request. The only way to disable the listener is to call
stopOOoConnection but then the bridge is down and terminat() will result in a
DisposedException.
The method could look like this:
    public void terminateOffice()
    {try {
        if (xConnectionListener != null)
            xConnectionListener.end();
            boolean b = getOOoDesktop().terminate();
           } catch (java.lang.Exception e) {
         
     }

The method should also do some cleanup in the bean. terminate could eventually
throw a DisposedException, because the terminate call will problaly cause a
dispose call to the bridge. Need to clarify this.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to