How to remove C/C++ perspective from Eclipse - eclipse

Some time ago I used Eclipse for C++ development (Linux). Later I uninstalled Eclipse, and then installed it again for Java development. List of available perspectives still contains C/C++ perspective, which is not used. How can I delete this perspective from the list?
Note: Windows - Preferences - Perspectives - C/C++ - Delete doesn't work (Delete button is disabled). Maybe I need to uninstall something else? In any case, I don't need anything related to C/C++ in Eclipse.

You can uninstall CDT (Eclipse's plugin for C/C++ development).

From Eclipse CDT Wiki:
Shutdown the eclipse shell that is running CDT
Remove the CDT plugins
Navigate to the directory where the CDT plugins are installed (typically eclipse/plugins)
Remove the following plugins:
org.eclipse.cdt.*
Remove the CDT metadata
Navigate to the workspace/.metadata/.plugins directory
Remove the following directories (if they exist):
org.eclipse.cdt.*
Restart Eclipse

Related

Installed MacVim, and now Eclipse is opening JSP files in it when i don't want it to

I'm using this version of Eclipse
Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600
on Mac Sierra. I just installed MacVim and now whenever I try and open a JSP file within Eclipse (using Shift ⇧+Command ⌘+R for example), the file is getting opened in MacVim instead of the Eclipse editor. I went to
General -> Editors -> File Assocations
and added "*.jsp", but even after restarting Eclipse, the JSP files still open in MacVim instead of the Eclipse editor.
How can I force my .jsp files to open in the Eclipse editor?
Generally, what you've done it's the right way.
You may have to select the right default to make it work:
Then you can check if the associated editors appear on file open submenu:
As you can see, JBoss Tools JSP Editor is highlighted to represent the default.
If these steps aren't working in your environment, there's probably a sort of settings corruption (experienced very often).
What you can try:
run eclipse -clean -refresh
create a brand new Workspace
make a new and clean eclipse installation
Make sure you have Eclipse WTP installed (or just install it):
P.S. use the update-site for your eclipse version (Mars), I'm on Neon.

Eclipse saves configuration even when removed

I'm in trouble with Eclipse configuration. I had Eclipse Juno with a certain configuration (perspectives, opened views like Logcat, console, etc), I removed it from my system and downloaded Eclipse Luna.
When I opened it the first time and selected the Workspace, Eclipse loaded the perspectives used in Juno (for example Remote System Explorer) but those perspectives weren't installed in Eclipse.
This also happens with the Logcat view, Eclipse Luna hasn't installed ADT (Android) and Logcat wasn't available.
Why is this configuration loaded if I removed Eclipse completely?
The workspace contains the information about the perspectives, views, ... in use.
So if you install a version of Eclipse without some of the plugins you were previously using you should probably create a new workspace. You can import your projects from the old workspace (but if the projects reference any of the old plugins you may get errors).

Eclipse: no C/C++ option after installing CDT plugin

I use Eclipse to program in Java and , having already familiar with this development environment , I would use it for C/C++ projects.
Version: Eclipse SDK 4.2.2 (Juno)
O.S.: Ubuntu 12.04 LTS
I installed the CDT plugin by following the italian guide of the ubuntu documentation:
http://wiki.ubuntu-it.org/Programmazione/Eclipse#CDT
The only difference is that, at point 4, I have not included the source shown (Galileo), but the my version (Juno)
http://download.eclipse.org/tools/cdt/releases/juno
it's ok, found the source
CDT Main Features
CDT Optional Features
the installation is successful (indeed Eclipse show me CDT as the latest software installed, and an subsequent attempt to reinstall, Eclipse returns an error that it is already installed)
The problem is that when I restart Eclipse , I have no change. For instance , if I open the menu " File -> New -> Other" , I have no additional option to create a new C/C++ project.
I regularly installed on my computer the C/C++ compiler (gcc and g++ , version 4.6.3).
I also tried to install the plugin from the terminal:
sudo apt-get install eclipse-cdt
no change.
I search through the options in Eclipse to see if it was a problem enabling views of items in the menu, but nothing. Even in the "Window -> Preferences" I have no "C/C++" category .
I also changed my workspace ..... nothing .
Please help me, thanks
i had the same issue. i installed the latest eclipse, luna and mars. both had the c/c++ development tools.
my development environment had an older version of java installed, i.e. 1.6. apparently, luna/mars require 1.7 to be installed. i, at first, modified the eclipse.ini file to
-vmargs
-Dosgi.requiredJavaVersion=1.6
i started eclipse and the c/c++ project was not available. so i couldn't create a c/c++ project because it wasn't available in the wizard.
i updated my java to 1.7 on my machine; changed the eclipse.ini file back
-vmargs
-Dosgi.requiredJavaVersion=1.7
then started eclipse. viola. the option to create a c/c++ project is now available.
so basically, it seems that the newer eclipse requires 1.7 java. otherwise, it will disable features.
First of all, you have to open "C/C++ perspective". Try to go to menu "Window--Open Perspective -- Other--C/C++".
When you are in C/C++ perspective you should be able to create a new C/C++ project.
Also if you already have a loaded project, you can to convert to C++ project. Simply select it and then follow the right-click menu: "New" -- "Convert to a C/C++ Project (Adds C/C++ Nature)". Alternatively, simply go to menu File--New--Convert to C/C++ Project and it will show the list of all projects.
But again, the first and major step is to switch to C/C++ perspective.
Good luck!

CDT installation in Eclipse

I have installed cdt-master-6.0.2.zip (link) to my Eclipse by extracting it to the Eclipse installation dir. I'm using Eclipse 3.5 in Windows 7 x86 machine. But the plugin doesn't show up when I start Eclipse (I can't create a new cpp project). Yet cdt shows up in Help > About Eclipse SDK > About Eclipse SDK Features. What am I missing here?
To install plug-ins into Eclipse you should always prefer using the user interface through Help > Install new software menu.
Anyway if you really want to install plug-ins manually into your Eclipse installation, you have to place them into the dropins folder.
BUT this way you will have to resolve plug-in dependencies by yourself. If all dependencies are not satifsied, the concerned plug-ins will fail to start silently. This is why you should REALLY prefer to use the standard plug-in installation method to avoid any problem.

Eclipse Java EE to install C++ module

I have Eclipse IDE for Java EE packages installed. How can I add the C/C++ IDE to the current Eclipse install? Or is there a better way to do this?
Use Help > Install New software to open the Install dialog. There, you'll need to select the right update site from the drop-down list at the top. Depending on which version of Eclipse you have, it will most likely be Indigo or Helios.
After selecting the update site, the list below will populate with available features to install (be patient, it might take a minute). Look for the "Programming Languages" group in that list, expand it, and check the box next to "C/C++ Development Tools." If desired, you can also select the "incubation" features for C/C++ or CDT.
Click the Next button and follow the prompts to download and install CDT.
I use Eclipse Java EE IDE for Web Developers, Version: Neon.3 Release (4.6.3RC2) on Ubuntu. Here are the steps I installed C++ plugins:
Help > Eclipse Marketplaces..
In Find input box, enter C++
Scroll down to locate Eclipse C/C++ IDE CDT 9.2 (Neon.2)
Click Install
Note: you may see different C/C++ IDE CDT version if you use a different version of Eclipse Java EE IDE
In addition to the steps above to follow, I want to share a side effect of installing C/C++ modules in Java EE Eclipse: your custom hotkeys may not work.
The fix is:
Try to "Restore command" in "Preferences" - "Keys".
If it doesn't help, you can try to close Java perspective and reopen it. That did the trick for me.
I noticed that when the installation finishes and we restart, we see a C++ welcome screen. I guess that after a installation of CDT, this perspective and its hotkeys takes precedence over Java perspective, thus, reopen Java perspective make Java hotkeys take precedence over C++. But it's more like a bug.