use of au.gov.asd.tac.constellation.utilities.gui.InfoTextPanel in project constellation by constellation-app.
the class MostRecentModuleAction method actionPerformed.
@Override
public void actionPerformed(final ActionEvent e) {
final List<ModuleInfo> moduleList = MostRecentModules.getModules();
final StringBuilder sb = new StringBuilder();
moduleList.stream().forEach(mi -> sb.append(String.format("%-40s %20s\n", mi.getDisplayName(), mi.getSpecificationVersion())));
final InfoTextPanel itp = new InfoTextPanel(sb.toString());
final NotifyDescriptor.Message msg = new NotifyDescriptor.Message(itp);
msg.setTitle(Bundle.CTL_MostRecentModuleAction());
DialogDisplayer.getDefault().notify(msg);
}
Aggregations