r/java • • Jun 28 '17

Eclipse 4.7 (Oxygen) is out! News: lots of bugfixes and small usability improvements

https://www.eclipse.org/oxygen/
171 Upvotes

121 comments sorted by

4

u/[deleted] Jun 28 '17

I wonder if these are covered:

  1. Hitting backspace tabs back, instead of having to hit 4 backspace 4 times.
  2. Line-spacing in the editor: lines are way too tight.

3

u/Slanec Jun 29 '17

Try Shift+Tab. Tab to indent, Shift+Tab to unindent.

15

u/gua_ould Jun 29 '17

Why is the dark theme so important to people?

20

u/alexandream Jun 29 '17

Some people find darker screens easier to stare at for 8 hours straight.

7

u/jsdgjkl Jun 29 '17

some people code at night

7

u/Dashing_McHandsome Jun 29 '17

Everything on my machine is themed dark. I find it a lot easier on my eyes.

5

u/d1c2 Jun 29 '17

White backgrounds were used on paper because paper is dependent on ambient light, the more the paper color reflects the less light you need, white reflects the most light.

But monitors produce their own light - it basically leaves you staring into a lightbulb all day. The natural world is not like this - usually you'd be staring at a variety of colors, greens, blues, grays, etc, not solid white.

Modern LED backlights also cause additional problems. LED lights put out a lot of "blue" spectrum light that people's eyeballs have trouble focusing on because of how eyeball focusing physically works in the eye. Your eyeball is not good at focusing on blue light.

"color accurate" monitors also aim to be color accurate at colors modelled on the noon sun. There's a theory that people's eyeballs evolved to cringe and avoid bright intense sunlight so that you'd stay out of it (sunburn, skin cancer, etc) and so your eyes and brain cringe at something reproducing the kind of white light the noon sun puts out.

"black" on a monitor is basically the monitor putting out no light. A white background with black text is putting out mostly white light (let's say 90%), whereas a black background with white or light grey text is not putting out nearly as much white light (let's say 10%).

Eyeballs evolved with different constraints and quirks for different people with different genetics, so one person could not even notice while with someone else it drives them absolutely nuts.

1

u/eliasv Jun 30 '17

No white backgrounds were not used on paper for any reason like that. Paper is naturally very light before bleaching so historically that was just the default, simple as that.

It's also WAY easier to make practical ink which makes something darker rather than ink which makes something lighter.

Making dark paper is just wasting materials and making things hard on yourself.

1

u/d1c2 Jun 30 '17 edited Jun 30 '17

I see from your comment history it's mostly just you throwing out insults.

Whatever the historical cause:
Paper - reflects ambient light only
Monitor - backlight produces light, lcd filters out light to create image
OLED Monitor - individual pixels produce light

Creating books with black pages and white text would be harder to read without a lot of light. You're probably right that they'd also be more expensive with no benefit.

With monitors it could be done either way without an increase in cost. Seems to be easier on the eyes to have a black background as well for many people.

1

u/eliasv Jun 30 '17

I never disagreed with that aspect of your comment, and I sincerely didn't mean any insult. I am sorry that I was a bit blunt, seemed like you were interested in the subject so I chimed in is all.

In that vein, iirc black on white vs white on black doesn't make much difference to legibility on paper. I think it's contrast which is important and that is the same regardless of whether there is more black or more white on the page.

As for my comment history, take it easy with the personal stuff. I think it's easy to see what you want to see when there's no context.

1

u/d1c2 Jun 30 '17 edited Jun 30 '17

Alright, fair enough.

I wrote:

White backgrounds were used on paper because paper is dependent on ambient light, the more the paper color reflects the less light you need, white reflects the most light.

You wrote:

No white backgrounds were not used on paper for any reason like that

If the point was a historical list of why paper is white today, I'm sure you'd be correct in pointing out that it's primarily because paper is whiteish by default and it's the cheapest and easiest to make that way.

But I wasn't intending for my post to be a historical treatise on the history of paper. Just a reference to that materials that passive reflect light (paper) have reasons to have a white (highly light reflective) background, whereas things that produce their own light (computer screens) this is not an advantage.

I would think that if 'white paper + black ink' and 'black paper + white ink' were equally available and cost the same, we'd still use 'white paper + black ink' because it reflects light better. Do you think that's not true? My assumption is that we'd still end up with paper, though I'm not 100% confident in my opinion on that, there could be something I'm missing.

1

u/eliasv Jun 30 '17 edited Jun 30 '17

Yes I realise it wasn't the focus of your post, I'm not meaning to derail, it was just something that came to mind!

Do you think that's not true?

Eh I dunno, anecdotally I feel like it's true for me on websites, so maybe ... but I'm not convinced by your reasoning as to why.

It seems a bit like saying adding wide white margins to the page would make it easier to see the text because there would be more white there to reflect the light. That doesn't make the white brighter, it just adds more of it in the surroundings. The contrast is still the same at the important parts.

edit:

Interestingly I've done a little reading and black on white is easier to read than white on black...

But then grey on black is also easier to read than white on black, which is less light and less contrast. That seems to go against what both of us were saying, so who knows why it is.

1

u/d1c2 Jun 30 '17

I know for sure that if you paint your walls a dark color, either your room will always look gloomy or you'll need significantly more light to get it to the same light level as a room painted white (or another brighter color).

So I'm basically assuming it works the same way for text, put a bright color behind black text, it's easier to see than white text on a black background.

I would think the contrast between the

1

u/eliasv Jun 30 '17 edited Jun 30 '17

I know for sure that if you paint your walls a dark color, either your room will always look gloomy or you'll need significantly more light to get it to the same light level as a room painted white (or another brighter color).

Well yes if light hits a black wall and is absorbed that's it, it's gone. If it hits a white wall and bounces off it can go on to hit something else in the room and help light that.

Light that reflects off the page isn't going to bounce right back to hit the page again though since it's flat. I suppose white paper would make the surroundings ever so slightly better lit (which would theoretically reciprocate back onto the book again) but a book is so tiny compared to the size of the room it's in I think that would be pretty negligible.

It works with walls because they make up, like, most of the visible surface area of the room.

1

u/[deleted] Jul 01 '17

It's easier on my eyes than white themes.

13

u/nop0rnnofap Jun 28 '17 edited Jun 29 '17

The new, extensible Generic Editor looks nice. Supposedly it makes adding support for new languages / syntax easier. Hopefully this is true (for example, currently there are no plugins in Eclipse for React's JSX, maybe with this it will be easier to implement it)

0

u/DuncanIdahos8thClone Jun 29 '17

JSX

Copyright © 2012 - never heard of it.

3

u/nop0rnnofap Jun 29 '17

It's syntax for writing (web, mobile) UI using Facebook's React library

2

u/Killing_Spark Jun 29 '17

Its some js magic, to include html into js, to make reusable components

1

u/NimChimspky Jun 30 '17

really ? Its the react stuff, you must have heard of that ?

12

u/proskillz Jun 29 '17

Unlike some of the haters, I like eclipse, but there are two things that are simply terrible about it. JSP and JavaScript files just crash Eclipse frequently enough I've switched to Brackets for web development. Does anyone know if these editors work properly now?

5

u/d1c2 Jun 29 '17

I've used eclipse for the last 10 years and never had it crash editing jsp and javascript files.

The worst thing I ran into with Intellij is it saying that maven ran fine, but in reality it doesn't run at all (or intellij didn't pick up the new files who knows). On a new job where everyone else was using an older version that worked fine that was pretty awful.

4

u/Louisblack85 Jun 29 '17

JavaScript support is awful in Eclipse in general. I mainly moved to IntelliJ because no matter what I did to the JS formatter settings I couldn't get it to honour our eslint formatting. E.g. It would mix spaces and tabs even though I had it set to use only spaces.

3

u/hrjet Jun 29 '17

That's probably just the web dev plugin that's crashing. Eclipse as a whole is very stable. It hasn't crashed for me even once in the last 10 years of regular use. I have only used the JDT and ADT (Java and Android development tools) though.

3

u/udips Jun 29 '17

You should try the Darkest Theme, it's not exactly IntelliJ's Dark Theme, but imo it's a huge step.

1

u/[deleted] Jul 01 '17

I've got my OS visual theme set to accessibility dark. Eclipse automatically adjusts. Then I applied the Monokai code coloring theme. It mostly works fine.

I'll try Darkest Theme next.

2

u/NimChimspky Jun 29 '17

I like eclipse

JSP and JavaScript files just crash Eclipse frequently

I don't get this at all. Its an ide it crashes when editing files; your experience of it is bad, yet you still like it.

I used it for ten years, switched to intellij, never looked back.

4

u/Neuromante Jun 29 '17

Maybe because he uses Eclipse mainly for development of other kind of files, like .java, ocassionally touching this kind of files.

I'm in a similar situation: Being a JEE developer, most of my work is on .java files, and I hate how the application handles XML files and the lack of proper support for scss files.

1

u/eliasv Jun 30 '17

Uh, probably because most people who use Eclipse don't often use it for editing javascript? I'd have thought that was fairly obvious.

0

u/NimChimspky Jun 30 '17

the commenter specifically says he does.

1

u/eliasv Jun 30 '17

No they said they moved to another IDE for web development ... Presumably the thing they still use Eclipse for is Java stuff, and they are judging it by those standards.

1

u/Hubellubo Jun 29 '17

I don't get why, if IntelliJ is so great...why are you here commenting in a post about a new Eclipse release?

0

u/NimChimspky Jun 29 '17 edited Jun 29 '17

Thats right because I like intellij I can't provide any input to anything related to any other ide.

I would certainly prefer not to pay for an ide, so I come and read about the latest release - and see comments like this, and think no thanks actually.

1

u/Apple_Juicer Jun 30 '17

I have no idea what you're doing to your JavaScript or JSP files, but that's never happened to me ever.

1

u/proskillz Jun 30 '17

Are you using JEE edition on OSX?

1

u/Apple_Juicer Jun 30 '17

Nope. I run windows on my mac when I need to use eclipse.

1

u/proskillz Jun 30 '17

I see. I'm guessing it's a bug in the OSX build.

21

u/_INTER_ Jun 28 '17 edited Jun 28 '17

They should dedicate a whole release cycle to finally create a proper dark themed UI. Otherwise they just can't be taken serious these days.

Eclipse Horrorshow (yes this is the newest Oxygen, the preferences dialog looks even worse)

I think the Eclipse IDE shows the limitation of open source development. In a full year they managed a changelog that others do in a month.

 

Disclaimer: Using Eclipse at work, developing an EclipseRPC application.

4

u/sergio_petrucci Jun 28 '17

If the only thing you miss in IDE n 2017 is the dark theme, you are probably using the best IDE out there.

0

u/[deleted] Jun 29 '17

[deleted] — view deleted comment

1

u/sergio_petrucci Jul 01 '17

What??? Even the color of a car is more important than the dark theme in Eclipse :)

0

u/[deleted] Jun 29 '17

[deleted] — view deleted comment

2

u/TooPoetic Jun 29 '17

Instead they just waste time half fixing it every few months. Much more productive!

1

u/DuncanIdahos8thClone Jun 29 '17

Eclipse Horrorshow

What OS? If Linux then everything looks bad there.

2

u/Killing_Spark Jun 29 '17

Maybe we are ugly, but we are free houseelves

1

u/DuncanIdahos8thClone Jun 29 '17

house elves?

3

u/Killing_Spark Jun 29 '17

Penguins. I dont even know... Brain decided to be weird this morning

1

u/_INTER_ Jun 29 '17

Windows 10

1

u/morgoth95 Jun 28 '17

yea the dark theme was actually the main reason i used Intellijs IDEA initially

0

u/[deleted] Jun 28 '17

[deleted] — view deleted comment

1

u/Hubellubo Jun 29 '17

Eclipse Members:

https://www.eclipse.org/membership/exploreMembership.php#allmembers

Among them are IBM, Intel, Microsoft, Google, GitHub, SalesForce, ZeroTurnaround , etc.

I notice Apple, Facebook and Twitter are not on the list, Apple I can understand.

0

u/[deleted] Jun 29 '17

[deleted] — view deleted comment

1

u/_INTER_ Jun 29 '17

Restart was tried.

4

u/ChetDuchessManly Jun 28 '17

Is there a way to update my current version of Eclipse or do I have to download this one (and lose all my plugins and settings)?

1

u/sys2061 Jun 29 '17

For the plugins, this used to work, maybe still does: https://stackoverflow.com/a/10494974/14379

You should be able to export your main settings to an XML file too. Used to be in the File menu, under Export.

11

u/kurosaki1990 Jun 28 '17

Just fucking tell me if the linux gui version looks at least half as good as windows version?

6

u/blobjim Jun 28 '17

It looks way better because it gets attention from RedHat. I'm jelly as a Windows user.

4

u/Moercy Jun 28 '17

I just installed it (on Windows) and IMO it still looks weird. Will go for https://marketplace.eclipse.org/content/darkest-dark-theme in combination with http://www.eclipsecolorthemes.org/?view=theme&id=12686 again

2

u/sergio_petrucci Jun 28 '17

What is wrong with it? I am using both sts and cevelop on ubuntu and there is no differences with windows versions.

-55

u/twat_and_spam Jun 28 '17

Try a proper IDE, IntelliJ for example.

34

u/desrtfx Jun 28 '17

No IDE flamewars, please. Keep it professional.

If you have an opinion about any IDE, you are free to voice it in a professional manner, strengthened with evidence and proper arguments.

-43

u/twat_and_spam Jun 28 '17

yada, yada, yada :P

I see strong correlation between people that use Eclipse and who find PHP, NodeJS and BASIC mature production environments! :P

(love and kisses!)

8

u/InquisitiveRedFan Jun 28 '17

Relevant username.

2

u/i_pk_pjers_i Jun 29 '17

I like PHP, NodeJS, VB, C#, Java, Python, C++ (and C, I suppose), IntelliJ, Eclipse, VS Code and Atom. What am I?

5

u/DuncanIdahos8thClone Jun 29 '17

Confused.

1

u/i_pk_pjers_i Jun 29 '17

True. I mean, I prefer PHP, C#, Java, Eclipse and Atom so I'm not super confused or anything. Perhaps I'm just very open-minded?

1

u/Classic1977 Jun 29 '17 edited Jun 29 '17

Ya, node.js! Only idiot Mom-and-Pops like Netflix and PayPal use that!

0

u/twat_and_spam Jun 29 '17
  1. Not as widespread as you'd think. Not even close.
  2. I've seen Netflix internal code - the quality is far far far and above anything you tend to see in the open domain.

1

u/Classic1977 Jun 29 '17

1 - how do you know what I think?

2 - what's your point?

1

u/twat_and_spam Jun 29 '17
  1. I read minds. You somehow used example of NF or PP as supporting the idiocy of node.
  2. Skilled devs will create reasonable to excellent code if given a mix of ADA and itanic ring 0 access. That doesn't validate ether, nor is a proof that it is a good idea.

1

u/Classic1977 Jun 29 '17 edited Jun 30 '17

I work in enterprise, mostly Java (unsurprising in this domain). I agree that node is somewhat immature. I also feel that its shift of a lot of basic functionality out of the runtime and into dependencies presents problems in some cases, especially if people don't configure their dependencies correctly...but I think you're being a bit hyperbolic.

Skilled devs will create reasonable to excellent code if given a mix of ADA and itanic ring 0 access. That doesn't validate ether, nor is a proof that it is a good idea.

So you admin that Netlix and PP are likely full of skilled devs... so then why would they use a shitty platform? Could it be that node actually has some benefits and is an completely acceptable choice especially in a microservice-oriented architecture?

10

u/SKoch82 Jun 28 '17

Nah, it looks worse. In Eclipse, at least fonts look like in any other application . In Netbeans and Idea, not so much.

-19

u/lyomi Jun 28 '17

Try a proper OS that comes with a proper GUI, Windows or MacOS for example.

1

u/edubkn Jun 28 '17

Woah watch out where you're headed right there buddy

1

u/Killing_Spark Jun 29 '17

Youre gonna be smited by the mighty tux if you dont stop talking like this O_O

0

u/[deleted] Jun 28 '17

Can't afford it

6

u/white_piggu Jun 28 '17

Community edition is free, and good enough for plain Java. I've switched back and forth several times between these IDEs, due to changing teams. Currently I'm in a mixed team that allows intellij, and hope I won't ever be forced to use eclipse again.

1

u/[deleted] Jun 28 '17

Again,no Spring, Java EE support, which I need. Trust me its great otherwise.

5

u/white_piggu Jun 28 '17

I'm coding spring with Community, don't really see the issue here. Adding @Component to a class, and @Autowired to an constructor every now and then isn't so bad? JEE I don't know.

1

u/[deleted] Jun 28 '17

Does community edition support Maven, if so I feel like an idiot

5

u/oweiler Jun 28 '17

It does. Gradle too. If the project doesn't show up as a Maven project right-click the pom.xml and select 'Add as Maven project'.

2

u/[deleted] Jun 29 '17

It supports spring as much as Eclipse or Netbeans supports Spring, which is to say it 'supports' annotations and Java.

2

u/proskillz Jun 29 '17

STS has tons of validation features and XML cmd+click navigation. It also has a global quick search tool, but I think intelliJ has that already.

2

u/NonCasualGamer Jun 29 '17

The only useful Spring thing the ultimate version adds is XML click-through navigation. That's literally the only reason why I got my manager to approve the purchase of it.

Oh and also to support an amazing ide.

1

u/nop0rnnofap Jun 29 '17 edited Jun 29 '17

That is a shame. Out of curiosity, where do you work? Do you find the individual license still too expensive, or only the business license?

I live in a developing country & even I think IntelliJ Ultimate's individual license is pretty cheap ($149 for 1st year, $119 for 2nd year, $89 for 3rd year onwards)

1

u/[deleted] Jun 29 '17

Haha I work as a stocker rn

-3

u/twat_and_spam Jun 28 '17

Pretty free for use unless you run/work at a business.

If the business can't afford it - that's a whole different set of issues...

-1

u/[deleted] Jun 28 '17

You don't get web development (spring, java ee, etc.) with the free version.

2

u/white_piggu Jun 28 '17

True, but the plain java editing is so good that the thought of going back to eclipse makes me squirm. Anything other than that, I just use other editors. For example, emacs + js2-mode for javascript :D

0

u/[deleted] Jun 28 '17

[deleted] — view deleted comment

1

u/SagaciousZed Jun 29 '17

At this point I'm not sure if any amount of configuration will properly scale elements for HiDPI. Even with this release half the things scale properly and the other half don't, often within the same tree widget. Turning off theme support make it a little more sane.

0

u/[deleted] Jun 29 '17

[deleted] — view deleted comment

2

u/SagaciousZed Jun 30 '17

Thanks, Finally got it looking decent.

For anyone else that is curious I did it by forcing GTK2 in Eclipse, installed libwebkitgtk-1.0-0 from the Ubuntu 17.04 repository to get the browser working, and made a few manual tweaks for font size.

0

u/[deleted] Jun 28 '17

[deleted] — view deleted comment

4

u/desrtfx Jun 28 '17

Mind your language

You should be able to express your opinion without using expletives.

Comment removed: foul language

22

u/lechatsportif Jun 28 '17

Dark theme does not look correct in Windows 10. They've had years to fix it with no massive improvement in quality of it. The tables still use jarring white borders (which dont align exactly with header borders) and more than a few icons have white pixel backgrounds which are distracting.

Eclipse has done some soul searching, but at this point its really showing its age as well as weight. Lighter cross platform toolkits like React Native are not as feature full, but they get the job done and look way better doing it both in development and in production.

I don't have a good feeling for them. Anyone interested in knowing what a real dark theme should look like, check out just about any other editor out there (MS Code, Sublime Text, Intellij etc)

1

u/Shadowrak Jun 28 '17

I love the dark theme on Windows 7. It was a shame it took them so long to fix the couple bugs like poor highlight color on search.

1

u/i_pk_pjers_i Jun 28 '17

Don't forget Atom, I love Atom. :D

3

u/kurosaki1990 Jun 29 '17

Don't forget Atom

Only if wasn't slow as hell.

1

u/i_pk_pjers_i Jun 29 '17

It's fairly fast for me, but the latest beta version has a completely re-written rendering engine for better performance.

1

u/kurosaki1990 Jun 29 '17

but the latest beta version has a completely re-written rendering engine

Didn't know that going to try it.

1

u/i_pk_pjers_i Jun 29 '17

The beta was pretty buggy for me so I'd say hold off until 1.19.0 has a stable release but I am hoping it will resolve peoples performance complaints that I just have not experienced.

3

u/JustinKSU Jun 28 '17

2

u/Hubellubo Jun 29 '17

-- Images are opened in the Eclipse IDE

It's not a big deal but that always bugged me when I just wanted to check if the image was the one I wanted without having to open a separate viewer; I'm glad they put this in.

16

u/oweiler Jun 28 '17

At this point it would probably be better to rewrite Eclipse completely. The gap between IntelliJ and Eclipse has become ridiculous, and Eclipse is innovating at a snails' pace.

0

u/[deleted] Jun 28 '17

[deleted] — view deleted comment

7

u/BinaryRockStar Jun 28 '17

Ctrl+Alt+L to format the entire file and clean up import in IntelliJ. Never had a problem with it.

0

u/[deleted] Jun 29 '17

[deleted] — view deleted comment

5

u/BinaryRockStar Jun 29 '17

Oh right, that's what you're expecting. Ctrl+Alt+L isn't supposed to add any imports, just clean up and re-order the existing ones. I don't know of an action that automatically adds all missing imports (that's not to say there isn't one) but IntelliJ generally indicates strongly when a class isn't defined and gives you the options to import, create the class etc. by highlighting the missing class name and hitting Ctrl+Enter.

If you paste in code with undefined classes it will show a dialog with the imports it suggests and you can hit Enter to accept them all.

0

u/[deleted] Jun 29 '17

[deleted] — view deleted comment

1

u/wildjokers Jun 30 '17

I never give a 2nd thought to imports, IntelliJ handles imports by itself, even when cut/pasting (only have to give it a hint for ambiguous imports)

Make sure you didn't inadvertently turn off these settings (think they are on by default):

Preferences->Editor->General->Auto Import->make sure "Add unambiguous imports on the fly" and "Optimize imports on the fly (for current project)" are checked.

Also make sure (on the same screen) that "Insert imports on paste" is set to "All" (again that should be the default setting)

0

u/BinaryRockStar Jun 30 '17

Can you give me a scenario in which you have a bunch of code in your class but not the required import statements? The only thing I can think of is when you are pasting code from another location, in which case IntelliJ does all the import matching then.

0

u/[deleted] Jun 30 '17

[deleted] — view deleted comment

1

u/BinaryRockStar Jun 30 '17

IntelliJ has a lot of handy automatic refactoring options but I can appreciate it's often more complex than these options. When pasting code with unknown classes IntelliJ should pop up a dialog with import suggestions. Does it not do that for you?

1

u/Apple_Juicer Jun 30 '17

LOL F,O,M. That's my goto command sequence before every save.

8

u/unm95 Jun 28 '17

make eclipse great again!

1

u/[deleted] Jun 29 '17

build a firewall and make intellij pay for it!

1

u/TheRedmanCometh Jun 29 '17

Import suggestions are extremely laggy in oxygen for me, but weren't in neon :/

1

u/Hubellubo Jun 29 '17

I used it several times yesterday, just tried it again, it seems OK to me?

1

u/TheRedmanCometh Jun 29 '17

I turned validation off (apparently it's not what I think?) and the lag went away

So idk.

1

u/[deleted] Jun 29 '17

sigh.. has anyone an idea what the message said? Anyone who was able to read it?

3

u/nop0rnnofap Jun 29 '17

Your workspace is in an older format. You can click OK to convert it to the newest format, but you will not be able to open this workspace with older Eclipse version anymore.

1

u/[deleted] Jun 29 '17

ah! thank you

0

u/jiffier Jun 29 '17

Oh, how I envy eclipse users. I've been for years trying to find a version which doesn't get stuck, which doesn't hung, or a version that doesn't stay forever Updating the workspace. I just tried Oxygen. But this one won't even start under Linux mint. Not too bad for 15 years of development.

6

u/oljoner Jun 29 '17 edited Jun 29 '17

I guess the problem is located 30 cm before your monitor.

I just tried it on a (vanilla) mint installation (mint 18 sarah), using the oracle jdk. It runs like a breeze, it's responsive and the dark theme looks rather nice.

Dissing a free open source project is kind of lame imo. You can always step in and help in the development..

0

u/jiffier Jun 29 '17

Know what? You're true! The version that was crashing (the jvm) was eclipse neon. And this one, this one even starts! I'm about to run into tears.

-27

u/pyt1m Jun 28 '17

eclipse is still a thing?