eclipse-plugin

SpringSource Tool Suite missing Spring MVC project template

自作多情 提交于 2020-01-21 13:37:04
问题 This is not a duplicate of Spring Tool Suite missing Spring MVC project template Using STS 2.9.2 and have the com.springsource.sts.wizard_2.9.2.201205071000-RELEASE in my plugins folder. I want to use Spring MVC project template but cannot find it either on dashboard or under the "New->Other->SpringSource Tool Suite" menu. I do not want to make a new installation, lots of installed plugins exist. 回答1: For STS 3.0, the way that template projects are accessed has been changed, so it doesn't

Can my Eclipse plugin change preferences from other plugins?

江枫思渺然 提交于 2020-01-21 05:45:08
问题 I'm working on an Eclipse plugin that needs to change some preferences defined by other plugins, e.g. the tab size in text editors. Is that possible? 回答1: Yes, it is possible. You'll need this in your preference page: setPreferenceStore( new ScopedPreferenceStore( new InstanceScope(), "bundle-name-of-other-plugin" ) ); Or you could do something like this here. FYI, the preferences live here: pathToWorkspace\.metadata\.plugins\org.eclipse.core.runtime\.settings 来源: https://stackoverflow.com

Diff tool that can compare sub-sections of files

孤街醉人 提交于 2020-01-21 04:07:08
问题 I'm looking for a diff tool that will allow me to compare just a sub-section of a file with a section of another file, or even of itself. Preferably eclipse based but will take all suggestions. Yes I know I can copy out the two sections into different files and compare those, but that is very tedious when you are trying to do a large amount of refactoring. Basically I'm trying to remove as much duplicated code as possible from a code base that is suffering from a great deal of ctrl-V

Creating Usable Toolbar for High Resolution Screen

眉间皱痕 提交于 2020-01-17 08:55:07
问题 High resolution screens are old news, but for some reason we (and the Eclipse guys) ignored them until now. Well, we can't any longer. What we want to do is create Eclipse applications that work for "normal" displays, but for high resolution ones, too. Right now the icons are way to small to see or click. This bug links to this (rather sparse) documentation states we only need to use a new constructor for Image . Okay, so we need to create our own implementation of ImageDataProvider . While

Implementing a Launcher Framework - disabled Apply button on dialog

早过忘川 提交于 2020-01-17 08:16:10
问题 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 disabled. Code : public class BrowsersTab extends AbstractLaunchConfigurationTab { private Button chrome;

Components won't resize in SWT with a GridLayout

谁都会走 提交于 2020-01-17 06:06:56
问题 I discovered SWT a few days ago and decided to switch my plugin interface from Swing to SWT. I can place the components as I want, but when I resize the window, the components are not resized at all. Furthermore, when I fill a little Text (text area) with a large string, I can't find a way to resize it... The following code is the one defining the layout and the components, I guess someone will find where my mistake(s) is(are). P.S : I see some tutorials online declaring a Display object

Eclipse Markers without IResource/IFile

主宰稳场 提交于 2020-01-17 04:44:15
问题 Is it possible to use markers in eclipse without having an IResource/IFile? It doesn't look like IFileSystem or IStorage/IEditorInput support having markers. It seems like there must be a way to do this, but I don't see it. What I'm doing is opening files from a remote system. 回答1: Markers are part of the Workspace code and are always on IResource and derived interfaces ( IFile , ...). Non-workspace files are very much second class citizens in Eclipse. You can use IFile.createLink to create

How to open a file in Eclipse in an embedded fashion?

大憨熊 提交于 2020-01-16 08:27:40
问题 I would like to open a .chm file in Eclipse. But it does not support these files. If I wanted a workaround, how should I go about it? I have looked into writing plug-ins to do so. The only way I would be able to view .chm as an Eclipse Help Plug-in would be to convert .chm to DITA and then DITA to Eclipse help files. But there's no clear cut way to do this. There isn't much help online either. Any suggestions? I need an automate-able way to do this. I will have a .chm file (for documentation

Create our own property page for project explorer eclipse plugin

心不动则不痛 提交于 2020-01-15 12:33:27
问题 I have created a custom project in project explorer. I have various folders in the project explorer and also images in one of the folder. I want to create my own property page and want to customize the same on clicking any resource in the project explorer. I have gone through all possible articles on web but not able to solve the problem. Can anyone please help me or provide me some code to create my own property page. Thanks 回答1: You can contribute a workbench property page by following this

Eclipse application crashes on Ubuntu 18.04

前提是你 提交于 2020-01-15 09:40:08
问题 I am running Trace compass on Ubuntu 18.04. I installed eclipse from Ubuntu Software but when I run Trace compass I get the error log: eclipse.buildId=unknown java.version=10.0.1 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US Command-line arguments: -os linux -ws gtk -arch x86_64 -data @noDefault !ENTRY org.eclipse.osgi 4 0 2018-05-20 18:51:41.714 !MESSAGE Application error !STACK 1 org.eclipse.e4.core.di.InjectionException: java.lang