eclipse-plugin

WorkbenchPage.openEditor() does nothing

。_饼干妹妹 提交于 2019-12-24 08:17:19
问题 I'm trying make a toolbar button to open one file with another editor on my RCP aplication ! I have de following code: IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); IEditorPart oldEditor = page.getActiveEditor(); IFile file = ((IFileEditorInput) oldEditor.getEditorInput()).getFile(); IConfigurationElement[] editorsElements = Platform.getExtensionRegistry().getConfigurationElementsFor("org.eclipse.ui.editors"); IEditorInput editorInput = new

In an eclipse plugin: How can I programmatically highlight lines of codes in the java editor?

给你一囗甜甜゛ 提交于 2019-12-24 07:59:17
问题 I am trying to develop an eclipse plugin that does some documentation check on java code and highlights some lines of code in the editor. To achieve my goal, I DON'T want to create a new editor in eclipse, I simply want to extend the default java editor to draw a line under (or highlight) the methods that do not satisfy some set of predetermined requirements. Do I need to create a PresentationReconciler? If yes, how do I make the JDT or workbench use my reconciler. I have never done plugin

Custom directory structure in Eclipse new project?

泄露秘密 提交于 2019-12-24 07:29:54
问题 In Eclipse , whenever I create a new Java project, it's structure will be as follows. Project | | -------- src | -------- bin src is a Source Folder. bin is the output folder. I need to have some more normal folders like lib,conf,docs,etc in all my projects. Now I am creating every folder manually by myself whenever I create a new project.Is there anyway or plugin available to create additional folders(Not Source folders) in Eclipse when creating new project? I am not interested in plugin

Can't add QAF BDD Editor in Eclipse

一个人想着一个人 提交于 2019-12-24 07:25:31
问题 Can someone please help on how I can add QAF BDD editor plugin in eclipse? The steps in this page https://developers.perfectomobile.com/display/TT/Installing+QAF+editor+plugins+in+eclipse doesn't work anymore. 回答1: If you are inside VPN with proxy make sure that proxy configured properly. Make sure that you are able to access plugin site. If you are not able to access plugin site you need to connect your network team to get it downloaded and install from local disk. 来源: https://stackoverflow

How to create IProject without Eclipse

随声附和 提交于 2019-12-24 07:06:12
问题 I'm trying to mavenize a third part Eclipse's plugin, but I need to create an instance of IProject to pass at JavaCore.create(instance) to obtain an instance of IJavaProject. This application will not have workspace and will be better that depends from eclipse's libraries as less as I can. So I can't use: ResourcesPlugin.getWorkspace().getRoot().getProject(...); When I try to start my program I have this error report: Exception in thread "main" java.lang.IllegalStateException: Workspace is

Key-Binding for a Custom Eclipse Content Assist

你说的曾经没有我的故事 提交于 2019-12-24 06:58:12
问题 I've implemented a content assist proposal computer as an eclipse plugin (using org.eclipse.jdt.ui.javaCompletionProposalComputer ). I would now like to bind it to it's own key combination (otherwise the custom proposals appear at the bottom of the proposal list). I tried doing this by extending org.eclipse.ui.bindings , but this requires defining org.eclipse.ui.commands , a handler , and possibly more things. It seems that there is already a command created for my custom content assist

Please tell me how to integrate blackberry and android into the same IDE.

Deadly 提交于 2019-12-24 06:29:18
问题 I am Using phoneGap as a environment to develop the code. So I need to know how to integrate blackberry and android into the same IDE(Eclipse). 回答1: android: update site: (eclipse 3.4) https://dl-ssl.google.com/android/eclipse/ (eclipse 3.5) https://dl-ssl.google.com/android/eclipse/ blackberry(update site): (eclipse 3.4) http://www.blackberry.com/go/eclipseUpdate (eclipse 3.5) http://www.blackberry.com/go/eclipseUpdate/3.5/java 来源: https://stackoverflow.com/questions/2378149/please-tell-me

Launch wizard from Active Help page in Eclipse

邮差的信 提交于 2019-12-24 06:25:41
问题 I'm creating an RCP application and wanted to provide documentation using the Eclipse Help Contents ( Help > Help Contents ), I managed to add some pages to it by using the extension point org.eclipse.help.toc , this works fine, but I'm interested in providing a link in one of those pages to launch a wizard, I found that Eclipse provides support for this using a feature called Active Help. First, in my html Help page I have imported the livehelp.js script: <head> ... <script language=

Eclipse plugin checkstyle

让人想犯罪 __ 提交于 2019-12-24 06:23:39
问题 I'm getting the following error while installing the checkstyle plug-in through eclipse market place. Error: Unable to read repository at https://checkstyle.github.io/eclipse-cs/update/content.xml. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target please any one help me !!! Thanku 来源: https://stackoverflow.com/questions/50999593/eclipse-plugin-checkstyle

how to pass object parameters in command?

送分小仙女□ 提交于 2019-12-24 05:38:06
问题 I created an eclipse-rcp's project's plugin.xml with a new command with a parameter. ArrayList<parameterization> parameters = new ArrayList<parameterization>(); IParameter iparam; //get the command from plugin.xml IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); ICommandService cmdService = (ICommandService)window.getService(ICommandService.class); Command cmd = cmdService.getCommand("org.ipiel.demo.commands.click"); //get the parameter iparam = cmd.getParameter