Skip to content

Package view for editing package comments #8

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/GToolkit-Coder-Extensions/RPackage.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,33 @@ RPackage >> gtBrowseFrom: anElement [
openInPagerFrom: anElement) maximized
]

{ #category : #'*GToolkit-Coder-Extensions' }
RPackage >> gtCommentFor: aView context: aPhlowContext [
<gtPackageView>
(aPhlowContext isKindOf: GtPhlowExecutionContext) ifFalse: [ ^ aView empty ].
aPhlowContext hasPackageCoder ifFalse: [ ^ aView empty ].
^ aView explicit
priority: 10.8;
title: 'Comment';
tooltip: 'Package comment';
disableAsync;
stencil: [ (GtDocumenter forPackage: self) ];
actionButtonIcon: BrGlamorousVectorIcons accept
tooltip: 'Save document'
action: [ :aToggle :aTab | aTab viewContentElement save ];
actionToggleIcon: BrGlamorousIcons edit
tooltip: 'Show/Hide Markups'
activated: [ :aToggle :aTab | aTab viewContentElement showMarkup ]
deactivated: [ :aToggle :aTab | aTab viewContentElement hideMarkup ];
actionButtonIcon: BrGlamorousVectorIcons remove
tooltip: 'Decrease font size'
action: [ :aToggle :aTab | aTab viewContentElement decreaseNormalFontSize ];
actionButtonIcon: BrGlamorousVectorIcons add
tooltip: 'Increase font size'
action: [ :aToggle :aTab | aTab viewContentElement increaseNormalFontSize ];
actionUpdateButtonTooltip: 'Update class comment'
]

{ #category : #'*GToolkit-Coder-Extensions' }
RPackage >> gtDefinedClassesFor: aView context: aPhlowContext [
<gtPackageView>
Expand Down