47 comments


"Eric Sheffer" <esheffer@lycos.com> a écrit dans le message de
news:16274123.1071703366907.JavaMail.javamailuser@localhost...

Is this the kind of thing you're talking about?


My god... he did it !!!!
LOL :))
BTW, as I was expecting, it makes scrolling damn slow !
Otherwise, well done.

Guillaume


0

it's not stupid after all .. it's funny to have Nemo in my IJ... would be nice to configure the image .. it sure rocks my world ;)

good on ya mate cheers for that..

parthi.

0

i have to agree .. its slowwww when i scroll through the code..
hmm just an thought.. i have come across WebPages where they will have menu in the left or right side of the web page where the menu will scroll down with you .. and they wont stretch the image to the entire page but make it appear only for the viewable window .. that way it's not stretched as it is now and hey it will look heaps better .. as we scroll down the image scroll's with you staying the exact same size of the window tht it is in and that way it's not stretched .. lol .. this will be even slow huh ? .. don’t try to find my ip and nuke me for saying this .. it would be good .. yes silly but hey to have your fav pic at you fav editor and look at it once in a while to relax is niccce ..
cheers,
parthi.

0

okay, here's another version that lets you choose an image on the 'net or filesystem. Of course, it defaults to Nemo...

The image is now scaled to the width of the editor (assumes that the image is wider than it is high...) and aligned to the editor's top edge. I'll tinker to make this configurable, along with configurable transparency.

Eric

0

Hmm .. How does it work ? I pick the picture, click Ok then close the setting window and nothing happens. I've tried to give it the Nemo URL (http://i.imdb.com/Photos/Ss/0266543/Nemo102.jpg) - didn't help either

0

Just installed your first version - it's working.

0

Since this is an application plugin, you have to shutdown and restart IDEA for any changes to take effect.

Attached is a slightly modified version that allows you to enable/disable the plugin without uninstalling it.

It's also been tested with build 998.

Eric



Attachment(s):
BackgroundImage.jar
0

:(
Still, no luck for me. Build 998, nothing (including IDEA restart) brings the image - neither a URL, nor a jpg from disk. May be I'm doing something else wrong ...

0

No, wait, I see it now - like you said the image is sticked to the top edge and is only dispalyed if I scroll up to the beginning of the page. Two PageDown's and the background is white again. Is it possible to "tile" the picture ?

0

Could you put this up on intellij.org. If you put the source up there that would be wonderful also.

0

Could you put this up on intellij.org.


Done. The topic is:
http://www.intellij.org/twiki/bin/preview/Main/BackgroundImage

If you put the source up there that would be wonderful also.


Done. I've also added it to the plugin manager.

I've thought about tiling the image within each window, so that the image repeats until the window is filled. I've also thought about "fixing" its location within the visible portion of the editor window, but this really amounts to scrolling the image within the editor as the visible portion changes (if thought scrolling was slowed now...)

Any ideas, enhancements, suggestions, etc. are welcome.
Thanks.

Eric


0

Eric Sheffer wrote:

>
>Any ideas, enhancements, suggestions, etc. are welcome.
>Thanks.
>

Since you're asking :

Request 1:
-


- change the background colour of the editor (rather than setting an image).



Request 2.a :
-


Choose the colour statically
- based on the file name pattern
(ex. \*.*xml => pale yellow )

Request 2.b :
-


- based on the class hierarchy
(ex. child of TestCase => pale green )

or dynamically :

Request 2.c :
-


- based on the test result
(ex. a test failed in that class => pink )

(Note : this last suggestion would be better served with a finer grained
highlighting : only the failing test method.)


Alain

0


Since you're asking :



- change the background colour of the editor (rather
than setting an image).

Choose the colour statically
- based on the file name pattern
(ex. \*.*xml => pale yellow )

- based on the class hierarchy
(ex. child of TestCase => pale green )

- based on the test result
(ex. a test failed in that class => pink )

Alain


Ooh, I like...

0

I made a couple minor changes to make the image "sticky". Now the text scrolls on top of the image. I've never worked on a plugin so I'm not sure what the appropriate procedure is. Should I just send the proposed changes to eric directly? The plugin really belongs to him (IMHO). I also would like to make some changes to configure the alpha level ect. Is this ok or should I be emailing the plugin owner directly?



Attachment(s):
BackgroundBorder.jar
0

ok here is another one. It has the ability to scale images. This will take your images and not just resize cropping it but scale it to be whatever size your editor panel is. I also had to do some optimizations because scaling images can be costly.

I'm going to try and start adding options to this thing, but I'll stop posting in here until I hear from eric to reduce the clutter.



Attachment(s):
BackgroundBorder.jar
0


I'm going to try and start adding options to this
thing, but I'll stop posting in here until I hear
from eric to reduce the clutter.


Charles,

Thanks for the mods. I'm a J2EE developer rather than a Swing/AWT developer, so it's something of a miracle that I got this to work at all (gotta love google...).

It's probably easier to have one source for distributions so you should probably pass on changes to me and I can incorporate them into a build. I'll look into sourceforge for a more convenient way to share source and ideas.

I'll keep you posted. However, I'll be incommunicado for the next couple of days, so feel free to distribute mods.

Thanks.

eric

0

Please sign in to leave a comment.