bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public String evaluateAsString(Context context) { Object value = evaluate(context); if ( value != null ) { return value.toString(); } return null; } | public String evaluateAsString(JellyContext context) { Object value = evaluate(context); if ( value != null ) { return value.toString(); } return null; } | 1,112,377 |
public Project getProject() { if ( project == null ) { // we may be invoked inside a child script, so lets try find the parent project project = (Project) context.findVariable( "org.apache.commons.jelly.werkz.Project" ); if ( project == null ) { project = new Project(); ... | public Project getProject() { if ( project == null && context != null ) { // we may be invoked inside a child script, so lets try find the parent project project = (Project) context.findVariable( "org.apache.commons.jelly.werkz.Project" ); if ( project == null && context != null ) { ... | 1,112,378 |
private void doColumnProfile(List<SQLColumn> columns, Connection conn) throws SQLException, ArchitectException { Statement stmt = null; ResultSet rs = null; String lastSQL = null; try { if ( columns.size() == 0 ) return; SQLColumn c... | private void doColumnProfile(List<SQLColumn> columns, Connection conn) throws SQLException, ArchitectException { Statement stmt = null; ResultSet rs = null; String lastSQL = null; try { if ( columns.size() == 0 ) return; SQLColumn c... | 1,112,379 |
public void updateUI() { RelationshipUI ui = (RelationshipUI) BasicRelationshipUI.createUI(this); ui.installUI(this); setUI(ui); revalidate(); } | public void updateUI() { RelationshipUI ui = (RelationshipUI) IERelationshipUI.createUI(this); ui.installUI(this); setUI(ui); revalidate(); } | 1,112,382 |
public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | 1,112,383 |
public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | 1,112,384 |
private void runFinished() { if (!SwingUtilities.isEventDispatchThread()) { logger.error("runFinished is running on the wrong thread!"); } if (errorMessage != null) { JOptionPane.showMessageDialog(parentDialog, errorMessage, "Error", JOptionPane.ERROR_MESSAGE); } else if (!cr.isEmpty()) { Object[] me... | private void runFinished() { if (!SwingUtilities.isEventDispatchThread()) { logger.error("runFinished is running on the wrong thread!"); } if (errorMessage != null) { JOptionPane.showMessageDialog(parentDialog, errorMessage, "Error", JOptionPane.ERROR_MESSAGE); } else if (!cr.isEmpty()) { Object[] me... | 1,112,387 |
private void argHandler(String[] args){ //TODO: -specify values from HaplotypeDisplayController (min hap percentage etc) // -want to be able to output haps file from pedfile boolean nogui = false; String batchMode = ""; String hapsFileName = ""; String pedFileName = ""... | private void argHandler(String[] args){ //TODO: -specify values from HaplotypeDisplayController (min hap percentage etc) // -want to be able to output haps file from pedfile boolean nogui = false; String batchMode = ""; String hapsFileName = ""; String pedFileName = ""... | 1,112,388 |
private void argHandler(String[] args){ //TODO: -specify values from HaplotypeDisplayController (min hap percentage etc) // -want to be able to output haps file from pedfile boolean nogui = false; String batchMode = ""; String hapsFileName = ""; String pedFileName = ""... | private void argHandler(String[] args){ //TODO: -specify values from HaplotypeDisplayController (min hap percentage etc) // -want to be able to output haps file from pedfile boolean nogui = false; String batchMode = ""; String hapsFileName = ""; String pedFileName = ""... | 1,112,389 |
private void argHandler(String[] args){ //TODO: -specify values from HaplotypeDisplayController (min hap percentage etc) // -want to be able to output haps file from pedfile boolean nogui = false; String batchMode = ""; String hapsFileName = ""; String pedFileName = ""... | private void argHandler(String[] args){ //TODO: -specify values from HaplotypeDisplayController (min hap percentage etc) // -want to be able to output haps file from pedfile boolean nogui = false; String batchMode = ""; String hapsFileName = ""; String pedFileName = ""... | 1,112,390 |
private void argHandler(String[] args){ //TODO: -specify values from HaplotypeDisplayController (min hap percentage etc) // -want to be able to output haps file from pedfile boolean nogui = false; String batchMode = ""; String hapsFileName = ""; String pedFileName = ""... | private void argHandler(String[] args){ //TODO: -specify values from HaplotypeDisplayController (min hap percentage etc) // -want to be able to output haps file from pedfile boolean nogui = false; String batchMode = ""; String hapsFileName = ""; String pedFileName = ""... | 1,112,391 |
private void processFile(String fileName,int fileType,String infoFileName){ try { int outputType; long maxDistance; long negMaxDistance; HaploData textData; File OutputFile; File inputFile; inputFile = new File(fileName); ... | private void processFile(String fileName,int fileType,String infoFileName){ try { int outputType; long maxDistance; long negMaxDistance; HaploData textData; File OutputFile; File inputFile; inputFile = new File(fileName); ... | 1,112,393 |
private void processFile(String fileName,int fileType,String infoFileName){ try { int outputType; long maxDistance; long negMaxDistance; HaploData textData; File OutputFile; File inputFile; inputFile = new File(fileName); ... | private void processFile(String fileName,int fileType,String infoFileName){ try { int outputType; long maxDistance; long negMaxDistance; HaploData textData; File OutputFile; File inputFile; inputFile = new File(fileName); ... | 1,112,394 |
private void processFile(String fileName,int fileType,String infoFileName){ try { int outputType; long maxDistance; long negMaxDistance; HaploData textData; File OutputFile; File inputFile; inputFile = new File(fileName); ... | private void processFile(String fileName,int fileType,String infoFileName){ try { int outputType; long maxDistance; long negMaxDistance; HaploData textData; File OutputFile; File inputFile; inputFile = new File(fileName); ... | 1,112,395 |
private void processFile(String fileName,int fileType,String infoFileName){ try { int outputType; long maxDistance; long negMaxDistance; HaploData textData; File OutputFile; File inputFile; inputFile = new File(fileName); ... | private void processFile(String fileName,int fileType,String infoFileName){ try { int outputType; long maxDistance; long negMaxDistance; HaploData textData; File OutputFile; File inputFile; inputFile = new File(fileName); ... | 1,112,396 |
protected void createTypeMap() throws SQLException { typeMap = new HashMap(); typeMap.put(new Integer(Types.BIGINT), new GenericTypeDescriptor("NUMBER", Types.BIGINT, 38, null, null, DatabaseMetaData.columnNullable, true, false)); typeMap.put(new Integer(Types.BINARY), new GenericTypeDescriptor("RAW", Types.BINAR... | protected void createTypeMap() throws SQLException { typeMap = new HashMap(); typeMap.put(new Integer(Types.BIGINT), new GenericTypeDescriptor("NUMBER", Types.BIGINT, 38, null, null, DatabaseMetaData.columnNullable, true, false)); typeMap.put(new Integer(Types.BINARY), new GenericTypeDescriptor("RAW", Types.BINAR... | 1,112,398 |
public synchronized void connect() throws ArchitectException { if (connection != null) return; connection = (Connection) dbConnections.get(connectionSpec); if (connection != null) return; try { Class.forName(connectionSpec.getDriverClass()); logger.info("Driver Class "+connectionSpec.getDriverClass()+" loaded ... | public synchronized void connect() throws ArchitectException { if (connection != null) return; connection = (Connection) dbConnections.get(connectionSpec); if (connection != null) return; try { Class.forName(connectionSpec.getDriverClass()); logger.info("Driver Class "+connectionSpec.getDriverClass()+" loaded ... | 1,112,399 |
public Connection getConnection() throws ArchitectException { if (connection == null && connectionSpec != null) connect(); return this.connection; } | public Connection getConnection() throws ArchitectException { if (connectionSpec != null) { connect(); } return this.connection; } | 1,112,401 |
protected void setUp() throws Exception { db = new SQLDatabase(); table = new SQLTable(db,"Table1","remark1","Table",true); table2 = new SQLTable(db,"Table2","remark2","Table",true); db.addChild(0,table); col1 = new SQLColumn(table,"Column 1",1,2,3); col2 = new SQLColumn(table,"Column 2",2,3,4); col3 = new SQLC... | protected void setUp() throws Exception { db = new SQLDatabase(); table = new SQLTable(db,"Table1","remark1","Table",true); table2 = new SQLTable(db,"Table2","remark2","Table",true); db.addChild(0,table); col1 = new SQLColumn(table,"Column 1",1,2,3); col2 = new SQLColumn(table,"Column 2",2,3,4); col3 = new SQLC... | 1,112,402 |
protected void setUp() throws Exception { db = new SQLDatabase(); table = new SQLTable(db,"Table1","remark1","Table",true); table2 = new SQLTable(db,"Table2","remark2","Table",true); db.addChild(0,table); col1 = new SQLColumn(table,"Column 1",1,2,3); col2 = new SQLColumn(table,"Column 2",2,3,4); col3 = new SQLC... | protected void setUp() throws Exception { db = new SQLDatabase(); table = new SQLTable(db,"Table1","remark1","Table",true); table2 = new SQLTable(db,"Table2","remark2","Table",true); db.addChild(0,table); col1 = new SQLColumn(table,"Column 1",1,2,3); col2 = new SQLColumn(table,"Column 2",2,3,4); col3 = new SQLC... | 1,112,403 |
protected void setUp() throws Exception { db = new SQLDatabase(); table = new SQLTable(db,"Table1","remark1","Table",true); table2 = new SQLTable(db,"Table2","remark2","Table",true); db.addChild(0,table); col1 = new SQLColumn(table,"Column 1",1,2,3); col2 = new SQLColumn(table,"Column 2",2,3,4); col3 = new SQLC... | protected void setUp() throws Exception { db = new SQLDatabase(); table = new SQLTable(db,"Table1","remark1","Table",true); table2 = new SQLTable(db,"Table2","remark2","Table",true); db.addChild(0,table); col1 = new SQLColumn(table,"Column 1",1,2,3); col2 = new SQLColumn(table,"Column 2",2,3,4); col3 = new SQLC... | 1,112,404 |
public void testEditColumn() { assertEquals("Wrong column name",col2.getName(),panel.getColName().getText()); assertEquals("Wrong Precision",col2.getPrecision(),((Integer) (panel.getColPrec().getValue())).intValue()); assertEquals("Wrong type",2,((SQLType)(panel.getColType().getSelectedItem())).getType()); assertE... | public void testEditColumn() throws ArchitectException { assertEquals(null, col1.getPrimaryKeySeq()); assertEquals(1, table.getColumnIndex(col2)); assertEquals("The column we're editing is not in PK", null, col2.getPrimaryKeySeq()); assertEquals("Wrong column name",col2.getName(),panel.getColName().getText()); asse... | 1,112,405 |
public void testPKColumnMoveRegression() throws ArchitectException{ SQLColumn c1 = new SQLColumn(table,"PKColumn 1",1,2,3); SQLColumn c2 = new SQLColumn(table,"PKColumn 2",1,2,3); table.addColumn(c1); table.addColumn(c2); c1.setPrimaryKeySeq(0); c2.setPrimaryKeySeq(1); assertEquals (5, table.getColumns().size... | public void testPKColumnMoveRegression() throws ArchitectException{ SQLColumn c1 = new SQLColumn(table,"PKColumn 1",1,2,3); SQLColumn c2 = new SQLColumn(table,"PKColumn 2",1,2,3); table.addColumn(c1); table.addColumn(c2); c1.setPrimaryKeySeq(0); c2.setPrimaryKeySeq(1); assertEquals (5, table.getColumns().size... | 1,112,406 |
public void testPKColumnMoveRegression() throws ArchitectException{ SQLColumn c1 = new SQLColumn(table,"PKColumn 1",1,2,3); SQLColumn c2 = new SQLColumn(table,"PKColumn 2",1,2,3); table.addColumn(c1); table.addColumn(c2); c1.setPrimaryKeySeq(0); c2.setPrimaryKeySeq(1); assertEquals (5, table.getColumns().size... | public void testPKColumnMoveRegression() throws ArchitectException{ SQLColumn c1 = new SQLColumn(table,"PKColumn 1",1,2,3); SQLColumn c2 = new SQLColumn(table,"PKColumn 2",1,2,3); table.addColumn(c1); table.addColumn(c2); c1.setPrimaryKeySeq(0); c2.setPrimaryKeySeq(1); assertEquals (5, table.getColumns().size... | 1,112,407 |
public void doTag(final XMLOutput output) throws Exception { Border border = createBorder(); // allow some nested tags to set properties invokeBody(output); if (var != null) { context.setVariable(var, border); } else { ComponentTag tag ... | public void doTag(final XMLOutput output) throws Exception { Border border = createBorder(); // allow some nested tags to set properties invokeBody(output); if (var != null) { context.setVariable(var, border); } else { ComponentTag tag ... | 1,112,408 |
public ActionForward execute(WebContext context, ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) { ApplicationForm appForm = ... | public ActionForward execute(WebContext context, ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) { ApplicationForm appForm = ... | 1,112,409 |
public void doAssociationTests(Vector affStatus, boolean[] permuteInd) { if(superprob == null || superdata == null || realAffectedStatus == null) { return; } if(affStatus == null){ affStatus = realAffectedStatus; } if(permuteInd == null) { permuteI... | public void doAssociationTests(Vector affStatus, Vector permuteInd) { if(superprob == null || superdata == null || realAffectedStatus == null) { return; } if(affStatus == null){ affStatus = realAffectedStatus; } if(permuteInd == null) { permuteInd ... | 1,112,410 |
public void doAssociationTests(Vector affStatus, boolean[] permuteInd) { if(superprob == null || superdata == null || realAffectedStatus == null) { return; } if(affStatus == null){ affStatus = realAffectedStatus; } if(permuteInd == null) { permuteI... | public void doAssociationTests(Vector affStatus, boolean[] permuteInd) { if(superprob == null || superdata == null || realAffectedStatus == null) { return; } if(affStatus == null){ affStatus = realAffectedStatus; } if(permuteInd == null) { permuteI... | 1,112,411 |
public void doAssociationTests(Vector affStatus, boolean[] permuteInd) { if(superprob == null || superdata == null || realAffectedStatus == null) { return; } if(affStatus == null){ affStatus = realAffectedStatus; } if(permuteInd == null) { permuteI... | public void doAssociationTests(Vector affStatus, boolean[] permuteInd) { if(superprob == null || superdata == null || realAffectedStatus == null) { return; } if(affStatus == null){ affStatus = realAffectedStatus; } if(permuteInd == null) { permuteI... | 1,112,412 |
public void doAssociationTests(Vector affStatus, boolean[] permuteInd) { if(superprob == null || superdata == null || realAffectedStatus == null) { return; } if(affStatus == null){ affStatus = realAffectedStatus; } if(permuteInd == null) { permuteI... | public void doAssociationTests(Vector affStatus, boolean[] permuteInd) { if(superprob == null || superdata == null || realAffectedStatus == null) { return; } if(affStatus == null){ affStatus = realAffectedStatus; } if(permuteInd == null) { permuteI... | 1,112,413 |
public void doAssociationTests(Vector affStatus, boolean[] permuteInd) { if(superprob == null || superdata == null || realAffectedStatus == null) { return; } if(affStatus == null){ affStatus = realAffectedStatus; } if(permuteInd == null) { permuteI... | public void doAssociationTests(Vector affStatus, boolean[] permuteInd) { if(superprob == null || superdata == null || realAffectedStatus == null) { return; } if(affStatus == null){ affStatus = realAffectedStatus; } if(permuteInd == null) { permuteI... | 1,112,414 |
public void doEM(int[] theBlock) throws HaploViewException{ //break up large blocks if needed int[] block_size; if (theBlock.length < 9){ block_size = new int[1]; block_size[0] = theBlock.length; } else { //some base-8 arithmetic int ones = the... | public void doEM(int[] theBlock) throws HaploViewException{ //break up large blocks if needed int[] block_size; if (theBlock.length < 9){ block_size = new int[1]; block_size[0] = theBlock.length; } else { //some base-8 arithmetic int ones = the... | 1,112,415 |
private void full_em_breakup( byte[][] input_haplos, int[] block_size, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int num_indivs=0;... | private void full_em_breakup( byte[][] input_haplos, int[] block_size, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int num_indivs=0;... | 1,112,416 |
public Object getVariableValue( String namespaceURI, String prefix, String localName ) { return context.getVariable( localName ); } | public Object getVariableValue( String namespaceURI, String prefix, String localName ) { return context.getVariable( localName ); } | 1,112,417 |
private SQLColumn() { } | public SQLColumn() { logger.debug("NEW COLUMN (noargs) @"+hashCode()); } | 1,112,418 |
public void doTag(final XMLOutput output) throws Exception { if ( name == null ) { throw new MissingAttributeException( "name" ); } XMLOutput newOutput = XMLOutput.createXMLOutput(new FileOutputStream(name)); try { newOutput.startDocument(); invokeBody(ne... | public void doTag(final XMLOutput output) throws Exception { if ( name == null ) { throw new MissingAttributeException( "name" ); } XMLOutput newOutput = createXMLOutput(); try { newOutput.startDocument(); invokeBody(newOutput); newOutput.endDo... | 1,112,419 |
public void createUI() { setLayout( new BorderLayout() ); imageView = new JAIPhotoView(); scrollPane = new JScrollPane( imageView ); scrollPane.setPreferredSize( new Dimension( 500, 500 ) ); add( scrollPane, BorderLayout.CENTER ); // Listen fot resize events of the scroll area so that fitted image can ... | public void createUI() { setLayout( new BorderLayout() ); imageView = new JAIPhotoView(); scrollPane = new JScrollPane( imageView ); scrollPane.setPreferredSize( new Dimension( 500, 500 ) ); add( scrollPane, BorderLayout.CENTER ); // Listen fot resize events of the scroll area so that fitted image can ... | 1,112,420 |
public void actionPerformed( ActionEvent ev ) { JComboBox cb = (JComboBox) ev.getSource(); String selected = (String)cb.getSelectedItem(); log.debug( "Selected: " + selected ); isFit = false; // Parse the pattern DecimalFormat percentFormat = new DecimalFormat( "#####.#%" ); if ( se... | public void actionPerformed( ActionEvent ev ) { JComboBox cb = (JComboBox) ev.getSource(); String selected = (String)cb.getSelectedItem(); log.debug( "Selected: " + selected ); isFit = false; // Parse the pattern DecimalFormat percentFormat = new DecimalFormat( "#####.#%" ); if ( se... | 1,112,421 |
public void drawInternal(DashboardContext context, StringBuffer output) { Map<String, String> data = getData(context.getWebContext()); Select select = new Select("dummy", size, true); //select.onChange("alert(''test'');"); select.onChange("handleEvent(''" + getId() + "'', ''onChange'', t... | public void drawInternal(DashboardContext context, StringBuffer output) { Map<String, String> data = getData(context.getWebContext()); Select select = new Select("dummy", size, true); //select.onChange("alert(''test'');"); final String dashboardId = context.getDashboardConfig().getDashbo... | 1,112,424 |
public void doTag(XMLOutput output) throws Exception { Task task = getTask(); // setDynaBean( new ConvertingWrapDynaBean( task ) ); // if the task has an addText() Method method = MethodUtils.getAccessibleMethod( taskType, "addText", addTaskParamTypes ); ... | public void doTag(XMLOutput output) throws Exception { Task task = getTask(); // setDynaBean( new ConvertingWrapDynaBean( task ) ); // if the task has an addText() Method method = MethodUtils.getAccessibleMethod( taskType, "addText", addTaskParamTypes ); ... | 1,112,425 |
public Date getCreationDate() { return creationDate; } | public Date getCreationDate() { return creationDate != null ? (Date) creationDate.clone() : null; } | 1,112,426 |
private boolean login( LoginDlg ld ) { boolean success = false; String user = ld.getUsername(); String passwd = ld.getPassword(); String dbName = ld.getDb(); log.debug( "Using configuration " + dbName ); settings.setConfiguration( dbName ); PVDatabase db = settings.getDatabase( dbName ); String... | private boolean login( LoginDlg ld ) { boolean success = false; String user = ld.getUsername(); String passwd = ld.getPassword(); String dbName = ld.getDb(); log.debug( "Using configuration " + dbName ); settings.setConfiguration( dbName ); PVDatabase db = settings.getDatabase( dbName ); String... | 1,112,427 |
private void makeDialog(SQLTable st, int colIdx) throws ArchitectException { if (editDialog != null) { columnEditPanel.setModel(st); columnEditPanel.selectColumn(colIdx); editDialog.setTitle("Column Properties of "+st.getName()); editDialog.setVisible(true); //editDialog.requestFocus(); } else { ... | private void makeDialog(SQLTable st, int colIdx) throws ArchitectException { if (editDialog != null) { columnEditPanel.setModel(st); columnEditPanel.selectColumn(colIdx); editDialog.setTitle("Column Properties of "+st.getName()); editDialog.setVisible(true); //editDialog.requestFocus(); } else { ... | 1,112,429 |
public void actionPerformed(ActionEvent e) { columnEditPanel.applyChanges();System.out.println("applied changes:"+columnEditPanel.getColName().getText()); EditColumnAction.this.putValue(SHORT_DESCRIPTION, "Editting "+columnEditPanel.getColName().getText() ); } | public void actionPerformed(ActionEvent e) { columnEditPanel.applyChanges(); EditColumnAction.this.putValue(SHORT_DESCRIPTION, "Editting "+columnEditPanel.getColName().getText() ); } | 1,112,430 |
public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | 1,112,431 |
public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | 1,112,432 |
public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | 1,112,433 |
public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | 1,112,435 |
public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | 1,112,436 |
public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | 1,112,437 |
public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | 1,112,438 |
public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | 1,112,440 |
public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | 1,112,441 |
public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | 1,112,443 |
public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | public void actionPerformed(ActionEvent evt) { List selection = pp.getSelectedItems(); if (selection.size() < 1) { JOptionPane.showMessageDialog(pp, "Select a table (by clicking on it) and try again."); } else if (selection.size() > 1) { JOptionPane.showMessageDialog(pp, "You have selected multiple items, but y... | 1,112,444 |
void dropTableNoFail(Connection con, String tableName) throws SQLException { Statement stmt = null; try { stmt = con.createStatement(); stmt.executeUpdate("DROP TABLE "+tableName); } catch (SQLException e) { System.out.println("Ignoring SQLException. Assuming it means the table we tried to drop didn't exist.... | private static void dropTableNoFail(Connection con, String tableName) throws SQLException { Statement stmt = null; try { stmt = con.createStatement(); stmt.executeUpdate("DROP TABLE "+tableName); } catch (SQLException e) { System.out.println("Ignoring SQLException. Assuming it means the table we tried to dro... | 1,112,445 |
protected void setUp() throws Exception { super.setUp(); SQLDatabase mydb = new SQLDatabase(db.getDataSource()); Connection con = mydb.getConnection(); Statement stmt = con.createStatement(); dropTableNoFail(con, "SQL_COLUMN_TEST_1PK"); dropTableNoFail(con, "SQL_COLUMN_TEST_3PK"); dropTableNoFail(con, "SQL_... | protected void setUp() throws Exception { super.setUp(); SQLDatabase mydb = new SQLDatabase(db.getDataSource()); Connection con = mydb.getConnection(); Statement stmt = con.createStatement(); dropTableNoFail(con, "SQL_COLUMN_TEST_1PK"); dropTableNoFail(con, "SQL_COLUMN_TEST_3PK"); dropTableNoFail(con, "SQL_... | 1,112,446 |
protected void setUp() throws Exception { super.setUp(); SQLDatabase mydb = new SQLDatabase(db.getDataSource()); Connection con = mydb.getConnection(); Statement stmt = con.createStatement(); dropTableNoFail(con, "SQL_COLUMN_TEST_1PK"); dropTableNoFail(con, "SQL_COLUMN_TEST_3PK"); dropTableNoFail(con, "SQL_... | protected void setUp() throws Exception { super.setUp(); SQLDatabase mydb = new SQLDatabase(db.getDataSource()); Connection con = mydb.getConnection(); Statement stmt = con.createStatement(); dropTableNoFail(con, "SQL_COLUMN_TEST_1PK"); dropTableNoFail(con, "SQL_COLUMN_TEST_3PK"); dropTableNoFail(con, "SQL_... | 1,112,447 |
public File getInstanceName( PhotoInfo photo, String strExtension ) { return getNewFname( photo.getShootTime(), strExtension ); } | public File getInstanceName( PhotoInfo photo, String strExtension ) { java.util.Date d = photo.getShootTime(); if ( d == null ) { d = new java.util.Date(); } return getNewFname( d, strExtension ); } | 1,112,448 |
private void processTextOnly(){ try { String fileName; int outputType; long maxDistance; HaploData textData; File OutputFile; File inputFile; //we use this boolean to keep track of the type of file we're processing (haps or ped) ... | private void processTextOnly(){ try { String fileName; int outputType; long maxDistance; HaploData textData; File OutputFile; File inputFile; //we use this boolean to keep track of the type of file we're processing (haps or ped) ... | 1,112,450 |
public static void breakLongMenu(final Window frame, final JMenu input) { final Dimension size = frame.getSize(); final int windowHeight = size.height; final int totalRows = input.getItemCount(); final int preferredHeight = input.getItem(0).getPreferredSize().height; final int FUDGE = 3; // XXX find a better way ... | public static void breakLongMenu(final Window frame, final JMenu input) { final Dimension size = frame.getSize(); final int windowHeight = size.height; final int totalRows = input.getItemCount(); final int preferredHeight = input.getItem(0).getPreferredSize().height; final int FUDGE = 3; // XXX find a better way ... | 1,112,451 |
public static void breakLongMenu(final Window frame, final JMenu input) { final Dimension size = frame.getSize(); final int windowHeight = size.height; final int totalRows = input.getItemCount(); final int preferredHeight = input.getItem(0).getPreferredSize().height; final int FUDGE = 3; // XXX find a better way ... | public static void breakLongMenu(final Window frame, final JMenu input) { final Dimension size = frame.getSize(); final int windowHeight = size.height; final int totalRows = input.getItemCount(); final int preferredHeight = input.getItem(0).getPreferredSize().height; final int FUDGE = 3; // XXX find a better way ... | 1,112,452 |
public static void breakLongMenu(final Window frame, final JMenu input) { final Dimension size = frame.getSize(); final int windowHeight = size.height; final int totalRows = input.getItemCount(); final int preferredHeight = input.getItem(0).getPreferredSize().height; final int FUDGE = 3; // XXX find a better way ... | public static void breakLongMenu(final Window frame, final JMenu input) { final Dimension size = frame.getSize(); final int windowHeight = size.height; final int totalRows = input.getItemCount(); final int preferredHeight = input.getItem(0).getPreferredSize().height; final int FUDGE = 3; // XXX find a better way ... | 1,112,453 |
public static void breakLongMenu(final Window frame, final JMenu input) { final Dimension size = frame.getSize(); final int windowHeight = size.height; final int totalRows = input.getItemCount(); final int preferredHeight = input.getItem(0).getPreferredSize().height; final int FUDGE = 3; // XXX find a better way ... | public static void breakLongMenu(final Window frame, final JMenu input) { final Dimension size = frame.getSize(); final int windowHeight = size.height; final int totalRows = input.getItemCount(); final int preferredHeight = input.getItem(0).getPreferredSize().height; final int FUDGE = 3; // XXX find a better way ... | 1,112,454 |
public static void breakLongMenu(final Window frame, final JMenu input) { final Dimension size = frame.getSize(); final int windowHeight = size.height; final int totalRows = input.getItemCount(); final int preferredHeight = input.getItem(0).getPreferredSize().height; final int FUDGE = 3; // XXX find a better way ... | public static void breakLongMenu(final Window frame, final JMenu input) { final Dimension size = frame.getSize(); final int windowHeight = size.height; final int totalRows = input.getItemCount(); final int preferredHeight = input.getItem(0).getPreferredSize().height; final int FUDGE = 3; // XXX find a better way ... | 1,112,455 |
public static void breakLongMenu(final Window frame, final JMenu input) { final Dimension size = frame.getSize(); final int windowHeight = size.height; final int totalRows = input.getItemCount(); final int preferredHeight = input.getItem(0).getPreferredSize().height; final int FUDGE = 3; // XXX find a better way ... | public static void breakLongMenu(final Window frame, final JMenu input) { final Dimension size = frame.getSize(); final int windowHeight = size.height; final int totalRows = input.getItemCount(); final int preferredHeight = input.getItem(0).getPreferredSize().height; final int FUDGE = 3; // XXX find a better way ... | 1,112,456 |
public static void breakLongMenu(final Window frame, final JMenu input) { final Dimension size = frame.getSize(); final int windowHeight = size.height; final int totalRows = input.getItemCount(); final int preferredHeight = input.getItem(0).getPreferredSize().height; final int FUDGE = 3; // XXX find a better way ... | public static void breakLongMenu(final Window frame, final JMenu input) { final Dimension size = frame.getSize(); final int windowHeight = size.height; final int totalRows = input.getItemCount(); final int preferredHeight = input.getItem(0).getPreferredSize().height; final int FUDGE = 3; // XXX find a better way ... | 1,112,457 |
public UpdateDisplayDialog(HaploView h, String title, UpdateChecker uc) { super(h, title); JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents, BoxLayout.Y_AXIS)); Font bigguns = new Font("Default", Font.PLAIN, 14); JTextArea announceArea = new JTextArea(); ... | public UpdateDisplayDialog(HaploView h, String title, UpdateChecker uc) { super(h, title); JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents, BoxLayout.Y_AXIS)); Font bigguns = new Font("Default", Font.PLAIN, 14); JTextArea announceArea = new JTextArea(); ... | 1,112,458 |
public void testCreateDB() { File confFile = null; File dbDir = null; // Create an empty configuration file & volume directory try { confFile = File.createTempFile( "photovault_settings_", ".xml" ); confFile.delete(); dbDir = File.createTempFile( "photova... | public void testCreateDB() { File confFile = null; File dbDir = null; // Create an empty configuration file & volume directory try { confFile = File.createTempFile( "photovault_settings_", ".xml" ); confFile.delete(); dbDir = File.createTempFile( "photova... | 1,112,460 |
public ResultSet getSchemas() throws SQLException { String catalogList = connection.getProperties().getProperty("catalogs"); MockJDBCResultSet rs = new MockJDBCResultSet(null, 2); rs.setColumnName(1, "TABLE_SCHEM"); rs.setColumnName(2, "TABLE_CATALOG"); if (getSchemaTerm() == null) { logger.debug("getSchemas:... | public ResultSet getSchemas() throws SQLException { String catalogList = connection.getProperties().getProperty("catalogs"); MockJDBCResultSet rs = new MockJDBCResultSet(null, 2); rs.setColumnName(1, "TABLE_SCHEM"); rs.setColumnName(2, "TABLE_CATALOG"); if (getSchemaTerm() == null) { logger.debug("getSchemas:... | 1,112,461 |
public ResultSet getSchemas() throws SQLException { String catalogList = connection.getProperties().getProperty("catalogs"); MockJDBCResultSet rs = new MockJDBCResultSet(null, 2); rs.setColumnName(1, "TABLE_SCHEM"); rs.setColumnName(2, "TABLE_CATALOG"); if (getSchemaTerm() == null) { logger.debug("getSchemas:... | public ResultSet getSchemas() throws SQLException { String catalogList = connection.getProperties().getProperty("catalogs"); MockJDBCResultSet rs = new MockJDBCResultSet(null, 2); rs.setColumnName(1, "TABLE_SCHEM"); rs.setColumnName(2, "TABLE_CATALOG"); if (getSchemaTerm() == null) { logger.debug("getSchemas:... | 1,112,462 |
public ResultSet getSchemas() throws SQLException { String catalogList = connection.getProperties().getProperty("catalogs"); MockJDBCResultSet rs = new MockJDBCResultSet(null, 2); rs.setColumnName(1, "TABLE_SCHEM"); rs.setColumnName(2, "TABLE_CATALOG"); if (getSchemaTerm() == null) { logger.debug("getSchemas:... | public ResultSet getSchemas() throws SQLException { String catalogList = connection.getProperties().getProperty("catalogs"); MockJDBCResultSet rs = new MockJDBCResultSet(null, 2); rs.setColumnName(1, "TABLE_SCHEM"); rs.setColumnName(2, "TABLE_CATALOG"); if (getSchemaTerm() == null) { logger.debug("getSchemas:... | 1,112,463 |
private PresentationObject getButtonsBelowTable(IWContext iwc) { Table T = new Table(); T.setCellpadding(0); T.setCellspacing(0); SubmitButton send,cancel; if (submitImage != null) { send = new SubmitButton(submitImage, "nl_send"); } else { send = new SubmitButton(iwrb.getLocalizedImageButton("su... | private PresentationObject getButtonsBelowTable(IWContext iwc) { Table T = new Table(); T.setCellpadding(0); T.setCellspacing(0); SubmitButton send,cancel; if (submitImage != null) { send = new SubmitButton(submitImage, "nl_send"); } else { send = new SubmitButton(iwrb.getLocalizedImageButton("su... | 1,112,465 |
public void main(IWContext iwc) { //debugParameters(iwc); iwb = getBundle(iwc); core = iwc.getIWMainApplication().getCoreBundle(); iwrb = getResourceBundle(iwc); Table T = new Table(); T.setCellpaddingAndCellspacing(0); T.setColor(_bgColor); int row = 1; int categoryID = getCategoryId()... | public void main(IWContext iwc) { //debugParameters(iwc); iwb = getBundle(iwc); core = iwc.getIWMainApplication().getCoreBundle(); iwrb = getResourceBundle(iwc); Table T = new Table(); T.setCellpaddingAndCellspacing(0); T.setColor(_bgColor); int row = 1; int categoryID = getCategoryId()... | 1,112,466 |
public void mouseClicked(MouseEvent evt) { if ((evt.getModifiers() & MouseEvent.BUTTON1_MASK) != 0 && evt.getClickCount() == 2) { TablePane tp = (TablePane) evt.getSource(); if (tp.isSelected()) { ArchitectFrame af = ArchitectFrame.getMainInstance(); int selectedColIndex = tp.getSelectedColumnIndex(); ... | public void mouseClicked(MouseEvent evt) { if ((evt.getModifiers() & MouseEvent.BUTTON1_MASK) != 0 && evt.getClickCount() == 2) { TablePane tp = (TablePane) evt.getSource(); if (tp.isSelected()) { ArchitectFrame af = ArchitectFrame.getMainInstance(); int selectedColIndex = tp.getSelectedColumnIndex(); ... | 1,112,467 |
public void mouseClicked(MouseEvent evt) { if ((evt.getModifiers() & MouseEvent.BUTTON1_MASK) != 0 && evt.getClickCount() == 2) { TablePane tp = (TablePane) evt.getSource(); if (tp.isSelected()) { ArchitectFrame af = ArchitectFrame.getMainInstance(); int selectedColIndex = tp.getSelectedColumnIndex(); ... | public void mouseClicked(MouseEvent evt) { if ((evt.getModifiers() & MouseEvent.BUTTON1_MASK) != 0 && evt.getClickCount() == 2) { TablePane tp = (TablePane) evt.getSource(); if (tp.isSelected()) { ArchitectFrame af = ArchitectFrame.getMainInstance(); int selectedColIndex = tp.getSelectedColumnIndex(); ... | 1,112,468 |
public void mousePressed(MouseEvent evt) { evt.getComponent().requestFocus(); if ((evt.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0) { try { // table/column selection TablePane tp = (TablePane) evt.getComponent(); PlayPen pp = (PlayPen) tp.getPlayPen(); int clickCol = tp.pointToColumnIndex... | public void mousePressed(MouseEvent evt) { evt.getComponent().requestFocus(); if ((evt.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0) { try { // table/column selection PlayPen pp = (PlayPen) tp.getPlayPen(); int clickCol = tp.pointToColumnIndex(evt.getPoint()); if ( (evt.getModifiersEx(... | 1,112,470 |
public void mousePressed(MouseEvent evt) { evt.getComponent().requestFocus(); if ((evt.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0) { try { // table/column selection TablePane tp = (TablePane) evt.getComponent(); PlayPen pp = (PlayPen) tp.getPlayPen(); int clickCol = tp.pointToColumnIndex... | public void mousePressed(MouseEvent evt) { evt.getComponent().requestFocus(); if ((evt.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0) { try { // table/column selection TablePane tp = (TablePane) evt.getComponent(); PlayPen pp = (PlayPen) tp.getPlayPen(); int clickCol = tp.pointToColumnIndex... | 1,112,471 |
public void mousePressed(MouseEvent evt) { evt.getComponent().requestFocus(); if ((evt.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0) { try { // table/column selection TablePane tp = (TablePane) evt.getComponent(); PlayPen pp = (PlayPen) tp.getPlayPen(); int clickCol = tp.pointToColumnIndex... | public void mousePressed(MouseEvent evt) { evt.getComponent().requestFocus(); if ((evt.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0) { try { // table/column selection TablePane tp = (TablePane) evt.getComponent(); PlayPen pp = (PlayPen) tp.getPlayPen(); int clickCol = tp.pointToColumnIndex... | 1,112,472 |
public static void initODMG( String user, String passwd, PVDatabase dbDesc ) throws PhotovaultException { getODMGImplementation(); // Find the connection repository info ConnectionRepository cr = MetadataManager.getInstance().connectionRepository(); PBKey connKey = cr.getStandardPBKeyFor... | public static void initODMG( String user, String passwd, PVDatabase dbDesc ) throws PhotovaultException { getODMGImplementation(); // Find the connection repository info ConnectionRepository cr = MetadataManager.getInstance().connectionRepository(); PBKey connKey = cr.getStandardPBKeyFor... | 1,112,473 |
public static void initODMG( String user, String passwd, PVDatabase dbDesc ) throws PhotovaultException { getODMGImplementation(); // Find the connection repository info ConnectionRepository cr = MetadataManager.getInstance().connectionRepository(); PBKey connKey = cr.getStandardPBKeyFor... | public static void initODMG( String user, String passwd, PVDatabase dbDesc ) throws PhotovaultException { getODMGImplementation(); // Find the connection repository info ConnectionRepository cr = MetadataManager.getInstance().connectionRepository(); PBKey connKey = cr.getStandardPBKeyFor... | 1,112,474 |
public static void initODMG( String user, String passwd, PVDatabase dbDesc ) throws PhotovaultException { getODMGImplementation(); // Find the connection repository info ConnectionRepository cr = MetadataManager.getInstance().connectionRepository(); PBKey connKey = cr.getStandardPBKeyFor... | public static void initODMG( String user, String passwd, PVDatabase dbDesc ) throws PhotovaultException { getODMGImplementation(); // Find the connection repository info ConnectionRepository cr = MetadataManager.getInstance().connectionRepository(); PBKey connKey = cr.getStandardPBKeyFor... | 1,112,475 |
public Individual(int numLines) { this.markers = new Vector(numLines); //this.zeroed = new Vector(numLines); this.zeroed = new boolean[numLines]; this.currMarker = 0; } | public Individual(int numLines) { this.markers = new Vector(numLines); //this.zeroed = new Vector(numLines); this.zeroed = new boolean[numLines]; this.currMarker = 0; } | 1,112,477 |
public void addMarker(byte[] marker){ this.markers.add(marker); //this.zeroed.add(new Boolean(false)); this.zeroed[currMarker] = false; this.currMarker++; if (!(marker[0] == 0 || marker[1] == 0)){ numGoodMarkers++; } } | public void addMarker(byte[] marker){ this.markers.add(marker); //this.zeroed.add(new Boolean(false)); this.zeroed[currMarker] = false; this.currMarker++; if (!(marker[0] == 0 || marker[1] == 0)){ numGoodMarkers++; } } | 1,112,478 |
public double getGenoPC(){ return numGoodMarkers/markers.size(); } | public double getGenoPC(){ return numGoodMarkers/markersa.length; } | 1,112,479 |
public Vector getMarkers() { return markers; } | public Vector getMarkers() { return null; } | 1,112,480 |
public int getNumMarkers(){ return this.markers.size(); } | public int getNumMarkers(){ return this.markersa.length; } | 1,112,481 |
public void setMarkers(Vector m){ markers = m; } | public void setMarkers(Vector m){ markers = m; } | 1,112,482 |
protected void handleException(Exception e) throws Exception { log.error( "Caught exception: " + e, e ); throw new JellyException(e, columnNumber, lineNumber); } | protected void handleException(Exception e) throws Exception { log.error( "Caught exception: " + e, e ); throw new JellyException(e, fileName, elementName, columnNumber, lineNumber); } | 1,112,483 |
protected TagScript createTag( String namespaceURI, String localName, Attributes list) throws SAXException { try { // use the URI to load a taglib TagLibrary taglib = context.getTagLibrary(namespaceURI); if (taglib == null) { if (nam... | protected TagScript createTag( String namespaceURI, String script, Attributes list) throws SAXException { try { // use the URI to load a taglib TagLibrary taglib = context.getTagLibrary(namespaceURI); if (taglib == null) { if (namesp... | 1,112,485 |
public void startElement( String namespaceURI, String localName, String qName, Attributes list) throws SAXException { try { // add check to ensure namespace URI is "" for no namespace if ( namespaceURI == null ) { ... | public void startElement( String namespaceURI, String localName, String qName, Attributes list) throws SAXException { try { // add check to ensure namespace URI is "" for no namespace if ( namespaceURI == null ) { ... | 1,112,486 |
public void startElement( String namespaceURI, String localName, String qName, Attributes list) throws SAXException { try { // add check to ensure namespace URI is "" for no namespace if ( namespaceURI == null ) { ... | public void startElement( String namespaceURI, String localName, String qName, Attributes list) throws SAXException { try { // add check to ensure namespace URI is "" for no namespace if ( namespaceURI == null ) { ... | 1,112,487 |
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,488 |
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command == READ_GENOTYPES){ ReadDataDialog readDialog = new ReadDataDialog("Open new data", this); readDialog.pack(); readDialog.setVisible(true); } else if (command == READ_... | public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command == READ_GENOTYPES){ ReadDataDialog readDialog = new ReadDataDialog("Open new data", this); readDialog.pack(); readDialog.setVisible(true); } else if (command == READ_... | 1,112,489 |
public void drop(DropTargetDropEvent dtde) { TablePane tp = (TablePane) dtde.getDropTargetContext().getComponent(); logger.debug("Drop target drop event on "+tp.getName()+": "+dtde); Transferable t = dtde.getTransferable(); DataFlavor importFlavor = bestImportFlavor(tp, t.getTransferDataFlavors()); if (impo... | public void drop(DropTargetDropEvent dtde) { TablePane tp = (TablePane) dtde.getDropTargetContext().getComponent(); logger.debug("Drop target drop event on "+tp.getName()+": "+dtde); Transferable t = dtde.getTransferable(); DataFlavor importFlavor = bestImportFlavor(tp, t.getTransferDataFlavors()); if (impo... | 1,112,491 |
protected Tag findDynamicTag(JellyContext context, StaticTag tag) throws Exception { // lets see if there's a tag library for this URI... TagLibrary taglib = context.getTagLibrary( tag.getUri() ); if ( taglib instanceof DynamicTagLibrary ) { DynamicTagLibrary dynaLib = (DynamicTagLib... | protected Tag findDynamicTag(JellyContext context, StaticTag tag) throws Exception { // lets see if there's a tag library for this URI... TagLibrary taglib = context.getTagLibrary( tag.getUri() ); if ( taglib instanceof DynamicTagLibrary ) { DynamicTagLibrary dynaLib = (DynamicTagLib... | 1,112,492 |
protected JPopupMenu refreshMenu(TreePath p) { logger.debug("refreshMenu is being called."); JPopupMenu newMenu = new JPopupMenu(); newMenu.add(connectionsMenu = new JMenu("Add Source Connection")); connectionsMenu.add(new JMenuItem(newDBCSAction)); connectionsMenu.addSeparator(); // populate for (Arch... | protected JPopupMenu refreshMenu(TreePath p) { logger.debug("refreshMenu is being called."); JPopupMenu newMenu = new JPopupMenu(); newMenu.add(connectionsMenu = new JMenu("Add Source Connection")); connectionsMenu.add(new JMenuItem(newDBCSAction)); connectionsMenu.addSeparator(); // populate for (Arch... | 1,112,493 |
public void propertyChange( PropertyChangeEvent ev ) { if ( ev.getPropertyName().equals( "value" ) ) { Object src = ev.getSource(); if ( src.getClass() == JFormattedTextField.class ) { Object field = ((JFormattedTextField) src).getClientProperty( FIELD_NAME ); ctrl.viewChanged( this, (String) field ); ... | public void propertyChange( PropertyChangeEvent ev ) { if ( ev.getPropertyName().equals( "value" ) ) { Object src = ev.getSource(); if ( src.getClass() == JFormattedTextField.class ) { Object field = ((JFormattedTextField) src).getClientProperty( FIELD_NAME ); Object value = ((JFormattedTextField) src).ge... | 1,112,495 |
public ReadDataDialog(String title, HaploView h){ super(h, title); //Ped Panel... pedFileField = new JTextField("",20); JButton browsePedFileButton = new JButton("Browse"); browsePedFileButton.setActionCommand(BROWSE_GENO); browsePedFileButton.addActionListener(this); ... | public ReadDataDialog(String title, HaploView h){ super(h, title); //Ped Panel... pedFileField = new JTextField("",20); JButton browsePedFileButton = new JButton("Browse"); browsePedFileButton.setActionCommand(BROWSE_GENO); browsePedFileButton.addActionListener(this); ... | 1,112,497 |
public void parsePhasedData(String[] info) throws IOException, PedFileException{ if (info[4].equals("")){ Chromosome.setDataChrom("none"); }else{ Chromosome.setDataChrom("chr" + info[4]); } Chromosome.setDataBuild("ncbi_b35"); Vector sampleData = new Vector()... | public void parsePhasedData(String[] info) throws IOException, PedFileException{ if (info[4].equals("")){ Chromosome.setDataChrom("none"); }else{ Chromosome.setDataChrom("chr" + info[4]); } Chromosome.setDataBuild("ncbi_b35"); Vector sampleData = new Vector()... | 1,112,498 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.