eclipse-plugin

How to find the type of a selected member in Eclipse?

旧巷老猫 提交于 2020-01-05 04:37:12
问题 I am co-developing an Eclipse plugin where Users can select Classes and Methods from their code and attach them to notes that are saved in a different file. I want to find a way to determine what type of member was selected by the user when they choose to create an attachment. For example: I want to attach a class named "HelloClass" to a note called "HelloNote". I select the "HelloClass" member name in the editor, right-click and select my "Create Attachment" action. This action calls the

How to catch a moment when Eclipse is creating a new project?

与世无争的帅哥 提交于 2020-01-05 04:01:09
问题 I am developing a CDT plug-in for Eclipse IDE. I want to write to a project-scoped preference file when creating a project or just store an info to identify this project later and write to a file. How can I seize a moment when Eclipse is creating a new project and store some info about it? 回答1: You can use an IResourceChangeListener listener to listen for all resource changes: ResourcesPlugin.getWorkspace().addResourceChangeListener(listener); The listener implements the single method: public

GEF + EMF: Why doesn't my editor remove the Figure for a removed object when refreshChildren() is called?

孤街浪徒 提交于 2020-01-04 14:17:05
问题 I have implemented a GEF editor for a graph-like EMF model, with a remove command for a certain type of node in the graph. I think I've done all the necessary steps in order to make this set up work (vainolo's blog has been a great help). However, when I'm deleting a model element, the view doesn't get refreshed , i.e., the figure for the model element isn't removed from the editor view, and I have no idea why. I'd be extremely grateful if somebody could have a look at my sources and point me

Eclipse force handlers to to re-evaluate

本秂侑毒 提交于 2020-01-04 08:16:52
问题 How can I force Eclipse to do a re-evaluation of the activeWhen-conditions of all handlers? Situation: I have defined a command on a TreeViewer. This command has more than one possible handlers. Handlers have defined some conditions to decide whether the handler shall be activated or not. My problem is that there is no re-evaluation of the handler conditions until I de-seclect the item in the tree (e.g. select another item) and select it again. If the selection does not change but the raise

Eclipse Content Assist for viewing block declarations from the closing brace?

允我心安 提交于 2020-01-04 06:59:08
问题 I'm really curious if anyone knows if Eclipse's Content Assist can be configured to display a code block's declaration by hovering over the block's closing brace (or something similar). Rather than having to mark long code blocks with a comment, I would much rather hover over the closing brace to view which block it ends. If what I'm saying isn't clear, imagine you had the code block below: if (obj instanceof Double) { //...PROGRAM LOGIC... } In this example, if I were to move the caret to

Anyone got LunarEclipse to work with Eclipse 3.4.1?

孤街浪徒 提交于 2020-01-04 06:50:10
问题 I spent a couple of hours yesterday trying to get LunarEclipse to work with Eclipse 3.4.1 and DLTK 1.0 I looked at some bug reports at their sourceforge project page and they said that their 1.2.9 version was supposed to work with DLTK1.0. Problem being they hadn't actually released the 1.2.9 yet. You could get it at their SVN repository though. I downloaded their svn repository. To my dismay I could not for the life of me remove all errors from the project. It kept saying it couldn't resolve

Eclipse minimal configuration for plug-in deployment

倖福魔咒の 提交于 2020-01-04 05:48:07
问题 I am developing eclipse plug-in right now. Default eclipse download contains a lot of plug-ins which my plug-in doesn't require. It causes eclipse folder to have a larger size then it is needed. So I wonder if there are any ways to create such minimal eclipse configuration, so it will be able to load my plug-in and be free of not require plug-ins? Are there any ways to do it automatically? 回答1: So I wonder if there are any ways to create such minimal eclipse configuration, so it will be able

Adding combo box on toolbar of eclipse using Eclipse plug-in development API

こ雲淡風輕ζ 提交于 2020-01-04 05:38:08
问题 I want to add a combo box to the toolbar (coolbar) of eclipse using Eclipse Plug-in development API (not an RCP application). This combo box items should be dynamically added/removed. I know that in RCP applications it is possible by following the link : http://www.thedeveloperspoint.com/?p=140 but I am looking at Eclipse plugin API. Any help would be greatly appreciated. Thanks Syam 回答1: This can be done by using 2 steps. STEP 1: By using extension point mechanism create/add toolbar to the

Where to find offline installer for Vaadin 7?

北战南征 提交于 2020-01-04 04:45:14
问题 I'm working with Vaadin 7, Eclipse(Juno) and Java EE 7. I want to use the Eclipse Vaadin plugin to create and compile Vaadin projects. The problem is that the Vaadin plugin insists on checking the vaadin website for updates before doing just about anything (and crashes my eclipse when it can't do it) - I am behind a very restrictive network and cannot use it in this way. I found this: https://vaadin.com/directory#addon/vaadin-plug-in-for-eclipse Which is a downloadable offline repo for Vaadin

Failed to run com.android.ide.eclipse.adt.internal.build.AidlProcessor

不打扰是莪最后的温柔 提交于 2020-01-04 04:25:12
问题 I got a project from a developer which is already completed and working fine for him on his computer. When I try to build that project on my computer in eclipse, then I am getting following error message: Failed to run com.android.ide.eclipse.adt.internal.build.AidlProcessor. Developer is using AIDL files into the project and I think my eclipse is not able to run those file... I searched lot about this on internet but did not get any help. Please let me if someone have any idea about this