Skip to content

Commit

Permalink
A fix when no GUI is used for network export (TXT). Added tooltip for…
Browse files Browse the repository at this point in the history
… global parameter dialog.
  • Loading branch information
stephanmg committed Nov 2, 2015
1 parent 5f9df3f commit b90c989
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions NeuGen/src/org/neugen/gui/GlobalParameterDialog.form
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@
<Property name="text" type="java.lang.String" resourceKey="jLabel3.text"/>
<Property name="name" type="java.lang.String" value="jLabel3" noResource="true"/>
</Properties>
<AuxValues>
<AuxValue name="JavaCodeGenerator_InitCodePost" type="java.lang.String" value="jLabel3.setToolTipText(&quot;&lt;html&gt;&lt;p style=\&quot;text-align: justify\&quot; width=\&quot;400\&quot;&gt;&quot; +TOOLTIP_SECTION_LENGTH_VS_DENSITY+&quot;&lt;/p&gt;&lt;/html&gt;&quot;);"/>
</AuxValues>
</Component>
<Component class="javax.swing.JLabel" name="jLabel4">
<Properties>
Expand Down
3 changes: 3 additions & 0 deletions NeuGen/src/org/neugen/gui/GlobalParameterDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ public class GlobalParameterDialog extends JDialog {
+ "utilized for each compartment respectively. (Note: section-length "
+ "parameter is overriden by the nparts-density parameter if the latter"
+ "parameter is not set!";
private final static String TOOLTIP_SECTION_LENGTH_VS_DENSITY = "The n-parts-Density"
+ "parameter overrides the section-length parameter.";


/// private final members
Expand Down Expand Up @@ -171,6 +173,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {

jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
jLabel3.setName("jLabel3"); // NOI18N
jLabel3.setToolTipText("<html><p style=\"text-align: justify\" width=\"400\">" +TOOLTIP_SECTION_LENGTH_VS_DENSITY+"</p></html>");

jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
jLabel4.setName("jLabel4"); // NOI18N
Expand Down
13 changes: 8 additions & 5 deletions NeuGen/src/org/neugen/parsers/TXT/TXTWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,14 @@ public final void writeNetToTXT() {
for (String s : subfiles) {
File f = new File(basefile + "_" + s);
if (f.exists() && !f.isDirectory()) {
fed.setVisible(true);
if (!fed.getStatus()) {
return;
}
break;

if (NeuGenConstants.WITH_GUI) {
fed.setVisible(true);
if (!fed.getStatus()) {
return;
}
break;
}
}
}

Expand Down

0 comments on commit b90c989

Please sign in to comment.