Eclipse tabs closage within a project only - java

Most of time I work with more opened projects at once which results in the overcrowded and fuzzy set of opened cross-projects tabs at once. Suddenly I realize I have found what I need and I want to close all the tabs belonging to a project. Is there a way to comfortably close all the project related opened tabs without closing a project itself?
Example
I have opened two projects A and B. I would like to close all the clases under the B project only, i.e. (B1.java, B2.java ... B5.java).
Why don't you want to close the whole project and open to get rid of these tabs?
I want to keep the project opened to see its structure and opened packages with their content. Although my example above is simple, let's assume I don't want to close the project and walk through a broadly branched tree to find a relevant package agian. The only I need is to close the currently opened tabs of the other project to be used soon or later.
Close them manually, huh?
Eclipse has an amazing feature that the each tab size is different based on the length of the class/file name - the closing of more of tabs at row is still about wasting time of finding the x button. The even more stupid is the expandable list on the right side of tabs which items have no x button at all so I can't close the tabs directly from it.
So, does exist a way?

The simple answer is no, this is not possiable. To close all the tabs you can:
In the file menu(File>>Close All), click the close All item. Eclipse will close all the existing tabs.
This is quite a niche requirement, this could be quite a nice opportunity to build a Ecplise Java Plug-in.

I would suggest using "Tasks" or "Mylyn". When you move from task "A" to task "B", it will replace all the editor tabs for project "A" with the last editor tabs you had open for project "B".

Related

How to embed a project inside another project?

I have a source code for android project and I want to integrate and embed this app inside another app ...
In other words, I need to mix 2 apps with different packages inside one app ...
Thanks for your help and waiting your review..
It depends on what you mean by "mixing two apps":
If you want to store the two projects in the same repository, you can do that without any problems.
If you want to have them in the same project to be able to edit them at the same time, why not open them both simultanously in two separate windows? When opening the project, Android Studio will ask you whether you want to open the project in this window or in a new window. Just click "New window" and you will be able to edit the projects side by side without any fancy mixing going on.
If you wish to reuse the code from one project in the other project, consider creating an android library module. That way, changes in the common code will automatically be reflected in both projects whereas when you copy-paste the code, you will have to copy changes back and forth, too.

Disable the Refreshed Selected Content Root Pop-up in IntelliJ gradle project

In IntelliJ it seems like whenever I save a file there is this annoying green pop-up notifier at the very bottom that obscures my bottom toolbar, i.e. where terminal, messages, debug usually are.
It's usually "Refreshed selected content roots" which I believe is a gradle thing. There is no obvious way to dismiss it and it just trips me up every time.
As I often make a change and then want to switch to SonarLint or Terminal or whatever and it's blocking the button.
I know obvious workarounds like moving buttons around, but I kind of don't understand what that notifier is even called to configure it or even google it.
As #CrazyCoder would know what he's talking about, I found that the alert is caused by the (hasn't been updated in years with no configurable settings) AccuRev Plugin.
You can search this PDF for "Selected Content Roots" and you'll find it:
https://supportline.microfocus.com/Documentation/books/AccuRev/Plugins/IntelliJ/2014.2/intellij-2014.2-users_guide-en.pdf
This means if I don't plan on moving files around I can logout or disable the plugin then run accurev stat -mO when I'm done. There have been plenty of other reasons to do that, so this just added to the heap.

Cannot view working sets Eclipse

Once upon a time I used Eclipse and I discovered this wonderful thing called working sets.
Now I am using Eclipse Luna and it looks like I have to relearn all about Working Sets again. Because nothing works like before.
On my journey to relearn all about working sets, some folks said that I should go to Customize Perspective.. and add the window working command group. I did that.
Then I created three working sets which each contained different projects. It kind of looks like this :
Now, I thought, this is where the fun begins.
Excitedly, I navigated to the Window menu and selected all three working sets.
Astonishingly nothing happened. I used to be able to see multiple working sets at the same time. What happened?
If you want to see the projects split in to Working Sets in the Project Explorer view you need to open the Project Explorer view menu (the small down arrow at the top right of the view) and select 'Top Level Elements > Working Sets'

Keep Component Inspector state between applications switch in NetBeans

On NetBeans 7.0.1, if you are designing two User Interfaces, the "Component Inspector" becomes available while at "Design View", if you switch from one UI to another the Inspector randomly collapses all nodes and you lose focus of the component you had previously selected.
This is annoying because you have to keep expanding the nodes to get focus on what you were working.
One solution is to have multiple NetBeans instances, this may work if you must have two UI opened at the same time, but what if you must have five UIs opened at the same time? 5 NetBeans instances is not an option.
So, do you know what do I have to do so the Component Inspector does not collapse when switching between files? or in another words, how to keep the component inspector state between applications switch?
Thanks for your help!
(Posting this as an answer to show screenshots)
I do not get the same behavior as you do. In my case the Inspector does not collapse the panels when switching between open files, only when closing & opening a file. My IDE looks like the screenshots below when switching between the file tabs (CheckPanel.java & PasswordEditPanel.java).
So the functionality is definitely there, but something is amiss in your case.

Eclipse RCP: Why is the view missing when running as a Product?

I'm brushing up my Eclipse RCP skill by trying to enhance my one-year-old side RCP application. This application has one perspective, and this perspective has 3 views, and I'm adding another view into the same perspective. To add this new view, I added it in the MANIFEST.MF file under Extensions tab and created the Java file for it.
When I run it as an Application, it works. I see all 4 views in the application. But, when I run it as a Product, that new view is missing. It almost seems like the new view is not registered in the Product. There's no error in the console log either. I think I must be missing a step here, but I can't seem figure out here... pretty frustrating!
Note: The views are added into the perspective programmatically (in Java code), not through MANIFEST.MF file. I just realized that even when I change the existing view's layout (ex: size, or location), it doesn't get reflected when running as a Product either, but it works when running as an Application... sigh!
Note: I commented out all the code in my perspective class, in another word, all the views are removed from the perspective. When I launch the Product, I'm still seeing 3 views in the application. I'm thinking there's something to do with caching, but I'm just bummed now.
Any helps are greatly appreciated here! Thanks much,
Okay, after aimlessly clicking around, I figured out the solution. The workspace data needs to be cleared to pick up changes from the perspective.
To do so...
Right click the product file
Choose "Run Configurations..."
Under "Main" tab, check "Clear" checkbox and "workspace" radio button.
Run it.
Hope this will save some of you from troubles.
I've been bitten by this a couple of times until I figured out the easiest workaround: it's sufficient to reset the perspective. There are two ways to achieve this:
Right-click on your perspective in the perspective selector bar at the top right and click on Reset.
Switch to your perspective and then go to Window | Reset perspective....
After that, the changes to your perspective should be picked up.

Categories

Resources