Search in sources :

Example 6 with InfoTextPanel

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);
}
Also used : NotifyDescriptor(org.openide.NotifyDescriptor) ModuleInfo(org.openide.modules.ModuleInfo) InfoTextPanel(au.gov.asd.tac.constellation.utilities.gui.InfoTextPanel)

Aggregations

InfoTextPanel (au.gov.asd.tac.constellation.utilities.gui.InfoTextPanel)6 NotifyDescriptor (org.openide.NotifyDescriptor)6 RenderException (au.gov.asd.tac.constellation.visual.opengl.utilities.RenderException)2 GL3 (com.jogamp.opengl.GL3)2 IOException (java.io.IOException)2 ArrayList (java.util.ArrayList)2 Attributes (java.util.jar.Attributes)2 GL (com.jogamp.opengl.GL)1 GL2ES2 (com.jogamp.opengl.GL2ES2)1 GLAutoDrawable (com.jogamp.opengl.GLAutoDrawable)1 GLCapabilities (com.jogamp.opengl.GLCapabilities)1 GLProfile (com.jogamp.opengl.GLProfile)1 JoglVersion (com.jogamp.opengl.JoglVersion)1 ModuleInfo (org.openide.modules.ModuleInfo)1