Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  [Eclipse] Better way of organising Package Explorer?  (Read 2207 times)
0 Members and 1 Guest are viewing this topic.
Offline Otreum

Junior Member


Medals: 6



« Posted 2013-04-17 11:26:48 »

To my surprise, there isn't much information out there on how to organise Packages in the Eclipse. I don't mind the tree view, but my problem is that I have just gotten into doing LibGDX work, and it's a pain in the butt having  100 different packages on the package explorer and having to find my LibGDX projects.

Is there a way that I could say for example have all general Java programming in one folder in the Package explorer, and LibGDX related stuff in another folder, then if I want to access all my LibGDX projects, I can expand the LibGDX folder?

I am not sure if this really makes sense to people reading as I exhausted from work, but it's just been a pet peeve of mine since I noticed the more I studied Java, the more my project explorer got cluttered and the harder it was to find what I was after.

Thanks in advance.

Also, I have spent several hours googling and looking on these forums to try and find some sort of solution which didn't involve installing seperate plugins and such, but by the looks of things, I might have to.
Offline Phased
« Reply #1 - Posted 2013-04-17 11:43:43 »

You can switch work spaces, create a new folder somewhere, and press switch work space under file.

I think this is the only way or at least the easiest.
Offline kutucuk

Senior Member


Medals: 5
Exp: 3 years



« Reply #2 - Posted 2013-04-17 12:02:04 »

If you don't mind tree view, then create Working Sets. Working sets are kind of wrapping some of the projects. You have only one workspace, but you can have three(as many as you want) working sets. For example, I created three working sets, one includes pure java stuff, one includes android stuff and another is for gaming stuff.

There is an arrow in the top right corner of your package explorer. An arrow looking down (Popup tip says: View Menu). You'll probably figure it out.

If you do this, you will have one big work space, all of your projects will be in the same folder. But it will show different in Eclipse.

One thing to be careful about is, when adding a new project, you have to define its working set as well. Or else it won't have one, hence won't show up.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Otreum

Junior Member


Medals: 6



« Reply #3 - Posted 2013-04-17 12:07:20 »

Thanks guys, muchly appreciated.

I actually fiddled around before making this post, and managed to select different projects to put into a new working set, but I didn't change what to be viewed in the explorer, so everything was still showing up and I was wondering what the hell I was doing wrong Tongue

Once again though guys, I really appreciate it, you just saved me a whole lot of buggering around and also many hairs on my head that were scared of being ripped out. Tongue
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #4 - Posted 2013-04-17 13:07:10 »

Use Projects, Packages, Types. 3 smaller views, more efficient that Package Explorer.
http://n4te.com/temp/monitor.png

Offline Otreum

Junior Member


Medals: 6



« Reply #5 - Posted 2013-04-17 15:01:16 »

That looks interesting and a little confusing, it'd probably take a little bit of adjustment for me to get used to it, but holy hell, did you turn a 27" monitor on it's side or something? Tongue
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #6 - Posted 2013-04-17 19:30:28 »

30" Cheesy I miss it, been traveling with a laptop for 2 years. It's a massive M18x laptop with an 18.5" screen, but it's no 30" screen. Sad

I've been using the 3 views for so long, I can't remember anymore. 8 years? It's a really nice way to navigate Java. Using a tree wastes space and horizontal scrolling is horrible, horrible.

Offline Lamargo

Junior Newbie





« Reply #7 - Posted 2013-04-17 22:28:08 »

I have nothing to add, unfortunately, but wanted to say thanks for this question, and the answers. I've not came across a lot of solid info regarding customisation of Eclipse, so this was a bit of gold for me! Smiley

Cheers!
Offline kutucuk

Senior Member


Medals: 5
Exp: 3 years



« Reply #8 - Posted 2013-04-17 23:46:27 »

Nate this looks perfect.

I won't turn my 22" 'small' monitor on its side, but I'll try to get the same look. It's wider, it'll be better. I will have to scroll one day of course Tongue But even you with that awfully long view had to scroll.

Separating packages and projects is nice. I just tried it but packages view showed imported classes as well. And I am looking into libgdx, so there were tons of imports. How did you get it not to show the imported stuff?

BTW, if you spend much time on Eclipse, consider getting a dark theme.
Offline Otreum

Junior Member


Medals: 6



« Reply #9 - Posted 2013-04-18 00:42:34 »

Yeah, I've modified eclipse a little so that the white background on the text is not so white, more a yellowy white skin colour now so my eyeballs don't burn out Tongue

I also wear some gunnar glasses which help immensely, there is no way I could do 12 hour programming sessions without them and not having burning, irritated eyes that feel horrible and cause headaches and other annoyances. I'd highly recommend to get yourself some gunnar glasses, or at least some kind of glasses to reduce high intensity light.

I have a 3 monitor set up, 1 x 27" but it's 1920x1080 (I just wanted to see if it fit on the desk, then return it to the store I got it Tongue and then get a higher resolution, super duper expensive one, but kept the monitor instead and forgot about a high resolution one).
And I have 2 x 23" on either side.

I haven't quite worked out how I want to use them just yet. I normally have my browser on the right side for when i'm studying or following tutorials. My main workspace is in the middle monitor obviously, and console takes up about 4/5 of the screen on the left. So just trying to work out what other things I can fill the space with Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #10 - Posted 2013-04-18 19:23:56 »

With the 3 views, if you click a project sometimes it shows you more packages than you want. In that case, click a source folder under the project to see only packages there.

There is one little quirk, if you click a view (eg the console), the packages and types views go blank. This is because they are linked to the current source file, and when you click a non-source file view they have nothing to show. Just click the source editor and they come back. Since you are most often working with files in the same package or project, it is usually only 1 or 2 clicks to get the file you want, and usually there is zero scrolling involved.

There are also some settings:

You can filter the packages you see by clicking the little triangle in the Packages view. I always check filter empty packages and a flat package presentation.

In the Projects view filter settings I check libraries from external and libraries in project. This hides JARs under each project. You can also put in a filter separating with commas, eg "*.jar, config, *.zip, gen, resources, assets". Use this to hide classpath folders you don't want to look at, since you will be using this view for browsing Java classes.

I think it's been proven that a white background with black text is better for your eyes. I've never had a problem with brightness, not even with 16 hour days (which are most days...). You should be sure to have bright light above and slightly behind you.

I used to use multiple monitors but I found I like a single gigantic monitor better.

Offline Otreum

Junior Member


Medals: 6



« Reply #11 - Posted 2013-04-19 03:25:53 »

I think it's probably better to have one single monitor that is massive than multiple monitors because you're not constantly looking left and right (which can get a bit tiresome after a while, especially when watching youtube tutorials on the right or left.

I mainly got 3 monitors for 3D modelling and animation work, it really helps when it comes to 3d modelling work Smiley
Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #12 - Posted 2013-04-27 20:43:20 »

30" Cheesy I miss it, been traveling with a laptop for 2 years. It's a massive M18x laptop with an 18.5" screen, but it's no 30" screen. Sad

I've been using the 3 views for so long, I can't remember anymore. 8 years? It's a really nice way to navigate Java. Using a tree wastes space and horizontal scrolling is horrible, horrible.

Non-antialiazed font looks awful. :/

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #13 - Posted 2013-04-27 23:50:23 »

I disagree. Smiley That is a bitmap font I call Lava Mono. It was originally BitStream Vera Mono rasterized to bitmap, then I tweaked pixels in the glyphs until it didn't annoy me anymore. I like the clarity of it at small font sizes, where antialiasing just looks blurry. Also it has a very short line height, so I get more vertical lines than any other font. It's here if anyone wants it.

http://n4te.com/tools/LavaMono9.gif
http://n4te.com/tools/LavaMono92.gif

At higher font sizes for higher resolution displays I have switched to using Consolas. It is really a great font! Trust me, I've evaluated almost every monospace font, ever. Smiley I still use Lava Mono for my console, where the small size is fine and I appreciate seeing more vertical lines.

Offline Cero
« Reply #14 - Posted 2013-04-28 00:13:46 »

Dejavu Sans Mono.

Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #15 - Posted 2013-04-28 00:15:00 »

Not as good as Consolas. Give it a try! Cheesy

Online ra4king

JGO Kernel


Medals: 341
Projects: 2
Exp: 5 years


I'm the King!


« Reply #16 - Posted 2013-04-28 21:20:20 »

I've tried both, DejaVu Sans Mono wins hands down for me Cheesy

Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #17 - Posted 2013-04-29 17:29:13 »

They are both the same height and line height, but Consolas glyphs are not so freaking wide and are just as readable. Here is DejuVu Sans Mono on top and Consolas on bottom (click for actual size):


Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #18 - Posted 2013-04-29 17:31:05 »

They are both the same height and line height, but Consolas glyphs are not so freaking wide and are just as readable. Here is DejuVu Sans Mono on top and Consolas on bottom (click for actual size):

[img]

This looks like two different font sizes?

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #19 - Posted 2013-04-29 17:34:42 »

Nope, same size (9). Note they are the exact same height, DejaVu Sans Mono is just super thick and wide. I set my code to wrap at 130 columns. With DejaVu those 130 columns take 167 pixels more width than Consolas, which would make my console and other tool views too small on my 1920x1080 laptop screen.

Offline Cero
« Reply #20 - Posted 2013-04-29 19:09:03 »

I said "I'm gonna look at the picture and just say which one I like more"
It was indeed the Consolas. :D

Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #21 - Posted 2013-04-29 19:11:41 »

Nate?

Is that Spine code?

Are you seriously simply having a static variable indicating, whether it's the trial or not?
Wow.
I really want to do something now...
Just to find out...

No, this can't be! Cheesy

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #22 - Posted 2013-04-29 20:44:31 »

@matheus23, the static is final and javac removes dead code, so the trial doesn't contain bytecode for features only in the full version.

@Cero, woohoo! Cheesy

Offline Cero
« Reply #23 - Posted 2013-04-29 23:32:12 »

javac removes dead code
Good to know, actually

Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #24 - Posted 2013-04-30 15:51:06 »

true.

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (15 views)
2014-07-30 21:08:39

Riven (21 views)
2014-07-29 18:09:19

Riven (14 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (32 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (42 views)
2014-07-24 01:59:36

Riven (42 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!