Mylyn Task Focus UI - eclipse

If you use the Mylyn task focus UI, the package explorer shows
sourceFolder/package/fileName/classTypeName/methodName
for any class in the context of an active task. Is it possible to remove classTypeName and methodName and show only all entities up to their fileName?

I don't generally need the structure inside the Java file, so I just disable that in the Package Explorer completely. To do that:
go to the View menu (the little triangle)
choose "Filters"
check "Java Members"
Unfortunately, this doesn't work in Project Explorer.

You can uncheck "Window -> Preferences -> Mylyn -> Context -> Auto expand tree views when focused", this may help to some extend.

On Eclipse PDT I used Navigator View instead of PHP Explorer View:
Window -> Show View -> Navigator
That way only the filenames are displayed.
After that i added filters to exclude files from view, e.g. .* resources.

Related

How to remove additional class drop down in Eclipse Project Explorer view?

In the Project Explorer view of Eclipse Luna, there's an additional drop down for Java files which represents the class inside the file (the green C icon). It expands when I double click to open a class. I don't need this there. Is there a way to filter this out?
Uncheck Preferences / Java / Appearance / "Show members in Package Explorer" checkbox.
It affect both Package and Project explorer.
Preferences windows with that checkbox
It's possible if you use Package Explorer instead of Project Explorer: go to prefs, Java, Appearance and disable "Show members in Package Explorer".
You can disable various elements in the explorer tree via the View config toolbar button (small white triangle on the toolbar just below the Project Explorer tab); select Customize View... then the Content tab; there you can disable, for example, Java Elements. But doing so will hide all Java-related elements from the Project Explorer tree; if you want that, at that point you should just use the Navigator view instead of Project Explorer. Navigator is just a file-system view of the projects.
There is an option for this. Click to three dots on the right top corner in Project Explorer window, click to "Filters and Customisation", then click to "Content" tab. You will see like that things:
Uncheck "Java Elements" (PHP Elements for Eclipse PDT) then clik to OK button. Then you will see that dropdown triangle shit goes to the hell...

Eclipse: How to disable outline tree view for files?

Is there a way to disable the outline tree view for files in Eclipse?
I never use it (on purpose at least) and find it to be quite distracting. (I prefer ctrl + O.)
For the Java Package Explorer, there is an option for this in the Preferences:
Go to Preferences -> Java -> Appearance and un-check 'Show members in Package Explorer'.
Alternatively, most of Eclipse's different navigator views offer the ability to Filter what to display. Click on the small triangular "menu" symbol at the top of the view and select "Customize View", or "Filter", depending on the view. You are then presented with a menu where you call select what to show and what to hide.
This works with the Java Package Explorer, Project Explorer, the general Navigator and also with the PyDev Package Explorer View, and probably a few more. This is a bit more manual, but allows for a finer adjustment. (Options what to show and what to hide differ between the different views.)
The creator of PyDev commented on my bug report and this is how you do it:
Select the PyDev perspective and then the Package Explorer (if not already).
Press CTRL + F10
Click on Customize View.
Select PyDev: Nodes: All
Press OK.

Adding custom right click menu into Eclipse's project explorer view in RCP application

Currently I'm using Eclipse's Project Explorer view into my RCP Application by writing the following line of command into my "Perspective.java" file...
layout.addView(IPageLayout.ID_PROJECT_EXPLORER, IPageLayout.LEFT, 0.30f, editorArea);
It is currently giving me all the default right click options that eclipse's project explorer view gives..
i.e. cut, copy, paste, delete, refresh, etc.
I want to add my own custom right click options into these default options. Does anyone know how to do it? Or will have to build my own project explorer view??
Is there anyway from where i can get the code that eclipse used for building the project explorer view?
would like to know what can be done in this situation or any other solution for this??
Thankyou !!
While my comment covers your question, the follow up questions need some more space:
a) how to look at eclipse sources:
*File -> Import ... ->Plug-in Development -> Plug-ins and Fragments -> Next*
Chose *Import as -> Binary Projects* (you can read the source code but not change it. This saces time, because the code doesn't get compiled) ->Next
Chose plugins to import -> Finish
You can find the sources in the projects in "referenced libraries"
b) you need the path to the menu entry and the plugin you want to add to. This can be done with the Plugin spy (Alt+Shift+F1 -> click on the view of which you want to get the id) or or Menu-Spy (Alt+Shift+F2 -> click on the menu entry that you want to add to)in Eclipse.
c) To add a menu entry to the popup, see the How to add items in popup menu? (the one I mentioned in my comment).

where can i find java element filters dialog?

Where is the java element filters dialog in eclipse?
I can't find it.
Thank you very much.
In package explorer tab -> view menu (down arrow icon) -> customize views.
Then you can select radio button to show the empty package.
In STS v3.1, if you are viewing the Java perspective, you can see this in the Package Explorer view:
Then you can manipulate the "view" by checking (or unchecking) those elements that you with to filter (or show) like this:
Hope that helps.

How can I get Eclipse to show .* files?

By default, Eclipse won't show my .htaccess file that I maintain in my project. It just shows an empty folder in the Package Viewer tree. How can I get it to show up? No obvious preferences.
In the package explorer, in the upper right corner of the view, there is a little down arrow. Tool tip will say view menu. From that menu, select filters
From there, uncheck .* resources.
So Package Explorer -> View Menu -> Filters -> uncheck .* resources.
With Eclipse Kepler and OS X this is a bit different:
Package Explorer -> Customize View -> Filters -> uncheck .* resources
For Project Explorer View:
1. Click on arrow(View Menu) in right corner
2. Select Customize View... item from menu
3. Uncheck *.resources checkbox under Filters tab
4. Click OK
--
Eclipse Juno
Cory is correct
# If you're using Eclipse PDT, this is done by opening up the PHP explorer view
I just spent about half an hour looking for the little arrow, until I actually looked up what the 'PHP Explorer' view is. Here is a screenshot:
I'm using 64 bit Eclipse for PHP Devleopers
Version: Helios Service Release 2
It cam with RSE..
None of the above solutions worked for me... What I did was similar to scubabble's answer, but after clicking the down arrow (view menu) in the top of the RSE package explorer I had to mouseover "Preferences" and click on "Remote Systems"
I then opened the "Remote Systems" nav tree in the left of the preferences window that came u and went to "Files"
Underneath a list of File types is a checkbox that was unchecked: "Show hidden files"
CHECK IT!
1. From Package Explorer open the Filters... dialog:
2. Then uncheck .* resources option:
On Mac:
Eclipse -> Preferences -> Remote Systems -> Files -> click Show Hidden Files.
In your package explorer, pull down the menu and select "Filters ...". You can adjust what types of files are shown/hidden there.
Looking at my Red Hat Developer Studio (approximately Eclipse 3.2), I see that the top item in the list is ".* resources" and it is excluded by default.
Spring Tool Suite 4
Version: 4.9.0.RELEASE
Build Id: 202012132054
For Mac:
In my case, I wanted to see .htaccess files, but not all the other .* resources.
In Zend Studio for Eclipse, in PHP Explorer (not Remote System Explorer), click the downward facing arrow (next to the left/right arrows).
Choose Filters.
Uncheck .* resources
In the "Name filter patterns" area, type the filenames you want to ignore.
I used:
.svn, .cvs, .DS_Store, .buildpath, .project
If using Zend Studio, same arrow, go to RSE view, click on the downward facing arrow, hit preferences, and then check show hidden files.
That did the trick for me.
If you're using Eclipse PDT, this is done by opening up the PHP explorer view, then clicking the upside-down triangle in the top-right of that window. A context window appears, and the filters option is available there. Clicking the Filters menu option opens a new window, where .* files can be unchecked, thus allowing the editing of .htaccess files.
I searched forever for this, so I'm sorta answering my own question here. I'm sure someone else will have the same problem too, so I hope this helps someone else as well.
Eclipse shows hidden files in the "Navigator" view. You can add that via Window->Show View->Navigator.
Preferences -> Remote Systems -> Files -> Show hidden files
(make sure this is checked)
Follow steps 1, 2, and 3 in the figure below: