EADS-3568 - When deploying files to secondary DB the notification dialog only shows about every other time
made primary DB bold in dropdown list
1.1 --- a/PLSQL/Execution/src/org/netbeans/modules/plsql/execution/PlsqlExecuteAction.java Thu Mar 28 12:47:27 2013 +0100
1.2 +++ b/PLSQL/Execution/src/org/netbeans/modules/plsql/execution/PlsqlExecuteAction.java Thu Mar 28 12:48:31 2013 +0100
1.3 @@ -42,6 +42,7 @@
1.4 package org.netbeans.modules.plsql.execution;
1.5
1.6 import java.awt.Component;
1.7 +import java.awt.Font;
1.8 import java.awt.event.ActionEvent;
1.9 import java.awt.event.ActionListener;
1.10 import java.awt.event.ItemEvent;
1.11 @@ -235,6 +236,9 @@
1.12 url = alias + " [" + url + "]";
1.13 }
1.14 JMenuItem item = new JMenuItem(url);
1.15 + if (connectionProvider.isDefaultDatabase(c)) {
1.16 + item.setFont(item.getFont().deriveFont(Font.BOLD));
1.17 + }
1.18 item.putClientProperty(DATABASE_CONNECTION_KEY, c);
1.19 item.addActionListener(buttonListener);
1.20 popup.add(item);