jface

hotkey/shortcut for: “Which plugin is this?”

末鹿安然 提交于 2019-11-29 12:42:02
问题 Please forgive such a simple question, I've been away from RCP for about a year: What shortcut/hot-key combination can I use in Eclipse to discover the plugin that contributed/owns the current view? I remember it bringing up the plugin.xml of the plugin currently under the mouse. I should be very grateful for your clues .. M. 回答1: The Plug-in Spy is mapped to Shift+Alt+F1 ( Shift+Option+F1 on Mac) by default. It shows information for whatever is currently selected. 回答2: Best keyboard shortcut

Tab between fields in TableViewer

回眸只為那壹抹淺笑 提交于 2019-11-29 10:46:06
What I'd like to do is be able to tab between elements in table. I currently am creating my table like this. this.tableViewer = new TableViewer(parent , SWT.FULL_SELECTION); tableViewer.setUseHashlookup(true); table = tableViewer.getTable(); GridData gridData = new GridData(GridData.FILL_BOTH); gridData.grabExcessVerticalSpace = true; table.setLayoutData(gridData); table.setLinesVisible(true); table.setHeaderVisible(true); ... /** Create the Cell Editor Array - will hold all columns **/ editors = new CellEditor[table.getColumnCount()]; /** Cell Editor Row 1 **/ /** Set the column properties **

Can't put content behind SWT Wizard Help Button

北慕城南 提交于 2019-11-29 07:28:49
I created a SWT based Wizard which has an own help Button by custom. Now i want to put some content behind that, so maybe a SWT browser will be openend and a predifined HTML Doc will be shown. But I don't have any clue where to access the Actions of the Help Button within my Wizard. Any idea? I am assuming that you are using the standard JFace interfaces and classes for the wizard implementation. So, in your wizard page ( extending org.eclipse.jface.wizard.WizardPage ) you just have to override the performHelp method. See the below snippet. @Override public void performHelp() { Shell shell =

How to use log4j in an Eclipse RCP?

十年热恋 提交于 2019-11-29 07:03:04
How to use log4j logging API in an Eclipse RCP project? As a workaround U tried to create a new OSGI Bundle which has a log4j jars, below is the bundle structure: I've crated a basic RCP application with a view (template) named loggingtest .I've included the bundle log4j in the dependencies tab of loggingtest project.In the Activator start method i placed the following code Logger logger = Logger.getLogger(Activator.class); logger.info("Info starting"); logger.warn("Warning starting"); logger.error("Error starting"); so everything is fine so far I'm able to use log4j API and half way through,i

How to remove views from Windows-->Show View list?

南笙酒味 提交于 2019-11-28 12:37:12
问题 I have view which I am setting permanently on my perspective. This view can not be closed and can not be opened from Windows --> show views I struct to remove View from Windows --> view list. How would I achieve this? I tried your solution it is doing the things but it is also removing the view from perspective. Below are the steps I followed.. I have added the following view in plugin.XML <view allowMultiple="false" category="org.view.ui.IDECategory" class="org.view.ui.BannerInformationView"

How to stop JFace combo box from re sizing on a window re size?

社会主义新天地 提交于 2019-11-28 12:13:54
问题 I have a Java Eclipse RCP program in which I have a a long string inside a JFace combobox. Now when I am in the same view,The combobox attaches a scroll over it to show the full name. but as soon as I re size the window of the application, the combobox stretches itself to accommodate the lengthy string. How do i make the combobox stay the same size. Like the size of it should remain fixed even after I resize the window. Here are two screen shots to demonstrate the issue. P.S. I am using a

How to install source/javadoc for Eclipse PDE?

岁酱吖の 提交于 2019-11-28 08:05:42
问题 I have installed Plugin Development Environment on my Eclipse 3.8 via http://download.eclipse.org/releases/juno update site. Now in PDE projects under the "Plugin Dependencies" tree I see that all PDE JARs have attached source set to the same JARs. Yet, the JARs do not contain any sources - only class files. Because of this I see no Javadoc for PDE/JFace classes and get ugly arg0, arg1, etc for auto-generated code. Where and how can I get sources or Javadoc for PDE/JFace? 回答1: First, I tried

Set Size of JFace Wizard

寵の児 提交于 2019-11-28 07:29:25
问题 I am building an Eclipse RCP application and am having trouble on settings the size of a JFace Wizard. 回答1: Yeah, it is generally a good idea to let Eclipse work out the size for you. However, if you really want to set the size of the wizard, you can do it by setting the size of the WizardDialog which you are using to open your wizard. For example: Wizard wizard = new MyCustomWizard(); WizardDialog wizardDialog = new WizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell()

Tab between fields in TableViewer

我的未来我决定 提交于 2019-11-28 04:12:37
问题 What I'd like to do is be able to tab between elements in table. I currently am creating my table like this. this.tableViewer = new TableViewer(parent , SWT.FULL_SELECTION); tableViewer.setUseHashlookup(true); table = tableViewer.getTable(); GridData gridData = new GridData(GridData.FILL_BOTH); gridData.grabExcessVerticalSpace = true; table.setLayoutData(gridData); table.setLinesVisible(true); table.setHeaderVisible(true); ... /** Create the Cell Editor Array - will hold all columns **/

How would one use IDecorationContext api from Eclipse JFace

余生长醉 提交于 2019-11-28 01:56:56
Is there an example out there for using IDecorationContext for label decorations? By the looks of it, IDecorationContext class seems to provide some sort of contextual decoration support, but for the life of me, I can not find any sample code using this feature... Has anybody actually used decoration context feature and if so, what use cases did it solve? PS: I am looking for a way to apply image decorations to object labels and depending on where the object is displayed, the base icon size varies (e.g. traditional "small" icons in table- and tree items and larger icons for content headers).