Archive

Author Archive

How to load stored settings from an Options page inside of a plug-in

February 25th, 2011 Comments off

This is the third and the latest part of a topic about adding an options page into your DXCore plug-in. See the other parts, to learn more:

  1. Adding and designing an options page
  2. Implementing the options page settings storing logic
  3. Using settings from an options page inside a plug-in (this post)

In this post, we are going to read plug-in settings from the decoupled storage and update them when they are changed on the options page.

Read more…

How to implement the Options page logic for storing settings

February 25th, 2011 Comments off

Here’s the second part of the post about adding an options page into your DXCore plug-in. See the other parts, to learn more:

  1. Adding and designing an options page
  2. Implementing the options page settings storing logic (this post)
  3. Using settings from an options page inside a plug-in

Read more…

How to create a new plug-in Options page

February 25th, 2011 Comments off

This topic is about adding a DXCore Options page. It has three parts to make it easier to read and follow:

  1. Adding and designing an options page (this post)
  2. Implementing the options page settings storing logic
  3. Using settings from an options page inside a plug-in

Here’s the first part of the topic, and the steps we need to accomplish, to add an options page to your plug-in, and make it work:

  1. Run the options page wizard
  2. Layout controls on the page
  3. Add runtime behavior code for controls, if necessary

Read more…

DXCore Services – Resources

February 19th, 2011 2 comments

Resources service of DXCore contains shared resource images and drawing methods for use in plug-ins.

Methods of this service:

Read more…

DXCore Services – File

February 19th, 2011 Comments off

File service provides methods for file reading, writing, and editing.

Methods of this service:

Read more…

How to add new contracts for the Add Contract code provider

February 18th, 2011 Comments off

Note, this article has been moved to the official DevExpress Support Center site. Please refer to the moved article as it might have further updates or additional comments. Thank you.

The Add Contract code provider adds conditions for validation of the active method parameters. The Extensible architecture of the DXCore allows you to add new contracts to the list of available contracts using the ContractProvider component inside your plug-in.

The sample below is a rough implementation for the suggestions registered in the DevExpress Support Center database:

  • S133903 Add Contract – Use IsNullOrWhiteSpace on contracts
  • S136474 Add Contract – Allow it to generate code for single parameter

Read more…

Refactorings – Inline Method

February 17th, 2011 Comments off

The Inline Method refactoring lets you move the method’s body into the body of its callers and remove the method declaration, if needed. Inline Method is helpful when you have a group of methods that seem badly factored. You can inline them all into one big method, and then re-extract the methods.

Another reason to use Inline Method is that sometimes you do come across a method in which the body is as clear as the name. Or, you refactor the body of the code into something that is just as clear as the name. When this happens, you should then get rid of the method.

Read more…

Unbound Actions – Clear Project Cache

February 16th, 2011 Comments off

The Clear Project Cache action invalidates the IDE Tools cache for the current solution. The solution cache represents an on-disk cache, containing important information for all projects for every solution you had opened, such as metadata, project symbols, code issues stuff, etc. This cache is built for every solution while it is opened and parsed, and maintained by DXCore automatically.

Read more…