FAQ Database Discussion Community

## When automating Eclipse's “Export as Feature”, Maven/Tycho doesn't see my plugin

eclipse,maven,eclipse-plugin,tycho
I have a plugin and a feature project in my workspace. When I export the feature manually via File > Export As > Feature everything works well. I'm trying to write an automatic plugin building and exporting script to get rid of this chore. I converted feature project to Maven...

## no acceptable features were found on the selected site

java,eclipse,eclipse-plugin,lotus-notes
We have developed an Eclipse plugin and created an update site for IBM Notes 9. We have tested this plugin on several laptops/pc's, but on some machines we are getting the following error message: No acceptable features were found on the selected site(s). Choose a different site or site category....

## Installing JavaFX plugin into Ecipse Kepler and getting errors

eclipse,javafx,eclipse-plugin
I am trying to install the following JavaFX plugin http://download.eclipse.org/efxclipse/updates-released/1.2.0/site/ I am following directions from this site: http://www.eclipse.org/efxclipse/install.html I the xtext software that the site recommended but I am getting the following error: Cannot complete the install because one or more required items could not be found. Software being installed:...

## Eclipse/OSGi: How to control the file-name created via an exported plugin (jar)

java,eclipse,eclipse-plugin,osgi
Trying to control the name of the file created via Export when exported an OSGi plugin from Eclipse. This is specifically by selecting the plug-in the Project Explorer, then selecting the menus: 'Export | Deployable plugins and fragments'. The options seem limited or almost non existent. For example, if I...

## How to hide/remove minimize button in editor?

java,eclipse-plugin,eclipse-rap
I'm working with OSGi and RAP. I have one requirement that is to hide/remove the default minimize button at top-right of the editor but keep the maximize button there. But for now I don't have any idea or solution for that. Any suggestion are welcome....

## How to get image from plugin internal resources?

java,eclipse,eclipse-plugin,swt
I'm trying to get an image file from my plugin resources using SWT Image Image image=new Image(device,"icons/imagename.png"); The icons folder is in the classpath of the plugin but I still get an IOException. Can you help me indicating what is the correct way of accessing an Image resource from internal...

## How to contribute a context menu to a custom view in an eclipse plug-in project?

eclipse,debugging,view,eclipse-plugin,popup
In an eclipse plug-in project, I contributed a view named Favorites with id com.qualityeclipse.favorites.views.FavoritesView. Then I want to contribute a context menu to the Favorites view by using popup:com.qualityeclipse.favorites.views.FavoritesView?after=additions. However, no context menu shows up upon a right-click within the Favorites view. I changed it to popup:org.eclipse.ui.popup.any?after=additions for test. This...

## Is there any event to know if a view is moved below some other view?

java,eclipse-plugin,eclipse-rcp
I have a stack of views shown on top of each other. So at a time only 1 view is shown and others are below the active view. I want to know whether a particular view is active or moved below some other view inside the ViewPart code. Is there...

## Root directory of eclipse plugin project

java,eclipse-plugin,eclipse-rcp
I have an RCP application based on eclipse plugins. I have a file and I want to put it inside the root directory of my plugin and access it from there, so it is available on any platform (windows or linux). For example, my plugin name is Test and I...

## Eclipse Wizard plugin executes code for all pages at once

java,eclipse,eclipse-plugin
I am writing an Eclipse plugin which utilizes Wizard and WizardPage classes. At the moment, whenever I add a page, the code related to this page is executed. This is not what I need, since some pages rely on input provided on previous pages. How can I add this dependency...

## How to force team members to comment using eclipse plugin or something else

eclipse,jenkins,eclipse-plugin,coding-style,build-automation
Currently, I am working in a new project and it was difficult for me to understand since there is no comment. I wonder if it is possible to force team members(including me) to add more comments. I would like to automate this ject in jenkins later if possible.

## Modify ivy classpath entry

java,eclipse,eclipse-plugin,ivy,ivyde
In the picture below, I want Ivy settings path to NOT include ${ivyproject_loc} Property Files to NOT include${project_loc} Here is what I have right now. I was thinking it might be easier to remove the ivy library and add it the way I want it. I know how to...

## How to log starting of Eclipse plug-ins / OSGi bundles?

eclipse,eclipse-plugin,osgi,eclipse-rcp,osgi-bundle
In an Eclipse RCP application, how can I automatically log each plug-in as it is being started? I know about these, but am looking for something more akin to Java's -verbose:class: OSGi console's ability to query the current set of plug-ins. Handcoding a logging call in each plug-in's activator. This...

## How to use Timer and SwingWorker in an Eclipse Plugin?

java,eclipse,eclipse-plugin
I'm developing an Eclipse plugin that will contribute to the GUI with a view. The view is updated with informations from a versioning system when the user selects a folder or a file in the workspace. In order to avoid collecting data everytime the user goes through the project subfolders...

## What is the difference between jface treeviewer setComparer method and setSorter method?

java,eclipse-plugin,eclipse-rcp,jface
Could anyone explain me conceptually(inner working), what is the difference between jface treeviewer setComparer method and setSorter method.

## Close an open IFile in editor if it is deleted in Project Explorer

eclipse-plugin,eclipse-rcp
I have a requirement to close an open IFile in editor if it is deleted in Project Explorer. As I understand IResourceChangeListener can be used to listens to changes in project workspace but how can I get the perticular file which has been deleted. as event.getResource() returns a IProject being...

## How do I know if one class is superclass of another, given that I only have the fully qualified names of the classes as strings?

java,eclipse-plugin,jdt,eclipse-jdt
I need to know if the class represented by one string is superclass (directly or transitively) of another class also represented as a string. For instance: String class1 = "java.lang.Object"; String class2 = "java.lang.Exception"; assertTrue( isSuperclass( class1, class2 ) ); I tried to get the IType for the second class...

## Maven changing output directory for jar doesn't work

java,maven,jar,eclipse-plugin
I build my project with mvn clean install, however I want to generate a subfolder in the target folder and put the generated jar file in there. I saw these two questions Maven: specify the outputDirectory only for packaging a jar? and maven: how to place the output jar into...

## Where does maven dependency fetch packages from?

maven,java-ee,eclipse-plugin
As per this below snapshot, I see list of packages for hibernate: I regularly see update index activity by m2e plugin(maven) in eclipse, for which I have no clue, What does it mean? Where are these packages fetched from and displayed? What is groupId/ArtifactId? Why can't one just say package/class...

## Always show the file path in FilteredResourcesSelectionDialog

eclipse,eclipse-plugin,swt,eclipse-rcp,jface
In the FilteredResourcesSelectionDialog, some items show the file path beside them in grey color while others don"t show the path. Why does this happen and how do I make sure that the file paths are always shown?...

## Implementing a Launcher Framework - disabled Apply button on dialog

eclipse-plugin,eclipse-rcp
I am working on a eclipse plugin and implementing a custom launcher as per the link https://eclipse.org/articles/Article-Launch-Framework/launch.html . I have implemented a class BrowsersTab which extends AbstractLaunchConfigurationTab and implemented all the methods. The problem is that when I call the updateLaunchConfigurationDialog(); on the selection event , the 'Apply' Button remains...

## Use existing perspective from a different plugin in RCP application

eclipse,eclipse-plugin,eclipse-rcp
This is what we have: a Plugin with an IPerspectiveFactory implementation and an extension to org.eclipse.ui.perspectives. This works fine if we open the perspective in the Eclipse window that is tarted from this plugin's MANIFEST.MF. An Eclipse 4 Application Project (in a different Eclipse project) I tried to use the...

## RCP TT cannot record for my application

java,eclipse-plugin,eclipse-rcp,rcp
I am trying to use the record feature in RCP TT but it keeps failing to start with this error: org.eclipse.core.runtime.CoreException: Java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.rcptt.tesla.internal.ui.SWTUIPlayer The application i am running is a RCP app and RCPTT can run it fine but when i try to use the record...

## How to run some code as soon as Eclipse has started?

java,eclipse-plugin,osgi,equinox,osgi-bundle
I'm developing an Eclipse plugin that needs to figure out the amount of time that it took for Eclipse to start. I can get the amount of time since JVM startup in my plugin by using org.eclipse.ui.startup extension point and recording the time by using ManagementFactory.getRuntimeMXBean().getUptime() or eclipse.startTime system property....

## Rascal error installing artifact missing

eclipse-plugin,rascal
Hello everyone i'm getting a error installing Rascal plugin. I tried installing it from http://update.rascal-mpl.org/stable/ but i get the following error: An error occurred while collecting items to be installed session context was:(profile=epp.package.rcp, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Artifact not found: http://update.rascal-mpl.org/stable/plugins/org.eclipse.imp.pdb.values_0.4.2.201506052148.jar....

## org.eclipse.swt.SWTException: Invalid thread access from HandledContributionItem

I know there are lots of such questions here and most of them are answered. But the answers just won't solve my case. I'm working on an eclipse plugin project, have a customized project type which can be either run or debugged. I have implemented the run and debug function...

## Mac FileSync project is null when attempting filesync

eclipse,osx,eclipse-plugin
I have been running filesync to hotswap my js,html, and css files for my project. It seems to work at random times and not work at random times. I have removed all filesync setups, built and deployed to my local. Filesync will then still work at random times. Sometimes it...

## Eclipse plugin development:How to open a file in external editor programmatically in eclipse plugin development

excel,eclipse-plugin
I am opening a .xlsx file in eclipse .It opens internally in MS excel which again contain my excel plugin.Which do not work properly when eclipse open excel internally. So how can i set ,eclipse always open .xlsx file externally. ...

## Dali JPA eclipse 4.4 changes

jpa,eclipse-plugin,dali
I have a question about difference in Dali JPA in eclipse 4.4 ( having org.eclipse.jpt.jpa.core_3.4.0 ) compared to old 3.x versions running with org.eclipse.jpt.core_2.2.1 for example. The synchronize classes job from old version org.eclipse.jpt.core.internal.synch.SynchronizeClassesJob has been removed in the latest versions. What can I use to synchronize the list of...

## How do I access general eclipse preferences in my own plugin

java,eclipse,plugins,eclipse-plugin,preferences
I want to get value of general console properties in my plugin. How can I do that? I think I should do something like this: IPreferenceStore store = ScriptUIActivator.getDefault().getPreferenceStore(); store.getDefaultInt(preferenceName); But what is "preferenseName"? And which one preference store do I have to use. http://i.stack.imgur.com/IqSuE.jpg...

## File Selection from List in a Wizard page

eclipse,user-interface,eclipse-plugin,swt,jface
I have a Wizard page which gets a list of IFile. I want to show the user the list and select one file from the list. Then the Wizard returns the selected file. Is there a standard file chooser that I can use instead of building from scratch in the...

## How to give PHP nature to a eclipse plugin

php,eclipse-plugin,eclipse-pde
I have created a plugin for a Custom framework , i need to give it a php nature so that while developing using this plugin the developer can use the features of php. Currently i am using custom nature. But i do not know how to switch to a php...

## synchronize modification between SWT table and TextEditor

table,eclipse-plugin,swt,text-editor,jface
I'm facing a problem and want to ask for a solution. I'm working on an eclipse plugin project, in which an editor for a type of resource file is required. The resource file has similar structure like csv file. My idea is to provide user the option to edit this...

## Force Re-Evaluation of Command Enablement

java,eclipse-plugin
I added a handler for the eclipse print command like that: <handler class="org.acme.PrintHandler" commandId="org.eclipse.ui.file.print"> <activeWhen> <with variable="activePart"> <test property="org.acme.printable" /> </with> </activeWhen> </handler> Which works really nicely. But sometimes the enablement of the command changes even though the active part did not. So I want to force a re-evaluation of...

## Add a progress bar to a Job in RCP

java,eclipse-plugin,eclipse-rcp,rcp,jobs
I have a time consuming job in my RCp application in which I read out a big database and save it in a file. I am running this job in a separate thread so that the UI of my app is not blocked but I dont know how to add...

## How to verify if a resource is of type .c, .h, .s in Eclipse?

java,eclipse,eclipse-plugin
I'm developing a TableViewer which is filled with data based on the selected resource. For files I'm checking the received item like this: if( item instanceof IFile ) { something; } I saw that .c, .h, .s files aren't of type IFile but of type ICElement. When I checked this...

Iam working on a Eclipse based customizedIDE for our development environment. Here in a new perspective i have included a "Project Explorer" and in that iam able to add commands in the context menu but when i include A new Wizard (A project Wizard) in the "new" type it is...

## OS X back/forward gestures in Eclipse IDE

eclipse,osx,eclipse-plugin,osx-yosemite
is there any plugin or possibility to use back/forward gestures in Eclipse IDE on OS X (like in Safari or Chrome) to open back/forward edit location? I tried to use BetterTouchTool, but it does not work with eclipse.

## Goto method of class shortcut

java,eclipse,eclipse-plugin,keyboard-shortcuts
I have a tool that will list failed tests, and I would like a way to open a fully qualified class and goto a method in Eclipse with a single string I can copy from the results. It can use any pattern whatsoever (I can change the test results layout),...

java,gwt,eclipse-plugin
My project using gwt maven plugin 2.5.1 and gwt 2.5.1. My Eclipse IDE have installed Google Web Toolkit SDK 2.6.0. When i debug my project with Super Dev Mode i get error java.lang.NoSuchMethodError: com.google.gwt.util.tools.Utility.versionCompare I have checked the error. This error is caused by class int enum com.google.gwt.dev.util.arg.SourceLevel , this...

## SWT FileDialog with java.lang.ClassNotFoundException

java,eclipse-plugin,swt

## Websphere Application Server 7 server adapter for Luna

eclipse,eclipse-plugin,websphere-7,eclipse-luna
I'm using Eclipse Luna Service Release 1 (4.4.1) and I have WAS 8.5.5 server adapter installed. The server and the apps deployed in it work fine. The production setup however is using WAS 7, hence, I want the Luna to include WAS 7 but whenever I try to 'download additional...

## How can we change default label provider of eclipse ide's project explorer view to render file with customized label

eclipse,eclipse-plugin,jface
I have a folder containing some xml files with some system generated names. I want to create a plugin which can replace the system generated name with the actual name of that file which is present in between name attribute of the xml file itself. I didnt find any way...

## show eclipse menuContribution in all perspective( not in only plugin development pespective)

java,eclipse,eclipse-plugin
I have written a plugin that have two menu contribution in project explorer but these menus are visible in only plugin development perspective. I want it to be visible in all perspective (especially in Java and Java EE perspective). Here is my plugin.xml: <?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.4"?> <plugin> <extension...

## How to install JasperReports as an Eclipse plugin with no internet connection? [duplicate]

java,plugins,eclipse-plugin,jasper-reports
This question already has an answer here: Installing a plain plugin jar in Eclipse 3.5 3 answers I need to create a report in Java with Spring. So I need to install a plugin for Eclipse, more specifically JasperReports as a plugin. The problem is that I don't have...

## Set Eclipse “Refresh using native hooks or polling” to true through java code?

eclipse-plugin,refresh,workspace
Is there a way to set "Preferences -> General -> Workspace -> Refresh using native hooks or polling" to true through java code? I'm developing an eclipse plugin that changes the resources a lot and therefore, the projects are always out of sync.

## Starting and Stopping Host Plug-ins

java,eclipse-plugin
We have a standard Eclipse plug-in with the usual GUI elements, and since our applications don't have the same structure, the registration of these elements is done in a fragment, for example: <fragment> <extension point="org.eclipse.ui.menus"> <menuContribution allPopups="false" locationURI="popup:org.acme.menu> <command commandId="org.acme.command" style="push" /> </menuContribution> </extension> </fragment> Now everything works as expected....

## What is difference between versions of eclipse like juno, kepler etc.? Which version to choose for web development?

eclipse,eclipse-plugin,web-deployment
Eclipse has so many versions like Juno, Indigo, Galileo, etc. Are they just versions or they are specific for what we are developing? If they are specific which one to choose for web development? Currently I have Juno which I am using for android development, is it possible to use...

## Tycho compiler does not find classes from plugin dependecies

eclipse,maven,build,eclipse-plugin,tycho
I am trying to build a plugin with Tycho. There are no errors in the Eclipse workspace, but when I try to compile it with Maven I got the following errors (more than 57 errors): [INFO] Resolving dependencies of MavenProject: uk.xman.tool:xman.xtend.conditiondsl:2.0.0 @ C:\Users\Simone\OneDrive\Eclipse\xman.xtend.conditiondsl\pom.xml [INFO] Resolving class path of MavenProject: uk.xman.tool:xman.xtend.conditiondsl:2.0.0...

## Eclipse plugin dev: make bundle to explode inside plugins folder

eclipse,eclipse-plugin,eclipse-rcp,nodeclipse
There is old Eclipse Image Viewer plugin https://github.com/persal/quickimage that I want to update. After adding maven/tycho build and building against Kepler. It works in new Eclipse instance (project -> run as Eclipse application), but when installing here is an issue #6 org.eclipse.swt.SWTException: i/o error (java.io.FileNotFoundException: file:\D:\Progs\Eclipses\eclipse-standard-luna-R-win32-x86_64\eclipse\plugins\nu.psnet.quickimage.plugin_1.1.0.201503030326.jar!\icons\previous.gif (The filename, directory name,...

## Filter file system file selection dialog by ContentTypeId

eclipse,eclipse-plugin
In the Eclipse plugins we're developing, we've defined a custom content type, using the org.eclipse.core.contenttype.contentTypes extension point. We're successfully using the content type to enable or disable UI components, based on, e.g., whether the user is editing a file of that type. I'd like to take this ones step further...

## How to process selections from different providers via the Eclipse Selection Service while maintaining loose coupling?

java,oop,design-patterns,eclipse-plugin,listener
TL;DR: Is there a way, preferrably adhering to design pattern best practices, to process ISelections from multiple ISelectionProviders in an ISelectionListener without breaking loose coupling, and without guessing (type checks, casting)? In my Eclipse RCP 3.7 application, I have two views and one (GEF) editor. The views contain checklists which...

## How to add buttons to the JFace ErrorDialog

java,eclipse-plugin,jface
I'm trying to add a "Cancel" button to this popup dialog, the dialog basically just gives the user some info and allows them to hit Yes or view details. The problem is that there is no Cancel button and I would like to add one. The dialog is a JFace...

## NPE while testing

java,junit,eclipse-plugin,mockito
I've got a NullPointerException on method testStartEnbaledFeed on line of RssServiceTest service.start(); and then on line of RssService job.addJobChangeListener(new JobChangeAdapter() { The key problem seems to be that the job.addChangelistener method is called for real. Anyone know how to solve it? RssServiceTest and RssService classes listed below: package org.eclipse.recommenders.internal.news.rcp; import...

## Jackcess DatabaseBuilder.open fails

java,eclipse-plugin,jackcess
I am using Jackcess API in my Eclipse plugin project. I added jackcess-2.1.0.jar file under resources/lib. I included the jar under my Binary build and in build.properties. I successfully make a connection using connection string but my DatabaseBuilder.open() call is not executing. My code is public void run() { try...

## Save the selections in JFace Dialog (Java)

java,eclipse-plugin,dialog,eclipse-rcp
I have a dialog which consists of multiple checkboxes. when a user click on a button the dialog opens and all the checkboxes are selected by default. the user can uncheck some checkboxes. Second time the user click on the button I want the dialog to be loaded with the...

## Klocwork plugin failed to run in eclipse with error “java.lang.UnsatisfiedLinkError: no sqlite_jni in java.library.path”

eclipse,sqlite,eclipse-plugin,jni,klocwork
I just installed Klocwork plugin for Eclipse. But when I start to scan a project, it gives me the following error: java.lang.UnsatisfiedLinkError: no sqlite_jni in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at com.klocwork.desktopdb.SqliteJniLoader.initDefaultLibraries(SqliteJniLoader.java:28) at com.klocwork.desktopdb.SqliteAgent.<clinit>(SqliteAgent.java:21) at...

## Run a thread always in eclipse

I am writing an eclipse plugin which will always check the file in current active editor (if editor changes, then it will check new editor) and then highlight some lines in the editor. (A database contains all file names and associated lines that need to be highlighted). I was succeed...

## Checkstyle eclipse plugin: error cannot initialize module TreeWalker Token “WILDCARD_TYPE”

java,eclipse,eclipse-plugin,checkstyle
I have a problem with eclipse checkstyle plugin, i just installed this one and when i execute checkstyle-configuration with sun_checkstyle(eclipse) on java file, i have this error: cannot initialize module TreeWalker - Token "WILDCARD_TYPE" was not found in Acceptable tokens list in check com.pupp[email protected]2261fbd cannot initialize module TreeWalker - Token...

## Missing jar files in Eclipse RCP 4.4.2 (Luna SR2) SDK, delta pack and language pack

jar,eclipse-plugin,eclipse-rcp,java-8,eclipse-luna
We have an Eclipse RCP based GUI application based on Eclipse SDK 3.7.2 and compiled using Java 7. We are migrating the code base to Java8. We are also migrating Eclipse version to 4.4.2 (Luna SR2) as Eclipse supports Java8 starting 4.4. I have downloaded eclipse-4.4.2-delta-pack.zip and eclipse-SDK-4.4.2-win32.zip and built...

## Duplicate package name in different project causes InvalidAccessException when run as plugin test

java,eclipse,junit,eclipse-plugin
Hi I am currently building an eclipse plugin project and I need to write tests to test some package private classes however the tests need to be placed in a different plugin project which has the actual application plugin in its dependencies. In order to access the package private classes...

## importing files as link to eclipse project using java

java,file,eclipse-plugin,swt,rcp
okay guys this is a problem I've currently used hours and hours of research and haven't found a solution yet. my eclipse plugin needs files imported as link to the current project. the current approach is to drag and drop the file from explorer and use the following settings: I...

## How do Java plug-in / extension applications work? [closed]

java,eclipse,user-interface,plugins,eclipse-plugin
I want to create a Java GUI application that is self-contained, but can take in add-ons that can write to the GUI terminal or add an options tab to the GUI application. But in order to implement that, I need to know how Java plug-in / extension applications work. For...

## Get current line when some previous lines was collapsed in my own eclipse editor

java,eclipse,eclipse-plugin,swt,text-editor
Im trying to get the current line of keyboard cursor. StyledText styledText = (StyledText) getAdapter(Control.class); styledText.addCaretListener(event -> { try { IDocument document = getDocumentProvider().getDocument(getEditorInput()); // This is the current line int currentLine = document.getLineOfOffset(event.caretOffset); } catch (BadLocationException e) { } }); But the method getLineOfOffset doesn't work when some previous...

## Opening an editor for a Java class that is within a jar (with source included)

eclipse-plugin
I am working on an eclipse plugin, and I'm trying to implement F3 (Open Declaration) functionality. After finding the project that contains a class, I use findType to get the IType of the class. If it a .java file in my workspace, I can use getResource to get the IFile,...

## Re-set Editor Input of AbstractConfigurationEditor

eclipse,eclipse-plugin,eclipse-rcp
I have a MultiPageEditorPart which contains two AbstractConfigurationEditor which I added via the addPage() method. I have a rename file listener and reset the main editor input via setInput() and rename title setPartName(). However I still need to change the editor input of two AbstractConfigurationEditor. But their setInput() method is...

## Where to Find Package “org.eclipse.osgi.framework.internal.core”

java,eclipse-plugin
I'm desperately trying to add the Eclipse "Install New Software" dialog to my application. After days of hunting down packages / bundles and cryptic error messages, I'm at the point where the bundle org.eclipse.equinox.frameworkadmin needs the package org.eclipse.osgi.framework.internal.core, and I can't seem to find it anywhere. I suspected the plug-in...

## How to inactivate an eclipse plug-in without uninstall it?

eclipse,plugins,eclipse-plugin,kepler
How to inactivate an plug-in in Eclipse Kepler SR2 without uninstalling it? I have a plug-in for Android, which is pretty big and causes eclipse starting slow. But I need the plug-in on some other projects. In Help -> About Eclipse > Installation Details -> Installed Software, there is only...

## How to share common functionality between two Eclipse plugins?

java,eclipse,eclipse-plugin
I have two Eclipse refactoring plugins that share quite a bit of functionality and I would like to factor them out. What is the best way to do this in Eclipse? Do I simply create a jar file that I share between the two plugins or do I create a...

## How Add jar file to eclipse plugin?

eclipse-plugin
I want to write a plugin in eclipse that sends active window title to a port when active window changes. For this purpose I have to add jna and jna-platform-win32 libraries to my plugin. This libraries add in compile time but when I want to use them in run time...

## UML tool for reverse engineering a Java Project [closed]

java,eclipse,eclipse-plugin,uml,reverse-engineering
I am currently working on a Java project with "IBM Rational Software Architect"(Licensed Version) as an IDE .My task is to understand the code flow and need to prepare Technical Document as the project is very big (a lot of codes, classes, packages, etc) and undocumented. Since, the project is...

## how to install shelled in eclipse luna

bash,shell,eclipse-plugin
I am trying to install shelled in latest eclipse luna and getting the next error: An error occurred while collecting items to be installed session context was:(profile=epp.package.cpp, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,org.eclipse.egit,3.7.1.201504261725-r No repository found containing: osgi.bundle,org.eclipse.egit.core,3.7.1.201504261725-r No repository found containing: osgi.bundle,org.eclipse.egit.doc,3.7.1.201504261725-r No repository found...

## How can analyze single file in sonar eclipse plugin?

eclipse,eclipse-plugin,sonarqube
posible do that in sonar eclipse plugin? currently I see only can analyze project. Thanks,...

## Eclipse Drools 6.2.0 Plugin Error: org/drools/StatefulSession

java,eclipse,eclipse-plugin,drools
This may be a bit too vague for this forum but I'm trying anyway.. I have Eclipse Juno with the Drools 6.2.0 plugin, using a Java 8 JRE. I have a DRL file which appears to be valid as it runs without error, however Eclipse reports an error: org/drools/StatefulSession. It...

## RCP or SWT to build eclipse plugin

java,eclipse,eclipse-plugin,swt,eclipse-rcp
I am new to eclipse plugin development. I want to develop a plugin which will generate XML files from the classes present in the workspace. It will have 2-3 UI forms which will take information from user while generating XMLs. From what I have read till now, I think there...

## Third party OSGi library dependency conflict

eclipse-plugin,osgi
In our Eclipse based product we're introducing a new third party plugin that depends on ANTLR v3.2+. We have an existing plugin, also third party (openarchitectureware), that requires ANTLR v3.0. The problem is that the openarchitectureware plugins don't specify a dependency version range: Require-Bundle: org.openarchitectureware.core.workflow,org.apache.comm ons.logging, org.antlr.runtime,org.apache.log4j;resolution:=optional This means they...

## How does the ManifestEditor get the list of extensions of a plugin?

eclipse,eclipse-plugin
I am currently developing a plug-in that will get the list of every extensions of any given plug-in(s). My problem is that these information are inside the plugin.xml and I have no clue on how to get them without parsing the file. I've been looking at the Eclipse's Manifest Editor...

## SonarQube P2 repository has gone forever

eclipse-plugin,sonarqube,p2
Codehaus is shutting down its services, including the Eclipse Plugin of SonarQube. Does anyone know whether there is already a replacement for the P2 repository http://dist.sonar-ide.codehaus.org/eclipse/ ? Thanks...

## How to go to the specified breakpoint in MyEclipse？

java,eclipse,eclipse-plugin,myeclipse
In my web project controller I have two breakpoint called breakpointA,breakpointB .When I debug the project,if now the code is running in breakpointB,How can I return to the breakpointA? In visual studio I can drag the breakpointB to breakpointA easily.But in MyEclipse how to do that?Do it has shortcut keys?

## Make Command Only Visible When a Handler is Present

java,eclipse-plugin
I know I can make commands visible like that: <command commandId="org.acme.command" style="push"> <visibleWhen checkEnabled="false"> <with variable="selection"> <test property="someProperty" value="value"> </test> </with> </visibleWhen> </command> But how can I make a command only visible when there is a handler that is able to handle it? (The default behavior is for the command...

eclipse,eclipse-plugin,eclipse-rcp
I am trying to add a new command to "compare with" menu present in context menu of Package Explorer and Project Explorer. Command is getting displayed only in Package Explorer. I am not getting any command in Project Explorer. I want the command to be present only in these two...

## Eclipse-PMD Configure ruleset globally

java,eclipse,eclipse-plugin,pmd
So i am using the Plugin Eclipse-PMD (http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/) in a shared version control enviroment. We have multiple smaller projects in the entire project. Out of the box it seems that this plugin requires individual configuration for every single project. The way it works it that it searched for a .pmd...

## Cyclic Dependencies detected while creating exe from rcp plugin

java,eclipse-plugin,eclipse-rcp,rcp
I have a bunch of eclipse plugins projects. Everything works fine when I run them from eclipse but when I try to create exe from the plugins I get the following error A cycle was detected when generating the classpath Plugin A, Plugin B, Plugin C, Plugin D, Plugin B...

## Eclipse PDE: Exclude test fragments from required plugins

eclipse,eclipse-plugin,eclipse-rcp,eclipse-pde
I have an Eclipse RCP application with plugins and associated test fragments. When using the "Add required plugins" functionality in the launch or product configuration, the test fragments get added as well. Can I avoid this? My plugins don't depend on their fragments, and I'd like to select only the...

## How do you create a custom project type (from my plugin) without opening Eclipse?

java,eclipse,maven,eclipse-plugin
I have created a plugin for Eclipse. With the help of this plugin, I am creating a new type of project, let's say XTypeProject. The creation of this XTypeProject is similar to any other type of project you create in Eclipse. File -> New -> YourProjectType I just want to...

## A handler conflict occurred. This may disable some commands

eclipse-plugin,eclipse-rcp,eclipse-pde
I want to be able to control when a particular command can be enabled in a toolbar. Currently this is in my plugin.xml file: <extension point="org.eclipse.ui.commands"> <command defaultHandler="my.plugin.handler.Terminate" description="Terminate session" id="my.plugin.terminate" name="Terminate"> </command> </extension> <extension point="org.eclipse.ui.commandImages"> <image commandId="my.plugin.terminate" icon="icons/terminate.gif"> </image> </extension> <extension...

## Second overview ruler in Eclipse

eclipse,eclipse-plugin
Is it possible to add another overview ruler in Eclipse? Maybe via a plugin? It would be nice to assign certain annotations to different overview rulers. For example the diffs in one overview ruler and the occurrences in another. Thanks...

## How to open web.xml as tree view in eclipse?

eclipse,eclipse-plugin,web.xml
I m working on a project in eclipse, I have generated web.xml for it. How to view web.xml as tree view. Currently I can only view it as Design and Source. ...

java,eclipse,eclipse-plugin,libgdx
i tried to generate project with libgdx and then import it to eclipse but it take forever more than 5 hours on downloading dependencies , however it works fine from the command line but not eclipse or even netbeans (same problem) so what is the problem ? is there any...

## IWorkspace search for file type

eclipse,user-interface,eclipse-plugin,eclipse-rcp
I need to search my project workspace and find a certain type of files (e.g. .txt) and store them in a list for example. I can access the workspace by: IWorkspace workspace = ResourcesPlugin.getWorkspace(); But how to search through the different folders and get the type of files that I...

## Retrieving arbitrary Eclipse preferences programmatically

eclipse,eclipse-plugin,jface
I am writing a plugin for Pig files. I would like to retrieve the Eclipse "file associations" preference - the one under General -> Editors -> File Associations -> File Types / Associated Editors. Once I have this preference, my plugin can know which file types are being used, and...

## How to use an IResourceChangeListener to detect a file rename and set the EditorPart name dynamically?

eclipse,user-interface,eclipse-plugin,eclipse-rcp
IResourceChangeListener listens to changes in project workspace for example if the editor part file name has changed. I want to know how to access that particular EditorPart and change its title name accordingly (e.g. with .setPartName), or maybe the refresh the editor so that it shows the new name automatically....

eclipse,eclipse-plugin,eclipse-rcp
In the command handler for a radio state menu item, I prompt the user if they want to continue. If they choose no, I need to reset the selected menu item back to the previous value. I am using HandlerUtil.updateRadioState(event.getCommand(), oldScope) but the menu stays with the new value. Any...

## Rename resource file does not change editor part title

eclipse,user-interface,eclipse-plugin,eclipse-rcp
In my plugin project, I have a project explorer view where I can rename a config file which in shown in another editor part. The file can be renamed in the explorer with the rename resource dialog but the corresponding the editor tab title does not change. The same problem...

## Tycho: How to bring all the eclipse test-plugins in target?

eclipse,maven,eclipse-plugin,tycho,surefire
We have the following setup for our product. main feature - which will build and deploy to nexus. test feature - which will build and installed locally. We have test extension points in our test plugins. We use those extension points in our testing. The problem is tycho only brings...

## quickfix format using xtext

eclipse-plugin,xtext,xtend
I am reading from the book "Implementing DSL with xtext and xtend" it says that formatter is invoked when of course the Format from the context menu is used or the shortcut for it "Ctrl + Shift + F" is used. It also says that "If you provide a custom...

## eclipse plugin: get notification on debug terminate

debugging,eclipse-plugin
Is there a way for an eclipse plugin to get a notification when user clicks on the "Terminate Debug" button?

## Get highlighted variable -Eclipse

java,eclipse-plugin,syntax-highlighting,eclipse-cdt,highlight
I am implementing an Eclipse plugin for C programmers. I can't find a way to get the variable that the user already highlited.(The user will highlight a variable in the editor and I need to know which variable it is/variable's name/location of this variable in the editor, like line number..)...

## Eclipse extension point for Open Resource/Open Type dialogs

eclipse,plugins,eclipse-plugin
Is there an extension point where I can customize the search behavior of these dialog boxes? Or am I better off making an extensions that just overrides those hotkeys with dialog boxes that subclass FilteredResourcesSelectionDialog?...

## How to structure my XText terminals? WORDS/SL_STRING/ML_STRING

java,eclipse,eclipse-plugin,dsl,xtext
In my XText DSL, I want to be able to use three different kinds of text terminals. They are all used for adding comments on top of arrows drawn in a UML diagram: terminal WORD: Actor -> Actor: WORD terminal SL_STRINGS: Actor -> Actor: A sequence of words on a...