Renesas H8S/2628 Información técnica Pagina 403

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 430
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 402
375
Appendix C Placeholders
This appendix describes how to use the placeholders, a feature provided by several of the HEW components.
C.1 What is a Placeholder?
A placeholder is a special string, inserted into text, which is replaced at some subsequent time for the actual
value. For example, one of the HEW placeholders is $(FULLFILE) which represents a file with a full path.
Suppose that you have an editor in c:\myedit\myeditor.exe, which can take the file to edit as a parameter. When
invoking the editor the following shortcut could be made, e.g.:
c:\myedit\myeditor.exe c:\files\file1.c
if you wanted to open FILE1.C from the directory c:\files. However, what happens if you want the HEW to open
any file through this editor? The problem is that the command above is specific to “c:\files\file1.c”. What we
want to be able to do is to tell the HEW to use the editor specified but to open the file that I have chosen at that
time. To do this, you can replace the specific name of the file for a general placeholder, i.e.:
c:\myedit\myeditor.exe $(FULLFILE)
Now whenever the HEW launches the editor with a file, it knows that it has to replace $(FULLFILE) with the
file you have selected.
C.2 Inserting a Placeholder
Placeholders can only be entered into three specific edit fields within the HEW (figures C.1, C.2 and C.3). There
are four ways a placeholder can be entered:
In the first example, place the insertion cursor at the point you would like to insert the placeholder and then
select the required placeholder from the popup menu to the right of the edit field.
Figure C.1 Placeholder Popup Menu
In the second example, select the required placeholder other than [Custom directory] from the combo box and
specify a sub-directory relative to the directory shown by the placeholder. If you select [Custom directory],
specify an absolute directory path in the [Sub-Directory] field.
Figure C.2 Placeholder Combo Box and Sub-Directory Field
Note: The [Sub-Directory] field may be written as the [File path] field.
In the third example, place the insertion cursor at the point you would like to insert the placeholder, select the
required placeholder from the combo box and then click the [Insert] button.
Vista de pagina 402
1 2 ... 398 399 400 401 402 403 404 405 406 407 408 ... 429 430

Comentarios a estos manuales

Sin comentarios