Menu

[r4276]: / trunk / eclipse / README.dev-tips  Maximize  Restore  History

Download this file

32 lines (22 with data), 1.0 kB

 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
DrJava Plug-in for Eclipse Development Tips -----


How to run the plug-in tests:

 - The tests create Eclipse objects, which require extra libraries.
   There is currently no ant target for running the plug-in tests,
   so it's best to run them by hand.
 - To do:
   - Add instructions for specifying these libraries to this document.


How to add a preference to the plug-in:

 - Add a constant to DrJavaConstants
 - In DrJavaPreferencePage:
   - Add a field in createFieldEditors()
 - Add a default value to EclipsePlugin
 - Add an IPropertyChangeListener to the PreferenceStore
   (EclipsePlugin.getDefault().getPreferenceStore())
   - Specifically, in InteractionsController:
     - Add a variable to remember preference
     - Make action dependent on variable
     - Add a line to _updatePreferences


 Special note for font preferences:
  - Fonts are added to FontRegistry in plugin.xml (via an extension point)
  - Use JFaceResources to access the FontRegistry
    (see InteractionsController, InteractionsView)

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.