Skip to content

first UI support for assemblies#162

Merged
guillep merged 10 commits into
pharo-pkg:masterfrom
guillep:feature/156
Jul 30, 2018
Merged

first UI support for assemblies#162
guillep merged 10 commits into
pharo-pkg:masterfrom
guillep:feature/156

Conversation

@guillep
Copy link
Copy Markdown
Collaborator

@guillep guillep commented Jul 26, 2018

Fix #156

  • add assembly
  • remove assembly
  • add package assembly

{ #category : #execution }
PBCreateAssemblyCommand class >> execute [

^ self name , ' Assembly'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What it means?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this looks wrong, probably I did a mistake because of Calypso saving dirty methods...

CGOCreatePackageInProjectCommand >> createSystemPackage [
PBCreatePackageInProjectCommand >> createSystemPackage [
SycAddNewPackageCommand new
systemEnvironment: toolContext systemEnvironment;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally commands should not reference context. They should be self contained objects and extract required collaborators from context. Here it means that command should have variable #systemEnvironment.
But I did not look deeply. In some cases keeping context is suitable workaround.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a reason against nor in favour. Can you elaborate?

@@ -0,0 +1,207 @@
Class {
#name : #PBSelectPackagesDialog,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notice that there is reusable search dialog in Calypso. For packages it would be:

   ^browser searchDialog requestSingleObject: 'Select package' from: ClyAllPackages sorted

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not useful for Cargo. I want to control what are the packages that are shown, that dialog is supposed to be reusable in different context and not only show system packages.

@guillep
Copy link
Copy Markdown
Collaborator Author

guillep commented Jul 30, 2018

@guillep guillep merged commit 9800b91 into pharo-pkg:master Jul 30, 2018
@guillep guillep removed the toReview label Jul 30, 2018
@guillep guillep deleted the feature/156 branch July 30, 2018 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants