1 19 20 package org.netbeans.modules.diff; 21 22 import java.awt.Component ; 23 import java.io.IOException ; 24 import java.io.Reader ; 25 import javax.swing.JPanel ; 26 import org.netbeans.api.diff.Diff; 27 import org.netbeans.api.diff.DiffView; 28 import org.netbeans.api.diff.StreamSource; 29 30 34 public class FallbackDiffViewTest extends DiffViewAbstract { 35 36 37 public FallbackDiffViewTest(String name) { 38 super(name); 39 } 40 41 protected DiffView createDiffView(StreamSource ss1, StreamSource ss2) throws IOException { 42 return new DiffImpl().createDiff(ss1, ss2); 43 } 44 45 private static class DiffImpl extends Diff { 46 public Component createDiff(String name1, String title1, 47 Reader r1, String name2, String title2, 48 Reader r2, String MIMEType) throws IOException { 49 return new JPanel (); 50 } 51 52 } 53 } 54 | Popular Tags |