|
Програмное открытие объекта среды разработки
|
|||
---|---|---|---|
#18+
Понаписали мы тут кучу библиотек и ещё больше объектов. Чтобы отредактировать какой-нибудь из них, его надо найти в ветвистом дереве объектов. Возможно ли как-то обратиться к PowerBuilderу и заставить его открыть объект, зная его имя? ... |
|||
:
Нравится:
Не нравится:
|
|||
13.10.2006, 10:39 |
|
Програмное открытие объекта среды разработки
|
|||
---|---|---|---|
#18+
через Browser ... |
|||
:
Нравится:
Не нравится:
|
|||
13.10.2006, 11:21 |
|
Програмное открытие объекта среды разработки
|
|||
---|---|---|---|
#18+
ander139Понаписали мы тут кучу библиотек и ещё больше объектов. Чтобы отредактировать какой-нибудь из них, его надо найти в ветвистом дереве объектов. Возможно ли как-то обратиться к PowerBuilderу и заставить его открыть объект, зная его имя? 1. Search в контестном меню таргета 2. В Object Browser найти, потом Edit. Он объект откроет, но узнать где он находится не выйдет :) Хотя судя по теме Вам может быть нужно что-то другое, но я не понял что именно. ... |
|||
:
Нравится:
Не нравится:
|
|||
13.10.2006, 11:21 |
|
Програмное открытие объекта среды разработки
|
|||
---|---|---|---|
#18+
Да, прошу прощения, действительно непонятно изложил суть вопроса. Я о возможности открытия нужного объекта извне среды билдера. Т.е. например я в написанной программе смотрю на какое-нибудь окно и вижу, что оно мне не нравится. Сейчас я могу только получить информацию, что это за окно, но потом приходится его все равно искать. А было бы замечательно нажать волшебную кнопку и сразу оказаться в билдере в открытой форме окна ... |
|||
:
Нравится:
Не нравится:
|
|||
13.10.2006, 11:26 |
|
Програмное открытие объекта среды разработки
|
|||
---|---|---|---|
#18+
ander139Да, прошу прощения, действительно непонятно изложил суть вопроса. Я о возможности открытия нужного объекта извне среды билдера. Т.е. например я в написанной программе смотрю на какое-нибудь окно и вижу, что оно мне не нравится. Сейчас я могу только получить информацию, что это за окно, но потом приходится его все равно искать. А было бы замечательно нажать волшебную кнопку и сразу оказаться в билдере в открытой форме окна SmartJump не подойдет? Она умеет открывать объекты по имени на котором установлен курсор. http://www.romu.com/smartjump.html ну или по крайней мере ее автор знает, как делать то, что Вам надо :) ... |
|||
:
Нравится:
Не нравится:
|
|||
13.10.2006, 14:36 |
|
Програмное открытие объекта среды разработки
|
|||
---|---|---|---|
#18+
Anatoly MoskovskySmartJump не подойдет? Она умеет открывать объекты по имени на котором установлен курсор. http://www.romu.com/smartjump.html ну или по крайней мере ее автор знает, как делать то, что Вам надо :) Она триальная и не умеет обратывать запросы извне. или я просто не понял как. ... |
|||
:
Нравится:
Не нравится:
|
|||
13.10.2006, 15:15 |
|
Програмное открытие объекта среды разработки
|
|||
---|---|---|---|
#18+
может коммандная строка тебе поможет? Код: plaintext
... |
|||
:
Нравится:
Не нравится:
|
|||
13.10.2006, 18:49 |
|
Програмное открытие объекта среды разработки
|
|||
---|---|---|---|
#18+
Кстати , спасибо за интересный вопрос и ответы. Сразу появилась идея : написать bat-ники или скрипты - по выбору меню Far-а или иконки сразу же запускать нужный проект pbman90.chm Using command line arguments You can start PowerBuilder from a command line (or the Windows Run dialog box) and optionally open a workspace, target, and/or painter.These are the painters and tools you can open: Application painter Database painter Data Pipeline painter DataWindow painter Debugger File Editor Function painter Library painter Menu painter Query painter Structure painter User Object painter Window painter The syntax is: directory\pb90.exe {/workspace workspacepath} {/target targetpath} {/painter paintername} {/output outputpath} where directory is the fully qualified name of the directory containing PowerBuilder. You can also add one or more of the following options to the command line after /painter paintername to open a specific object or create a new one: {/library libraryname} {/object objectname} {/inherit objectname} {/new} {/run} {/runonly} {/argument arguments} The syntax statements show the long form of option names. You need only use the initial letter or letters of the option name as long as the option is uniquely identified, as shown in Table 2-1 <pbugp15.htm>. Table 2-1: Command-line options for opening PowerBuilder Option Description /W workspacepath Opens the workspace workspacepath. The default is the most recently used workspace if you have selected the Reopen Workspace on Startup check box in the System Options dialog box. If you have not selected this check box, you must specify the /W option before specifying any other options. /T targetpath Opens the target targetpath. /P paintername Opens the painter paintername. The default is the window that displays when you begin a new PowerBuilder session. The painter name must uniquely identify the painter. You do not have to enter the entire name. For example, you can enter q to open the Query painter and datab to open the Database painter. If you enter the full name, omit any spaces in the name (enter UserObject and DataPipeline, for example).The painter name is not case sensitive. To open the file editor, you could set paintername to FI or fileeditor.All of the following switches must follow /P paintername on the command line, as shown in the examples after the table. /OU outputpath Logs the contents of the Output window to outputpath. /L libraryname Identifies the library that contains the object you want to open. The default is the library specified in the DefLib variable in the [PB] section of the PowerBuilder initialization file. /O objectname Identifies the object, such as a DataWindow object or window, you want to open. /I objectname Identifies the object you want to inherit from. /N Creates a new DataWindow object. /R Runs the DataWindow object specified with /O and allows designing. /RO Runs the DataWindow object specified with /O but does not allow designing. /A arguments Provides arguments for the specified DataWindow object. Examples The following examples assume that the location of the PowerBuilder executable file is in your system path. This example starts a PowerBuilder session by opening the Window painter in the Client PBL in the Math workspace. The output of the session is sent to a file called math.log. The workspace file, the PBL, and the log file are all in the current directory: pb90 /w Math.pbw /l Client.pbl /p window /out math.log Enter this command to start PowerBuilder and open the DataWindow object called d_emp_report in the workspace Emp.pbw: pb90 /w D:\pbws\Emp.pbw /P dataw /O d_emp_report Building from the command line You can also build and deploy a workspace from the command line. For more information, see "Building workspaces" <pbugp10.htm>. ... |
|||
:
Нравится:
Не нравится:
|
|||
13.10.2006, 22:23 |
|
Програмное открытие объекта среды разработки
|
|||
---|---|---|---|
#18+
Вот еще ссылка близко к теме: https://powerbuilder.codexchange.sybase.com/servlets/ProjectDocumentList?folderID=799&expandFolder=799&folderID=799 В списке проектов выбрать "Customizing the PB IDE". В нем читать файл "PB IDE.htm" на предмет запуска паинтеров с указанием метода и строки. ... |
|||
:
Нравится:
Не нравится:
|
|||
24.10.2006, 10:48 |
|
|
start [/forum/topic.php?fid=15&fpage=21&tid=1335765]: |
0ms |
get settings: |
7ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
52ms |
get topic data: |
14ms |
get forum data: |
2ms |
get page messages: |
66ms |
get tp. blocked users: |
2ms |
others: | 308ms |
total: | 471ms |
0 / 0 |