void () { myManifestFileConfiguration = myContext.getManifestFile(myElement, myContext.getArtifactType()); final String card; if (myManifestFileConfiguration != null) { card = "properties"; myManifestPathField.setText(FileUtil.toSystemDependentName(myManifestFileConfiguration.getManifestFilePath())); myMainClassField.setText(StringUtil.notNullize(myManifestFileConfiguration.getMainClass())); myMainClassField.setEnabled(myManifestFileConfiguration.isWritable()); myClasspathField.setText(StringUtil.join(myManifestFileConfiguration.getClasspath(), " ")); myClasspathField.setEnabled(myManifestFileConfiguration.isWritable()); } else { card = "buttons"; myManifestPathField.setText(""); } ((CardLayout)myPropertiesPanel.getLayout()).show(myPropertiesPanel, card); }