eclipse-rcp

Resource Change Plugin for eclipse

江枫思渺然 提交于 2019-12-13 03:17:36
问题 I created an RCP application which detects resource change in its own view by extending CommonNavigator . public abstract class NavigatorView extends CommonNavigator implements IResourceChangeListener { public void createPartControl(Composite parent) { super.createPartControl(parent); hookResourceChangeCommand(); // my resource tracking function. } } But now I need to create a plugin for this which detects resource change in project explorer in eclipse itself. I cannot create a view now and I

Save RCP based Application's forced generated trace logs to a file

夙愿已清 提交于 2019-12-13 02:55:56
问题 I have a RCP application. I'm starting it with target set to "SomeApplication.exe" -debug -data >trace.log . I need to store all trace logging in trace.log log file. So I have added following options to config.ini org.eclipse.osgi/debug/loader=true org.eclipse.osgi/trace/classLoading=true I cannot save the logs as the classes are loaded during the application start up. I can see the logs on the CMD window as I have added the -debug . Is there any way to save the trace logs to a specified file

Eclipse RCP, RMI and Bundles

删除回忆录丶 提交于 2019-12-13 02:16:13
问题 I'm trying to combine Eclipse RCP with RMI. For that purpose I created six bundles: (In parenthesis are dependencies) Core: Interfaces for client and server Server(Core): Server implementation and Registry start class ServerApp(Server): GUI client which basically just instantiates the registry starter (and starts it on Activation) Client(Core): Client implementation ClientApp(Client): GUI client Now I started the serverapp, but I got a Caused by: java.lang.ClassNotFoundException: core.rmi

Add System Tray and Active Workbech Shell reference in E4 application

寵の児 提交于 2019-12-13 01:29:34
问题 I am new in E4 application development. I add System tray icon in RCP 3.7.x successfully. to add a system tray icon in e4 application. I am using the e4 application life cycle to add a system tray icon in this way: public class LifeCycleManager { @PostContextCreate void postContextCreate(IApplicationContext appContext, Display display) { SystemNotifier icon= new SystemNotifier(shell); SystemNotifier.trayItem = icon.initTaskItem(shell); if (SystemNotifier.trayItem != null) { icon.hookPopupMenu

How can I control what marketplaces are shown in the Eclipse Marketplace in my RCP application

风格不统一 提交于 2019-12-13 00:35:29
问题 I'm using the Eclipse Marketplace client in my RCP application. I'm also running a marketplace server to provide my users with the ability to select from multiple installable units that my company is providing. When the user browses the Eclipse Marketplace in my RCP application, he/she sees many other marketplace servers in addition to my custom one such as the Eclipse Marketplace, Yoxos Marketplace, Obeo Marketplace, and a Testing Solutions Marketplace by BREDEX GmbH. Is there a way for me

What are wrong with this code on Activating/Deactivating IHandlerActivation of Command Eclipse Plugin Development

烈酒焚心 提交于 2019-12-13 00:09:49
问题 So, I have 2 commands, which are identified by PLAY_COMMAND_ID and STOP_COMMAND_ID . Each of command have each handler, respectively playHandler and stopHandler (these are extending AbstractHandler class). These commands are contributed to my view's toolbar in Button style. Basically what I want is initially the PLAY_COMMAND is active but the STOP_COMMAND not. When the PLAY_COMMAND is clicked, then it will activate the STOP_COMMAND then deactivate itself( PLAY_COMMAND ). And vice versa when

How to programatically set String input of TextEditor in Eclipse plug-in?

怎甘沉沦 提交于 2019-12-12 22:14:55
问题 What I want: I want to write JUnit tests for my Eclipse editor plug-in. For this I want to set up an instance of my TextEditor extension. Then I want to set the input of this TextEditor from a String, so that the content of the String is the input of the editor instance. Then I want to run some tests and assert that the editor marks errors and so on. Where I fail: I don't know how to set up the input of the editor from a String. The only function the editor has to do so is setInput

Setting the width of the GridLayout columns

南楼画角 提交于 2019-12-12 20:02:36
问题 I have a GridLayout inside a Composite and I have two column inside that. I want to have column width 75 % and 25 % of the Shell width . How to do that? 回答1: Right, here you go: Use the GridData#widthHint values to force a certain width of the Composite s. Compute the width based on the width of the Shell : public static void main(String[] args) { Display display = Display.getDefault(); final Shell shell = new Shell(display); shell.setLayout(new GridLayout(2, false)); Composite left = new

Eclipse RCP - Update

只谈情不闲聊 提交于 2019-12-12 19:35:10
问题 While creating the sample, I noticed very strange behavior and due to which I am somewhat stuck. I will explain the problem in 2 scenarios Scenario 1. Create two Plug-ins. Create two features. Create one product & include only one feature. Create a category and include both the features. Export the product and test it using the generated launcher. Everything works fine. Now export the deployable feature and copy the generated files into webserver. Open install new software option and install

Eclipse RCP: Problem creating product which needs 2 different versions of a plugin

孤人 提交于 2019-12-12 19:17:08
问题 For reasons of compatibility with an external product, I need to build a RCP application which must include 2 versions of a plugin. The plugin is org.apache.lucene which is currently 1.9.1 in eclipse 3.4. I need version 1.4.103 in order to be compatible with the other application. I should say that my RCP app was originally developed using eclipse 3.2 and after upgrading to 3.4 this problem arose. During development and test my app worked ok. I had to add the 1.4.103 plugin by hand in the Run