package-explorer

Eclipse plugin menu item is not visible

女生的网名这么多〃 提交于 2019-12-02 10:25:35
I tried to add a menu item to package explorer's right click menu. But my menu item is not visible when i run my plugin. what am i missing? here is my plugin.xml: <?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.4"?> <plugin> <extension point="org.eclipse.ui.menus"> <menuContribution locationURI="popup:org.eclipse.jdt.ui.PackageExplorer"> <command commandId="kodsayici.counter" label="Count" style="push"> <visibleWhen checkEnabled="false"> <with variable="menuSelection"> <iterate ifEmpty="false" operator="or"> <adapt type="org.eclipse.jdt.core.ICompilationUnit"> </adapt> </iterate> <

Add Package explorer in RCP-Application result in loosing some icon

我只是一个虾纸丫 提交于 2019-12-02 03:10:21
In my eclispe rcp application I added a package explorer adding org.eclipse.jdt.ui When I use my rcp-app, as I create a new Project by "New Project Wizard" to add a "General Project", the project is correctely created, but the corresponding icon in package explorer view is not loaded. What is the plugin I have to add to my application to see that all the (platform) Icons correctly ? Thanks a lot This is a known issue in Eclipse RCP applications. https://bugs.eclipse.org/bugs/show_bug.cgi?id=234252 The work around is to add some code to your ApplicationWorkbenchAdvisor.java Here's some more

Eclipse package explorer empty

萝らか妹 提交于 2019-12-01 16:43:08
I'm new to Eclipse, and I can't seem to get the package explorer to cooperate. Here is my current file tree: └───workspace ├───bin │ └───var ├───res │ └───gui └───src └───var └───all of my source code I attempted to start a workspace in the current tree, \workspace, \workspace\src, and workspace\src\var. All resulted in an empty package explorer. I have tried Eclipse Indigo, Juno, Classic Indigo, and Classic Juno, with no success. Can anyone offer help? Maybe a little late, but i found a solution to this problem! Just right click on the explorer, select import , then in general select Existing

Eclipse package explorer empty

依然范特西╮ 提交于 2019-12-01 16:40:05
问题 I'm new to Eclipse, and I can't seem to get the package explorer to cooperate. Here is my current file tree: └───workspace ├───bin │ └───var ├───res │ └───gui └───src └───var └───all of my source code I attempted to start a workspace in the current tree, \workspace, \workspace\src, and workspace\src\var. All resulted in an empty package explorer. I have tried Eclipse Indigo, Juno, Classic Indigo, and Classic Juno, with no success. Can anyone offer help? 回答1: Maybe a little late, but i found a

How to programmatically change the selection within package explorer

感情迁移 提交于 2019-11-28 01:48:47
问题 I am currently developing a plugin for eclipse that analyzes dependencies and references between projects within the Eclipse Workspace and displays them in its own View in a UML-like diagram. To increase the usefulness of my plugin, I wish to add interactivity to the diagram by allowing users to open a project in the package explorer and if applicable open it in an editor by clicking on the graph displayed. However, my problem is that while I know how to obtain a given selection from the

How to hide src folder from eclipse project explorer?

蹲街弑〆低调 提交于 2019-11-27 19:39:19
I use a maven standard directory layout for my projects. The image Below is a typical project explorer view of a "not so minimum working example" of the view I want to customize. As you can see, all the relevant folders are marked as source folders, so there is no need to show the src folder hierarchy as it is shown below the included libraries. So the question is, how can I get rid of the redundant src folder showing, i.e. how to show only source folders and libraries? I've playing around with filters and content configuration of the view but couldn't find the way to do it. Click to the third

How to hide src folder from eclipse project explorer?

旧街凉风 提交于 2019-11-26 22:49:46
问题 I use a maven standard directory layout for my projects. The image Below is a typical project explorer view of a "not so minimum working example" of the view I want to customize. As you can see, all the relevant folders are marked as source folders, so there is no need to show the src folder hierarchy as it is shown below the included libraries. So the question is, how can I get rid of the redundant src folder showing, i.e. how to show only source folders and libraries? I've playing around

How to view hierarchical package structure in Eclipse package explorer

与世无争的帅哥 提交于 2019-11-26 13:58:13
OK here's what I would like: in the Eclipse package explorer, I see the following: (dot represents a clickable arrow that I can use to expand the folder) PROJECT Source Folder Package Class Package.SubPackage Foo Bar Package.OtherSubPackage Package.OtherSubPackage.VerySubPackage OtherPackage Foobar OtherPackage.SubPackage Baz Long story short, I want to have many packages, each with many subpackages, in a source folder (and several source folders, so making more won't solve the problem)--so on the order of a couple hundred packages per source folder--ten to twenty packages each with fifteen

How to view hierarchical package structure in Eclipse package explorer

蹲街弑〆低调 提交于 2019-11-26 03:00:16
问题 OK here\'s what I would like: in the Eclipse package explorer, I see the following: (dot represents a clickable arrow that I can use to expand the folder) PROJECT Source Folder Package Class Package.SubPackage Foo Bar Package.OtherSubPackage Package.OtherSubPackage.VerySubPackage OtherPackage Foobar OtherPackage.SubPackage Baz Long story short, I want to have many packages, each with many subpackages, in a source folder (and several source folders, so making more won\'t solve the problem)--so