eclipse-rcp

Positioning Toolbars in Eclipse/RCP

北慕城南 提交于 2020-01-23 06:53:07
问题 I was working on my tiny RCP app, which needs a custom perspective switcher to control which views the user can access. So here I am, trying to add a toolbar with a couple of buttons to switch perspectives. I figured the best way to have some control over the stuff would be to add a second toolbar in ApplicationActionBarAdvisor which would call my thee actions/commands to switch perspectives. So let's say I create a second ToolBarContributionItem in the fillCoolBar method, which would look

Positioning Toolbars in Eclipse/RCP

早过忘川 提交于 2020-01-23 06:52:26
问题 I was working on my tiny RCP app, which needs a custom perspective switcher to control which views the user can access. So here I am, trying to add a toolbar with a couple of buttons to switch perspectives. I figured the best way to have some control over the stuff would be to add a second toolbar in ApplicationActionBarAdvisor which would call my thee actions/commands to switch perspectives. So let's say I create a second ToolBarContributionItem in the fillCoolBar method, which would look

JFace examples in Eclipse like SWT Examples?

吃可爱长大的小学妹 提交于 2020-01-23 05:55:35
问题 Are there any all-in-one JFace controls example out there like the SWT Examples in Eclipse? Searching (googling and searching here on stackoverflow.com) did not help me. It would be nice if it was a standalone app or an eclipse plugin. Thank you. 回答1: Aside from the SWT JFace examples and introduction courses, you have some projects based on JFace controls: JFace Data Binding CellLabelProvider TreeViewer example Nebula project Nebula is a place where different Eclipse-Projects and Independent

Java on Windows: Test if a Java application is run as an elevated process (with Administrator privileges)

孤人 提交于 2020-01-21 11:32:46
问题 Situation I have an (Eclipse RCP-based) Java application running on multiple platforms. I got this figured out on all platforms except Windows. Installer : My application installer is always run in elevated mode, so it can install the application to C:\Program files\MyProduct . From a user perspective, this means the installer can only be executed by an Administrator and the UAC will ask for confirmation. This works fine. Normal usage : The application can be launched by normal users . No

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;

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

CheckboxTableViewer first column select all

你离开我真会死。 提交于 2020-01-16 00:58:19
问题 I am currently developing a Wizard that will take me through a couple of steps. On one of the WizardPages I want to have a dynamically filled table where the user selects some of the rows. I am using a CheckboxTableViewer for this. Currently it works well (including dynamic number of columns, etc.) and the result looks like in the screenshot. My problem with this is that the first column spans over the column with the checkboxes. I would like to have the following behaviour: The first column

Eclipse RCP: How and when to correctly unsubscribe a Composite from EventBroker?

蹲街弑〆低调 提交于 2020-01-15 15:28:54
问题 In the constructor of my custom composite (inherited from SWT Composite ), I register myself as an EventHandler to the Eclipse IEventBroker . To unsubscribe upon disposal, I had overridden the dispose method where I unsubscribe myself. But I now noticed that this unsubscription is not happening, indeed the dispose method is never getting called. What is the correct way to unsubscribe myself, or to avoid that a closed Composite/ViewPart leaves "leaking" event handlers behind? I use Eclipse RCP

Eclipse RCP: How and when to correctly unsubscribe a Composite from EventBroker?

不羁的心 提交于 2020-01-15 15:27:07
问题 In the constructor of my custom composite (inherited from SWT Composite ), I register myself as an EventHandler to the Eclipse IEventBroker . To unsubscribe upon disposal, I had overridden the dispose method where I unsubscribe myself. But I now noticed that this unsubscription is not happening, indeed the dispose method is never getting called. What is the correct way to unsubscribe myself, or to avoid that a closed Composite/ViewPart leaves "leaking" event handlers behind? I use Eclipse RCP

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