Refine search
public BeanInfo[] getAdditionalBeanInfo() { try { return new BeanInfo[] { Introspector.getBeanInfo(MultiFileLoader.class) }; } catch (IntrospectionException ie) { ErrorManager.getDefault().notify(ie); return null; } }
public BeanInfo[] getAdditionalBeanInfo() { try { // I.e. MultiFileLoader.class or UniFileLoader.class. return new BeanInfo[] {Introspector.getBeanInfo(SunResourceDataLoader.class.getSuperclass())}; } catch (IntrospectionException ie) { ErrorManager.getDefault().notify(ie); return null; } }
public void run () { try { builder.append(doc.getText(0, doc.getLength())); } catch (BadLocationException e) { ErrorManager.getDefault().notify(e); } } });
public void run () { try { int len = doc.getLength(); result[0] = new char[len+1]; doc.getText(0,len).getChars(0,len,result[0],0); length[0] = len; } catch (BadLocationException e) { ErrorManager.getDefault().notify(e); } } });
private static void indent (Document doc, int offset, int i) { StringBuilder sb = new StringBuilder (); while (i > 0) { sb.append (' ');i--; } try { doc.insertString (offset, sb.toString (), null); } catch (BadLocationException ex) { ErrorManager.getDefault ().notify (ex); } }
private static String[] getClassURLs(String className) { SourcePathProvider spp = SourcePath.getDefaultContext(); // TODO: spp.getAllURLs(className, true); try { return (String[]) spp.getClass().getMethod("getAllURLs", new Class[] { String.class, Boolean.TYPE }). invoke(spp, new Object[] { className, Boolean.TRUE }); } catch (Exception ex) { ErrorManager.getDefault().notify(ex); return new String[0]; } }
public void removeDescription() { try { removeDescriptionForLocale(null); } catch (VersionNotSupportedException ex){ ErrorManager.getDefault().notify(ex); } } public void removeAllDescriptions() {
public void setDescription(String description) { try { setDescription(null,description); } catch (VersionNotSupportedException ex){ ErrorManager.getDefault().notify(ex); } }
public TokenHierarchy<?> getTokenHierarchy() { if (this.jfo == null) { throw new IllegalStateException (); } try { return this.jfo.getTokenHierarchy(); } catch (IOException ioe) { //Should never happen ErrorManager.getDefault().notify(ioe); return null; } }
public void run() { try { if (length > 0) { document.remove(offset, length); } document.insertString(offset, text, null); } catch (BadLocationException ble) { ErrorManager.getDefault().notify(ble); } } };
public ModuleConfiguration create(J2eeModule module) { ModuleConfiguration retVal = null; try { retVal = new ModuleConfigurationImpl(module); } catch (ConfigurationException ce) { ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ce); } return retVal; }
public static synchronized LuceneIndexMBeanImpl getDefault () { if (instance == null) { try { instance = new LuceneIndexMBeanImpl (); } catch (NotCompliantMBeanException e) { ErrorManager.getDefault().notify(e); } } return instance; }
public synchronized URI toUri () { if (this.uri == null) { try { this.uri = URI.create(this.file.getURL().toExternalForm()); } catch (FileStateInvalidException e) { ErrorManager.getDefault().notify(e); } } return this.uri; }
@Override public void run() { try { javaSource.runUserActionTask(task, true); } catch (IOException ex) { ErrorManager.getDefault().notify(ex); } } }, NbBundle.getMessage(WSHandlerDialog.class,
public Wizard getWizardInfo(){ try{ InputStream in = Wizard.class.getClassLoader().getResourceAsStream(DATAFILE); this.wizardInfo = Wizard.createGraph(in); }catch(Exception ex){ ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ex); } return this.wizardInfo; }
public Wizard getWizardInfo(String filePath){ Wizard wizInfo = null; try{ InputStream in = Wizard.class.getClassLoader().getResourceAsStream(filePath); wizInfo = Wizard.createGraph(in); }catch(Exception ex){ ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ex); } return wizInfo; }
public Wizard getWizardInfo(String filePath){ try{ InputStream in = Wizard.class.getClassLoader().getResourceAsStream(filePath); this.wizardInfo = Wizard.createGraph(in); }catch(Exception ex){ ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ex); } return this.wizardInfo; }
protected void setValue(String value) { try { sunWebApp.setErrorUrl(value); } catch(VersionNotSupportedException ex) { ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ex); } } }
protected boolean badField(String err) { Exception ex = new IllegalArgumentException(); ErrorManager.getDefault().annotate(ex, err); ErrorManager.getDefault().notify(ErrorManager.USER, ex); return false; }
public static URL toResourceURL(URL resource) { if (FileUtil.isArchiveFile(resource)) { resource = FileUtil.getArchiveRoot(resource); } else if (!resource.toExternalForm().endsWith("/")) { try { resource = new URL(resource.toExternalForm()+"/"); } catch (MalformedURLException mue) { ErrorManager.getDefault().notify(mue); } } return resource; }