Lines 28-33
Link Here
|
28 |
import org.xml.sax.InputSource; |
28 |
import org.xml.sax.InputSource; |
29 |
|
29 |
|
30 |
import org.openide.loaders.XMLDataObject; |
30 |
import org.openide.loaders.XMLDataObject; |
|
|
31 |
import org.openide.ErrorManager; |
31 |
import org.openide.TopManager; |
32 |
import org.openide.TopManager; |
32 |
import org.openide.NotifyDescriptor; |
33 |
import org.openide.NotifyDescriptor; |
33 |
import org.openide.xml.XMLUtil; |
34 |
import org.openide.xml.XMLUtil; |
Lines 162-168
Link Here
|
162 |
homepage = new URL( xmlURL, textURL ); |
163 |
homepage = new URL( xmlURL, textURL ); |
163 |
} |
164 |
} |
164 |
catch ( java.net.MalformedURLException e ) { |
165 |
catch ( java.net.MalformedURLException e ) { |
165 |
TopManager.getDefault().notifyException( e ); |
166 |
TopManager.getDefault().getErrorManager().notify(ErrorManager.WARNING, e); |
166 |
// let homepage set to null |
167 |
// let homepage set to null |
167 |
} |
168 |
} |
168 |
|
169 |
|
Lines 207-216
Link Here
|
207 |
} |
208 |
} |
208 |
} |
209 |
} |
209 |
catch ( java.net.MalformedURLException e ) { |
210 |
catch ( java.net.MalformedURLException e ) { |
210 |
if (Boolean.getBoolean ("netbeans.debug.exceptions")) // NOI18N |
211 |
TopManager.getDefault().getErrorManager().notify(ErrorManager.WARNING, e); |
211 |
e.printStackTrace (); |
|
|
212 |
|
213 |
//TopManager.getDefault().notifyException( e ); |
214 |
// let distibution URL set to null |
212 |
// let distibution URL set to null |
215 |
} |
213 |
} |
216 |
|
214 |
|
Lines 234-242
Link Here
|
234 |
remoteModule = new DummyModuleInfo ( mf.getMainAttributes() ); |
232 |
remoteModule = new DummyModuleInfo ( mf.getMainAttributes() ); |
235 |
} |
233 |
} |
236 |
catch ( IllegalArgumentException e ) { |
234 |
catch ( IllegalArgumentException e ) { |
237 |
if (Boolean.getBoolean ("netbeans.debug.exceptions")) // NOI18N |
235 |
TopManager.getDefault().getErrorManager().notify(ErrorManager.WARNING, e); |
238 |
e.printStackTrace (); |
|
|
239 |
// let manifest URL set to null |
240 |
} |
236 |
} |
241 |
|
237 |
|
242 |
// Read the licence from the XML |
238 |
// Read the licence from the XML |
Lines 337-354
Link Here
|
337 |
node = documentElement; |
333 |
node = documentElement; |
338 |
} |
334 |
} |
339 |
catch ( org.xml.sax.SAXException e ) { |
335 |
catch ( org.xml.sax.SAXException e ) { |
340 |
if (Boolean.getBoolean ("netbeans.debug.exceptions")) { // NOI18N |
336 |
TopManager.getDefault().getErrorManager().annotate(e, ErrorManager.UNKNOWN, "Bad info : " + nbmFile.getName(), null, null, null); // NOI18N |
341 |
System.out.println("Bad info : " + nbmFile.getName() ); // NOI18N |
337 |
TopManager.getDefault().getErrorManager().notify(ErrorManager.WARNING, e); |
342 |
//e.printStackTrace (); |
|
|
343 |
} |
344 |
return false; |
338 |
return false; |
345 |
//TopManager.getDefault().notifyException( e ); |
|
|
346 |
} |
339 |
} |
347 |
catch ( java.io.IOException e ) { |
340 |
catch ( java.io.IOException e ) { |
348 |
if (Boolean.getBoolean ("netbeans.debug.exceptions")) { // NOI18N |
341 |
TopManager.getDefault().getErrorManager().annotate(e, ErrorManager.UNKNOWN, "Missing info : " + nbmFile.getName(), null, null, null); // NOI18N |
349 |
System.out.println("Missing info : " + nbmFile.getName() ); // NOI18N |
342 |
TopManager.getDefault().getErrorManager().notify(ErrorManager.WARNING, e); |
350 |
//e.printStackTrace (); |
|
|
351 |
} |
352 |
return false; |
343 |
return false; |
353 |
} |
344 |
} |
354 |
|
345 |
|
Lines 363-369
Link Here
|
363 |
homepage = new URL( textURL ); |
354 |
homepage = new URL( textURL ); |
364 |
} |
355 |
} |
365 |
catch ( java.net.MalformedURLException e ) { |
356 |
catch ( java.net.MalformedURLException e ) { |
366 |
TopManager.getDefault().notifyException( e ); |
357 |
TopManager.getDefault().getErrorManager().notify(ErrorManager.WARNING, e); |
367 |
// let homepage set to null |
358 |
// let homepage set to null |
368 |
} |
359 |
} |
369 |
|
360 |
|
Lines 418-426
Link Here
|
418 |
remoteModule = new DummyModuleInfo( mf.getMainAttributes() ); |
409 |
remoteModule = new DummyModuleInfo( mf.getMainAttributes() ); |
419 |
} |
410 |
} |
420 |
catch ( IllegalArgumentException e ) { |
411 |
catch ( IllegalArgumentException e ) { |
421 |
if (Boolean.getBoolean ("netbeans.debug.exceptions")) // NOI18N |
412 |
TopManager.getDefault().getErrorManager().notify(ErrorManager.WARNING, e); |
422 |
e.printStackTrace (); |
|
|
423 |
// let manifest URL set to null |
424 |
} |
413 |
} |
425 |
|
414 |
|
426 |
// Read the licence from the XML |
415 |
// Read the licence from the XML |
Lines 910-917
Link Here
|
910 |
} |
899 |
} |
911 |
|
900 |
|
912 |
// licence not found |
901 |
// licence not found |
913 |
if (name != null && Boolean.getBoolean ("netbeans.debug.exceptions")) // NOI18N |
902 |
if (name != null) { |
914 |
System.err.println ("[AutoUpdate] warning: no license found with name " + name); |
903 |
TopManager.getDefault().getErrorManager().log("[AutoUpdate] warning: no license found with name " + name); |
|
|
904 |
} |
915 |
return null; |
905 |
return null; |
916 |
} |
906 |
} |
917 |
|
907 |
|
Lines 978-983
Link Here
|
978 |
|
968 |
|
979 |
public void warning (org.xml.sax.SAXParseException e) { |
969 |
public void warning (org.xml.sax.SAXParseException e) { |
980 |
//parseFailed = true; |
970 |
//parseFailed = true; |
|
|
971 |
TopManager.getDefault().getErrorManager().notify(ErrorManager.INFORMATIONAL, e); |
981 |
} |
972 |
} |
982 |
|
973 |
|
983 |
public void fatalError (org.xml.sax.SAXParseException e) { |
974 |
public void fatalError (org.xml.sax.SAXParseException e) { |