Eclipse Preference Page Extension Wizard troubleshooting

Today I tried to add a Preference Page to an RCP application that I’m working on with no luck. After executing the Extension -> Add -> Extension Wizards -> Preference Page I end up with 3 new classes. But 2 of then have compilation errors, they refer to an unexisting PreferenceClass. After googling a bit I found this message in a mailing list describing the same exact problem: >Hello, I ’ve added preference page in my application using plugin.xml extensions template. Then, in a new package, Eclipse created 3 classes (Template preferences page extending FieldEditorPreferencePage, a preference constants class and a preference initializer class). The template preferences page uses a PreferenceClass which doesn’t already exists… I suppose this class has to initialize the preference store, in the preference template class constructor, unsing the plugin instance of the product : “setPreferenceStore(PreferenceClass.getDefault().getPreferenceStore());” I’ve tried to extend the AbstractUIPlugin (I’ve read in differents articles from eclipse.org) to catch the plugin instance when it is created, but without succes (when to catch this single instance during startup of eclispe core runtime ?). Then I’ve found the existance of the WorkBenchPlugin class which holds this static instance, I used it, discarding PreferenceClass , but Eclispe tells me that the use of this class is discouraged. Why ? How is it possible to store the plugin instance at startup ? Thanks a lot for your help, frank ...

June 29, 2007

New views don't show up when using Eclipse RCP setSaveAndRestore

If you add a new view to an Eclipse RCP and when launch it the new view is not there you probably hit the problem described in this CT Arrington’s Weblog post. The IWorkbenchConfigurer.setSaveAndRestore(true) called from your WorkbenchAdvisor can be the source of the problem. The Eclipse RCP platform is trying to restore the perspective from the serialized version stored on disk so it fails to load you new changes. You have several solutions [from the CT Arrington’s Weblog post]. ...

April 23, 2007

cvs [xxxxx]: received broken pipe signal

Today I received this error message when issuing a cvs import to the cvs repository cvs [import failed]: received broken pipe signal after googling a little bit I found this mail thread that led me to the following entry in the cvs manual about loginfo: Note that the filter program must read all of the log information or CVS may fail with a broken pipe signal. so I took a look to the CVSROOT/loginfo and the line there was ...

March 29, 2007

Cygwin problem: Can't access /cygdrive/c

I’ve lost my ability to see my c: drive from cygwin. when I do $ cd c: or $ cd /cygdrive/c all goes ok. But if I do $ ls then it complains ecerulm@rlm-ecb4fe6cda1 /cygdrive/c $ ls ls: reading directory .: No such file or directory I found something at this forum and also here So it seems that I screwed up permission (maybe it related to some automatic windows update). So after checking my username and group are the right on with ...

September 4, 2006