get the names of the currently loaded mcz files

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

get the names of the currently loaded mcz files

Sabine Manaa
Hi,

how can I get the names of the currently in my image loaded mcz files of a certain package?

Example:
The name of one of my packages is "RKA24-View". The currently loaded package version is "RKA24-View-SabineKnoefel.390.mcz"
==> I want to call a method with parameter "RKA24-View" and get "RKA24-View-SabineKnoefel.390.mcz" as result.

Regards

Sabine
Reply | Threaded
Open this post in threaded view
|

Re: get the names of the currently loaded mcz files

Sven Van Caekenberghe-2
Here is something I sometimes use:

(MCWorkingCopy allManagers asSortedCollection: [ :a :b | a packageName <= b packageName ]) collect: #description.

Have a look at WAVersionUploader or WASeasideVersionStatus.

But I guess that there are possibilities with Ring as well.

On 10 Jul 2014, at 15:18, Sabine Knöfel <[hidden email]> wrote:

> Hi,
>
> how can I get the names of the currently in my image loaded mcz files of a
> certain package?
>
> Example:
> The name of one of my packages is "RKA24-View". The currently loaded package
> version is "RKA24-View-SabineKnoefel.390.mcz"
> ==> I want to call a method with parameter "RKA24-View" and get
> "RKA24-View-SabineKnoefel.390.mcz" as result.
>
> Regards
>
> Sabine
>
>
>
> --
> View this message in context: http://forum.world.st/get-the-names-of-the-currently-loaded-mcz-files-tp4767402.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>


Reply | Threaded
Open this post in threaded view
|

Re: get the names of the currently loaded mcz files

Sabine Manaa
Hi Sven,
great, this helps! Thank you
Sabine


2014-07-10 15:33 GMT+02:00 Sven Van Caekenberghe-2 [via Smalltalk] <[hidden email]>:
Here is something I sometimes use:

(MCWorkingCopy allManagers asSortedCollection: [ :a :b | a packageName <= b packageName ]) collect: #description.

Have a look at WAVersionUploader or WASeasideVersionStatus.

But I guess that there are possibilities with Ring as well.

On 10 Jul 2014, at 15:18, Sabine Knöfel <[hidden email]> wrote:

> Hi,
>
> how can I get the names of the currently in my image loaded mcz files of a
> certain package?
>
> Example:
> The name of one of my packages is "RKA24-View". The currently loaded package
> version is "RKA24-View-SabineKnoefel.390.mcz"
> ==> I want to call a method with parameter "RKA24-View" and get
> "RKA24-View-SabineKnoefel.390.mcz" as result.
>
> Regards
>
> Sabine
>
>
>
> --
> View this message in context: http://forum.world.st/get-the-names-of-the-currently-loaded-mcz-files-tp4767402.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>





If you reply to this email, your message will be added to the discussion below:
http://forum.world.st/get-the-names-of-the-currently-loaded-mcz-files-tp4767402p4767405.html
To start a new topic under Pharo Smalltalk Users, email [hidden email]
To unsubscribe from Pharo Smalltalk Users, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: get the names of the currently loaded mcz files

Sean P. DeNigris
Administrator
In reply to this post by Sven Van Caekenberghe-2
Sven Van Caekenberghe-2 wrote
(MCWorkingCopy allManagers asSortedCollection: [ :a :b | a packageName <= b packageName ]) collect: #description.
This is useful enough to go somewhere more permanent... any ideas?
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: get the names of the currently loaded mcz files

Tudor Girba-2
In the inspector :).

When using the GTInspector, if you inspect MCWorkingCopy, you will get the list of all managers in a dedicated tab.

Doru


On Mon, Jul 14, 2014 at 1:08 AM, Sean P. DeNigris <[hidden email]> wrote:
Sven Van Caekenberghe-2 wrote
> (MCWorkingCopy allManagers asSortedCollection: [ :a :b | a packageName <=
> b packageName ]) collect: #description.

This is useful enough to go somewhere more permanent... any ideas?



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/get-the-names-of-the-currently-loaded-mcz-files-tp4767402p4767667.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.




--

"Every thing has its own flow"