bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
private MarkerResult checkMarker(int loc)throws PedFileException{ MarkerResult result = new MarkerResult(); Individual currentInd; int missing=0, founderHetCount=0, mendErrNum=0; int allele1=0, allele2=0, hom=0, het=0, haploid = 0; Hashtable founderGenoCount = new Hashtable(); ...
private MarkerResult checkMarker(int loc)throws PedFileException{ MarkerResult result = new MarkerResult(); Individual currentInd; int missing=0, founderHetCount=0, mendErrNum=0; int allele1=0, allele2=0, hom=0, het=0, haploid = 0; Hashtable founderGenoCount = new Hashtable(); ...
1,112,620
private MarkerResult checkMarker(int loc)throws PedFileException{ MarkerResult result = new MarkerResult(); Individual currentInd; int missing=0, founderHetCount=0, mendErrNum=0; int allele1=0, allele2=0, hom=0, het=0, haploid = 0; Hashtable founderGenoCount = new Hashtable(); ...
private MarkerResult checkMarker(int loc)throws PedFileException{ MarkerResult result = new MarkerResult(); Individual currentInd; int missing=0, founderHetCount=0, mendErrNum=0; int allele1=0, allele2=0, hom=0, het=0, haploid = 0; Hashtable founderGenoCount = new Hashtable(); ...
1,112,621
protected void createUI() { setLayout(new BorderLayout()); setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); tabPane = new JTabbedPane(); add( tabPane, BorderLayout.CENTER ); // General pane JPanel generalPane = new JPanel(); tabPane.addTab( "General", generalPane ); // Create the fields & their labels /...
protected void createUI() { setLayout(new BorderLayout()); setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); tabPane = new JTabbedPane(); add( tabPane, BorderLayout.CENTER ); // General pane JPanel generalPane = new JPanel(); tabPane.addTab( "General", generalPane ); // Create the fields & their labels /...
1,112,622
public void doTag(XMLOutput output) throws Exception { Task task = getTask(); String text = getBodyText(); // if the task has an addText() Method method = MethodUtils.getAccessibleMethod( taskType, "addText", addTaskParamTypes ); if (method != null) { ...
public void doTag(XMLOutput output) throws Exception { Task task = getTask(); // if the task has an addText() Method method = MethodUtils.getAccessibleMethod( taskType, "addText", addTaskParamTypes ); if (method != null) { Object[] args = { text }; ...
1,112,623
public void doTag(XMLOutput output) throws Exception { Task task = getTask(); String text = getBodyText(); // if the task has an addText() Method method = MethodUtils.getAccessibleMethod( taskType, "addText", addTaskParamTypes ); if (method != null) { ...
public void doTag(XMLOutput output) throws Exception { Task task = getTask(); String text = getBodyText(); // if the task has an addText() Method method = MethodUtils.getAccessibleMethod( taskType, "addText", addTaskParamTypes ); if (method != null) { ...
1,112,624
public Task getTask() throws Exception { if ( task == null ) { task = (Task) taskType.newInstance(); task.setProject(project); task.setTaskName(taskName); task.init(); setDynaBean( new ConvertingWrapDynaBean(task) ); } return task; }
public Task getTask() throws Exception { if ( task == null ) { task = (Task) taskType.newInstance(); task.setProject(project); task.setTaskName(taskName); task.init(); setDynaBean( new ConvertingWrapDynaBean(task) ); } return task; }
1,112,625
public Task getTask() throws Exception { if ( task == null ) { task = (Task) taskType.newInstance(); task.setProject(project); task.setTaskName(taskName); task.init(); setDynaBean( new ConvertingWrapDynaBean(task) ); } return task; }
public Task getTask() throws Exception { if ( task == null ) { task = (Task) taskType.newInstance(); task.setProject(project); task.setTaskName(taskName); task.init(); setDynaBean( new ConvertingWrapDynaBean(task) ); } return this.task; ...
1,112,626
public void setTask(Task task) { this.task = task; setDynaBean( new ConvertingWrapDynaBean(task) ); }
public void setTask(Task task) { this.task = task; setDynaBean( new ConvertingWrapDynaBean( this.task ) ); }
1,112,627
public ServerConnection getServerConnection(ApplicationConfig config) throws ConnectionFailedException { try { /* Create an RMI connector client */ HashMap env = new HashMap(); String[] credentials = new String[] {config.getUsername(), ...
public ServerConnection getServerConnection(ApplicationConfig config) throws ConnectionFailedException { try { /* Create an RMI connector client */ HashMap env = new HashMap(); String[] credentials = new String[] {config.getUsername(), ...
1,112,628
public void testDatabaseInsert()throws ArchitectException { // setup a playpen like database SQLDatabase db = new SQLDatabase(); UndoManager undoManager = new UndoManager(db); db.setIgnoreReset(true); SQLTable table1 = new SQLTable(db,"table1","remark1","TABLE",true); SQLTable table2 = new SQLTable(db,"table2"...
public void testDatabaseInsert()throws ArchitectException { // setup a playpen like database SQLDatabase db = new SQLDatabase(); UndoManager undoManager = new UndoManager(db); db.setPlayPenDatabase(true); SQLTable table1 = new SQLTable(db,"table1","remark1","TABLE",true); SQLTable table2 = new SQLTable(db,"tab...
1,112,629
public void testPhotoAddition() { String testImgDir = "c:\\java\\photovault\\testfiles"; String fname = "test1.jpg"; File f = new File( testImgDir, fname ); PhotoInfo photo = null; try { photo = PhotoInfo.addToDB( f ); } catch ( PhotoNotFoundException e ) { fail( "Could not find photo: " + e.getMessage() );...
public void testPhotoAddition() { String testImgDir = "c:\\java\\photovault\\testfiles"; String fname = "test1.jpg"; File f = new File( testImgDir, fname ); PhotoInfo photo = null; try { photo = PhotoInfo.addToDB( f ); } catch ( PhotoNotFoundException e ) { fail( "Could not find photo: " + e.getMessage() );...
1,112,630
public void testRetrieve() { DList folders = null; Transaction tx = odmg.newTransaction(); tx.begin(); try { OQLQuery query = odmg.newOQLQuery(); query.create( "select folders from " + PhotoFolder.class.getName() + " where name = \"Top\"" ); folders = (DList) query.execute(); tx.commit(); } catch ( ...
public void testRetrieve() { DList folders = null; Transaction tx = odmg.newTransaction(); tx.begin(); try { OQLQuery query = odmg.newOQLQuery(); query.create( "select folders from " + PhotoFolder.class.getName() + " where folderId = 1" ); folders = (DList) query.execute(); tx.commit(); } catch ( Ex...
1,112,631
public void testRetrieve() { DList folders = null; Transaction tx = odmg.newTransaction(); tx.begin(); try { OQLQuery query = odmg.newOQLQuery(); query.create( "select folders from " + PhotoFolder.class.getName() + " where name = \"Top\"" ); folders = (DList) query.execute(); tx.commit(); } catch ( ...
public void testRetrieve() { DList folders = null; Transaction tx = odmg.newTransaction(); tx.begin(); try { OQLQuery query = odmg.newOQLQuery(); query.create( "select folders from " + PhotoFolder.class.getName() + " where name = \"Top\"" ); folders = (DList) query.execute(); tx.commit(); } catch ( ...
1,112,632
public void setUp() { // Create several photos with different shooting dates // Add them to a collection so that they are easy to delete afterwards Calendar cal = Calendar.getInstance(); photos = new Vector(); uids = new Vector(); cal.set( 2002, 11, 23 ); makePhoto( cal, "Katsokaa kun Lassi ui" ); cal.set( 2002, 11...
public void setUp() { // Create several photos with different shooting dates // Add them to a collection so that they are easy to delete afterwards Calendar cal = Calendar.getInstance(); photos = new Vector(); uids = new Vector(); cal.set( 2002, 11, 23 ); makePhoto( cal, "Katsokaa kun Lassi ui" ); cal.set( 2002, 11...
1,112,633
protected void fireDbChildrenRemoved(int[] oldIndices, List oldChildren) { if (logger.isDebugEnabled()) { logger.debug(getClass().getName()+" "+toString()+": " + "firing dbChildrenRemoved event " + "(secondary = "+isSecondaryChangeMode()+")"); } SQLObjectEvent e = new SQLObjectEvent (this, oldIndices...
protected void fireDbChildrenRemoved(int[] oldIndices, List oldChildren) { if (logger.isDebugEnabled()) { logger.debug(getClass().getName()+" "+toString()+": " + "firing dbChildrenRemoved event " + "(secondary = "+isSecondaryChangeMode()+")"); } SQLObjectEvent e = new SQLObjectEvent (this, oldIndices...
1,112,634
protected void fireDbObjectChanged(String propertyName, Object oldValue, Object newValue) { SQLObjectEvent e = new SQLObjectEvent( this, propertyName, oldValue, newValue, isSecondaryChangeMode()); boolean same = (oldValue == null ? oldValue == newValue : oldValue.equals(newValue)); if (same) { logg...
protected void fireDbObjectChanged(String propertyName, Object oldValue, Object newValue) { SQLObjectEvent e = new SQLObjectEvent( this, propertyName, oldValue, newValue, isSecondaryChangeMode()); boolean same = (oldValue == null ? oldValue == newValue : oldValue.equals(newValue)); if (same) { logg...
1,112,635
protected void fireDbObjectChanged(String propertyName, Object oldValue, Object newValue) { SQLObjectEvent e = new SQLObjectEvent( this, propertyName, oldValue, newValue, isSecondaryChangeMode()); boolean same = (oldValue == null ? oldValue == newValue : oldValue.equals(newValue)); if (same) { logg...
protected void fireDbObjectChanged(String propertyName, Object oldValue, Object newValue) { SQLObjectEvent e = new SQLObjectEvent( this, propertyName, oldValue, newValue, isSecondaryChangeMode()); boolean same = (oldValue == null ? oldValue == newValue : oldValue.equals(newValue)); if (same) { logg...
1,112,636
public void fireDbStructureChanged() { if (logger.isDebugEnabled()) { logger.debug(getClass().getName()+" "+toString()+": " + "firing dbStructureChanged event " + "(secondary = "+isSecondaryChangeMode()+")"); } SQLObjectEvent e = new SQLObjectEvent( this, null, isSecondaryChangeMode()); int coun...
public void fireDbStructureChanged() { if (logger.isDebugEnabled()) { logger.debug(getClass().getName()+" "+toString()+": " + "firing dbStructureChanged event " + "(secondary = "+isSecondaryChangeMode()+")"); } SQLObjectEvent e = new SQLObjectEvent( this, null, isSecondaryChangeMode()); int coun...
1,112,637
public void fireDbStructureChanged() { if (logger.isDebugEnabled()) { logger.debug(getClass().getName()+" "+toString()+": " + "firing dbStructureChanged event " + "(secondary = "+isSecondaryChangeMode()+")"); } SQLObjectEvent e = new SQLObjectEvent( this, null, isSecondaryChangeMode()); int coun...
public void fireDbStructureChanged() { if (logger.isDebugEnabled()) { logger.debug(getClass().getName()+" "+toString()+": " + "firing dbStructureChanged event " + "(secondary = "+isSecondaryChangeMode()+")"); } SQLObjectEvent e = new SQLObjectEvent( this, null, isSecondaryChangeMode()); int coun...
1,112,638
protected void fireUndoCompoundEvent(UndoCompoundEvent e) { Iterator it = undoEventListeners.iterator(); if (e.getType().isStartEvent()) { while (it.hasNext()) { ((UndoCompoundEventListener) it.next()).compoundEditStart(e); } } else { while (it.hasNext()) { ((UndoCompoundEventListener) it.next()).compou...
protected void fireUndoCompoundEvent(UndoCompoundEvent e) { UndoCompoundEventListener[] listeners = sqlObjectListeners.toArray(new UndoCompoundEventListener[0]); if (e.getType().isStartEvent()) { while (it.hasNext()) { ((UndoCompoundEventListener) it.next()).compoundEditStart(e); } } else { while (it.hasNe...
1,112,639
protected void fireUndoCompoundEvent(UndoCompoundEvent e) { Iterator it = undoEventListeners.iterator(); if (e.getType().isStartEvent()) { while (it.hasNext()) { ((UndoCompoundEventListener) it.next()).compoundEditStart(e); } } else { while (it.hasNext()) { ((UndoCompoundEventListener) it.next()).compou...
protected void fireUndoCompoundEvent(UndoCompoundEvent e) { Iterator it = undoEventListeners.iterator(); if (e.getType().isStartEvent()) { while (it.hasNext()) { ((UndoCompoundEventListener) it.next()).compoundEditStart(e); } } else { while (it.hasNext()) { ((UndoCompoundEventListener) it.next()).compou...
1,112,640
protected void fireUndoCompoundEvent(UndoCompoundEvent e) { Iterator it = undoEventListeners.iterator(); if (e.getType().isStartEvent()) { while (it.hasNext()) { ((UndoCompoundEventListener) it.next()).compoundEditStart(e); } } else { while (it.hasNext()) { ((UndoCompoundEventListener) it.next()).compou...
protected void fireUndoCompoundEvent(UndoCompoundEvent e) { Iterator it = undoEventListeners.iterator(); if (e.getType().isStartEvent()) { while (it.hasNext()) { ((UndoCompoundEventListener) it.next()).compoundEditStart(e); } } else { while (it.hasNext()) { ((UndoCompoundEventListener) it.next()).compou...
1,112,641
protected SAXException createSAXException(String message, Exception e) { log.warn("Underlying exception: " + e); e.printStackTrace(); if (locator != null) { String error = "Error at (" + locator.getLineNumber() + ", " ...
protected SAXException createSAXException(String message, Exception e) { log.warn("Underlying exception: " + e); e.printStackTrace(); if (locator != null) { String error = "Error at (" + locator.getLineNumber() + ", " ...
1,112,642
public boolean evaluateAsBoolean(JellyContext context) { Object value = evaluateAsValue(context); if ( value instanceof Boolean ) { Boolean b = (Boolean) value; return b.booleanValue(); } else if ( value instanceof String ) { // return Boolean.getBoolean(...
public boolean evaluateAsBoolean(JellyContext context) { Object value = evaluateRecurse(context); if ( value instanceof Boolean ) { Boolean b = (Boolean) value; return b.booleanValue(); } else if ( value instanceof String ) { // return Boolean.getBoolean(...
1,112,644
public Iterator evaluateAsIterator(JellyContext context) { Object value = evaluateAsValue(context); if ( value == null ) { return EMPTY_ITERATOR; } else if ( value instanceof Iterator ) { return (Iterator) value; } else if ( value instanceof Lis...
public Iterator evaluateAsIterator(JellyContext context) { Object value = evaluateRecurse(context); if ( value == null ) { return EMPTY_ITERATOR; } else if ( value instanceof Iterator ) { return (Iterator) value; } else if ( value instanceof Lis...
1,112,645
public String evaluateAsString(JellyContext context) { Object value = evaluateAsValue(context); // sometimes when Jelly is used inside Maven the value // of an expression can actually be an expression. // e.g. ${foo.bar} can lookup "foo.bar" in a Maven context // which could actua...
public String evaluateAsString(JellyContext context) { Object value = evaluateRecurse(context); // sometimes when Jelly is used inside Maven the value // of an expression can actually be an expression. // e.g. ${foo.bar} can lookup "foo.bar" in a Maven context // which could actua...
1,112,646
public static int getMimePartSize(MimeMultipart parts, String mimeType) { if (parts != null) { try { for (int i = 0; i < parts.getCount(); i++) { BodyPart bodyPart = parts.getBodyPart(i); if (bodyPart.getContentType().startsWith(mimeType)) { ...
public static int getMimePartSize(MimeMultipart parts, String mimeType) { if (parts != null) { try { for (int i = 0; i < parts.getCount(); i++) { BodyPart bodyPart = parts.getBodyPart(i); if (bodyPart.getContentType().startsWith(mimeType)) { ...
1,112,647
public void initSingleColumnSize(int colIndex) { TableUtils.fitColumnWidth(table, colIndex); }
public void initSingleColumnSize(int colIndex) { TableUtils.fitColumnWidth(table, colIndex, 0); }
1,112,648
public static void main(String[] args) { JFrame jf = new JFrame(); String dir = System.getProperty("user.dir"); String sep = System.getProperty("file.separator"); String ver = System.getProperty("java.version"); System.out.println(ver); String jarfile = System.getProperty("...
public static void main(String[] args) { int exitValue = 0; String dir = System.getProperty("user.dir"); String sep = System.getProperty("file.separator"); String ver = System.getProperty("java.version"); System.out.println(ver); String jarfile = System.getProperty("java.cl...
1,112,649
public static void main(String[] args) { JFrame jf = new JFrame(); String dir = System.getProperty("user.dir"); String sep = System.getProperty("file.separator"); String ver = System.getProperty("java.version"); System.out.println(ver); String jarfile = System.getProperty("...
public static void main(String[] args) { JFrame jf = new JFrame(); String dir = System.getProperty("user.dir"); String sep = System.getProperty("file.separator"); String ver = System.getProperty("java.version"); System.out.println(ver); String jarfile = System.getProperty("...
1,112,650
public static void main(String[] args) { JFrame jf = new JFrame(); String dir = System.getProperty("user.dir"); String sep = System.getProperty("file.separator"); String ver = System.getProperty("java.version"); System.out.println(ver); String jarfile = System.getProperty("...
public static void main(String[] args) { JFrame jf = new JFrame(); String dir = System.getProperty("user.dir"); String sep = System.getProperty("file.separator"); String ver = System.getProperty("java.version"); System.out.println(ver); String jarfile = System.getProperty("...
1,112,651
public static void main(String[] args) { JFrame jf = new JFrame(); String dir = System.getProperty("user.dir"); String sep = System.getProperty("file.separator"); String ver = System.getProperty("java.version"); System.out.println(ver); String jarfile = System.getProperty("...
public static void main(String[] args) { JFrame jf = new JFrame(); String dir = System.getProperty("user.dir"); String sep = System.getProperty("file.separator"); String ver = System.getProperty("java.version"); System.out.println(ver); String jarfile = System.getProperty("...
1,112,652
public static void main(String[] args) { JFrame jf = new JFrame(); String dir = System.getProperty("user.dir"); String sep = System.getProperty("file.separator"); String ver = System.getProperty("java.version"); System.out.println(ver); String jarfile = System.getProperty("...
public static void main(String[] args) { JFrame jf = new JFrame(); String dir = System.getProperty("user.dir"); String sep = System.getProperty("file.separator"); String ver = System.getProperty("java.version"); System.out.println(ver); String jarfile = System.getProperty("...
1,112,653
public static void main(String[] args) { JFrame jf = new JFrame(); String dir = System.getProperty("user.dir"); String sep = System.getProperty("file.separator"); String ver = System.getProperty("java.version"); System.out.println(ver); String jarfile = System.getProperty("...
public static void main(String[] args) { JFrame jf = new JFrame(); String dir = System.getProperty("user.dir"); String sep = System.getProperty("file.separator"); String ver = System.getProperty("java.version"); System.out.println(ver); String jarfile = System.getProperty("...
1,112,654
public static void main(String[] args) { JFrame jf = new JFrame(); String dir = System.getProperty("user.dir"); String sep = System.getProperty("file.separator"); String ver = System.getProperty("java.version"); System.out.println(ver); String jarfile = System.getProperty("...
public static void main(String[] args) { JFrame jf = new JFrame(); String dir = System.getProperty("user.dir"); String sep = System.getProperty("file.separator"); String ver = System.getProperty("java.version"); System.out.println(ver); String jarfile = System.getProperty("...
1,112,655
public void doTag(XMLOutput output) throws Exception { for (int i = 0, size = whenTags.length; i < size; i++) { TagScript script = whenTags[i]; script.run(context, output); WhenTag tag = (WhenTag) script.getTag(); if (tag.getValue()) { return; ...
public void doTag(XMLOutput output) throws Exception { for (int i = 0, size = whenTags.length; i < size; i++) { TagScript script = whenTags[i]; script.run(context, output); WhenTag tag = (WhenTag) script.getTag(); if (tag.getValue()) { return; ...
1,112,656
public void doTag(XMLOutput output) throws Exception { try { conn = getConnection(); } catch (SQLException e) { throw new JellyException(sql + ": " + e.getMessage(), e); } /* * Use the SQL statement specified by the sql attribute, if any, * ot...
public void doTag(XMLOutput output) throws Exception { try { conn = getConnection(); } catch (SQLException e) { throw new JellyException(sql + ": " + e.getMessage(), e); } /* * Use the SQL statement specified by the sql attribute, if any, * ot...
1,112,657
protected void setUp() throws Exception { super.setUp(); pp = ArchitectFrame.getMainInstance().getProject().getPlayPen(); SQLTable t1 = new SQLTable(pp.getDatabase(), true); pp.getDatabase().addChild(t1); pp.addTablePane(new TablePane(t1, pp), new Point(0,0)); SQLTable t2 = new SQLTable(pp.getDatabase(), true); ...
protected void setUp() throws Exception { super.setUp(); pp = ArchitectFrame.getMainInstance().getProject().getPlayPen(); SQLTable t1 = new SQLTable(pp.getDatabase(), true); pp.getDatabase().addChild(t1); pp.addTablePane(tp1 = new TablePane(t1, pp), new Point(0,0)); SQLTable t2 = new SQLTable(pp.getDatabase(), t...
1,112,658
protected void setUp() throws Exception { super.setUp(); pp = ArchitectFrame.getMainInstance().getProject().getPlayPen(); SQLTable t1 = new SQLTable(pp.getDatabase(), true); pp.getDatabase().addChild(t1); pp.addTablePane(new TablePane(t1, pp), new Point(0,0)); SQLTable t2 = new SQLTable(pp.getDatabase(), true); ...
protected void setUp() throws Exception { super.setUp(); pp = ArchitectFrame.getMainInstance().getProject().getPlayPen(); SQLTable t1 = new SQLTable(pp.getDatabase(), true); pp.getDatabase().addChild(t1); pp.addTablePane(new TablePane(t1, pp), new Point(0,0)); SQLTable t2 = new SQLTable(pp.getDatabase(), true); ...
1,112,659
public void setUp() { odmg = OJB.getInstance(); db = odmg.newDatabase(); try { db.open( "repository.xml", Database.OPEN_READ_WRITE ); } catch ( ODMGException e ) { // log.warn( "Could not open database: " + e.getMessage() ); db = null; } tx = odmg.newTransaction(); tx.begin(); DList folders = null; ...
public void setUp() { odmg = OJB.getInstance(); db = odmg.newDatabase(); try { db.open( "repository.xml", Database.OPEN_READ_WRITE ); } catch ( ODMGException e ) { // log.warn( "Could not open database: " + e.getMessage() ); db = null; } tx = odmg.newTransaction(); tx.begin(); DList folders = null; ...
1,112,661
public void setTags(TaggerController t) { tc = t; removeAll(); setLayout(new BoxLayout(this,BoxLayout.X_AXIS)); Vector colNames = new Vector(); Vector tableData = new Vector(); colNames.add("Allele"); colNames.add("Test"); colNames.add("r\u00b2"); for (...
public void setTags(TaggerController t) { tc = t; removeAll(); setLayout(new BoxLayout(this,BoxLayout.X_AXIS)); Vector colNames = new Vector(); Vector tableData = new Vector(); colNames.add("Allele"); colNames.add("Test"); colNames.add("r\u00b2"); for (...
1,112,663
public BrowserWindow() { super( "Photovault Browser"); SwingUtilities.invokeLater(new java.lang.Runnable() { public void run() { createUI(); } }); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } } ); }
public BrowserWindow() { super( "Photovault Browser"); SwingUtilities.invokeLater(new java.lang.Runnable() { public void run() { createUI(); } }); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } } ); }
1,112,664
public void actionPerformed( ActionEvent e ) { BrowserWindow br = new BrowserWindow(); // br.setVisible( true ); }
public void actionPerformed( ActionEvent e ) { importFile(); // br.setVisible( true ); }
1,112,666
public void actionPerformed( ActionEvent e ) { importFile(); }
public void actionPerformed( ActionEvent e ) { System.exit( 0 ); }
1,112,667
public synchronized void setupDialog() { logger.debug("running setupDialog()"); if (plexp == null) { throw new NullPointerException("setupDialog: plexp was null"); } // always refresh Target Database (it might have changed) plexp.setTargetDataSource(ArchitectFrame.getMainInstance().getProject().getTargetDatabas...
public synchronized void setupDialog() { logger.debug("running setupDialog()"); if (plexp == null) { throw new NullPointerException("setupDialog: plexp was null"); } // always refresh Target Database (it might have changed) plexp.setTargetDataSource(ArchitectFrame.getMainInstance().getProject().getTargetDatabas...
1,112,669
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command.equals(RAW_DATA)){ load(PED); }else if (command.equals(PHASED_DATA)){ load(HAPS); }else if (command.equals(HAPMAP_DATA)){ load(HMP); }else if (command.e...
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command.equals(RAW_DATA)){ load(PED); }else if (command.equals(PHASED_DATA)){ load(HAPS); }else if (command.equals(HAPMAP_DATA)){ load(HMP); }else if (command.e...
1,112,670
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command.equals(RAW_DATA)){ load(PED); }else if (command.equals(PHASED_DATA)){ load(HAPS); }else if (command.equals(HAPMAP_DATA)){ load(HMP); }else if (command.e...
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command.equals(RAW_DATA)){ load(PED); }else if (command.equals(PHASED_DATA)){ load(HAPS); }else if (command.equals(HAPMAP_DATA)){ load(HMP); }else if (command.e...
1,112,671
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command.equals(RAW_DATA)){ load(PED); }else if (command.equals(PHASED_DATA)){ load(HAPS); }else if (command.equals(HAPMAP_DATA)){ load(HMP); }else if (command.e...
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command.equals(RAW_DATA)){ load(PED); }else if (command.equals(PHASED_DATA)){ load(HAPS); }else if (command.equals(HAPMAP_DATA)){ load(HMP); }else if (command.e...
1,112,672
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command.equals(RAW_DATA)){ load(PED); }else if (command.equals(PHASED_DATA)){ load(HAPS); }else if (command.equals(HAPMAP_DATA)){ load(HMP); }else if (command.e...
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command.equals(RAW_DATA)){ load(PED); }else if (command.equals(PHASED_DATA)){ load(HAPS); }else if (command.equals(HAPMAP_DATA)){ load(HMP); }else if (command.e...
1,112,673
protected void initTree() { folderNodes = new HashMap(); topNode = null; if ( model == null ) { return; } // Add all photos in the model to folder tree for ( int n = 0; n < model.length; n++ ) { addPhotoToTree( (PhotoInfo) model[n] ); } treeModel.nodeStructureChanged(topNode); }
protected void initTree() { folderNodes = new HashMap(); topNode = null; if ( model == null ) { return; } // Add all photos in the model to folder tree for ( int n = 0; n < model.length; n++ ) { if ( model[n] != null ) { addPhotoToTree( (PhotoInfo) model[n] ); } } treeModel.nodeStructureChanged(topN...
1,112,674
public void addRelationship(SQLRelationship r) throws ArchitectDiffException { print("\n ALTER TABLE "); printQualified(r.getFkTable().getPhysicalName()); print(" ADD FOREIGN KEY "); print(r.getName()); print(" ( "); Map<String, SQLColumn> colNameMap = new HashMap<String, SQLColumn> (); boolean firstColumn =...
public void addRelationship(SQLRelationship r) throws ArchitectDiffException { print("\n ALTER TABLE "); printQualified(r.getFkTable().getPhysicalName()); print(" ADD CONSTRAINT "); print(r.getName()); print(" ( "); Map<String, SQLColumn> colNameMap = new HashMap<String, SQLColumn> (); boolean firstColumn = ...
1,112,675
public void addRelationship(SQLRelationship r) throws ArchitectDiffException { print("\n ALTER TABLE "); printQualified(r.getFkTable().getPhysicalName()); print(" ADD FOREIGN KEY "); print(r.getName()); print(" ( "); Map<String, SQLColumn> colNameMap = new HashMap<String, SQLColumn> (); boolean firstColumn =...
public void addRelationship(SQLRelationship r) throws ArchitectDiffException { print("\n ALTER TABLE "); printQualified(r.getFkTable().getPhysicalName()); print(" ADD FOREIGN KEY "); print(r.getName()); print(" FOREIGN KEY ( "); Map<String, SQLColumn> colNameMap = new HashMap<String, SQLColumn> (); boolean f...
1,112,676
private String columnDefinition(SQLColumn c, Map colNameMap) throws ArchitectDiffException { StringBuffer def = new StringBuffer(); getPhysicalName(colNameMap,c); // also adds generated physical name to the map GenericTypeDescriptor td = (GenericTypeDescriptor) typeMap.get(new Integer(c.getType())); if (td == nul...
protected String columnDefinition(SQLColumn c, Map colNameMap) throws ArchitectDiffException { StringBuffer def = new StringBuffer(); getPhysicalName(colNameMap,c); // also adds generated physical name to the map GenericTypeDescriptor td = (GenericTypeDescriptor) typeMap.get(new Integer(c.getType())); if (td == n...
1,112,677
public void dropRelationship(SQLRelationship r) { print("\n ALTER TABLE "); printQualified(r.getFkTable().getPhysicalName()); print(" DROP FOREIGN KEY "); print(r.getName()); endStatement(DDLStatement.StatementType.DROP, r); }
public void dropRelationship(SQLRelationship r) { print("\n ALTER TABLE "); printQualified(r.getFkTable().getPhysicalName()); print(" DROP CONSTRAINT "); print(r.getName()); endStatement(DDLStatement.StatementType.DROP, r); }
1,112,678
public void run(Context context, XMLOutput output) throws Exception { log.info( "Invoking dynamic tag with attributes: " + attributes ); attributes.put( "org.apache.commons.jelly.body", getBody() ); // create new context based on current attributes Context newContext = context.ne...
public void run(JellyContext context, XMLOutput output) throws Exception { log.info( "Invoking dynamic tag with attributes: " + attributes ); attributes.put( "org.apache.commons.jelly.body", getBody() ); // create new context based on current attributes Context newContext = conte...
1,112,680
public void run(Context context, XMLOutput output) throws Exception { log.info( "Invoking dynamic tag with attributes: " + attributes ); attributes.put( "org.apache.commons.jelly.body", getBody() ); // create new context based on current attributes Context newContext = context.ne...
public void run(Context context, XMLOutput output) throws Exception { log.info( "Invoking dynamic tag with attributes: " + attributes ); attributes.put( "org.apache.commons.jelly.body", getBody() ); // create new context based on current attributes JellyContext newJellyContext = ...
1,112,681
public void run(Context context, XMLOutput output) throws Exception { log.info( "Invoking dynamic tag with attributes: " + attributes ); attributes.put( "org.apache.commons.jelly.body", getBody() ); // create new context based on current attributes Context newContext = context.ne...
public void run(Context context, XMLOutput output) throws Exception { log.info( "Invoking dynamic tag with attributes: " + attributes ); attributes.put( "org.apache.commons.jelly.body", getBody() ); // create new context based on current attributes Context newContext = context.ne...
1,112,682
static public void init() { // Determine the property file name String propFname = System.getProperty( "photovault.propFname", defaultPropFname ); File propFile = new File( propFname ); props = new Properties(); try { InputStream is = new FileInputStream( propFile ); props.load( is ); } catch ( FileNotFound...
static public void init() { // Determine the property file name String propFname = System.getProperty( "photovault.propFname", defaultPropFname ); log.debug( "Using property file " + propFname ); File propFile = new File( propFname ); props = new Properties(); try { InputStream is = new FileInputStream( propFil...
1,112,683
private void paintThumbnail( Graphics2D g2, PhotoInfo photo, int startx, int starty, boolean isSelected ) { // Current position in which attributes can be drawn int ypos = starty + rowHeight/2; if ( photo != null ) { Thumbnail thumbnail = null; if ( photo.hasThumbnail() ) { log.debug( ...
private void paintThumbnail( Graphics2D g2, PhotoInfo photo, int startx, int starty, boolean isSelected ) { // Current position in which attributes can be drawn int ypos = starty + rowHeight/2; if ( photo != null ) { Thumbnail thumbnail = null; log.debug( "finding thumb" ); boolean hasT...
1,112,685
protected void setUp() throws Exception { super.setUp(); SQLDatabase mydb = new SQLDatabase(db.getDataSource()); Connection con = mydb.getConnection(); /* * Setting up a clean db for each of the tests */ Statement stmt = con.createStatement(); try { stmt.executeUpdate("DROP TABLE REGRESSION...
protected void setUp() throws Exception { super.setUp(); SQLDatabase mydb = new SQLDatabase(db.getDataSource()); Connection con = mydb.getConnection(); /* * Setting up a clean db for each of the tests */ Statement stmt = con.createStatement(); try { stmt.executeUpdate("DROP TABLE REGRESSION...
1,112,689
public void testInherit() throws ArchitectException { SQLTable table1; SQLTable table2; table1 = db.getTableByName("REGRESSION_TEST1"); table2 = db.getTableByName("REGRESSION_TEST2"); table2.inherit(table1); assertEquals("The wrong 1st column was inherited",table2.getColumn(0).toString(),table1.getColu...
public void testInherit() throws ArchitectException { SQLTable table1; SQLTable table2; table1 = db.getTableByName("REGRESSION_TEST1"); table2 = db.getTableByName("REGRESSION_TEST2"); table2.inherit(table1); assertEquals("The wrong 1st column was inherited",table2.getColumn(0).toString(),table1.getColu...
1,112,690
public void testInherit() throws ArchitectException { SQLTable table1; SQLTable table2; table1 = db.getTableByName("REGRESSION_TEST1"); table2 = db.getTableByName("REGRESSION_TEST2"); table2.inherit(table1); assertEquals("The wrong 1st column was inherited",table2.getColumn(0).toString(),table1.getColu...
public void testInherit() throws ArchitectException { SQLTable table1; SQLTable table2; table1 = db.getTableByName("REGRESSION_TEST1"); table2 = db.getTableByName("REGRESSION_TEST2"); table2.inherit(table1); assertEquals("The wrong 1st column was inherited",table2.getColumn(0).toString(),table1.getColu...
1,112,691
public void testRemoveColumn() throws ArchitectException { SQLTable table1; SQLColumn col1; SQLColumn col2; table1 = db.getTableByName("REGRESSION_TEST1"); col1 = table1.getColumn(0); col2 = table1.getColumn(1); assertEquals("We removed a column when we shouldn't have",table1.getColumns().size(),2)...
public void testRemoveColumn() throws ArchitectException { SQLTable table1; SQLColumn col1; SQLColumn col2; table1 = db.getTableByName("REGRESSION_TEST1"); col1 = table1.getColumn(0); col2 = table1.getColumn(1); assertEquals("We removed a column when we shouldn't have",table1.getColumns().size(),2)...
1,112,693
public void testRemoveColumn() throws ArchitectException { SQLTable table1; SQLColumn col1; SQLColumn col2; table1 = db.getTableByName("REGRESSION_TEST1"); col1 = table1.getColumn(0); col2 = table1.getColumn(1); assertEquals("We removed a column when we shouldn't have",table1.getColumns().size(),2)...
public void testRemoveColumn() throws ArchitectException { SQLTable table1; SQLColumn col1; SQLColumn col2; table1 = db.getTableByName("REGRESSION_TEST1"); col1 = table1.getColumn(0); col2 = table1.getColumn(1); assertEquals("We removed a column when we shouldn't have",table1.getColumns().size(),2)...
1,112,694
public void testRemoveColumn() throws ArchitectException { SQLTable table1; SQLColumn col1; SQLColumn col2; table1 = db.getTableByName("REGRESSION_TEST1"); col1 = table1.getColumn(0); col2 = table1.getColumn(1); assertEquals("We removed a column when we shouldn't have",table1.getColumns().size(),2)...
public void testRemoveColumn() throws ArchitectException { SQLTable table1; SQLColumn col1; SQLColumn col2; table1 = db.getTableByName("REGRESSION_TEST1"); col1 = table1.getColumn(0); col2 = table1.getColumn(1); assertEquals("We removed a column when we shouldn't have",table1.getColumns().size(),2)...
1,112,695
public void testRemoveColumnOutBounds() throws ArchitectException { SQLTable table1; SQLColumn col1; SQLColumn col2; table1 = db.getTableByName("REGRESSION_TEST1"); Exception exc = null; try { table1.removeColumn(16); } catch (IndexOutOfBoundsException e) { System.out.println("Method throws p...
public void testRemoveColumnOutBounds() throws ArchitectException { SQLTable table1; SQLColumn col1; SQLColumn col2; table1 = db.getTableByName("REGRESSION_TEST1"); Exception exc = null; try { table1.removeColumn(16); } catch (IndexOutOfBoundsException e) { System.out.println("Method throws p...
1,112,697
private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file " + fileName); } in...
private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file " + fileName); } in...
1,112,700
private File validateOutputFile(String fn){ File f = new File(fn); if (f.canWrite()){ System.out.println("File " + f.getName() + " can not be written."); System.exit(1); } if (f.exists() && !quietMode){ System.out.println("File " + f.getName() + " already...
private File validateOutputFile(String fn){ File f = new File(fn); if (f.canWrite()){ System.out.println("File " + f.getName() + " can not be written."); System.exit(1); } if (f.exists() && !quietMode){ System.out.println("File " + f.getName() + " already...
1,112,701
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
protected void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { T...
1,112,702
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
1,112,703
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
1,112,704
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
1,112,705
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
1,112,706
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
1,112,707
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
1,112,708
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
1,112,709
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
1,112,710
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
1,112,711
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
1,112,712
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
1,112,713
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
1,112,714
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
1,112,715
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
protected static void addBodyRow(ProfileManager pm, SQLColumn col, PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
1,112,717
private static void addHeaderRow(PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException { final String[] headings = new String[] { "Table Name", "Record Co...
private void addHeaderRow(PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException { final String[] headings = new String[] { "Table Name", "Record Count", ...
1,112,718
private static void addHeaderRow(PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException { final String[] headings = new String[] { "Table Name", "Record Co...
private static void addHeaderRow(PdfPTable table, BaseFont bf, Font f, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException { final String[] headings = new String[] { "Table Name", "Record Co...
1,112,719
private static float calcHeaderHeight(PdfPTable table) { int hrows = table.getHeaderRows(); float height = 0f; for (int i = 0; i < hrows; i++) { height += table.getRowHeight(i); } return height; }
private float calcHeaderHeight(PdfPTable table) { int hrows = table.getHeaderRows(); float height = 0f; for (int i = 0; i < hrows; i++) { height += table.getRowHeight(i); } return height; }
1,112,720
protected static PdfPTable makeNextTable(ProfileManager pm, SQLTable sqlTable, BaseFont bf, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException ...
protected PdfPTable makeNextTable(ProfileManager pm, SQLTable sqlTable, BaseFont bf, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException { ...
1,112,721
protected static PdfPTable makeNextTable(ProfileManager pm, SQLTable sqlTable, BaseFont bf, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException ...
protected static PdfPTable makeNextTable(ProfileManager pm, SQLTable sqlTable, BaseFont bf, float fsize, float[] widths) throws DocumentException, IOException, ArchitectException, SQLException, InstantiationException, IllegalAccessException ...
1,112,722
public void save(ProgressMonitor pm) throws IOException, ArchitectException { out = new PrintWriter(new BufferedWriter(new FileWriter(file))); objectIdMap = new HashMap(); dbcsIdMap = new HashMap(); indent = 0; progress = 0; this.pm = pm; if (pm != null) { pm.setMinimum(0); int pmMax = countSourceTabl...
public void save(ProgressMonitor pm) throws IOException, ArchitectException { out = new PrintWriter(new BufferedWriter(new FileWriter(file))); objectIdMap = new HashMap(); dbcsIdMap = new HashMap(); indent = 0; progress = 0; this.pm = pm; if (pm != null) { pm.setMinimum(0); int pmMax = countSourceTabl...
1,112,723
public void stateChanged(ChangeEvent e) { int tabNum = tabs.getSelectedIndex(); if (tabNum == VIEW_D_NUM || tabNum == VIEW_HAP_NUM){ exportMenuItems[0].setEnabled(true); exportMenuItems[1].setEnabled(true); }else if (tabNum == VIEW_TDT_NUM || tabNum...
public void stateChanged(ChangeEvent e) { int tabNum = tabs.getSelectedIndex(); if (tabNum == VIEW_D_NUM || tabNum == VIEW_HAP_NUM){ exportMenuItems[0].setEnabled(true); exportMenuItems[1].setEnabled(true); }else if (tabNum == VIEW_TDT_NUM || tabNum...
1,112,725
public HaploView(){ try{ fc = new JFileChooser(System.getProperty("user.dir")); }catch(NullPointerException n){ try{ UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName()); fc = new JFileChooser(System.getProperty("user.dir")); ...
public HaploView(){ try{ fc = new JFileChooser(System.getProperty("user.dir")); }catch(NullPointerException n){ try{ UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName()); fc = new JFileChooser(System.getProperty("user.dir")); ...
1,112,726
public void changeBlocks(int method){ if (method == BLOX_NONE){ blockMenuItems[BLOX_CUSTOM].setSelected(true); } theData.guessBlocks(method); dPrimeDisplay.repaint(); currentBlockDef = method; try{ if (tabs.getSelectedIndex() == VIEW_HAP_NUM){ ...
public void changeBlocks(int method){ if (method == BLOX_NONE || method == BLOX_CUSTOM){ blockMenuItems[BLOX_CUSTOM].setSelected(true); } theData.guessBlocks(method); dPrimeDisplay.repaint(); currentBlockDef = method; try{ if (tabs.getSelectedIndex() =...
1,112,727
public void changeBlocks(int method){ if (method == BLOX_NONE){ blockMenuItems[BLOX_CUSTOM].setSelected(true); } theData.guessBlocks(method); dPrimeDisplay.repaint(); currentBlockDef = method; try{ if (tabs.getSelectedIndex() == VIEW_HAP_NUM){ ...
public void changeBlocks(int method){ if (method == BLOX_NONE){ blockMenuItems[BLOX_CUSTOM].setSelected(true); } if (method != BLOX_CUSTOM){ theData.guessBlocks(method); } dPrimeDisplay.repaint(); currentBlockDef = method; try{ if (tabs.getSelectedInde...
1,112,728
void readBlocksFile(File file) { try{ Vector cust = theData.readBlocks(file); theData.guessBlocks(BLOX_CUSTOM, cust); if (dPrimeDisplay != null && tabs.getSelectedIndex() == VIEW_D_NUM){ dPrimeDisplay.repaint(); } }catch (HaploViewException hve){ ...
void readBlocksFile(File file) { try{ Vector cust = theData.readBlocks(file); theData.guessBlocks(BLOX_CUSTOM, cust); if (dPrimeDisplay != null && tabs.getSelectedIndex() == VIEW_D_NUM){ dPrimeDisplay.repaint(); } }catch (HaploViewException hve){ ...
1,112,729
public void doTag(final XMLOutput output) throws Exception { this.session = new JellySession( output ); getBody().run(context, output); }
public void doTag(final XMLOutput output) throws Exception { this.session = new JellySession( output ); invokeBody(output); }
1,112,730
public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); Rectangle visRect = getVisibleRect(); /* boxSize = ((clipRect.width-2*H_BORDER)/dPrimeTable.length-1); if (boxSize < 12){boxSize=1...
public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); Rectangle visRect = getVisibleRect(); /* boxSize = ((clipRect.width-2*H_BORDER)/dPrimeTable.length-1); if (boxSize < 12){boxSize=1...
1,112,731
public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); Rectangle visRect = getVisibleRect(); /* boxSize = ((clipRect.width-2*H_BORDER)/dPrimeTable.length-1); if (boxSize < 12){boxSize=1...
public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); Rectangle visRect = getVisibleRect(); /* boxSize = ((clipRect.width-2*H_BORDER)/dPrimeTable.length-1); if (boxSize < 12){boxSize=1...
1,112,732
void createUI() { setLayout(new GridBagLayout()); folderTree = new JTree( ); folderTree.setRootVisible( true ); folderTree.setShowsRootHandles( true ); folderTree.setEditable( false ); JScrollPane scrollPane = new JScrollPane( folderTree ); scrollPane.setPreferredSize( new Dimension( 300, 300 ) ); GridBagConstra...
void createUI() { setLayout(new GridBagLayout()); folderTree = new JTree( ); folderTree.setRootVisible( true ); folderTree.setShowsRootHandles( false ); folderTree.setEditable( false ); JScrollPane scrollPane = new JScrollPane( folderTree ); scrollPane.setPreferredSize( new Dimension( 300, 300 ) ); GridBagConstr...
1,112,733
public void treeNodesInserted( TreeModelEvent e ) { TreePath parentPath = e.getTreePath(); folderTree.expandPath( parentPath ); }
public void treeNodesInserted( TreeModelEvent e ) { TreePath parentPath = e.getTreePath(); folderTree.expandPath( parentPath ); }
1,112,734
public void mousePressed (MouseEvent e) { Rectangle blockselector = new Rectangle(clickXShift-boxRadius,clickYShift - boxRadius, (int)alignedPositions[alignedPositions.length-1]+boxSize, boxSize); //if users right clicks & holds, pop up the info if ((e.getModifiers() & InputEvent...
public void mousePressed (MouseEvent e) { Rectangle blockselector = new Rectangle(clickXShift-boxRadius,clickYShift - boxRadius, (int)alignedPositions[alignedPositions.length-1]+boxSize, boxSize); //if users right clicks & holds, pop up the info if ((e.getModifiers() & InputEvent...
1,112,735