Eclipse 2021-06 update: Cant find my workspace - java

All of my files of all my programs were all on the left side of my screen after opening Eclipse. After the 2021-06 update, I cant find them. I know they are there but its not easily accessible like it used to be (left side of screen). Does anyone know how to display all my workspace(packages, programs etc...) Hope this makes sense...thanks guys!

From the top bar:
Window -> Perspective -> Reset Perspective...

Related

What to do with java code when done

I have just completed my first java program. It's sitting in Eclipse pretty as a newborn (which really isn't all that pretty). Anyway, I need to have an icon on the desktop that allows users to click and run the code. I found an example of how to make a .jar from the project in Eclipse, but nothing happens when I click on it. There are a LOT of options in Eclipse so I'm guessing I need to select/deselect something, but the examples online are very few and far between. Since I'm sure I'm not the first person who has done this, I'm assuming I lack the vocabulary to find an answer. Could someone please give me a little direction to find help?
I have tried "compiling" but that's running the code. Anything with .java just tells me how to install Java. There have been too many searches to list them here. Suffice it to say I need a push in the right direction, please.
There isn't realy much to do wrong. Just go to Project -> export and select runnable jar file. Then you just have to pick the right launch configuration and click finish. There is a tutorial with picutres on wikiHow here.

NetBeans moving tabs navigation to the right

I've seen few people use it like that and Im struggling with figuring: how can i move the navigation of my open files inside NetBeans IDE to be navigating through a tool bar on the side.
In other words, instead of navigating between files horizontally (just like in the browser), i want the tabs to be displayed on my right on NetBeans.
Any chance someone could explain?
Thanks in advance.
You want to put the window tabs to the right side?
At Tools|Options|Misc|Windows set "Tab placement" to "right"
See also https://blogs.oracle.com/geertjan/entry/upcoming_netbeans_feature_multi_row
In Netbeans 8 the tab placement options are in Tools -> Options -> Appearance -> Document Tabs -> Tab placement.
Hey am not pretty sure about the Netbeans. If you see in the eclipse there is an short cut ctrl+f6 in order to change the you can directly go to editor settings and then you can change it to what ever you want.
If you come to net beans i saw in one of the post they mentioned ctrl+tab try to look this link it might help you.
Thanks,

Eclipse: Green rectangle label on Class

What does the green thing seen on the upper-right side of class icon indicate?
I couldn't find anything on it after searching for label inside Eclipse preferences.
Thanks to #T.Des answer, I was able to find the answer:
It comes from a plugin that I've recently installed, that greatly support unit-testing - MoreUnit
Never seen it, but a very (very) dirty and time loosing way to know would be to go to Window -> Preferences -> General -> Appearance -> Label Decorations and to select only one label decorations at a time to see which pluggin is making this green box appears and then check on this pluggin documentation.

Eclipse RCP: Why is the view missing when running as a Product?

I'm brushing up my Eclipse RCP skill by trying to enhance my one-year-old side RCP application. This application has one perspective, and this perspective has 3 views, and I'm adding another view into the same perspective. To add this new view, I added it in the MANIFEST.MF file under Extensions tab and created the Java file for it.
When I run it as an Application, it works. I see all 4 views in the application. But, when I run it as a Product, that new view is missing. It almost seems like the new view is not registered in the Product. There's no error in the console log either. I think I must be missing a step here, but I can't seem figure out here... pretty frustrating!
Note: The views are added into the perspective programmatically (in Java code), not through MANIFEST.MF file. I just realized that even when I change the existing view's layout (ex: size, or location), it doesn't get reflected when running as a Product either, but it works when running as an Application... sigh!
Note: I commented out all the code in my perspective class, in another word, all the views are removed from the perspective. When I launch the Product, I'm still seeing 3 views in the application. I'm thinking there's something to do with caching, but I'm just bummed now.
Any helps are greatly appreciated here! Thanks much,
Okay, after aimlessly clicking around, I figured out the solution. The workspace data needs to be cleared to pick up changes from the perspective.
To do so...
Right click the product file
Choose "Run Configurations..."
Under "Main" tab, check "Clear" checkbox and "workspace" radio button.
Run it.
Hope this will save some of you from troubles.
I've been bitten by this a couple of times until I figured out the easiest workaround: it's sufficient to reset the perspective. There are two ways to achieve this:
Right-click on your perspective in the perspective selector bar at the top right and click on Reset.
Switch to your perspective and then go to Window | Reset perspective....
After that, the changes to your perspective should be picked up.

Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable's value. Instead, hover behaves as if I were in normal Java perspective:
alt text http://michaelzanussi.com/wp-content/uploads/2009/11/debug_hover.png
I've tried cleaning the project, re-importing it, etc., all to no avail. Anything I'm missing here?
I went to Window - Preferences - Java - Editor - Hovers, hit "Restore Defaults" and "Apply" and that fixed it for me, even though nothing actually changed in the settings...
Go to Window - Preferences - Java - Editor - Hovers.
Is "Combined Hover" selected? Uncheck it; apply; close the window; restart debugging session; go back; check it again; apply.
If the above doesn't help, you can check "Variable Values" option and specify a modifier key for it. Not as convenient as "combined", but should work.
I had this problem too once, I "just" had to restart eclipse, after that the hover mechanism worked again.
The problem was "fixed" by renaming the package.
For whatever reason, this refactoring triggered something in Eclipse, and immediately I was able to view variable values during debugging. Also, when I go back into Preferences under Hovers, I can now see the "Variable Values" option.
I had a similar issue and when I came across this question. My problem was that windows hover time was set to 20s or so (you can test if this is your problem by putting the mouse on a mistake and waiting for a min or so). The registry key "MouseHoverTime" was set to a large value of 200000 ms (normally 400). Fix it by going to start -> run -> "regedit" -> HKEY_CURRENT_USER\Control Panel\Mouse double click "MouseHoverTime" and setting it back to 400.
I think this had been done on my computer a while back to prevent hover popups in another program. Anyway, sorry that my answer doesn't directly apply to this question, but I'm hoping it'll help somebody like me that comes across this thread with a similar issue.
For C++ project, please add -ggdb -0g to the compiler option. Hope this solution can help eveyry C++ programer face with the same issue.

Categories

Resources