/** * Writes the current and all known layouts into <code>file</code>.<br> * This is the same as calling <code>getResources().writeFile( file )</code>. * @param file the file to override * @throws IOException if the file can't be written */ public void write( File file ) throws IOException{ getResources().writeFile( file ); }
/** * Writes the current and all known layouts into <code>element</code>.<br> * This is the same as calling <code>getResources().writeXML( element )</code>. * @param element the element to write into */ public void writeXML( XElement element ){ getResources().writeXML( element ); }
/** * Writes the current and all known layouts into <code>file</code>.<br> * This is the same as calling <code>getResources().writeFile( file )</code>. * @param file the file to override * @throws IOException if the file can't be written */ public void write( File file ) throws IOException{ getResources().writeFile( file ); }
/** * Reads the current and other known layouts from <code>in</code>.<br> * This is the same as calling <code>getResources().readStream( in )</code>. * @param in the stream to read from * @throws IOException if the stream can't be read */ public void read( DataInputStream in ) throws IOException{ getResources().readStream( in ); }
/** * Reads the current and other known layouts from <code>element</code>.<br> * This is the same as calling <code>getResources().readXML( element )</code>. * @param element the element to read * @throws XException if the xml file has the wrong structure */ public void readXML( XElement element ){ getResources().readXML( element ); }
/** * Reads the current and other known layouts from <code>file</code>.<br> * This is the same as calling <code>getResources().readFile( file )</code>. * @param file the file to read from * @throws IOException if the file can't be read */ public void read( File file ) throws IOException{ getResources().readFile( file ); }
/** * Reads the current and other known layouts from <code>in</code>.<br> * This is the same as calling <code>getResources().readStream( in )</code>. * @param in the stream to read from * @throws IOException if the stream can't be read */ public void read( DataInputStream in ) throws IOException{ getResources().readStream( in ); }
/** * Writes the current and all known layouts into <code>element</code>.<br> * This is the same as calling <code>getResources().writeXML( element )</code>. * @param element the element to write into */ public void writeXML( XElement element ){ getResources().writeXML( element ); }
/** * Writes the current and all known layouts into <code>out</code>.<br> * This is the same as calling <code>getResources().writeStream( out )</code>. * @param out the stream to write into * @throws IOException if the stream is not writable */ public void write( DataOutputStream out ) throws IOException{ getResources().writeStream( out ); }
/** * Reads the current and other known layouts from <code>file</code>.<br> * This is the same as calling <code>getResources().readFile( file )</code>. * @param file the file to read from * @throws IOException if the file can't be read */ public void read( File file ) throws IOException{ getResources().readFile( file ); }
/** * Reads the current and other known layouts from <code>element</code>.<br> * This is the same as calling <code>getResources().readXML( element )</code>. * @param element the element to read * @throws XException if the xml file has the wrong structure */ public void readXML( XElement element ){ getResources().readXML( element ); }
/** * Writes the current and all known layouts into <code>out</code>.<br> * This is the same as calling <code>getResources().writeStream( out )</code>. * @param out the stream to write into * @throws IOException if the stream is not writable */ public void write( DataOutputStream out ) throws IOException{ getResources().writeStream( out ); }
/** * Writes the current and all known layouts into <code>file</code> in xml format. * @param file the file to write into * @throws IOException if the file is not writable */ public void writeXML( File file ) throws IOException{ XElement root = new XElement( "root" ); getResources().writeXML( root ); BufferedOutputStream out = new BufferedOutputStream( new FileOutputStream( file )); XIO.writeUTF( root, out ); out.close(); }
/** * Writes the current and all known layouts into <code>file</code> in xml format. * @param file the file to write into * @throws IOException if the file is not writable */ public void writeXML( File file ) throws IOException{ XElement root = new XElement( "root" ); getResources().writeXML( root ); BufferedOutputStream out = new BufferedOutputStream( new FileOutputStream( file )); XIO.writeUTF( root, out ); out.close(); }
getList().addComponentCollector( dockableCollector ); try { control.getResources().put( "CLookAndFeelMenuPiece", new ApplicationResource(){ public void write( DataOutputStream out ) throws IOException { Version.write( out, Version.VERSION_1_0_4 );
getList().addComponentCollector( dockableCollector ); try { control.getResources().put( "CLookAndFeelMenuPiece", new ApplicationResource(){ public void write( DataOutputStream out ) throws IOException { Version.write( out, Version.VERSION_1_0_4 );
control.getResources().put( "dock.ui.ThemeMap", new ApplicationResource(){ public void read( DataInputStream in ) throws IOException { Version.read( in ).checkCurrent();
control.getResources().put( "dock.ui.ThemeMap", new ApplicationResource(){ public void read( DataInputStream in ) throws IOException { Version.read( in ).checkCurrent();
DockingPanelLayout layout = scdockable.getDockingPanel().getDockingParameters().getLayout(); if(layout != null) { commonControl.getResources().put(scdockable.getUniqueId(), new ApplicationRessourceDecorator(new DockingPanelLayoutDecorator(layout)));