Skip the notification if the message is empty. QBE200205170100-BLD200205212200
authormentlicher@netbeans.org
Thu, 16 May 2002 16:16:13 +0000
changeset 225924b73977a9d2
parent 2258 9d7463930abf
child 2260 1a0caefdbbca
Skip the notification if the message is empty.
vcscore/src/org/netbeans/modules/vcscore/commands/CommandExecutorSupport.java
     1.1 --- a/vcscore/src/org/netbeans/modules/vcscore/commands/CommandExecutorSupport.java	Thu May 16 15:49:51 2002 +0000
     1.2 +++ b/vcscore/src/org/netbeans/modules/vcscore/commands/CommandExecutorSupport.java	Thu May 16 16:16:13 2002 +0000
     1.3 @@ -261,6 +261,7 @@
     1.4                                             String notification,
     1.5                                             final VcsFileSystem fileSystem) {
     1.6          final String notification1 = Variables.expand(vce.getVariables(), notification, false);
     1.7 +        if (notification1.trim().length() == 0) return ;
     1.8          org.openide.util.RequestProcessor.postRequest(new Runnable() {
     1.9              public void run() {
    1.10                  NotifyDescriptor msg = new NotifyDescriptor.Message(notification1);