Lines 1-7
Link Here
|
1 |
/* |
1 |
/* |
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
3 |
* |
3 |
* |
4 |
* Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved. |
4 |
* Copyright 1997-2008 Sun Microsystems, Inc. All rights reserved. |
5 |
* |
5 |
* |
6 |
* The contents of this file are subject to the terms of either the GNU |
6 |
* The contents of this file are subject to the terms of either the GNU |
7 |
* General Public License Version 2 only ("GPL") or the Common |
7 |
* General Public License Version 2 only ("GPL") or the Common |
Lines 24-30
Link Here
|
24 |
* Contributor(s): |
24 |
* Contributor(s): |
25 |
* |
25 |
* |
26 |
* The Original Software is NetBeans. The Initial Developer of the Original |
26 |
* The Original Software is NetBeans. The Initial Developer of the Original |
27 |
* Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun |
27 |
* Software is Sun Microsystems, Inc. Portions Copyright 1997-2008 Sun |
28 |
* Microsystems, Inc. All Rights Reserved. |
28 |
* Microsystems, Inc. All Rights Reserved. |
29 |
* |
29 |
* |
30 |
* If you wish your version of this file to be governed by only the CDDL |
30 |
* If you wish your version of this file to be governed by only the CDDL |
Lines 45-50
Link Here
|
45 |
import java.awt.Dimension; |
45 |
import java.awt.Dimension; |
46 |
import java.io.File; |
46 |
import java.io.File; |
47 |
import java.text.MessageFormat; |
47 |
import java.text.MessageFormat; |
|
|
48 |
import java.util.ArrayList; |
48 |
import java.util.Collection; |
49 |
import java.util.Collection; |
49 |
import java.util.Collections; |
50 |
import java.util.Collections; |
50 |
import java.util.List; |
51 |
import java.util.List; |
Lines 164-180
Link Here
|
164 |
setStatusText(""); |
165 |
setStatusText(""); |
165 |
} else if (message == FAILED_INSTALL_NEW_UNEXPECTED) { |
166 |
} else if (message == FAILED_INSTALL_NEW_UNEXPECTED) { |
166 |
Module m = (Module)args[0]; |
167 |
Module m = (Module)args[0]; |
167 |
// ignore args[1]: InvalidException |
168 |
List<Module> modules = new ArrayList<Module> (); |
|
|
169 |
modules.add (m); |
170 |
modules.addAll (NbCollections.checkedSetByCopy((Set) args[1], Module.class, true)); |
171 |
// ignore args[2]: InvalidException |
168 |
{ |
172 |
{ |
169 |
StringBuilder buf = new StringBuilder(NbBundle.getMessage(NbEvents.class, "MSG_failed_install_new_unexpected", m.getDisplayName())); |
173 |
StringBuilder buf = new StringBuilder(NbBundle.getMessage(NbEvents.class, "MSG_failed_install_new_unexpected", m.getDisplayName())); |
170 |
NbProblemDisplayer.problemMessagesForModules(buf, Collections.singleton(m), false); |
174 |
NbProblemDisplayer.problemMessagesForModules(buf, modules, false); |
171 |
buf.append('\n'); |
175 |
buf.append('\n'); |
172 |
logger.log(Level.INFO, buf.toString()); |
176 |
logger.log(Level.INFO, buf.toString()); |
173 |
} |
177 |
} |
174 |
|
178 |
|
175 |
{ |
179 |
{ |
176 |
StringBuilder buf = new StringBuilder(NbBundle.getMessage(NbEvents.class, "MSG_failed_install_new_unexpected", m.getDisplayName())); |
180 |
StringBuilder buf = new StringBuilder(NbBundle.getMessage(NbEvents.class, "MSG_failed_install_new_unexpected", m.getDisplayName())); |
177 |
NbProblemDisplayer.problemMessagesForModules(buf, Collections.singleton(m), true); |
181 |
NbProblemDisplayer.problemMessagesForModules(buf, modules, true); |
178 |
notify(buf.toString(), true); |
182 |
notify(buf.toString(), true); |
179 |
} |
183 |
} |
180 |
setStatusText(""); |
184 |
setStatusText(""); |