Setting app name in menu.

This commit is contained in:
Rob Greene 2022-01-17 21:05:30 -06:00
parent f0b88ee676
commit ce0db8c2ee

View File

@ -37,9 +37,9 @@ import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem; import org.eclipse.swt.widgets.ToolItem;
import com.webcodepro.applecommander.storage.Disk; import com.webcodepro.applecommander.storage.Disk;
import com.webcodepro.applecommander.storage.FormattedDisk;
import com.webcodepro.applecommander.storage.Disk.FilenameFilter; import com.webcodepro.applecommander.storage.Disk.FilenameFilter;
import com.webcodepro.applecommander.storage.DiskUnrecognizedException; import com.webcodepro.applecommander.storage.DiskUnrecognizedException;
import com.webcodepro.applecommander.storage.FormattedDisk;
import com.webcodepro.applecommander.ui.AppleCommander; import com.webcodepro.applecommander.ui.AppleCommander;
import com.webcodepro.applecommander.ui.UiBundle; import com.webcodepro.applecommander.ui.UiBundle;
import com.webcodepro.applecommander.ui.UserPreferences; import com.webcodepro.applecommander.ui.UserPreferences;
@ -75,6 +75,8 @@ public class SwtAppleCommander implements Listener {
* Launch SwtAppleCommander. * Launch SwtAppleCommander.
*/ */
public void launch(String[] args) { public void launch(String[] args) {
Display.setAppName("AppleCommander");
Display.setAppVersion(AppleCommander.VERSION);
Display display = new Display(); Display display = new Display();
display.asyncExec(() -> { display.asyncExec(() -> {
for (String arg : args) { for (String arg : args) {