Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / March 2006

Tip: Looking for answers? Try searching our database.

Making IntelliJ sit still

Thread view: 
Roedy Green - 06 Mar 2006 20:37 GMT
IntelliJ has a window something like Eclipse's package navigator.  You
can navigate the classes in the various packages and then the methods
and variables within a class.

The problem is, I have it pointed to the area of interest, e.g. the
static variables of my class, and I turn my back for an instant and
the display reverts to displaying a list of packages.

I have not figured out what it is that I do to make it lose its place.
Any tips on either how to freeze it or how to get back rapidly to
where I was?
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Boris Gorjan - 07 Mar 2006 08:59 GMT
> IntelliJ has a window something like Eclipse's package navigator.  You
> can navigate the classes in the various packages and then the methods
[quoted text clipped - 7 lines]
> Any tips on either how to freeze it or how to get back rapidly to
> where I was?

I have s similar problem in Eclipse. For example: open project loses "focus".
Even if only one project is open and only one file is in the editor view. One
selects console view and all of a sudden one cannot, for example, "clean" the
project without reselecting it. And the list goes on. Is there a way around that?
Oliver Wong - 07 Mar 2006 16:56 GMT
> I have s similar problem in Eclipse. For example: open project loses
> "focus". Even if only one project is open and only one file is in the
> editor view. One selects console view and all of a sudden one cannot, for
> example, "clean" the project without reselecting it. And the list goes on.
> Is there a way around that?

   For what it's worth, I was not able to reproduce this behaviour, so it
may be a bug that is somehow being triggered by your particular environment.
I've tried various ways of selecting the console view (clicking on it, using
keyboard shortcuts, using drop down menus, etc.), and in all cases, I could
always select to "clean" the project.

   - Oliver
Boris Gorjan - 07 Mar 2006 18:15 GMT
>> I have s similar problem in Eclipse. For example: open project loses
>> "focus". Even if only one project is open and only one file is in the
[quoted text clipped - 9 lines]
>
>    - Oliver

OK, try this:

0. Make sure that you have "Clean project selected below" radi button selected
from Project -> Clean dialog.
1. Open one single project.
2. Open one single .java file in an editor view.
3. Shift focus to Taskbar (or something else so that Eclipse stays at least
partially visible).
4. Shift focus back to Eclipse by clicking on Console view.
5. From the menu, select Project -> Clean.
6. Notice that your project is not selected (checked) anymore.

Even if you have several .java files, from several projects opened
simultaneously (which could be an excuse for inconsistency described above),
after the focus shift, one editor view stays in front, that is it's tab is
special. Strictly speaking, it doesn't have focus (it's not blue), but it's the
... well, the one in use (it's white, not gray like the rest of them). So I
think the "current" project should be the one that this special tab belongs to.
Oliver Wong - 07 Mar 2006 19:08 GMT
>>> I have s similar problem in Eclipse. For example: open project loses
>>> "focus". Even if only one project is open and only one file is in the
[quoted text clipped - 30 lines]
> them). So I think the "current" project should be the one that this
> special tab belongs to.

   Okay, I understand now. Previously I thought you mean the "Project ->
Clean" menu was greyed out or something, but what you mean is that Eclipse
won't automatically add a checkmark to what is, in you opinion, the obvious
choice for which project that should be cleaned.

   It looks like the behaviour of which checkbox is check depends on which
editor or project has focus. If you have several projects open, and you
click on them in the navigator, then select the "clean" menu, the most
recently clicked project will be checked.

   If you have several editors open, each one editing a file from a
different project, and you switch between those editors, then when you
choose "clean", it will automatically check the project of the file of the
editor you last clicked on.

   So imagine you have projects A, B and C, and you have editors open for
files from each (A.a, B.b and C.c). Click on project A, then click on editor
B.b. Notice that in the navigator view, project A is still selected (unless
you asked Eclipse to link the navigator to the editor). Now go to "clean".
It automatically checks project "B", because that's the editor you were
looking at, even thought project "A" was the one that was selected in the
navigator.

   To me, it sounds like this is "intended" behaviour, so I doubt there's a
way to turn this off. You migght be able to submit a RFE (Request For
Enhancement) to add in an option to change this behaviour, perhaps.

   - Oliver
Jean-Marie Gaillourdet - 09 Mar 2006 09:17 GMT
Roedy Green schrieb:
> IntelliJ has a window something like Eclipse's package navigator.  You
> can navigate the classes in the various packages and then the methods
[quoted text clipped - 7 lines]
> Any tips on either how to freeze it or how to get back rapidly to
> where I was?

Look at those buttons in the toolbar above the package or project view.
There is a button called "Autoscroll from source". You can see the name
if you wait for the tooltip to appear. If that button is selected the
package or project view follows the main editor. Try to switch it off.

Regards,
 Jean-Marie


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.