Skip to content

Commit ee09755

Browse files
authored
Merge pull request #151 from OpenSmock/48-dev
#48: remove button status and propose always available button
2 parents db0f671 + d36fb95 commit ee09755

File tree

2 files changed

+34
-12
lines changed

2 files changed

+34
-12
lines changed

README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,31 @@ Molecule Core has no dependencies.
7676

7777
Package 'Molecule-Benchmarks' requires SMark (https://github.com/smarr/SMark), this package contains benchmarks for working on performances.
7878

79-
## <img src="/resources/puce.svg" width="32" height="32" align="bottom"> Molecule Menu
79+
## <img src="/resources/puce.svg" width="32" height="32" align="bottom"> Molecule developer menus
8080

81-
![image](https://github.com/OpenSmock/Molecule/assets/49183340/ef29b8f4-941a-45a6-b41e-bf6db9f78ec6)
81+
Molecule tries to offer a maximum number of Pharo user interface extensions to create and exploit components.
8282

83-
Molecule system can be monitored and controlled from the dedicated `Molecule` library menu.
83+
### Library menu
84+
85+
A molecule component system can be monitored and inspected from a dedicated `Molecule library menu`.
86+
![image](https://github.com/OpenSmock/Molecule/assets/49183340/28380e1b-37be-4456-a376-bb8dac70fd3f)
87+
88+
This menu also includes a special section for `Debug and Tools`, providing access to advanced features.
89+
### Contextuals menu
90+
91+
There are mutiple access to Molecule features from contextual menus.
92+
93+
#### Packages contextual menu:
94+
![image](https://github.com/OpenSmock/Molecule/assets/49183340/1c4f9885-03e0-41dd-90db-eac077b34dcf)
95+
96+
This menu provide `metrics` to have statistics on the Molecule code in selected packages.
97+
![image](https://github.com/OpenSmock/Molecule/assets/49183340/d083047b-ad95-42cf-a7f4-76242d2f6eec)
98+
99+
#### Classes contextual menu:
100+
![image](https://github.com/OpenSmock/Molecule/assets/49183340/ac545c7b-9004-4728-a398-7cca42b0ed54)
101+
102+
This menu provide actions and tools depending a selected classes.
103+
With this menu you can force to `define` a Component, specially if you have deactivated the Molecule dynamic update or if you have a bug during a Component contract changed.
84104

85105
## <img src="/resources/puce.svg" width="32" height="32" align="bottom"> Using Components
86106

src/Molecule-IDE/MolWorld.class.st

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,22 @@ MolWorld class >> menu00MoleculeOn: aBuilder [
6464
{ #category : #menu }
6565
MolWorld class >> menu10SystemStatusOn: aBuilder [
6666
<worldMenu>
67-
| label isRunning |
68-
isRunning := MolComponentManager isRunningComponents.
69-
label := isRunning
70-
ifTrue:['System is running Components']
71-
ifFalse:['No Components are running'].
7267

7368
(aBuilder item: #InspectComponents)
7469
parent: #MoleculeStatus;
75-
enabled: isRunning;
7670
order: 1.0;
77-
action: [ MolComponentManager default homeServices inspect ];
71+
action: [
72+
MolComponentManager isRunningComponents ifTrue:[
73+
"Inspect home services"
74+
MolComponentManager default homeServices inspect
75+
] ifFalse:[
76+
"No component are running"
77+
self inform: 'No components are running'
78+
].
79+
];
7880
icon: MolIcon moleculeComponentIcon;
79-
help: 'Component System Status, click to inspect running components';
80-
label: label
81+
help: 'Component System Status, click to inspect running components. If no components are running there is an popup on the bottom left of the main Pharo windows.';
82+
label: 'Inspect running Components'
8183
]
8284

8385
{ #category : #menu }

0 commit comments

Comments
 (0)