Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coder Stencil Customization #1539

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seandenigris
Copy link
Contributor

Allows you to e.g. open a Coder on a particular package:

coderStencil := GtCoderStencil new coder: (GtCoder forPackage: (RPackageOrganizer default packageNamed: 'MyPackage-Core')); yourself.
self
	showSpaceWithTitle: 'Coder'
	with: coderStencil create
	from: card 

Allows you to e.g. open a Coder on a particular package:
```smalltalk
coderStencil := GtCoderStencil new coder: (GtCoder forPackage: (RPackageOrganizer default packageNamed: 'MyPackage-Core')); yourself.
self
	showSpaceWithTitle: 'Coder'
	with: coderStencil create
	from: card 
```
@chisandrei
Copy link
Member

A different way to get the same behaviour would be to create a dedicated stencil that gets a package and returns a coder on that package. Something like GtPackageCoderStencil forPackage: (RPackageOrganizer default packageNamed: 'MyPackage-Core'). Ideally with stencils we should be able to call create as many times as we want to get new instances.

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