Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
63ed9cb4
Kaydet (Commit)
63ed9cb4
authored
Mar 27, 2003
tarafından
Stephan Wunderlich
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CHG: added some debug information
üst
2ad88e66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
16 deletions
+32
-16
AccessibleCheckBox.java
qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java
+32
-16
No files found.
qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java
Dosyayı görüntüle @
63ed9cb4
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: AccessibleCheckBox.java,v $
* $RCSfile: AccessibleCheckBox.java,v $
*
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
*
* last change: $Date: 2003-0
1-27 18:19:33
$
* last change: $Date: 2003-0
3-27 11:59:51
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -121,6 +121,7 @@ public class AccessibleCheckBox extends TestCase {
...
@@ -121,6 +121,7 @@ public class AccessibleCheckBox extends TestCase {
XTextDocument
xTextDoc
=
null
;
XTextDocument
xTextDoc
=
null
;
XAccessibleAction
action
=
null
;
XAccessibleAction
action
=
null
;
DiagThread
psDiag
=
null
;
/**
/**
* Opens 'Insert Table' dialog using document dispatch provider
* Opens 'Insert Table' dialog using document dispatch provider
...
@@ -131,8 +132,22 @@ public class AccessibleCheckBox extends TestCase {
...
@@ -131,8 +132,22 @@ public class AccessibleCheckBox extends TestCase {
protected
TestEnvironment
createTestEnvironment
(
protected
TestEnvironment
createTestEnvironment
(
TestParameters
Param
,
PrintWriter
log
)
{
TestParameters
Param
,
PrintWriter
log
)
{
log
.
println
(
"Creating text document"
);
if
(
xTextDoc
==
null
)
{
try
{
SOfficeFactory
SOF
=
SOfficeFactory
.
getFactory
(
Param
.
getMSF
());
xTextDoc
=
SOF
.
createTextDoc
(
null
);
}
catch
(
com
.
sun
.
star
.
uno
.
Exception
e
)
{
throw
new
StatusException
(
"Can't create document"
,
e
);
}
}
shortWait
();
XInterface
oObj
=
null
;
XInterface
oObj
=
null
;
log
.
println
(
"getting toolkit"
);
try
{
try
{
oObj
=
(
XInterface
)
Param
.
getMSF
().
createInstance
oObj
=
(
XInterface
)
Param
.
getMSF
().
createInstance
(
"com.sun.star.awt.Toolkit"
)
;
(
"com.sun.star.awt.Toolkit"
)
;
...
@@ -147,19 +162,23 @@ public class AccessibleCheckBox extends TestCase {
...
@@ -147,19 +162,23 @@ public class AccessibleCheckBox extends TestCase {
shortWait
();
shortWait
();
DiagThread
psDiag
=
new
DiagThread
(
xTextDoc
,
Param
.
getMSF
());
log
.
println
(
"Opening Dialog in second thread"
);
psDiag
=
new
DiagThread
(
xTextDoc
,
Param
.
getMSF
());
psDiag
.
start
();
psDiag
.
start
();
AccessibilityTools
at
=
new
AccessibilityTools
();
AccessibilityTools
at
=
new
AccessibilityTools
();
shortWait
();
shortWait
();
log
.
println
(
"Getting the active TopWindow"
);
XWindow
xWindow
=
(
XWindow
)
XWindow
xWindow
=
(
XWindow
)
UnoRuntime
.
queryInterface
(
XWindow
.
class
,
tk
.
getActiveTopWindow
());
UnoRuntime
.
queryInterface
(
XWindow
.
class
,
tk
.
getActiveTopWindow
());
XAccessible
xRoot
=
at
.
getAccessibleObject
(
xWindow
);
XAccessible
xRoot
=
at
.
getAccessibleObject
(
xWindow
);
at
.
printAccessibleTree
(
log
,
xRoot
);
//
at.printAccessibleTree(log, xRoot);
oObj
=
at
.
getAccessibleObjectForRole
oObj
=
at
.
getAccessibleObjectForRole
(
xRoot
,
AccessibleRole
.
PUSHBUTTON
,
"Cancel"
);
(
xRoot
,
AccessibleRole
.
PUSHBUTTON
,
"Cancel"
);
...
@@ -198,28 +217,25 @@ public class AccessibleCheckBox extends TestCase {
...
@@ -198,28 +217,25 @@ public class AccessibleCheckBox extends TestCase {
* <code>createTestEnvironment()</code>.
* <code>createTestEnvironment()</code>.
*/
*/
protected
void
cleanup
(
TestParameters
Param
,
PrintWriter
log
)
{
protected
void
cleanup
(
TestParameters
Param
,
PrintWriter
log
)
{
log
.
println
(
" closing dialog "
);
try
{
try
{
log
.
println
(
"closing dialog"
);
action
.
doAccessibleAction
(
0
);
action
.
doAccessibleAction
(
0
);
log
.
println
(
"interrupting corresponding Thread"
);
psDiag
.
interrupt
();
log
.
println
(
"closing the document"
);
xTextDoc
.
dispose
();
log
.
println
(
"reinitialize the variable"
);
xTextDoc
=
null
;
}
catch
(
com
.
sun
.
star
.
lang
.
IndexOutOfBoundsException
ioe
)
{
}
catch
(
com
.
sun
.
star
.
lang
.
IndexOutOfBoundsException
ioe
)
{
log
.
println
(
"Couldn't close dialog"
);
log
.
println
(
"Couldn't close dialog"
);
}
catch
(
com
.
sun
.
star
.
lang
.
DisposedException
de
)
{
}
catch
(
com
.
sun
.
star
.
lang
.
DisposedException
de
)
{
log
.
println
(
"Dialog already disposed"
);
log
.
println
(
"Dialog already disposed"
);
}
}
log
.
println
(
" disposing doc "
);
xTextDoc
.
dispose
();
}
}
/**
* Opens new writer document.
*/
protected
void
initialize
(
TestParameters
Param
,
PrintWriter
log
)
{
protected
void
initialize
(
TestParameters
Param
,
PrintWriter
log
)
{
try
{
SOfficeFactory
SOF
=
SOfficeFactory
.
getFactory
(
Param
.
getMSF
());
xTextDoc
=
SOF
.
createTextDoc
(
null
);
}
catch
(
com
.
sun
.
star
.
uno
.
Exception
e
)
{
throw
new
StatusException
(
"Can't create document"
,
e
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment