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

Allow multiple Command attributes on a single implementation #22

Open
kzu opened this issue Jun 2, 2014 · 0 comments
Open

Allow multiple Command attributes on a single implementation #22

kzu opened this issue Jun 2, 2014 · 0 comments
Labels

Comments

@kzu
Copy link
Collaborator

kzu commented Jun 2, 2014

This allows multiple commands to use different built-in UIContext constraints, without requiring multiple classes that just inherit from each other for the actual implementation.

i.e.

class Deploy { }

[Command(.... )]
class DeployFromContextMenu : Deploy

[Command(....)]
class DeployFromToolbar : Deploy

This scenario is relevant since toolbar commands have by definition a visibility == true and would therefore turn on visibility of the command on every project. (say it's a Project context menu command).

/cc @victorgarciaaprea

@kzu kzu added the Task label Jun 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant