How does this Color marker happen in eclipse IDE ,and what should I do to clear the Color marker - eclipse

If I change the code the color will disappear, I do not know how does this happen.and when do we will use this features.

It looks like you accidentally pressed the Coverage button instead of the Run or Debug button next to it.
To remove the red background color do the following: in the Coverage view click the Remove Active Session or Remove All Sessions button.
For information on what this Coverage does and what it is used for, see the EclEmma web site.

This is activated because of code coverage. If you want to remove it then follow these steps.
Go to "Windows -> Show View -> Coverage" Select it. Click on "Open".
Open the "Coverage" view.
There are "X" and "XX" signs at upper right side.
Click on one of them as per your requirement to remove the coverage session.
Refer the screenshot for more details.

Related

All codes in a Eclips package are showing pink and fade green Highlighting.? [duplicate]

If I change the code the color will disappear, I do not know how does this happen.and when do we will use this features.
It looks like you accidentally pressed the Coverage button instead of the Run or Debug button next to it.
To remove the red background color do the following: in the Coverage view click the Remove Active Session or Remove All Sessions button.
For information on what this Coverage does and what it is used for, see the EclEmma web site.
This is activated because of code coverage. If you want to remove it then follow these steps.
Go to "Windows -> Show View -> Coverage" Select it. Click on "Open".
Open the "Coverage" view.
There are "X" and "XX" signs at upper right side.
Click on one of them as per your requirement to remove the coverage session.
Refer the screenshot for more details.

How to remove this red box [duplicate]

If I change the code the color will disappear, I do not know how does this happen.and when do we will use this features.
It looks like you accidentally pressed the Coverage button instead of the Run or Debug button next to it.
To remove the red background color do the following: in the Coverage view click the Remove Active Session or Remove All Sessions button.
For information on what this Coverage does and what it is used for, see the EclEmma web site.
This is activated because of code coverage. If you want to remove it then follow these steps.
Go to "Windows -> Show View -> Coverage" Select it. Click on "Open".
Open the "Coverage" view.
There are "X" and "XX" signs at upper right side.
Click on one of them as per your requirement to remove the coverage session.
Refer the screenshot for more details.

How to wrap line in PyDev's interactive console?

Each time I want to view a long output line, I have to drag the horizontal scroll bar. Is it possible to set word wrapping in PyDev's interactive console (not editor)?
Unfortunately no, it's not currently possible to enable word wrapping in the PyDev interactive console.
You may report this as a feature request in https://www.brainwy.com/tracker/PyDev (but even better would be providing a pull request for that -- see: http://www.pydev.org/developers.html)
It is now possible as of PyDev 6.2. By default it is not enabled. To see the icon that you have to click to enable visit this. For the possibility that the link disappears, go to the console tab and you will want to look for an icon which has a yellow "left-turn" arrow and click that.

Adding New Components in WindowBuilder Design View

At risk of this being a trivial question, I need to know how to add more components (in the components explorer) in WindowBuilder for Eclipse Juno. I'm taking a dive and trying learn how to add a GUI to one of my personal projects. Right now all I have mustered up is just a JFrame that has a button that launches my program in the console with a little notification saying so. But what I am thinking about having is a "Start up Window" with just some stuff and button or something that says Enter application or something. So then I want a new window to pop up as a "Run Window". I have created a new JFrame as a "run window" and hide/set visibility of "startWindow" to false and get the result I want. But I want to be able to edit this new JFrame in the design window along with the default JFrame I started with.
Is there a way to do this? I tried right-clicking in the components window in the design view and it doesn't do anything. I also tried right-click the object from the project explorer and couldn't find anything. Am I missing something? Is this even possible?
The question seems to have 2 parts, so I will try to answer both of them.
1) Adding components directly in the components explorer
The only thing you could do, to get new components into there via right-click is "Surround with". For example you have a JPanel, right-click on it and click "Surround with...". You could try and put a JScrollPanel in there, so you can scroll your JPanel.
But the usual way to add components is by the "Palette", it contains a lot of components, that you can drag&drop into either the components-explorer or directly into your app Window -> Show View -> Palette.
2) Showing a certain window
If I understand this correctly, you want to show one window, click on a button and then show another window which has the same size etc. like the one before.
Setting the visibility for the first window to false and the second does work.
But under certain circumstances it's easier to use CardLayout.
Imagine a stack of cards, you can see only the first card. Then you click a button and now see the second card and so on.
See this: https://docs.oracle.com/javase/tutorial/uiswing/layout/card.html
for information and examples.

Eclipse Outline view is hiding code

I'm using the Kepler CDT release (4.3.1) of Eclipse. When I click on anything in the Outline view, the corresponding editor view is reduced to showing just that item. If I click on a variable, I get a single line with just that variable. The Edit->Expand Selection options are all dimmed out. Hitting Shift-Alt-Up Arrow just moves me up to the previous item in the outline view. If I change editor tabs and come back then the Expand Selection options enable and I can manually hit Shift-Alt-Up Arrow a number of times to make the entire file visible again but clicking on anything in the outline view again will just reduce the view. Is there some new setting in Kepler that will make outline stop doing this?
Turns out the feature for Show Source of Selected Element Only was turned on. In Kepler the toolbar button for this is not visible. Even searching under quick access doesn't turn it up so it's somewhat of a puzzle how it could have been turned on. I actually thought maybe it had been removed from Kepler.
In the Customize Perspective dialog under the Tool Bar Visibility tab. In the Tool Bar Structure section I opened the area for Editor Presentation. I noticed there was actually a check next to the box for Show Source of Selected Element Only. However, it wasn't visible in the toolbar (a bug I've seen before in Eclipse) so I unchecked it and checked it. Then I exited the dialog. Now the button showed up on the toolbar. I then toggled the feature on and then off. Now clicking in the outline view works correctly.just moves to the correct spot.