rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
getBody().run(context, output); | invokeBody(output); | public void doTag(XMLOutput output) throws Exception { tagLibrary = new DynamicTagLibrary( getUri() ); context.registerTagLibrary( getUri(), tagLibrary ); getBody().run(context, output); tagLibrary = null; } |
public void run(Context context, XMLOutput output) throws Exception { if ( log.isDebugEnabled() ) { log.debug( "running with items: " + items ); } if ( items != null ) { Iterator iter = items.evaluateAsIterator( context ); if ( log.isDebugEnabled() ) { log.debug( "Iterating through: " + iter ); } for ( index = begin... | public void run(JellyContext context, XMLOutput output) throws Exception { if (log.isDebugEnabled()) { log.debug("running with items: " + items); } if (items != null) { Iterator iter = items.evaluateAsIterator(context); if (log.isDebugEnabled()) { log.debug("Iterating through: " + iter); } for (index = begin; ... | public void run(Context context, XMLOutput output) throws Exception { if ( log.isDebugEnabled() ) { log.debug( "running with items: " + items ); } if ( items != null ) { Iterator iter = items.evaluateAsIterator( context ); if ( log.isDebugEn... |
expression += tokenizer.nextToken(); | expression += "," + tokenizer.nextToken(); | private List parse(String attributes){ List exprList = new LinkedList(); StringTokenizer tokenizer = new StringTokenizer(attributes, ","); while(tokenizer.hasMoreTokens()){ String expression = tokenizer.nextToken(); assert expression.startsWith("["); while(!expr... |
_httpClient = new HttpClient(); | public void doTag(XMLOutput xmlOutput) throws JellyTagException { if (isProxyAvailable()) { _httpClient = new HttpClient(); _httpClient.getHostConfiguration().setProxy(getProxyHost(), getProxyPort()); } else { _httpClient = new HttpClient(); } invokeBody(... | |
} else { _httpClient = new HttpClient(); | public void doTag(XMLOutput xmlOutput) throws JellyTagException { if (isProxyAvailable()) { _httpClient = new HttpClient(); _httpClient.getHostConfiguration().setProxy(getProxyHost(), getProxyPort()); } else { _httpClient = new HttpClient(); } invokeBody(... | |
out.println("-- Would Create Database "+db.getName()+" here. --"); | println("-- Would Create Database "+db.getName()+" here. --"); | public void writeCreateDB(SQLDatabase db) { out.println("-- Would Create Database "+db.getName()+" here. --"); } |
out.println(""); out.println("ALTER TABLE "+rel.getFkTable().getName() | println(""); println("ALTER TABLE "+rel.getFkTable().getName() | protected void writeExportedRelationships(SQLTable t) throws ArchitectException { Iterator it = t.getExportedKeys().iterator(); while (it.hasNext()) { SQLRelationship rel = (SQLRelationship) it.next(); out.println(""); out.println("ALTER TABLE "+rel.getFkTable().getName() +" ADD CONSTRAINT "+rel.getName()... |
out.print("FOREIGN KEY ("); | print("FOREIGN KEY ("); | protected void writeExportedRelationships(SQLTable t) throws ArchitectException { Iterator it = t.getExportedKeys().iterator(); while (it.hasNext()) { SQLRelationship rel = (SQLRelationship) it.next(); out.println(""); out.println("ALTER TABLE "+rel.getFkTable().getName() +" ADD CONSTRAINT "+rel.getName()... |
out.print(fkCols.toString()); out.println(")"); out.print("REFERENCES "+rel.getPkTable().getName()+" ("); out.print(pkCols.toString()); out.print(")"); | print(fkCols.toString()); println(")"); print("REFERENCES "+rel.getPkTable().getName()+" ("); print(pkCols.toString()); print(")"); | protected void writeExportedRelationships(SQLTable t) throws ArchitectException { Iterator it = t.getExportedKeys().iterator(); while (it.hasNext()) { SQLRelationship rel = (SQLRelationship) it.next(); out.println(""); out.println("ALTER TABLE "+rel.getFkTable().getName() +" ADD CONSTRAINT "+rel.getName()... |
out.println(""); | println(""); | protected void writeExportedRelationships(SQLTable t) throws ArchitectException { Iterator it = t.getExportedKeys().iterator(); while (it.hasNext()) { SQLRelationship rel = (SQLRelationship) it.next(); out.println(""); out.println("ALTER TABLE "+rel.getFkTable().getName() +" ADD CONSTRAINT "+rel.getName()... |
out.println("-- Created by SQLPower Generic DDL Generator "+GENERATOR_VERSION+" --"); | println("-- Created by SQLPower Generic DDL Generator "+GENERATOR_VERSION+" --"); | public void writeHeader() { out.println("-- Created by SQLPower Generic DDL Generator "+GENERATOR_VERSION+" --"); } |
out.println(""); out.println("ALTER TABLE "+t.getName() | println(""); println("ALTER TABLE "+t.getName() | protected void writePrimaryKey(SQLTable t) throws ArchitectException { boolean firstCol = true; Iterator it = t.getColumns().iterator(); while (it.hasNext()) { SQLColumn col = (SQLColumn) it.next(); if (col.getPrimaryKeySeq() == null) break; if (firstCol) { out.println(""); out.println("ALTER TABLE "+t.... |
out.print("PRIMARY KEY ("); | print("PRIMARY KEY ("); | protected void writePrimaryKey(SQLTable t) throws ArchitectException { boolean firstCol = true; Iterator it = t.getColumns().iterator(); while (it.hasNext()) { SQLColumn col = (SQLColumn) it.next(); if (col.getPrimaryKeySeq() == null) break; if (firstCol) { out.println(""); out.println("ALTER TABLE "+t.... |
out.print(", "); | print(", "); | protected void writePrimaryKey(SQLTable t) throws ArchitectException { boolean firstCol = true; Iterator it = t.getColumns().iterator(); while (it.hasNext()) { SQLColumn col = (SQLColumn) it.next(); if (col.getPrimaryKeySeq() == null) break; if (firstCol) { out.println(""); out.println("ALTER TABLE "+t.... |
out.print(col.getName()); | print(col.getName()); | protected void writePrimaryKey(SQLTable t) throws ArchitectException { boolean firstCol = true; Iterator it = t.getColumns().iterator(); while (it.hasNext()) { SQLColumn col = (SQLColumn) it.next(); if (col.getPrimaryKeySeq() == null) break; if (firstCol) { out.println(""); out.println("ALTER TABLE "+t.... |
out.print(")"); | print(")"); | protected void writePrimaryKey(SQLTable t) throws ArchitectException { boolean firstCol = true; Iterator it = t.getColumns().iterator(); while (it.hasNext()) { SQLColumn col = (SQLColumn) it.next(); if (col.getPrimaryKeySeq() == null) break; if (firstCol) { out.println(""); out.println("ALTER TABLE "+t.... |
out.println(""); | println(""); | protected void writePrimaryKey(SQLTable t) throws ArchitectException { boolean firstCol = true; Iterator it = t.getColumns().iterator(); while (it.hasNext()) { SQLColumn col = (SQLColumn) it.next(); if (col.getPrimaryKeySeq() == null) break; if (firstCol) { out.println(""); out.println("ALTER TABLE "+t.... |
out.print(";"); | print(";"); | public void writeStatementTerminator() { out.print(";"); } |
public void writeTable(SQLTable t) throws SQLException, IOException, ArchitectException { out.println("\nCREATE TABLE "+t.getName()+" ("); | public void writeTable(SQLTable t) throws SQLException, ArchitectException { println("\nCREATE TABLE "+t.getName()+" ("); | public void writeTable(SQLTable t) throws SQLException, IOException, ArchitectException { out.println("\nCREATE TABLE "+t.getName()+" ("); boolean firstCol = true; Iterator it = t.getColumns().iterator(); while (it.hasNext()) { SQLColumn c = (SQLColumn) it.next(); GenericTypeDescriptor td = (GenericTypeDescrip... |
if (!firstCol) out.println(","); out.print(" "); out.print(c.getName()); out.print(" "); out.print(td.getName()); | if (!firstCol) println(","); print(" "); print(c.getName()); print(" "); print(td.getName()); | public void writeTable(SQLTable t) throws SQLException, IOException, ArchitectException { out.println("\nCREATE TABLE "+t.getName()+" ("); boolean firstCol = true; Iterator it = t.getColumns().iterator(); while (it.hasNext()) { SQLColumn c = (SQLColumn) it.next(); GenericTypeDescriptor td = (GenericTypeDescrip... |
out.print("("+c.getScale()); | print("("+c.getScale()); | public void writeTable(SQLTable t) throws SQLException, IOException, ArchitectException { out.println("\nCREATE TABLE "+t.getName()+" ("); boolean firstCol = true; Iterator it = t.getColumns().iterator(); while (it.hasNext()) { SQLColumn c = (SQLColumn) it.next(); GenericTypeDescriptor td = (GenericTypeDescrip... |
out.print(","+c.getPrecision()); | print(","+c.getPrecision()); | public void writeTable(SQLTable t) throws SQLException, IOException, ArchitectException { out.println("\nCREATE TABLE "+t.getName()+" ("); boolean firstCol = true; Iterator it = t.getColumns().iterator(); while (it.hasNext()) { SQLColumn c = (SQLColumn) it.next(); GenericTypeDescriptor td = (GenericTypeDescrip... |
out.print(")"); | print(")"); | public void writeTable(SQLTable t) throws SQLException, IOException, ArchitectException { out.println("\nCREATE TABLE "+t.getName()+" ("); boolean firstCol = true; Iterator it = t.getColumns().iterator(); while (it.hasNext()) { SQLColumn c = (SQLColumn) it.next(); GenericTypeDescriptor td = (GenericTypeDescrip... |
out.print(" NULL"); | print(" NULL"); | public void writeTable(SQLTable t) throws SQLException, IOException, ArchitectException { out.println("\nCREATE TABLE "+t.getName()+" ("); boolean firstCol = true; Iterator it = t.getColumns().iterator(); while (it.hasNext()) { SQLColumn c = (SQLColumn) it.next(); GenericTypeDescriptor td = (GenericTypeDescrip... |
out.print(" NOT NULL"); | print(" NOT NULL"); | public void writeTable(SQLTable t) throws SQLException, IOException, ArchitectException { out.println("\nCREATE TABLE "+t.getName()+" ("); boolean firstCol = true; Iterator it = t.getColumns().iterator(); while (it.hasNext()) { SQLColumn c = (SQLColumn) it.next(); GenericTypeDescriptor td = (GenericTypeDescrip... |
out.println(); out.print(")"); | println(""); print(")"); | public void writeTable(SQLTable t) throws SQLException, IOException, ArchitectException { out.println("\nCREATE TABLE "+t.getName()+" ("); boolean firstCol = true; Iterator it = t.getColumns().iterator(); while (it.hasNext()) { SQLColumn c = (SQLColumn) it.next(); GenericTypeDescriptor td = (GenericTypeDescrip... |
out.println(""); | println(""); | public void writeTable(SQLTable t) throws SQLException, IOException, ArchitectException { out.println("\nCREATE TABLE "+t.getName()+" ("); boolean firstCol = true; Iterator it = t.getColumns().iterator(); while (it.hasNext()) { SQLColumn c = (SQLColumn) it.next(); GenericTypeDescriptor td = (GenericTypeDescrip... |
theData.generateDPrimeTable(maxCompDist); theData.guessBlocks(BLOX_GABRIEL); | theData.generateDPrimeTable(); theData.guessBlocks(BLOX_NONE); | void processData(final String[][] hminfo, String[] in) { final String[] inputOptions = in; if (inputOptions[2].equals("")){ inputOptions[2] = "0"; } maxCompDist = Long.parseLong(inputOptions[2])*1000; this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); ... |
theData.generateDPrimeTable(maxCompDist); theData.guessBlocks(BLOX_GABRIEL); | theData.generateDPrimeTable(); theData.guessBlocks(BLOX_NONE); | public Object construct(){ dPrimeDisplay=null; theData.infoKnown = false; File markerFile; if (inputOptions[1].equals("")){ markerFile = null; }else{ markerFile = new File(inputOptions[1]); ... |
w = xformImage.getWidth(); h = xformImage.getHeight(); | if ( xformImage != null ) { w = xformImage.getWidth(); h = xformImage.getHeight(); } | public Dimension getPreferredSize() { int w = 0; int h = 0; if ( origImage != null ) { if ( xformImage == null ) { buildXformImage(); } w = xformImage.getWidth(); h = xformImage.getHeight(); } return new Dimension( w, h ); } |
String tagName, | TagScript tagScript, | public Expression createExpression( ExpressionFactory factory, String tagName, String attributeName, String attributeValue) throws Exception { // #### may need to include some namespace URI information in the XPath instance? if (attributeName.equals("select")) { ... |
return new XPathExpression(xpath); | return new XPathExpression(xpath, tagScript); | public Expression createExpression( ExpressionFactory factory, String tagName, String attributeName, String attributeValue) throws Exception { // #### may need to include some namespace URI information in the XPath instance? if (attributeName.equals("select")) { ... |
return super.createExpression(factory, tagName, attributeName, attributeValue); | return super.createExpression(factory, tagScript, attributeName, attributeValue); | public Expression createExpression( ExpressionFactory factory, String tagName, String attributeName, String attributeValue) throws Exception { // #### may need to include some namespace URI information in the XPath instance? if (attributeName.equals("select")) { ... |
curRes.tallyInd(allele1T,allele1U); curRes.tallyInd(allele2T,allele2U); | if(!(allele1T == 5 && allele1U == 5 && allele2T !=5 && allele2U != 5) && !(allele1T != 5 && allele1U != 5 && allele2T ==5 && allele2U == 5)) { curRes.tallyInd(allele1T,allele1U); curRes.tallyInd(allele2T,allele2U); } | public static Vector calcTDT(Vector chromosomes) { Vector results = new Vector(); int numMarkers = Chromosome.getSize(); for(int k=0;k<numMarkers;k++){ results.add(new TDTResult(Chromosome.getMarker(k))); } for(int i=0;i<chromosomes.size()-3;i++){ Chromosome ... |
newContext.setExportLibraries(false); newContext.setExport(false); | public void doTag(final XMLOutput output) throws Exception { String name = getName(); if ( name == null ) { name = toString(); } // #### we need to redirect the output to a TestListener // or something? TestCase testCase = new TestCase(name) { ... | |
newContext.setExportLibraries(false); newContext.setExport(false); | protected void runTest() throws Throwable { // create a new child context so that each test case // will have its own variable scopes JellyContext newContext = new JellyContext( context ); // invoke the test case getB... | |
highY = exportStop; | highY = exportStop+1; | public void paintComponent(Graphics g){ DPrimeTable dPrimeTable = theData.dpTable; if (Chromosome.getSize() < 2){ //if there zero or only one valid marker return; } Vector blocks = theData.blocks; Rectangle visRect = getVisibleRect(); //deal with zoomi... |
lastModified = userConfigFile.lastModified(); | private UserManager(File userConfigFile){ try{ lastModified = userConfigFile.lastModified(); Document userConfig = new SAXBuilder().build(userConfigFile); users = loadUsers(userConfig); }catch(JDOMException jdEx){ logger.info("Error reading user info "+USER_... | |
File userConfiguration = new File(USER_CONFIG_FILE_NAME); if(lastModified < userConfiguration.lastModified()){ userManager = new UserManager(userConfiguration); } | public static UserManager getInstance(){ File userConfiguration = new File(USER_CONFIG_FILE_NAME); if(lastModified < userConfiguration.lastModified()){ /* Refresh the cache */ userManager = new UserManager(userConfiguration); } return userManager; } | |
assert user.getStatus() != null && (user.getStatus().equals(User.STATUS_ACTIVE) || user.getStatus().equals(User.STATUS_LOCKED)); | private void saveUser(){ try { Document doc = new Document(); Element rootElement = new Element(AuthConstants.JM_USERS); for(Iterator it=users.values().iterator(); it.hasNext();){ User user = (User)it.next(); /* create a user element */ ... | |
public QueryFulltextCriteria( QueryField field, String text ) { | public QueryFulltextCriteria( QueryField field ) { | public QueryFulltextCriteria( QueryField field, String text ) { this.field = field; this.text = text; } |
this.text = text; | public QueryFulltextCriteria( QueryField field, String text ) { this.field = field; this.text = text; } | |
System.out.println( sql ); | log.debug( sql ); | public void setupQuery( Criteria crit ) { String sql = "MATCH(" + field.getName() + ") AGAINST('" + text + "')"; System.out.println( sql ); crit.addSql( sql ); System.out.println( "Added" ); } |
System.out.println( "Added" ); | log.debug( "Added" ); | public void setupQuery( Criteria crit ) { String sql = "MATCH(" + field.getName() + ") AGAINST('" + text + "')"; System.out.println( sql ); crit.addSql( sql ); System.out.println( "Added" ); } |
= new ProgressMonitor(null, | = new ProgressMonitor(this, | public synchronized void addObjects(List list, Point preferredLocation, ArchitectSwingWorker nextProcess) throws ArchitectException { ProgressMonitor pm = new ProgressMonitor(null, "Copying objects to the playpen", "...", 0, 10... |
if (ignoreReset) { | if (playPenDatabase) { | protected void reset() { if (ignoreReset) { // preserve the objects that are in the Target system when // the connection spec changes logger.debug("Ignoring Reset request for: " + getDataSource()); populated = true; } else { // discard everything and reload (this is generally for source systems)... |
if (clickCol == COLUMN_INDEX_TITLE) { | if (clickCol == COLUMN_INDEX_TITLE && !ArchitectFrame.getMainInstance().createRelationshipIsActive()) { | public void mousePressed(MouseEvent evt) { evt.getComponent().requestFocus(); // make sure it was a left click? if ((evt.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0) { TablePane tp = (TablePane) evt.getSource(); // dragging try { PlayPen pp = (PlayPen) tp.getPlayPen(); int clickCol = tp.pointT... |
logger.info("Start Request Path:" + requestPath); | logger.fine("Start Request Path:" + requestPath); | protected ActionForward processActionPerform(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ... |
resultForward = action.execute(mapping, form, request, response); | resultForward = ensureLoggedIn(request, response, mapping); if(resultForward == null){ resultForward = action.execute(mapping, form, request, response); } | protected ActionForward processActionPerform(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ... |
logger.log(Level.INFO, "Exception on Request: " + requestPath, e); | logger.log(Level.FINE, "Exception on Request: " + requestPath, e); | protected ActionForward processActionPerform(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ... |
logger.info("End Request:" + requestPath + | logger.fine("End Request:" + requestPath + | protected ActionForward processActionPerform(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ... |
logger.debug("Columns removed. Syncing select/highlight lists. Removed indices="+Arrays.asList(ci)); | public void dbChildrenRemoved(SQLObjectEvent e) { if (e.getSource() == this.model.getColumnsFolder()) { int ci[] = e.getChangedIndices(); for (int i = 0; i < ci.length; i++) { columnSelection.remove(ci[i]); columnHighlight.remove(ci[i]); } if (columnSelection.size() > 0) { selectNone(); colu... | |
dbcsPanel.applyChanges(); DBConnectionSpec dbcs = dbcsPanel.getDbcs(); ASUtils.LabelValueBean connLvb = ASUtils.lvb(dbcs.getDisplayName(), dbcs); connectionsBox.addItem(connLvb); connectionsBox.setSelectedItem(connLvb); ArchitectFrame.getMainInstance().getUserSettings().getConnections().add(dbcs); d.setVisible(false); | if (PLUtils.plDotIniHasChanged(plDotIniPath)) { SwingUtilities.invokeLater(new Runnable() { public void run() { refreshPlOdbcTargets(); | public void actionPerformed(ActionEvent evt) { dbcsPanel.applyChanges(); DBConnectionSpec dbcs = dbcsPanel.getDbcs(); ASUtils.LabelValueBean connLvb = ASUtils.lvb(dbcs.getDisplayName(), dbcs); connectionsBox.addItem(connLvb); connectionsBox.setSelectedItem(connLvb); ArchitectFr... |
}); } } | public void actionPerformed(ActionEvent evt) { dbcsPanel.applyChanges(); DBConnectionSpec dbcs = dbcsPanel.getDbcs(); ASUtils.LabelValueBean connLvb = ASUtils.lvb(dbcs.getDisplayName(), dbcs); connectionsBox.addItem(connLvb); connectionsBox.setSelectedItem(connLvb); ArchitectFr... | |
plUserName.setText(null); plPassword.setText(null); | public void actionPerformed(ActionEvent e) { ASUtils.LabelValueBean lvb = (ASUtils.LabelValueBean) plOdbcTargetRepositoryBox.getSelectedItem(); if (lvb.getValue() == null) { runPLEngine.setSelected(false); runPLEngine.setEnabled(false); plRepOwner.setText(null); } else { runPLEngine.setEnab... | |
String plIniPath = af.getUserSettings().getETLUserSettings().getPlDotIniPath(); List plConnectionSpecs = new ArrayList(); try { if (plIniPath != null) { plConnectionSpecs = PLUtils.parsePlDotIni(plIniPath); } else { JOptionPane.showMessageDialog (this, "Warning: You have not set the PL.INI file location." +"\nThe list ... | public PLExportPanel() { setLayout(new GridLayout(1,2)); ArchitectFrame af = ArchitectFrame.getMainInstance(); SwingUIProject project = af.getProject(); projName = new String(project.getName()); newConnButton= new JButton("New"); newConnButton.addActionListener(new NewConnectionListener()); String plIniPath = a... | |
plodbc = new Vector(); plodbc.add(ASUtils.lvb("(Select PL ODBC Connection)", null)); it = plConnectionSpecs.iterator(); while (it.hasNext()) { PLConnectionSpec plcon = (PLConnectionSpec) it.next(); plodbc.add(ASUtils.lvb(plcon.getLogical(), plcon)); } plOdbcTargetRepositoryBox = new JComboBox(plodbc); | plOdbcTargetRepositoryBox = new JComboBox(new DefaultComboBoxModel(getPlOdbcTargets())); | public PLExportPanel() { setLayout(new GridLayout(1,2)); ArchitectFrame af = ArchitectFrame.getMainInstance(); SwingUIProject project = af.getProject(); projName = new String(project.getName()); newConnButton= new JButton("New"); newConnButton.addActionListener(new NewConnectionListener()); String plIniPath = a... |
timer = new javax.swing.Timer(1000, new ActionListener() { public void actionPerformed(ActionEvent evt) { if (PLUtils.plDotIniHasChanged(plDotIniPath)) { SwingUtilities.invokeLater(new Runnable() { public void run() { refreshPlOdbcTargets(); } }); } } }); timer.start(); | public PLExportPanel() { setLayout(new GridLayout(1,2)); ArchitectFrame af = ArchitectFrame.getMainInstance(); SwingUIProject project = af.getProject(); projName = new String(project.getName()); newConnButton= new JButton("New"); newConnButton.addActionListener(new NewConnectionListener()); String plIniPath = a... | |
plLastReadTimestamp = new Date(inputFile.lastModified()); | public static List parsePlDotIni(String plDotIniPath) throws FileNotFoundException, IOException { List plSpecs = new ArrayList(); PLConnectionSpec currentSpec = null; File inputFile = new File(plDotIniPath); BufferedReader in = new BufferedReader(new FileReader(inputFile)); String line = null; while ((line = in... | |
if (checkPanel.changed){ | if (checkPanel != null && checkPanel.changed){ | public void stateChanged(ChangeEvent e) { viewMenuItems[tabs.getSelectedIndex()].setSelected(true); if (checkPanel.changed){ window.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); JTable table = checkPanel.getTable(); boolean[] marker... |
List objectNameList = (List)domainToObjectNameListMap.get(domain); | Set objectNameList = (Set)domainToObjectNameListMap.get(domain); | public ActionForward execute(WebContext context, ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { ... |
objectNameList = new LinkedList(); | objectNameList = new TreeSet(); | public ActionForward execute(WebContext context, ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { ... |
openProjectAction = new AbstractAction("Open Project...", ASUtils.createJLFIcon("general/Open", "Open Project", sprefs.getInt(SwingUserSettings.ICON_SIZE, 24))) { public void actionPerformed(ActionEvent e) { if (promptForUnsavedModifications()) { JFileChooser chooser = new JFileChooser(); chooser.addChoosableFileFilter... | openProjectAction = new OpenProjectAction(); | protected void init() throws ArchitectException { int accelMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); UserSettings us; // must be done right away, because a static // initializer in this class effects BeanUtils // behaviour which the XML Digester relies // upon heavily //Ty... |
if (promptForUnsavedModifications()) { JFileChooser chooser = new JFileChooser(); chooser.addChoosableFileFilter(ASUtils.ARCHITECT_FILE_FILTER); int returnVal = chooser.showOpenDialog(ArchitectFrame.this); if (returnVal == JFileChooser.APPROVE_OPTION) { final File file = chooser.getSelectedFile(); new Thread() { public... | saveOrSaveAs(false, true); | public void actionPerformed(ActionEvent e) { if (promptForUnsavedModifications()) { JFileChooser chooser = new JFileChooser(); chooser.addChoosableFileFilter(ASUtils.ARCHITECT_FILE_FILTER); int returnVal = chooser.showOpenDialog(ArchitectFrame.this); if (retu... |
saveOrSaveAs(false, true); | playpen.setZoom(1.0); | public void actionPerformed(ActionEvent e) { saveOrSaveAs(false, true); } |
db.disconnect(); | protected void tearDown() throws Exception { db.disconnect(); db = null; } | |
if ( dataSource != null ) { log.info( "Setting data source to: " + dataSource + " of type: " + dataSource.getClass() ); } else { log.info( "Setting data source to: " + dataSource ); } | public void setDataSource(Object dataSource) { if ( dataSource != null ) { log.info( "Setting data source to: " + dataSource + " of type: " + dataSource.getClass() ); } else { log.info( "Setting data source to: " + dataSource ); } this.rawDataSource = dataSource; this.dataSourceSpecified = true; } | |
if (returnStrings[1].equals("")) returnStrings[1] = null; | public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command==RAW_DATA){ load(PED); }else if (command == PHASED_DATA){ load(HAPS); }else if (command == HAPMAP_DATA){ load(HMP); }else if (command == BROWSE_GENO){ ... | |
if (!populated) populate(); | populate(); | public SQLCatalog getCatalogByName(String catalogName) throws ArchitectException { if (!populated) populate(); if (children == null || children.size() == 0) { return null; } if (! (children.get(0) instanceof SQLCatalog) ) { // this database doesn't contain catalogs! return null; } Iterator childit = childr... |
if (!populated) populate(); | populate(); | public SQLSchema getSchemaByName(String schemaName) throws ArchitectException { if (!populated) populate(); if (children == null || children.size() == 0) { return null; } if (! (children.get(0) instanceof SQLSchema || children.get(0) instanceof SQLCatalog) ) { // this database doesn't contain schemas or catalo... |
if (pn.equals("url") || pn.equals("driverClass") || pn.equals("user")) { | if ("url".equals(pn) || "driverClass".equals(pn) || "user".equals(pn)) { | public void propertyChange(PropertyChangeEvent e) { String pn = e.getPropertyName(); if ( (e.getOldValue() == null && e.getNewValue() != null) || (e.getOldValue() != null && e.getNewValue() == null) || (e.getOldValue() != null && e.getNewValue() != null && !e.getOldValue().equals(e.getNewValue())) ) { i... |
} else if (pn.equals("displayName")) { | } else if ("displayName".equals(pn)) { | public void propertyChange(PropertyChangeEvent e) { String pn = e.getPropertyName(); if ( (e.getOldValue() == null && e.getNewValue() != null) || (e.getOldValue() != null && e.getNewValue() == null) || (e.getOldValue() != null && e.getNewValue() != null && !e.getOldValue().equals(e.getNewValue())) ) { i... |
throw new IllegalArgumentException("The var attribute cannot be null"); | throw new MissingAttributeException( "var" ); | public void doTag(XMLOutput output) throws Exception { if (var == null) { throw new IllegalArgumentException("The var attribute cannot be null"); } Object xpathContext = getXPathContext(); if (select == null) { select = createXPathFromBody(xpathContext); ... |
Object xpathContext = getXPathContext(); | public void doTag(XMLOutput output) throws Exception { if (var == null) { throw new IllegalArgumentException("The var attribute cannot be null"); } Object xpathContext = getXPathContext(); if (select == null) { select = createXPathFromBody(xpathContext); ... | |
select = createXPathFromBody(xpathContext); | throw new MissingAttributeException( "select" ); | public void doTag(XMLOutput output) throws Exception { if (var == null) { throw new IllegalArgumentException("The var attribute cannot be null"); } Object xpathContext = getXPathContext(); if (select == null) { select = createXPathFromBody(xpathContext); ... |
if(Options.getMaxDistance() == 0 || sep < Options.getMaxDistance() ) { | if(Options.getMaxDistance() == 0 || Math.abs(sep) < Options.getMaxDistance() ) { | public void saveDprimeToText(File dumpDprimeFile, int source, int start, int stop) throws IOException{ FileWriter saveDprimeWriter = new FileWriter(dumpDprimeFile); System.out.println("save dprime to text!"); //we use this LinkedList to store the dprime computations for a window of 5 markers ... |
public void handleEvent(Event event) { ApplicationDowntimeHistory downtimeHistory = getDowntimeHistory(event.getApplicationConfig()); | public void handleEvent(EventObject event) { if(!(event instanceof ApplicationEvent)){ throw new IllegalArgumentException("event must of type ApplicationEvent"); } ApplicationEvent appEvent = (ApplicationEvent)event; ApplicationDowntimeHistory downtimeHistory = getDowntimeHistory(appEvent.getApplicationConfig()); | public void handleEvent(Event event) { ApplicationDowntimeHistory downtimeHistory = getDowntimeHistory(event.getApplicationConfig()); assert downtimeHistory != null; if(event instanceof ApplicationUpEvent){ // application must have went down earlier assert downtimeHistory.... |
if(event instanceof ApplicationUpEvent){ | if(appEvent instanceof ApplicationUpEvent){ | public void handleEvent(Event event) { ApplicationDowntimeHistory downtimeHistory = getDowntimeHistory(event.getApplicationConfig()); assert downtimeHistory != null; if(event instanceof ApplicationUpEvent){ // application must have went down earlier assert downtimeHistory.... |
recordDowntime(event.getApplicationConfig().getApplicationId(), downtimeHistory.getDowntimeBegin(), event.getTime()); downtimeHistory.applicationCameUp(event.getTime()); | recordDowntime(appEvent.getApplicationConfig().getApplicationId(), downtimeHistory.getDowntimeBegin(), appEvent.getTime()); downtimeHistory.applicationCameUp(appEvent.getTime()); | public void handleEvent(Event event) { ApplicationDowntimeHistory downtimeHistory = getDowntimeHistory(event.getApplicationConfig()); assert downtimeHistory != null; if(event instanceof ApplicationUpEvent){ // application must have went down earlier assert downtimeHistory.... |
downtimeHistory.applicationWentDown(event.getTime()); | downtimeHistory.applicationWentDown(appEvent.getTime()); | public void handleEvent(Event event) { ApplicationDowntimeHistory downtimeHistory = getDowntimeHistory(event.getApplicationConfig()); assert downtimeHistory != null; if(event instanceof ApplicationUpEvent){ // application must have went down earlier assert downtimeHistory.... |
assert downtimeBegin == null; downtimeBegin = time; | if(downtimeBegin == null){ downtimeBegin = time; }else{ logger.fine("Downtime event fired again. Ignoring."); } | public void applicationWentDown(long time){ assert downtimeBegin == null; downtimeBegin = time; } |
if ( dragType == DRAG_TYPE_SELECT ) { | if ( dragType == DRAG_TYPE_SELECT && photoCollection != null ) { | public void mouseReleased(MouseEvent mouseEvent) { firstMouseEvent = null; if ( dragType == DRAG_TYPE_SELECT ) { // Find out thumbails inside the selection rectangle // First lets restrict search to those rows that intersect with selection int topRow =... |
public TablePane() { | private TablePane() { | public TablePane() { setOpaque(true); dt = new DropTarget(this, new TablePaneDropListener(this)); dgl = new TablePaneDragGestureListener(); ds = new DragSource(); // dgr = getToolkit().createDragGestureRecognizer(MouseDragGestureRecognizer.class, ds, this, DnDConstants.ACTION_MOVE, dgl); dgr = ds.createDefaultDr... |
assert appName != null; | if (appName == null) return null; | public ApplicationConfig getApplicationConfig() { assert appName != null; return ServiceUtils.getApplicationConfigByName(appName); } |
assert mbeanName != null; | if (mbeanName == null) return null; | public ObjectName getObjectName() { assert mbeanName != null; String mbeanName = ServiceUtils.resolveMBeanName(getApplicationConfig(), this.mbeanName); return new ObjectName(mbeanName); } |
logger.debug("SQLSchema: populate finished"); | public void populate() throws ArchitectException { if (populated) return; int oldSize = children.size(); SQLObject databaseParent; SQLObject tmp = parent; if ( tmp instanceof SQLDatabase ) databaseParent = tmp; else { while ( true ) { databaseParent = tmp.getParent(); if ( databaseParent == null ) { ... | |
hv.dPrimeDisplay.colorDPrime(hv.currentScheme); | private void doTweak() { String gt = gamThresh.getText(); if (gt.equals("")){ gt = "0"; } double gtVal = Double.parseDouble(gt); if (gtVal < 1){ FindBlocks.fourGameteCutoff = gtVal; } String cih = highLD.getText(); if (cih.equals("")){ ... | |
protected Action createAction() { | protected Action createAction(final StylesheetTag tag, final XMLOutput output) { | protected Action createAction() { return new Action() { public void run(Node node) throws Exception { xpathSource = node; if (log.isDebugEnabled()) { log.debug( "Firing template body for match: " + match + " and node: " + node ); ... |
tag.setXPathSource( node ); | protected Action createAction() { return new Action() { public void run(Node node) throws Exception { xpathSource = node; if (log.isDebugEnabled()) { log.debug( "Firing template body for match: " + match + " and node: " + node ); ... | |
tag.setXPathSource( node ); | public void run(Node node) throws Exception { xpathSource = node; if (log.isDebugEnabled()) { log.debug( "Firing template body for match: " + match + " and node: " + node ); } invokeBody(output); } | |
protected Rule createRule() { return new Rule( match, getAction() ); | protected Rule createRule(StylesheetTag tag, XMLOutput output) { return new Rule( match, createAction(tag, output) ); | protected Rule createRule() { return new Rule( match, getAction() ); } |
this.output = output; | public void doTag(XMLOutput output) throws Exception { // for use by inner classes this.output = output; StylesheetTag tag = (StylesheetTag) findAncestorWithClass( StylesheetTag.class ); if (tag == null) { throw new JellyException( "This <template> tag must be used ins... | |
Rule rule = getRule(); | Rule rule = createRule(tag, output); | public void doTag(XMLOutput output) throws Exception { // for use by inner classes this.output = output; StylesheetTag tag = (StylesheetTag) findAncestorWithClass( StylesheetTag.class ); if (tag == null) { throw new JellyException( "This <template> tag must be used ins... |
URL url = this.getClass().getClassLoader().getResource(name); if (url == null) | URL resourceUrl = this.getClass().getClassLoader().getResource(name); if (resourceUrl == null) | protected URL resolveURL(String name) throws MalformedURLException { URL url = this.getClass().getClassLoader().getResource(name); if (url == null) { File file = new File(name); if (file.exists()) { return file.toURL(); } return... |
return url; | return resourceUrl; | protected URL resolveURL(String name) throws MalformedURLException { URL url = this.getClass().getClassLoader().getResource(name); if (url == null) { File file = new File(name); if (file.exists()) { return file.toURL(); } return... |
cp.validate(); | public void actionPerformed(ActionEvent e) { final JDialog d = new JDialog(ArchitectFrame.getMainInstance(), "Power*Architect Help"); JPanel cp = new JPanel(new BorderLayout(12,12)); cp.setBorder(BorderFactory.createEmptyBorder(12,12,12,12)); Architec... | |
context.setVariable( var, getbody() ); | context.setVariable( var, getBody() ); | public void run(Context context, XMLOutput output) throws Exception { if ( var == null ) { throw new JellyException( "<define:script> must have a var attribute" ); } context.setVariable( var, getbody() ); } |
PhotovaultSettings.setConfiguration( "pv_test" ); String sqldbName = PhotovaultSettings.getConfProperty( "dbname" ); ODMG.initODMG("harri", "r1t1rat1", sqldbName); | public void setUp() { PhotovaultSettings.setConfiguration( "pv_test" ); String sqldbName = PhotovaultSettings.getConfProperty( "dbname" ); ODMG.initODMG("harri", "r1t1rat1", sqldbName); odmg = ODMG.getODMGImplementation(); db = ODMG.getODMGDatabase();// try {// db.open( "repository.xml", Database.OPEN_RE... | |
|| !"A".equals(completeUser.getStatus())){ | || !User.STATUS_ACTIVE.equals(completeUser.getStatus())){ | private static void authenticate(ServiceContextImpl context, String className, String methodName){ User user = context.getUser(); if(user == null){ /* only the login method in AuthService is allowed without ... |
File f = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" ); | File f = new File( testImgDir, "test1.jpg" ); | public void setUp() { File f = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" ); try { source = ImageIO.read( f ); } catch ( IOException e ) { System.err.println( "Error reading image: " + e.getMessage() ); return; } testDir = new File( "c:\\java\\photovault\\tests\\images\\photovault\\image\\Im... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.