Skip to content

Commit

Permalink
Add eclipse.appName System Property for setting the Display's AppName
Browse files Browse the repository at this point in the history
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
  • Loading branch information
azoitl authored and merks committed Dec 16, 2024
1 parent 6957472 commit d2f7367
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -747,9 +747,8 @@ static Object getApplication(@SuppressWarnings("unused") String[] args) {
* @return the display
*/
public static Display createDisplay() {
// setup the application name used by SWT to lookup resources on some
// platforms
String applicationName = WorkbenchPlugin.getDefault().getAppName();
// setup the application name used by SWT to lookup resources on some platforms
String applicationName = System.getProperty("eclipse.appName", WorkbenchPlugin.getDefault().getAppName()); //$NON-NLS-1$
if (applicationName != null) {
Display.setAppName(applicationName);
}
Expand Down

0 comments on commit d2f7367

Please sign in to comment.