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
6f9c3bc8
Kaydet (Commit)
6f9c3bc8
authored
Kas 19, 2012
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#57224: Preserve disabled-state across reinstallDeployedExtensions
Change-Id: I8d65b76fd93b63b51db88b7b09902ba64732dd97
üst
aafe2fcb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
dp_extensionmanager.cxx
desktop/source/deployment/manager/dp_extensionmanager.cxx
+29
-1
No files found.
desktop/source/deployment/manager/dp_extensionmanager.cxx
Dosyayı görüntüle @
6f9c3bc8
...
@@ -65,6 +65,7 @@
...
@@ -65,6 +65,7 @@
#include <list>
#include <list>
#include <boost/unordered_map.hpp>
#include <boost/unordered_map.hpp>
#include <algorithm>
#include <algorithm>
#include <set>
namespace
deploy
=
com
::
sun
::
star
::
deployment
;
namespace
deploy
=
com
::
sun
::
star
::
deployment
;
namespace
lang
=
com
::
sun
::
star
::
lang
;
namespace
lang
=
com
::
sun
::
star
::
lang
;
...
@@ -1234,6 +1235,31 @@ void ExtensionManager::reinstallDeployedExtensions(
...
@@ -1234,6 +1235,31 @@ void ExtensionManager::reinstallDeployedExtensions(
Reference
<
deploy
::
XPackageManager
>
Reference
<
deploy
::
XPackageManager
>
xPackageManager
=
getPackageManager
(
repository
);
xPackageManager
=
getPackageManager
(
repository
);
std
::
set
<
OUString
>
disabledExts
;
{
const
uno
::
Sequence
<
Reference
<
deploy
::
XPackage
>
>
extensions
(
xPackageManager
->
getDeployedPackages
(
xAbortChannel
,
xCmdEnv
));
for
(
sal_Int32
pos
=
0
;
pos
<
extensions
.
getLength
();
++
pos
)
{
try
{
beans
::
Optional
<
beans
::
Ambiguous
<
sal_Bool
>
>
registered
(
extensions
[
pos
]
->
isRegistered
(
xAbortChannel
,
xCmdEnv
));
if
(
!
registered
.
IsPresent
||
registered
.
Value
.
IsAmbiguous
||
!
registered
.
Value
.
Value
)
{
const
OUString
id
=
dp_misc
::
getIdentifier
(
extensions
[
pos
]);
OSL_ASSERT
(
!
id
.
isEmpty
());
disabledExts
.
insert
(
id
);
}
}
catch
(
const
lang
::
DisposedException
&
)
{
}
}
}
::
osl
::
MutexGuard
guard
(
getMutex
());
::
osl
::
MutexGuard
guard
(
getMutex
());
xPackageManager
->
reinstallDeployedPackages
(
xPackageManager
->
reinstallDeployedPackages
(
force
,
xAbortChannel
,
xCmdEnv
);
force
,
xAbortChannel
,
xCmdEnv
);
...
@@ -1250,7 +1276,9 @@ void ExtensionManager::reinstallDeployedExtensions(
...
@@ -1250,7 +1276,9 @@ void ExtensionManager::reinstallDeployedExtensions(
const
OUString
id
=
dp_misc
::
getIdentifier
(
extensions
[
pos
]);
const
OUString
id
=
dp_misc
::
getIdentifier
(
extensions
[
pos
]);
const
OUString
fileName
=
extensions
[
pos
]
->
getName
();
const
OUString
fileName
=
extensions
[
pos
]
->
getName
();
OSL_ASSERT
(
!
id
.
isEmpty
());
OSL_ASSERT
(
!
id
.
isEmpty
());
activateExtension
(
id
,
fileName
,
false
,
true
,
xAbortChannel
,
xCmdEnv
);
activateExtension
(
id
,
fileName
,
disabledExts
.
find
(
id
)
!=
disabledExts
.
end
(),
true
,
xAbortChannel
,
xCmdEnv
);
}
}
catch
(
const
lang
::
DisposedException
&
)
catch
(
const
lang
::
DisposedException
&
)
{
{
...
...
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