Kaydet (Commit) 6c4a4eb8 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Revert to mis-typed com.sun.star.comp.beans.OOoBean.aquireSystemWindow again

...from 43debfae "General cleanup of
OfficeBeans," as this is a stable interface that should not be broken airily.

Change-Id: I931a611341a1b29346d134c11ecf886fe7767836
üst 98b1cd35
...@@ -444,7 +444,7 @@ public class OOoBean ...@@ -444,7 +444,7 @@ public class OOoBean
was made visible (java.lang.Component.setVisible(true)). was made visible (java.lang.Component.setVisible(true)).
<p> <p>
Another scenario is that a OOoBean contains a document and is removed Another scenario is that a OOoBean contains a document and is removed
from a Java container and later added again. Then acquireSystemWindow needs from a Java container and later added again. Then aquireSystemWindow needs
to be called after the container window is displayed. to be called after the container window is displayed.
<p> <p>
...@@ -454,7 +454,7 @@ public class OOoBean ...@@ -454,7 +454,7 @@ public class OOoBean
@throws NoConnectionException @throws NoConnectionException
if the connection is not established. if the connection is not established.
*/ */
public synchronized void acquireSystemWindow() public synchronized void aquireSystemWindow()
throws throws
SystemWindowException, SystemWindowException,
......
...@@ -301,7 +301,7 @@ public class OOoBeanTest ...@@ -301,7 +301,7 @@ public class OOoBeanTest
} }
} }
/** Test repeated OOoBean.acquireSystemWindow and OOoBean.releaseSystemWindow /** Test repeated OOoBean.aquireSystemWindow and OOoBean.releaseSystemWindow
* calls. * calls.
* @throws Exception * @throws Exception
*/ */
...@@ -315,7 +315,7 @@ public class OOoBeanTest ...@@ -315,7 +315,7 @@ public class OOoBeanTest
for (int i = 0; i < 100; i++) for (int i = 0; i < 100; i++)
{ {
b.releaseSystemWindow(); b.releaseSystemWindow();
b.acquireSystemWindow(); b.aquireSystemWindow();
} }
if (!f.checkUnoFramePosition()) if (!f.checkUnoFramePosition())
{ {
...@@ -418,7 +418,7 @@ public class OOoBeanTest ...@@ -418,7 +418,7 @@ public class OOoBeanTest
bean.releaseSystemWindow(); bean.releaseSystemWindow();
frame.remove(bean); frame.remove(bean);
frame.add(bean, BorderLayout.CENTER); frame.add(bean, BorderLayout.CENTER);
bean.acquireSystemWindow(); bean.aquireSystemWindow();
} }
if (!isWindows()) if (!isWindows())
...@@ -503,7 +503,7 @@ public class OOoBeanTest ...@@ -503,7 +503,7 @@ public class OOoBeanTest
try { try {
frame.add(bean, BorderLayout.CENTER); frame.add(bean, BorderLayout.CENTER);
bean.acquireSystemWindow(); bean.aquireSystemWindow();
frame.validate(); frame.validate();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
......
...@@ -61,7 +61,7 @@ class WriterFrame extends java.awt.Frame ...@@ -61,7 +61,7 @@ class WriterFrame extends java.awt.Frame
pack(); pack();
setBounds(x, y, width, height); setBounds(x, y, width, height);
setVisible(true); setVisible(true);
m_bean.acquireSystemWindow(); m_bean.aquireSystemWindow();
} }
} }
catch (Exception e) catch (Exception e)
...@@ -193,7 +193,7 @@ class WriterFrame extends java.awt.Frame ...@@ -193,7 +193,7 @@ class WriterFrame extends java.awt.Frame
public void addOOoBean() throws Exception public void addOOoBean() throws Exception
{ {
add(m_bean, BorderLayout.CENTER); add(m_bean, BorderLayout.CENTER);
m_bean.acquireSystemWindow(); m_bean.aquireSystemWindow();
validate(); validate();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment