This is a migrated thread and some comments may be shown as answers.

Extending JustCode functions

1 Answer 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michele
Top achievements
Rank 2
Michele asked on 18 May 2015, 07:32 AM

Hello,

I don't know if JustCode permits to define some custom login to perform on method/properties... since I've started using Catel Framework I was wonderin if It's possible to have when I've an auto property defined as

 

public bool IsActive { get; set; }

to be refactored as

 

public string IsActive
        {
            get { return GetValue<string>(IsActiveProperty); }
            set { SetValue(IsActiveProperty, value); }
        }
 
        public static readonly PropertyData NameProperty = RegisterProperty("IsActive", typeof(bool));

with the justcode suggestion Fix-> Convert the property with backing fields (adding a menu voice)

 Is this possible? (I mean not just this code but something defined custom)

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Svetlozar
Telerik team
answered on 21 May 2015, 07:13 AM
Hi,

Thank you for the great question!

Currently you can not apply custom template to an existing refactoring, but it is an interesting idea that we might implement eventually.

What you can do is to implement your own extension that adds your refactoring to JustCode. You can start with our github examples and take a look at CallOnPropertyChangedFromSetterCommand

Let us know if you have questions, we will be glad to help.

Regards,
Svetlozar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Michele
Top achievements
Rank 2
Answers by
Svetlozar
Telerik team
Share this question
or