Recently I needed to start a console application from C#, wait until the execution has finished and read the output
WeiterlesenKategorie: Programmieren
Java: Check if your code is running in Eclipse
Sometimes, for example during debugging, it is useful to check if your code is running from the Eclipse IDE to
WeiterlesenRCP Application Set Title of Application Window
To dynamically set the title of a RCP application, the following code snippet is useful: private String fileName = "unknown.daf";
WeiterlesenJava – Load text file to string
Most common in programming is to load text files to a string. Since this usually involves some lines of code,
WeiterlesenJava/SWT GUI Access from Thread
A thread in Java cannot directly access the GUI. With the following snippet the access is possible: Call from the
WeiterlesenRemove unwanted actions in RCP application
In my current RCP application some unwanted Eclipse actions showed up in the toolbar and menubar: How to get rid
WeiterlesenSet title for JFace dialog
The following snippet sets the title for a JFace dialog: @Override protected void configureShell(Shell shell) { super.configureShell(shell); shell.setText("My Dialog Title");
WeiterlesenGet plugin path
This snippets gets the local folder for a plugin: public static File getPluginFolder() { if(pluginFolder == null) { URL url
Weiterlesen