AXForum  
Вернуться   AXForum > Microsoft Dynamics AX (Axapta) > DAX Blogs
Зарегистрироваться Правила Справка Пользователи Блоги Сообщения за день Поиск Все разделы прочитаны Проекты Забыли пароль?

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 08.02.2007, 22:31  Ссылка на сообщение   #1  
Blog bot is offline
Blog bot
Участник
 
4,298 / 300 (19) ++++++
Регистрация: 28.10.2006
Kashperuk Ivan: AxGoToDeclarationI haven't posted in a while. W...

Источник: http://kashperuk.blogspot.com/2007/0...posted-in.html
==============

AxGoToDeclaration


I haven't posted in a while. Work, work...

Well, meanwhile, I made some new handy tool for Axapta developers.

Purpose
Finds the declaration of the selected variable and opens the editor on the line with the declaration

Functional capabilities
Searches the current method first. If the declaration is not found, goes to the root of the object and looks in the classDeclaration method. If still not found, continues on with the parent of the class.

Implementation
In order to use the tool simply import the project
HERE
and post the following code as a new method of the EditorScripts class:

void AOT_goToDeclaration(Editor e)
{
AxGoToDeclaration goToDeclEngine;
;
goToDeclEngine = new AxGoToDeclaration(e);
goToDeclEngine.goToDeclaration();
}




Known Issues:
  • ParserClass does not parse the constructor (new) method. So variable declarations cannot be found from this method.
  • Does not find variables this, element, etc.
  • Does not find objects with AutoDeclaration set to Yes on forms, nor the datasources
What is planned for upgrade:
  1. Open AOT objects when this or element is selected (table, class, form, etc)
  2. Open AOT objects with the property sheet for objects with AutoDeclaration = Yes
  3. Include global classes into the search
Credits Thanks to
  • AndyD - for the timer AOT edit code and the selectedLine method modifications
  • MaxBelugin - for ParserClass description
Feedback
If you have any comments or suggestions, please feel free to contact me.

Источник: http://kashperuk.blogspot.com/2007/0...posted-in.html
За это сообщение автора поблагодарили: alex55 (-1).
Старый 06.06.2010, 16:47  Ссылка на сообщение   #2  
alex55 is offline
alex55
MCBMSS
MCBMSS
 
158 / 75 (3) ++++
Регистрация: 13.02.2007
Адрес: Москва
Иван, извини, на самом деле хотел +1 поставить, но что-то не сработало
Старый 07.06.2010, 00:06  Ссылка на сообщение   #3  
kashperuk is offline
kashperuk
SDET II, Dynamics AX
Аватар для kashperuk
Лучший по профессии 2009
MCBMSS
Соотечественники
Сотрудники Microsoft Dynamics
 
3,661 / 1332 (52) ++++++++
Регистрация: 30.05.2004
Адрес: Копенгаген, Дания
это все равно боту пошло, так что "knock yourself out", как говорится.
 

Реклама

Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Kashperuk Ivan: Microsoft Dynamics AX 4.0 data model overview Blog bot DAX: База знаний и проекты 72 27.07.2009 08:15
Kashperuk Ivan: Microsoft Dynamics AX 2009 Keyboard shortcuts Blog bot DAX Blogs 0 11.07.2008 00:05
Kashperuk Ivan: Find all reports with datasources innerjoined 1:n Blog bot DAX Blogs 2 09.03.2008 14:05
Kashperuk Ivan: Buy MorphX IT in Russian Blog bot DAX Blogs 6 13.04.2007 17:48
Kashperuk Ivan: AxCreateNewProject tool Version 1.2I made some a... Blog bot DAX Blogs 0 26.01.2007 05:51
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Рейтинг@Mail.ru Rambler's Top100
Часовой пояс GMT +4, время: 14:41.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.