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
7158ec75
Kaydet (Commit)
7158ec75
authored
Ock 31, 2003
tarafından
Stephan Wunderlich
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CHG: CHG: using AnyConverter instead of simple cast
üst
e91b28c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
_XFramesSupplier.java
qadevOOo/tests/java/ifc/frame/_XFramesSupplier.java
+24
-5
No files found.
qadevOOo/tests/java/ifc/frame/_XFramesSupplier.java
Dosyayı görüntüle @
7158ec75
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: _XFramesSupplier.java,v $
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
* last change:$Date: 2003-01-
27 18:10:18
$
* last change:$Date: 2003-01-
31 12:15:46
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -65,6 +65,9 @@ import com.sun.star.container.XIndexAccess;
import
com.sun.star.frame.XFrame
;
import
com.sun.star.frame.XFramesSupplier
;
import
lib.MultiMethodTest
;
import
com.sun.star.uno.Any
;
import
com.sun.star.uno.AnyConverter
;
import
com.sun.star.uno.Type
;
/**
* Testing <code>com.sun.star.frame.XFramesSupplier</code>
...
...
@@ -111,7 +114,13 @@ public class _XFramesSupplier extends MultiMethodTest {
for
(
int
i
=
0
;
i
<
frames
.
getCount
();
i
++)
{
XFrame
fr
=
null
;
try
{
fr
=
(
XFrame
)
frames
.
getByIndex
(
i
)
;
fr
=
null
;
try
{
fr
=
(
XFrame
)
AnyConverter
.
toObject
(
new
Type
(
XFrame
.
class
),
frames
.
getByIndex
(
i
));
}
catch
(
com
.
sun
.
star
.
lang
.
IllegalArgumentException
iae
)
{
log
.
println
(
"Can't convert any"
);
}
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
log
.
println
(
"Exception occured while calling getByIndex() method :"
)
;
e
.
printStackTrace
(
log
)
;
...
...
@@ -192,9 +201,19 @@ public class _XFramesSupplier extends MultiMethodTest {
if
(
frames
.
getCount
()
>
1
)
{
try
{
if
(
activeIdx
!=
0
)
sFrame
=
(
XFrame
)
frames
.
getByIndex
(
0
)
;
try
{
sFrame
=
(
XFrame
)
AnyConverter
.
toObject
(
new
Type
(
XFrame
.
class
),
frames
.
getByIndex
(
0
));
}
catch
(
com
.
sun
.
star
.
lang
.
IllegalArgumentException
iae
)
{
log
.
println
(
"Can't convert any"
);
}
else
sFrame
=
(
XFrame
)
frames
.
getByIndex
(
1
)
;
try
{
sFrame
=
(
XFrame
)
AnyConverter
.
toObject
(
new
Type
(
XFrame
.
class
),
frames
.
getByIndex
(
1
));
}
catch
(
com
.
sun
.
star
.
lang
.
IllegalArgumentException
iae
)
{
log
.
println
(
"Can't convert any"
);
}
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
log
.
println
(
"Exception occured while calling getByIndex() method :"
)
;
e
.
printStackTrace
(
log
)
;
...
...
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