CSstudent
CSstudent

Reputation: 43

Edit some preferences in Eclipse using Java

I want to edit the following preferences using the java code

  1. Eclipse-Preferences-General-Workspace-Text file encoding-Others-UTF-8
  2. Run dialog-Run configurations-Common tab-encoding-Others-UTF-8
  3. Run dialog-Run configurations-Arguments tab-write '-Dfile.encoding=UTF-8' in the 'VM Arguments' text box
  4. Add '-Dfile.encoding=UTF-8' in 'eclipse.ini' file in the Eclipse folder

I need to have a method that adjusts the 4 things when it's called so I want to adjust the preferences above using java not manualyy .. how can I do that ?

Upvotes: 1

Views: 95

Answers (1)

harschware
harschware

Reputation: 13404

You need to learn how to do Eclipse Plugin Development and then getting at the various property pages and manipulating them will require you to get familiar with the Eclipse RCP, and you will need to know how to query the workspace etc. Look at the book Eclipse Plug-ins

Upvotes: 1

Related Questions