Lexmark X792 Lexmark Document Distributor - Page 14

Manually associating JavaScript files with Eclipse

Page 14 highlights

Preparing for development 14 Perspectives provide predefined layouts and editor sets in Eclipse. The Solution Builder Toolkit includes the Lexmark Solution Development perspective that should be used when developing solutions for LDD 4.x. a Click Window > Open Perspective > Other. b Select Lexmark Solution Development from the list, and then click OK. While using the Lexmark Solution Development perspective, the title bar displays "Lexmark Solution Development," and the LDD Build Log appears on the Workbench. 9 Install an Eclipse plug‑in for editing JavaScript files, such as JSEclipse. To install JSEclipse, add the site http://hyperion.mw.lexmark.com/lddsdk/jseclipse/ in the Available Software dialog in Eclipse. Notes: • A JavaScript plug‑in is not required. However, if you do not install such a plug‑in, you must manually associate JavaScript files with the Eclipse text editor. Automatic completion of LDD script elements is available only with JSEclipse. • The JSEclipse plug‑in requires a workspace folder name with no spaces. 10 Enable the auto‑complete libraries for JSEclipse packaged with the Solution Builder Toolkit: a In Eclipse, click LDD SDK > Update JSEclipse Autocomplete. Note: The menu item is unavailable if JSEclipse is not installed. b When prompted, click Yes to restart Eclipse. Note: When updating plug‑ins, make sure to activate the Lexmark Solution Development perspective. Manually associating JavaScript files with Eclipse You must manually associate JavaScript files with the Eclipse text editor if a plug‑in for editing JavaScript files (such as JSEclipse) is not installed. 1 In Eclipse, click Window > Preferences. 2 In the Preferences dialog, select General > Editors > File Associations. 3 Beside the File types list, click Add. 4 Type *.js, and then click OK. 5 Make sure the new entry for *.js is selected, and then click Add beside the Associated editors list. 6 Make sure the Internal Editors check box is selected, and then select Text Editor from the list. 7 Click OK, and then click OK in the Preferences dialog. Accessing the Lexmark Document Distributor Script Reference Guide 1 In Eclipse SDK, click LDD SDK > Reference Material. 2 On the page that appears, click LDD 4.6 Script Reference for working with LDD 4.6 scripts. The script reference guides for previous versions may also be available. 3 Select topics from the menu at the left side of the page.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82

Perspectives
provide predefined layouts and editor sets in Eclipse. The Solution Builder Toolkit includes the Lexmark
Solution Development perspective that should be used when developing solutions for LDD 4.x.
a
Click
Window
>
Open Perspective
>
Other
.
b
Select
Lexmark Solution Development
from the list, and then click
OK
.
While using the Lexmark Solution Development perspective, the title bar displays “Lexmark Solution
Development,” and the LDD Build Log appears on the Workbench.
9
Install an Eclipse plug
in for editing JavaScript files, such as JSEclipse.
To install JSEclipse, add the site
in the
Available Software dialog in Eclipse.
Notes:
A JavaScript plug
in is not required. However, if you do not install such a plug
in, you must manually
associate JavaScript files with the Eclipse text editor. Automatic completion of LDD script elements is
available only with JSEclipse.
The JSEclipse plug
in requires a workspace folder name with no spaces.
10
Enable the auto
complete libraries for JSEclipse packaged with the Solution Builder Toolkit:
a
In Eclipse, click
LDD SDK
>
Update JSEclipse Autocomplete
.
Note:
The menu item is unavailable if JSEclipse is not installed.
b
When prompted, click
Yes
to restart Eclipse.
Note:
When updating plug
ins, make sure to activate the Lexmark Solution Development perspective.
Manually associating JavaScript files with Eclipse
You must manually associate JavaScript files with the Eclipse text editor if a plug
in for editing JavaScript files (such as
JSEclipse) is not installed.
1
In Eclipse, click
Window
>
Preferences
.
2
In the Preferences dialog, select
General
>
Editors
>
File Associations
.
3
Beside the File types list, click
Add
.
4
Type
*.js
, and then click
OK
.
5
Make sure the new entry for *.js is selected, and then click
Add
beside the Associated editors list.
6
Make sure the
Internal Editors
check box is selected, and then select
Text Editor
from the list.
7
Click
OK
, and then click
OK
in the Preferences dialog.
Accessing the
Lexmark Document Distributor Script Reference
Guide
1
In Eclipse SDK, click
LDD SDK
>
Reference Material
.
2
On the page that appears, click
LDD 4.6 Script Reference
for working with LDD 4.6 scripts. The script reference
guides for previous versions may also be available.
3
Select topics from the menu at the left side of the page.
Preparing for development
14