pdev destroys c/c++ operations - eclipse

After a installation of the pdev ( manually cause via "install new software" didn't work ) the normal c/c++ operations have a strange behavior.
e.g.:
c files are not recognised as c files anymore. // no syntax highlighting
an external editor is opening by a double click on a c or c++ file
.
.
.
.
If I remove the files in feuture and plugins all works fine.
Has someone a solution?
Eclipse 3.6.0 Hellios

First such report I've seen...
Have you tried just adding back the c/c++ file associations at window > preferences > general > editors > file associations?

Related

Eclipse : using C coding style for new extensions

I have an Eclipse project with special files extension .m4 which are but C files. how can I open them on Eclipse but using C code style just like choosing langage in notepad ++ ?.
If using Eclipse CDT (Eclipse IDE for C/C++ Developers):
In Window > Preferences: C/C++ > File Types click New...
In the C/C++ File Type dialog enter *.m4 as pattern and choose C Source File as type
Click OK and Apply and Close to close both dialogs

Stop XCode opening GLSL files in eclipse

I'm quite new to OSX and I would like to prevent XCode from opening GLSL files in eclipse.
I've tried changing the default program that opens this extension files in the OS, but i can't select eclipse as an option.
Open Eclipse > Preferences > General > Editors > File Associations
Add .glsl files and choose the default editor for this files. Text editor for example.

Some files are not openable in Eclipse IDE

For unknown reason, files of some types become not open-able in Eclipse IDE, for examples, *.txt, *.am, *.mak. When i right-click on files of those types in Project Explorer view, there is no "Open" or "Open With" menu options shown up like *.cc and *.hh. Those files types were use to be open-able within the same projects.
I confirm that the unopenable file types are associated with respective editors.
What may be wrong with my project or workspace settings?
[2013-09-30-update]
Still find no clue on why all non-c/c++ files cannot be opened by Eclipse IDE running on my Macbook :(
I imported the directories containing the files to create a project on Eclipse. The directories are mounted via Samba.
Any answer will be appreciated!!
Go to windows > preferences > general tab > editors > file associations and check your file type if its not present add them. It will be done.

How can I change Eclipse color scheme for a specific file extension?

I've installed Eclipse Debugger Plugin for v8.
When a Javascript file is brought up from the remote connection, it has a .chromium extension.
Acutal color scheme for *.chromium files is not ideal but I haven't been able to figure out how to change it.
I went into Window > Preferences > General > Editors > File Associations and changed *.chromium file association from "JS Editor" to "JavaScript Editor" (used for .js files edition, and having the color scheme I want.)
However making this change had no effect.
I have the "Eclipse Color Theme" add-on installed and am using Eclipse version 4.2.1.M20120914-1800 running on windows 7.
Once I right clicked on one of the .chromium files and selected "Open With->JavaScript Editor" that file came up with the same editor as the js files. Doing this once must have fixed something in eclipse because now subsequently all .chromium files open up with the other editor.

moved my mingw installation - now eclipse cdt can't resolve the includes

I went to Project->Properties->C/C++ General->Paths and Symbols and indeed the paths are the ones of my old mingwin install. My question is : is there an easy way to tell eclipse to reset the toolchain - for the workspace not per project ? Of course when I installed the CDT having already mingwin in my PATH I did not configure anything manually and I'd like to avoid it now
Thanks
Found an answer here. Go to Project > properties > C/C++ General > Paths and Symbols > GNU C++ - you will notice the paths point to old installation. Clear them in Project > properties > C/C++ Build > Discovery Options > GCC C++ Compiler and press the Clear button in the Automated discovery of paths and symbols box by the Clear discovered entries now label.
Rebuild your project.
Valid for Eclipse Juno.
If someone could explain how to do this not on a per project basis but for the whole workspace (the clean up of the settings) it would be much appreciated (and accepted). The paths are hardcoded in ${workspace_loc}\.metadata\.plugins\org.eclipse.cdt.make.core\<project_name>.sc files - the usual total epic mess with eclipse prefs being scattered all over the place - grr. Would the answer to my original question be to search and replace the paths there (and only there ?) ?
EDIT : Of note are the items in Project > Index menu - maybe a more appropriate way to do the same thing ?
The settings changed in release 8.1 (Eclipse Juno) and can be set globally for all projects. At least that's what they advertised.
In Window > Preferences > C/C++ > Build > Settings, select CDT GCC Built-in Compiler Settings MinGW then Clear Entries and Reset. In my version (CDT 8.2, Eclipse Kepler), the project specific settings Discovery Options does not exist anymore.
Some links about this:
http://wiki.eclipse.org/CDT/User/NewIn81#Scanner_Discovery
http://wiki.eclipse.org/CDT/User/FAQ#What_is_a_Scanner_Discovery.3F
In my specific case, it did work but no for everything, and not for the most important the Path and Symbols settings. I had to manually edit the <project_name>.sc file in the workspace.
Hope this helps someone else.
Matt