ide/src/wombat/gui/actions/ShowError.java
public void actionPerformed(ActionEvent event) {
		StringBuffer sb = new StringBuffer();
		sb.append("Logs:\n\n");
		
		for (String s : new File(".").list()) {
			File f = new File(s);
			if (s.startsWith("log") && f.isFile() && f.canRead()) {
				try {
					sb.append("-- " + f.getCanonicalPath() + " --");
					
					byte[] buffer = new byte[(int) f.length()];
				    FileInputStream fis = new FileInputStream(f);
				    fis.read(buffer);
				    fis.close();
					sb.append(new String(buffer));
				} catch(Exception e) {
					
				}
			}
		}
		
		MainFrame.Singleton().DebugLogs.setText(sb.toString());
		
		MainFrame.Singleton().showDebug();
	}
/**
	 * Shows the debug information .
	 * @param event Event parameters (ignored).
	 * @see ActionEvent, MainFrame
	 */
Shows the debug information .
@param event Event parameters (ignored).
Shows the debug information . @param event Event parameters ( ignored ) .
public void actionPerformed(ActionEvent event) {
		StringBuffer sb = new StringBuffer();
		sb.append("Logs:\n\n");
		for (String s : new File(".").list()) {
			File f = new File(s);
			if (s.startsWith("log") && f.isFile() && f.canRead()) {
				try {
					sb.append("-- " + f.getCanonicalPath() + " --");
					byte[] buffer = new byte[(int) f.length()];
				    FileInputStream fis = new FileInputStream(f);
				    fis.read(buffer);
				    fis.close();
					sb.append(new String(buffer));
				} catch(Exception e) {
				}
			}
		}
		MainFrame.Singleton().DebugLogs.setText(sb.toString());
		MainFrame.Singleton().showDebug();
	}
public void actionPerformed ( ActionEvent event ) { StringBuffer sb = new StringBuffer ( ) ; sb . append ( "Logs:\n\n" ) ; for ( String s : new File ( "." ) . list ( ) ) { File f = new File ( s ) ; if ( s . startsWith ( "log" ) && f . isFile ( ) && f . canRead ( ) ) { try { sb . append ( "-- " + f . getCanonicalPath ( ) + " --" ) ; byte [ ] buffer = new byte [ ( int ) f . length ( ) ] ; FileInputStream fis = new FileInputStream ( f ) ; fis . read ( buffer ) ; fis . close ( ) ; sb . append ( new String ( buffer ) ) ; } catch ( Exception e ) { } } } MainFrame . Singleton ( ) . DebugLogs . setText ( sb . toString ( ) ) ; MainFrame . Singleton ( ) . showDebug ( ) ; }
Shows the debug information .
Shows the debug information .