Skip to content

Commit e0a9c39

Browse files
committed
Add eclipse.appName System Property for setting the Display's AppName
The eclipse.appName sytem property allows users to specify on the command line the appName to be used for a specific Eclipse instance. The appName Display property is used by window managers and desktop environments for identification and grouping. This is helpful to distinguish Eclipse instances (e.g., JDT vs CDT) as per default these all are using the same identifier. eclipse-packaging/packages#253
1 parent 8bd169c commit e0a9c39

File tree

1 file changed

+2
-3
lines changed
  • bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal

1 file changed

+2
-3
lines changed

bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/Workbench.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,9 +747,8 @@ static Object getApplication(@SuppressWarnings("unused") String[] args) {
747747
* @return the display
748748
*/
749749
public static Display createDisplay() {
750-
// setup the application name used by SWT to lookup resources on some
751-
// platforms
752-
String applicationName = WorkbenchPlugin.getDefault().getAppName();
750+
// setup the application name used by SWT to lookup resources on some platforms
751+
String applicationName = System.getProperty("eclipse.appName", WorkbenchPlugin.getDefault().getAppName()); //$NON-NLS-1$
753752
if (applicationName != null) {
754753
Display.setAppName(applicationName);
755754
}

0 commit comments

Comments
 (0)