bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
protected NSArray errorMessagesDictionaries(){ if(_errorMessagesDictionaries == null){ NSMutableArray result = new NSMutableArray(); for(Enumeration e = displayGroup().allObjects().objectEnumerator(); e.hasMoreElements();e.nextElement()){ result.addObject(new NSMutableDic...
protected NSMutableDictionary errorMessagesDictionaries(){ if(_errorMessagesDictionaries == null){ NSMutableArray result = new NSMutableArray(); for(Enumeration e = displayGroup().allObjects().objectEnumerator(); e.hasMoreElements();e.nextElement()){ result.addObject(new ...
58,618
protected NSArray errorMessagesDictionaries(){ if(_errorMessagesDictionaries == null){ NSMutableArray result = new NSMutableArray(); for(Enumeration e = displayGroup().allObjects().objectEnumerator(); e.hasMoreElements();e.nextElement()){ result.addObject(new NSMutableDic...
protected NSArray errorMessagesDictionaries(){ if(_errorMessagesDictionaries == null){ NSMutableArray result = new NSMutableArray(); for(Enumeration e = displayGroup().allObjects().objectEnumerator(); e.hasMoreElements();e.nextElement()){ result.addObject(new NSMutableDic...
58,619
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException { super.setup(resolver, objectModel, src, par); localRecycle(); try { if (null==this.dispatcherHelper)this.dispatcherHel...
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException { super.setup(resolver, objectModel, src, par); localRecycle(); try { if (null==this.dispatcherHelper)this.dispatcherHel...
58,623
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException { super.setup(resolver, objectModel, src, par); localRecycle(); try { if (null==this.dispatcherHelper)this.dispatcherHel...
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException { super.setup(resolver, objectModel, src, par); localRecycle(); try { if (null==this.dispatcherHelper)this.dispatcherHel...
58,624
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException { super.setup(resolver, objectModel, src, par); localRecycle(); try { if (null==this.dispatcherHelper)this.dispatcherHel...
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException { super.setup(resolver, objectModel, src, par); localRecycle(); try { if (null==this.dispatcherHelper)this.dispatcherHel...
58,625
public Transformer createTransformer(Source source) throws TransformerConfigurationException { TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(source); // transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, ...
public Transformer createTransformer() throws TransformerConfigurationException { TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(source); // transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, // "ye...
58,626
public Transformer createTransformer(Source source) throws TransformerConfigurationException { TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(source); // transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, ...
public Transformer createTransformer(Source source) throws TransformerConfigurationException { TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(); // transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, ...
58,627
public void setNamespaceHelper(String uri, String prefix, String localName) throws ParserConfigurationException { this.namespaceHelper = new NamespaceHelper(uri, prefix, localName); }
public void setNamespaceHelper(String uri, String prefix, String localName) throws ParserConfigurationException { this.namespaceHelper = new NamespaceHelper(uri, prefix, localName); }
58,628
public void throwChecked()throws ClassCastException{ throw new ClassCastException(); }
public void throwChecked()throws ClassCastException{ throw new ClassCastException(); }
58,630
public void addParameter(Object param);
public void addParameter(Object param);
58,632
public ExpConfigWriterNew(List components, NodeComponent[] nodesToWrite, Experiment exp) { this.nodesToWrite = nodesToWrite; this.components = components; theSoc = new GenericComponentData(); theSoc.setType(ComponentData.SOCIETY); theSoc.setName(exp.getExperimentName()); // this should be experiment: t...
public ExpConfigWriterNew(List components, NodeComponent[] nodesToWrite, Experiment exp) { this.nodesToWrite = nodesToWrite; this.components = components; theSoc = new GenericComponentData(); theSoc.setType(ComponentData.SOCIETY); theSoc.setName(exp.getExperimentName()); // this should be experiment: t...
58,633
public void setType(String type);
public void setType(String type);
58,634
public void setName(String name);
public void setName(String name);
58,635
public void setClassName(String className);
public void setClassName(String className);
58,636
public void setParent(ComponentData parent);
public void setParent(ComponentData parent);
58,637
ComponentData modifyComponentData(ComponentData data, PopulateDb pdb);
ComponentData modifyComponentData(ComponentData data, PopulateDb pdb);
58,638
public void setModRecipes(List recipes) throws SQLException, IOException { // dbp.setDebug(true); int order = 0; for (Iterator i = recipes.iterator(); i.hasNext(); ) { RecipeComponent rc = (RecipeComponent) i.next(); addTrialRecipe(rc, order); order++; ...
public void setModRecipes(List recipes) throws SQLException, IOException { // dbp.setDebug(true); int order = 0; for (Iterator i = recipes.iterator(); i.hasNext(); ) { RecipeComponent rc = (RecipeComponent) i.next(); addTrialRecipe(rc, order); order++; ...
58,639
BindException(String message){ super(message);}
BindException(String message){ super(message);}
58,640
BindException(String message){ super(message);}
BindException(String message){ super(message);}
58,641
WeakEntry getEntry() { final Object key = get(); if (key == null) return null; return new WeakEntry(key); }
WeakEntry getEntry() { final Object key = this.get(); if (key == null) return null; return new WeakEntry(key); }
58,642
public void startElement(String uri, String loc, String raw, Attributes a) throws SAXException { /* this.log ("startElement", "uri="+uri+",local="+loc+",raw="+raw); for (int i = 0; i < a.getLength(); i++) { this.log (" ", new Integer(i+1).toString() +". ...
public void startElement(String uri, String loc, String raw, Attributes a) throws SAXException { /* this.log ("startElement", "uri="+uri+",local="+loc+",raw="+raw); for (int i = 0; i < a.getLength(); i++) { this.log (" ", new Integer(i+1).toString() +". ...
58,643
public Object getAttribute( final String name, final Configuration modeConf, final Map objectModel) throws ConfigurationException { Object result = null; boolean hasBeenCached = false; try { if (this.m_cacheAll == true) { hasBeenCached = m_locati...
public Object getAttribute( final String name, final Configuration modeConf, final Map objectModel) throws ConfigurationException { Object result = null; boolean hasBeenCached = false; try { if (this.m_cacheAll == true) { hasBeenCached = m_locati...
58,644
public String encryptedPrimaryKey() { String pk = ERXExtensions.primaryKeyForObject(this); return pk==null ? null : ERXCrypto.blowfishEncode(pk); }
public String encryptedPrimaryKey() { String pk = ERXEOControlUtilities.primaryKeyStringForObject(this); return pk==null ? null : ERXCrypto.blowfishEncode(pk); }
58,645
public String primaryKey() { return ERXExtensions.primaryKeyForObject(this); }
public String primaryKey() { return ERXEOControlUtilities.primaryKeyStringForObject(this); }
58,646
public NSDictionary primaryKeyDictionary(boolean inTransaction) { if(_primaryKeyDictionary == null) { if (!inTransaction) { NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); if (primaryKeyAttributeNames.count()>1) { if(true) // ak:testing...
public NSDictionary primaryKeyDictionary(boolean inTransaction) { if(_primaryKeyDictionary == null) { if (!inTransaction) { NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); if (primaryKeyAttributeNames.count()>1) { if(true) // ak:testing...
58,647
public NSDictionary primaryKeyDictionary(boolean inTransaction) { if(_primaryKeyDictionary == null) { if (!inTransaction) { NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); if (primaryKeyAttributeNames.count()>1) { if(true) // ak:testing...
public NSDictionary primaryKeyDictionary(boolean inTransaction) { if(_primaryKeyDictionary == null) { if (!inTransaction) { NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); if (primaryKeyAttributeNames.count()>1) { if(true) // ak:testing...
58,648
public String primaryKeyInTransaction() { Object rpk=rawPrimaryKeyInTransaction(); return rpk!=null ? rpk.toString() : null; }
public String primaryKeyInTransaction() { Object rpk=rawPrimaryKeyInTransaction(); return rpk!=null ? rpk.toString() : null; }
58,649
public Object rawPrimaryKey() { return ERXExtensions.rawPrimaryKeyForObject(this); }
public Object rawPrimaryKey() { return ERXExtensions.rawPrimaryKeyForObject(this); }
58,650
public Object rawPrimaryKeyInTransaction() { Object result = rawPrimaryKey(); if (result == null) { NSDictionary pk = primaryKeyDictionary(false); if (log.isDebugEnabled()) log.debug("pk: " + pk); NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); ...
public Object rawPrimaryKeyInTransaction() { Object result = rawPrimaryKey(); if (result == null) { NSDictionary pk = primaryKeyDictionary(false); NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); if (primaryKeyAttributeNames.count()>1) ...
58,651
public Object rawPrimaryKeyInTransaction() { Object result = rawPrimaryKey(); if (result == null) { NSDictionary pk = primaryKeyDictionary(false); if (log.isDebugEnabled()) log.debug("pk: " + pk); NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); ...
public Object rawPrimaryKeyInTransaction() { Object result = rawPrimaryKey(); if (result == null) { NSDictionary pk = primaryKeyDictionary(false); if (log.isDebugEnabled()) log.debug("pk: " + pk); NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); ...
58,652
private DefaultMutableTreeNode addExperimentToWorkspace(Experiment experiment) { return addExperimentToWorkspace(experiment, getSelectedNode()); }
private DefaultMutableTreeNode addExperimentToWorkspace(Experiment experiment) { return addExperimentToWorkspace(experiment, getSelectedNode()); }
58,653
private DefaultMutableTreeNode addRecipeToWorkspace(RecipeComponent recipe) { return addRecipeToWorkspace(recipe, getSelectedNode()); }
private DefaultMutableTreeNode addRecipeToWorkspace(RecipeComponent recipe) { return addRecipeToWorkspace(recipe, getSelectedNode()); }
58,654
public void addSociety() { // make root be the selected node workspace.setSelectionPath(new TreePath(root.getPath())); DefaultMutableTreeNode newNode = newSociety(); }
public void addSociety() { // make root be the selected node workspace.setSelectionPath(new TreePath(root.getPath())); DefaultMutableTreeNode newNode = newSociety(); }
58,655
public Experiment copyExperiment(Experiment experiment) { String newName = generateExperimentName(experiment.getExperimentName()); final Experiment experimentCopy = (Experiment)experiment.copy(newName); // save copy in database GUIUtils.timeConsumingTaskStart(organizer); try { new Thread("Duplicat...
public Experiment copyExperiment(Experiment experiment) { String newName = generateExperimentName(experiment.getExperimentName()); final Experiment experimentCopy = (Experiment)experiment.copy(newName); // save copy in database GUIUtils.timeConsumingTaskStart(organizer); try { new Thread("Duplicat...
58,657
public void run() { experimentCopy.saveToDb(saveToDbConflictHandler); GUIUtils.timeConsumingTaskEnd(organizer); }
public void run() { recipeCopy.saveToDatabase(); GUIUtils.timeConsumingTaskEnd(organizer); }
58,658
public void run() { experimentCopy.saveToDb(saveToDbConflictHandler); GUIUtils.timeConsumingTaskEnd(organizer); }
public void run() { experimentCopy.saveToDb(saveToDbConflictHandler); GUIUtils.timeConsumingTaskEnd(organizer); }
58,659
public RecipeComponent copyRecipe(RecipeComponent recipe) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)findNode(recipe).getParent(); String newName = generateRecipeName(recipe.getRecipeName()); final RecipeComponent recipeCopy = (RecipeComponent)recipe.copy(newName); GUIUtils.timeConsumin...
public RecipeComponent copyRecipe(RecipeComponent recipe) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)findNode(recipe).getParent(); String newName = generateRecipeName(recipe.getRecipeName()); final RecipeComponent recipeCopy = (RecipeComponent)recipe.copy(newName); GUIUtils.timeConsumin...
58,660
public RecipeComponent copyRecipe(RecipeComponent recipe) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)findNode(recipe).getParent(); String newName = generateRecipeName(recipe.getRecipeName()); final RecipeComponent recipeCopy = (RecipeComponent)recipe.copy(newName); GUIUtils.timeConsumin...
public RecipeComponent copyRecipe(RecipeComponent recipe) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)findNode(recipe).getParent(); String newName = generateRecipeName(recipe.getRecipeName()); final RecipeComponent recipeCopy = (RecipeComponent)recipe.copy(newName); GUIUtils.timeConsumin...
58,661
public SocietyComponent copySociety(SocietyComponent society) { // FIXME: When societies are added back in, this will need to // be modified so that they are saved in the database. See // copyRecipe() for an example. String newName = generateSocietyName(society.getSocietyName()); SocietyComponent soci...
public SocietyComponent copySociety(SocietyComponent society) { // FIXME: When societies are added back in, this will need to // be modified so that they are saved in the database. See // copyRecipe() for an example. String newName = generateSocietyName(society.getSocietyName()); SocietyComponent societyCopy = (Soci...
58,662
public SocietyComponent copySociety(SocietyComponent society) { // FIXME: When societies are added back in, this will need to // be modified so that they are saved in the database. See // copyRecipe() for an example. String newName = generateSocietyName(society.getSocietyName()); SocietyComponent soci...
public SocietyComponent copySociety(SocietyComponent society) { // FIXME: When societies are added back in, this will need to // be modified so that they are saved in the database. See // copyRecipe() for an example. String newName = generateSocietyName(society.getSocietyName()); SocietyComponent soci...
58,663
public void createExperimentFromFile() { // query user for INI file and create society SocietyComponent society = newSocietyComponent(); if (society == null) return; DefaultMutableTreeNode selectedNode = getSelectedNode(); Experiment experiment = new Experiment("Experiment for " + society.ge...
public void createExperimentFromFile() { // query user for INI file and create society SocietyComponent society = newSocietyComponent(); if (society == null) return; Experiment experiment = new Experiment("Experiment for " + society.getSocietyName(), society, null); ad...
58,664
public void createExperimentFromFile() { // query user for INI file and create society SocietyComponent society = newSocietyComponent(); if (society == null) return; DefaultMutableTreeNode selectedNode = getSelectedNode(); Experiment experiment = new Experiment("Experiment for " + society.ge...
public void createExperimentFromFile() { // query user for INI file and create society SocietyComponent society = newSocietyComponent(); if (society == null) return; DefaultMutableTreeNode selectedNode = getSelectedNode(); Experiment experiment = new Experiment("Experiment for " + society.ge...
58,665
public void createExperimentFromUI() { String name = getUniqueExperimentName("", false); if (name == null) return; DefaultMutableTreeNode selectedNode = getSelectedNode(); SocietyComponent society = new SocietyUIComponent("Society for " + name); Experiment experiment = new Experiment(name, society...
public void createExperimentFromUI() { String name = getUniqueExperimentName("", false); if (name == null) return; SocietyComponent society = new SocietyUIComponent("Society for " + name); Experiment experiment = new Experiment(name, society, null); addExperimentToWorkspace(experiment, selected...
58,666
public void createExperimentFromUI() { String name = getUniqueExperimentName("", false); if (name == null) return; DefaultMutableTreeNode selectedNode = getSelectedNode(); SocietyComponent society = new SocietyUIComponent("Society for " + name); Experiment experiment = new Experiment(name, society...
public void createExperimentFromUI() { String name = getUniqueExperimentName("", false); if (name == null) return; DefaultMutableTreeNode selectedNode = getSelectedNode(); SocietyComponent society = new SocietyUIComponent("Society for " + name); Experiment experiment = new Experiment(name, society...
58,667
private void deleteEmptyFolders(DefaultMutableTreeNode node) { ArrayList nodesToDelete = new ArrayList(); Enumeration nodes = node.depthFirstEnumeration(); nodes.nextElement(); // skip the first node which is the start node while (nodes.hasMoreElements()) { DefaultMutableTreeNode childNode = (...
private void deleteEmptyFolders(DefaultMutableTreeNode node) { ArrayList nodesToDelete = new ArrayList(); Enumeration nodes = node.depthFirstEnumeration(); nodes.nextElement(); // skip the first node which is the start node while (nodes.hasMoreElements()) { DefaultMutableTreeNode childNode = (...
58,668
public void deleteFolder() { DefaultMutableTreeNode node = getSelectedNode(); if (node == root) return; if (node == null) return; int reply = JOptionPane.showConfirmDialog(this, "Delete folder and all its contents?", "Delete Folde...
public void deleteFolder() { DefaultMutableTreeNode node = getSelectedNode(); if (node == root) return; if (node == null) return; int reply = JOptionPane.showConfirmDialog(this, "Delete folder and all its contents?", "Delete Folde...
58,669
public void deleteFolder() { DefaultMutableTreeNode node = getSelectedNode(); if (node == root) return; if (node == null) return; int reply = JOptionPane.showConfirmDialog(this, "Delete folder and all its contents?", "Delete Folde...
publicvoiddeleteFolder(){DefaultMutableTreeNodenode=getSelectedNode();if(node==root)return;if(node==null)return;intreply=JOptionPane.showConfirmDialog(this,"Deletefolderandallitscontents?","DeleteFolder",JOptionPane.OK_CANCEL_OPTION,JOptionPane.PLAIN_MESSAGE);if(reply!=JOptionPane.OK_OPTION)return;//ifthisfolderisempty...
58,670
public void deleteFolder() { DefaultMutableTreeNode node = getSelectedNode(); if (node == root) return; if (node == null) return; int reply = JOptionPane.showConfirmDialog(this, "Delete folder and all its contents?", "Delete Folde...
public void deleteFolder() { DefaultMutableTreeNode node = getSelectedNode(); if (node == root) return; if (node == null) return; int reply = JOptionPane.showConfirmDialog(this, "Delete folder and all its contents?", "Delete Folde...
58,671
private void deleteRecipeInNode(DefaultMutableTreeNode node) { if (node == null) return; model.removeNodeFromParent(node); RecipeComponent rc = (RecipeComponent) node.getUserObject(); try { PDbBase pdb = new PDbBase(); try { int status = pdb.recipeExists(rc); if (status == PDbBase....
private void deleteRecipeInNode(DefaultMutableTreeNode node) { if (node == null) return; model.removeNodeFromParent(node); RecipeComponent rc = (RecipeComponent) node.getUserObject(); try { PDbBase pdb = new PDbBase(); try { int status = pdb.recipeExists(rc); if (status == PDbBase....
58,673
private void deleteRecipeInNode(DefaultMutableTreeNode node) { if (node == null) return; model.removeNodeFromParent(node); RecipeComponent rc = (RecipeComponent) node.getUserObject(); try { PDbBase pdb = new PDbBase(); try { int status = pdb.recipeExists(rc); if (status == PDbBase....
private void deleteRecipeInNode(DefaultMutableTreeNode node) { if (node == null) return; model.removeNodeFromParent(node); RecipeComponent rc = (RecipeComponent) node.getUserObject(); try { PDbBase pdb = new PDbBase(); try { int status = pdb.recipeExists(rc); if (status == PDbBase....
58,674
private void deleteRecipeInNode(DefaultMutableTreeNode node) { if (node == null) return; model.removeNodeFromParent(node); RecipeComponent rc = (RecipeComponent) node.getUserObject(); try { PDbBase pdb = new PDbBase(); try { int status = pdb.recipeExists(rc); if (status == PDbBase....
private void deleteRecipeInNode(DefaultMutableTreeNode node) { if (node == null) return; model.removeNodeFromParent(node); RecipeComponent rc = (RecipeComponent) node.getUserObject(); try { PDbBase pdb = new PDbBase(); try { int status = pdb.recipeExists(rc); if (status == PDbBase....
58,675
private void deleteRecipeInNode(DefaultMutableTreeNode node) { if (node == null) return; model.removeNodeFromParent(node); RecipeComponent rc = (RecipeComponent) node.getUserObject(); try { PDbBase pdb = new PDbBase(); try { int status = pdb.recipeExists(rc); if (status == PDbBase....
private void deleteRecipeInNode(DefaultMutableTreeNode node) { if (node == null) return; model.removeNodeFromParent(node); RecipeComponent rc = (RecipeComponent) node.getUserObject(); try { PDbBase pdb = new PDbBase(); try { int status = pdb.recipeExists(rc); if (status == PDbBase....
58,676
private void deleteRecipeInNode(DefaultMutableTreeNode node) { if (node == null) return; model.removeNodeFromParent(node); RecipeComponent rc = (RecipeComponent) node.getUserObject(); try { PDbBase pdb = new PDbBase(); try { int status = pdb.recipeExists(rc); if (status == PDbBase....
private void deleteRecipeInNode(DefaultMutableTreeNode node) { if (node == null) return; model.removeNodeFromParent(node); RecipeComponent rc = (RecipeComponent) node.getUserObject(); try { PDbBase pdb = new PDbBase(); try { int status = pdb.recipeExists(rc); if (status == PDbBase....
58,677
public void deleteSociety() { DefaultMutableTreeNode node = getSelectedNode(); SocietyComponent society = (SocietyComponent)node.getUserObject(); if (!society.isEditable()) { int result = JOptionPane.showConfirmDialog(this, "Society has been or is being used; delete anyway?", "Society Not Ed...
public void deleteSociety() { DefaultMutableTreeNode node = getSelectedNode(); SocietyComponent society = (SocietyComponent)node.getUserObject(); if (!society.isEditable()) { int result = JOptionPane.showConfirmDialog(this, "Society has been or is being used; delete anyway?", "Society Not Ed...
58,678
private DefaultMutableTreeNode findNode(Object userObject) { Enumeration nodes = root.depthFirstEnumeration(); while (nodes.hasMoreElements()) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.nextElement(); if (node.isLeaf() && node.getUserObject().equals(userObject)) return node; }...
private DefaultMutableTreeNode findNode(Object userObject) { Enumeration nodes = root.depthFirstEnumeration(); while (nodes.hasMoreElements()) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.nextElement(); if (node.isLeaf() && node.getUserObject().equals(userObject)) return node; }...
58,679
private String generateRecipeName(String name) { return recipeNames.generateName(name); }
public String generateRecipeName(String name) { return recipeNames.generateName(name); }
58,680
private String generateSocietyName(String name) { return societyNames.generateName(name); }
public String generateSocietyName(String name) { return societyNames.generateName(name); }
58,681
public Experiment[] getExperiments() { ArrayList experiments = new ArrayList(); Enumeration nodes = root.depthFirstEnumeration(); while (nodes.hasMoreElements()) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.nextElement(); if (node.isLeaf()) { Object o = node.getUser...
private ArrayList getExperiments() { ArrayList experiments = new ArrayList(); Enumeration nodes = root.depthFirstEnumeration(); while (nodes.hasMoreElements()) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.nextElement(); if (node.isLeaf()) { Object o = node.getUserOb...
58,682
public Experiment[] getExperiments() { ArrayList experiments = new ArrayList(); Enumeration nodes = root.depthFirstEnumeration(); while (nodes.hasMoreElements()) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.nextElement(); if (node.isLeaf()) { Object o = node.getUser...
public Experiment[] getExperiments() { ArrayList experiments = new ArrayList(); Enumeration nodes = root.depthFirstEnumeration(); while (nodes.hasMoreElements()) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.nextElement(); if (node.isLeaf()) { Object o = node.getUser...
58,683
public Experiment[] getExperiments() { ArrayList experiments = new ArrayList(); Enumeration nodes = root.depthFirstEnumeration(); while (nodes.hasMoreElements()) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.nextElement(); if (node.isLeaf()) { Object o = node.getUser...
public Experiment[] getExperiments() { ArrayList experiments = new ArrayList(); Enumeration nodes = root.depthFirstEnumeration(); while (nodes.hasMoreElements()) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.nextElement(); if (node.isLeaf()) { Object o = node.getUser...
58,684
public String getUniqueExperimentName(String originalName, boolean allowExistingName) { String name = null; while (true) { name = (String) JOptionPane.showInputDialog(this, "Enter Experiment Name", "Experiment Name", ...
public String getUniqueExperimentName(String originalName, boolean allowExistingName) { String name = null; while (true) { name = (String) JOptionPane.showInputDialog(this, "Enter Experiment Name", "Experiment Name", ...
58,685
private String getUniqueName(String prompt, String errorMsgTitle, UniqueNameSet uniqueNames) { String name; while (true) { name = JOptionPane.showInputDialog(prompt); if (name == null || name.equals("")) return null; if (!uniqueNames.contains(name)) break; ...
private String getUniqueName(String prompt, String errorMsgTitle, UniqueNameSet uniqueNames) { String name; while (true) { name = JOptionPane.showInputDialog(prompt); if (name == null || name.equals("")) return null; if (!uniqueNames.contains(name)) break; ...
58,686
private String getUniqueName(String prompt, String errorMsgTitle, UniqueNameSet uniqueNames) { String name; while (true) { name = JOptionPane.showInputDialog(prompt); if (name == null || name.equals("")) return null; if (!uniqueNames.contains(name)) break; ...
private String getUniqueName(String prompt, String errorMsgTitle, UniqueNameSet uniqueNames) { String name; while (true) { name = JOptionPane.showInputDialog(prompt); if (name == null || name.equals("")) return null; if (!uniqueNames.contains(name)) break; ...
58,687
public String getUniqueRecipeName(String originalName, boolean allowExistingName) { String name = null; while (true) { name = (String) JOptionPane.showInputDialog(this, "Enter Recipe Name", "Recipe Name", ...
public String getUniqueRecipeName(String originalName, boolean allowExistingName) { String name = null; while (true) { name = (String) JOptionPane.showInputDialog(this, "Enter Recipe Name", "Recipe Name", ...
58,688
public void newFolder() { String name = getUniqueName("New folder name", "Folder Name Not Unique", folderNames); if (name == null) return; DefaultMutableTreeNode newNode = new DefaultMutableTreeNode(name, true); addNode(getSelectedNode(), newNo...
public void newFolder() { String name = getUniqueName("New folder name", "Folder Name Not Unique", folderNames); if (name == null) return; DefaultMutableTreeNode newNode = new DefaultMutableTreeNode(name, true); addNode(getSelectedNode(), newNo...
58,689
public void newFolder() { String name = getUniqueName("New folder name", "Folder Name Not Unique", folderNames); if (name == null) return; DefaultMutableTreeNode newNode = new DefaultMutableTreeNode(name, true); addNode(getSelectedNode(), newNo...
public void newFolder() { String name = getUniqueName("New folder name", "Folder Name Not Unique", folderNames); if (name == null) return; DefaultMutableTreeNode newNode = new DefaultMutableTreeNode(name, true); addNode(getSelectedNode(), newNo...
58,690
public void newRecipe() { Object[] values = metNameClassItems; Object answer = JOptionPane.showInputDialog(this, "Select Recipe Type", "Select Recipe", JOptionPane.QUESTION_MESSAGE, null, values, "Empty Recipe"); if (answer instanceof NameClassItem) { NameClassItem item = (...
public void newRecipe() { Object[] values = metNameClassItems; Object answer = JOptionPane.showInputDialog(this, "Select Recipe Type", "Select Recipe", JOptionPane.QUESTION_MESSAGE, null, values, "Empty Recipe"); if (answer instanceof NameClassItem) { NameClassItem item = (...
58,691
private SocietyComponent newSocietyComponent() { // display file chooser to allow user to select file that defines society JFileChooser chooser = new JFileChooser(SocietyFinder.getInstance().getPath()); chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); // int result = chooser.show...
privateSocietyComponentnewSocietyComponent(){//displayfilechoosertoallowusertoselectfilethatdefinessocietyJFileChooserchooser=newJFileChooser(SocietyFinder.getInstance().getPath());chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);//intresult=chooser.showOpenDialog(this);intresult=chooser.showDialog(this...
58,692
public void run() { experiment.saveToDb(saveToDbConflictHandler); // save under new name GUIUtils.timeConsumingTaskEnd(organizer); }
public void run() { experiment.saveToDb(saveToDbConflictHandler); // save under new name GUIUtils.timeConsumingTaskEnd(organizer); }
58,693
public void renameFolder() { String newName = getUniqueName("New folder name", "Folder Name Not Unique", folderNames); if (newName == null) return; DefaultMutableTreeNode node = getSelectedNode(); if (node.getUserObject().equals(newName))...
public void renameFolder() { String newName = getUniqueName("New folder name", "Folder Name Not Unique", folderNames); if (newName == null) return; DefaultMutableTreeNode node = getSelectedNode(); if (node.getUserObject().equals(newName))...
58,695
public void renameRecipe() { DefaultMutableTreeNode node = getSelectedNode(); final RecipeComponent recipe = (RecipeComponent) node.getUserObject(); String originalName = recipe.getRecipeName(); String newName = getUniqueRecipeName(originalName, true); if (newName == null) return; if (newName.e...
public void renameRecipe() { DefaultMutableTreeNode node = getSelectedNode(); final RecipeComponent recipe = (RecipeComponent) node.getUserObject(); String originalName = recipe.getRecipeName(); String newName = getUniqueRecipeName(originalName, true); if (newName == null) return; if (newName.e...
58,697
public void renameRecipe() { DefaultMutableTreeNode node = getSelectedNode(); final RecipeComponent recipe = (RecipeComponent) node.getUserObject(); String originalName = recipe.getRecipeName(); String newName = getUniqueRecipeName(originalName, true); if (newName == null) return; if (newName.e...
public void renameRecipe() { DefaultMutableTreeNode node = getSelectedNode(); final RecipeComponent recipe = (RecipeComponent) node.getUserObject(); String originalName = recipe.getRecipeName(); String newName = getUniqueRecipeName(originalName, true); if (newName == null) return; if (newName.e...
58,698
public void renameRecipe() { DefaultMutableTreeNode node = getSelectedNode(); final RecipeComponent recipe = (RecipeComponent) node.getUserObject(); String originalName = recipe.getRecipeName(); String newName = getUniqueRecipeName(originalName, true); if (newName == null) return; if (newName.e...
public void renameRecipe() { DefaultMutableTreeNode node = getSelectedNode(); final RecipeComponent recipe = (RecipeComponent) node.getUserObject(); String originalName = recipe.getRecipeName(); String newName = getUniqueRecipeName(originalName, true); if (newName == null) return; if (newName.e...
58,699
public void run() { recipe.saveToDatabase(); GUIUtils.timeConsumingTaskEnd(organizer); }
public void run() { experimentCopy.saveToDb(saveToDbConflictHandler); GUIUtils.timeConsumingTaskEnd(organizer); }
58,700
public void renameSociety() { String newName = getUniqueName("New society name", "Society Name Not Unique", societyNames); if (newName == null) return; DefaultMutableTreeNode node = getSelectedNode(); SocietyComponent societyComponen...
public void renameSociety() { String newName = getUniqueName("New society name", "Society Name Not Unique", societyNames); if (newName == null) return; DefaultMutableTreeNode node = getSelectedNode(); SocietyComponent societyComponen...
58,701
public void renameSociety() { String newName = getUniqueName("New society name", "Society Name Not Unique", societyNames); if (newName == null) return; DefaultMutableTreeNode node = getSelectedNode(); SocietyComponent societyComponen...
public void renameSociety() { String newName = getUniqueName("New society name", "Society Name Not Unique", societyNames); if (newName == null) return; DefaultMutableTreeNode node = getSelectedNode(); SocietyComponent societyComponen...
58,702
public void renameSociety() { String newName = getUniqueName("New society name", "Society Name Not Unique", societyNames); if (newName == null) return; DefaultMutableTreeNode node = getSelectedNode(); SocietyComponent societyComponen...
public void renameSociety() { String newName = getUniqueName("New society name", "Society Name Not Unique", societyNames); if (newName == null) return; DefaultMutableTreeNode node = getSelectedNode(); SocietyComponent societyComponen...
58,703
public void run() { exp.saveToDb(saveToDbConflictHandler); // save under new name GUIUtils.timeConsumingTaskEnd(organizer); }
public void run() { experiment.saveToDb(saveToDbConflictHandler); // save under new name GUIUtils.timeConsumingTaskEnd(organizer); }
58,705
public void selectExperimentFromDatabase() { Map experimentNamesMap = ExperimentDB.getExperimentNames(); Set keys = experimentNamesMap.keySet(); JComboBox cb = new JComboBox(keys.toArray(new String[keys.size()])); cb.setEditable(false); JPanel panel = new JPanel(); panel.add(new JLabel("Select Exper...
public void selectExperimentFromDatabase() { Map experimentNamesMap = ExperimentDB.getExperimentNames(); Set keys = experimentNamesMap.keySet(); JComboBox cb = new JComboBox(keys.toArray(new String[keys.size()])); cb.setEditable(false); JPanel panel = new JPanel(); panel.add(new JLabel("Select Exper...
58,706
public void selectExperimentFromDatabase() { Map experimentNamesMap = ExperimentDB.getExperimentNames(); Set keys = experimentNamesMap.keySet(); JComboBox cb = new JComboBox(keys.toArray(new String[keys.size()])); cb.setEditable(false); JPanel panel = new JPanel(); panel.add(new JLabel("Select Exper...
public void selectExperimentFromDatabase() { Map experimentNamesMap = ExperimentDB.getExperimentNames(); Set keys = experimentNamesMap.keySet(); JComboBox cb = new JComboBox(keys.toArray(new String[keys.size()])); cb.setEditable(false); JPanel panel = new JPanel(); panel.add(new JLabel("Select Exper...
58,707
public void run() { // a potentially long process if (cmtDialog.processResults()) { final String trialId = cmtDialog.getTrialId(); if (trialId != null) { Experiment experiment = helper.createExperiment(originalExperimentName, cmtDialog.getExperimentName(), cmtDialog.getExperime...
public void run() { // a potentially long process if (cmtDialog.processResults()) { final String trialId = cmtDialog.getTrialId(); if (trialId != null) { Experiment experiment = helper.createExperiment(originalExperimentName, cmtDialog.getExperimentName(), cmtDialog.getExperime...
58,708
public void selectRecipeFromDatabase() { Map recipeNamesHT = helper.getRecipeNamesFromDatabase(); Set dbRecipeNames = recipeNamesHT.keySet(); if (dbRecipeNames.isEmpty()) { JOptionPane.showMessageDialog(this, "There are no recipes in the database", ...
public void selectRecipeFromDatabase() { Map recipeNamesHT = helper.getRecipeNamesFromDatabase(); Set dbRecipeNames = recipeNamesHT.keySet(); if (dbRecipeNames.isEmpty()) { JOptionPane.showMessageDialog(this, "There are no recipes in the database", ...
58,709
public void startConsole() { DefaultMutableTreeNode node = getSelectedNode(); Object o = node.getUserObject(); Experiment experiment; if (o instanceof SocietyComponent) { SocietyComponent sc = (SocietyComponent) o; String name = "Temp Experiment for " + sc.getSocietyName(); name = experimen...
public void startConsole() { DefaultMutableTreeNode node = getSelectedNode(); Object o = node.getUserObject(); Experiment experiment; if (o instanceof SocietyComponent) { SocietyComponent sc = (SocietyComponent) o; String name = "Temp Experiment for " + sc.getSocietyName(); name = experimen...
58,710
public void startConsole() { DefaultMutableTreeNode node = getSelectedNode(); Object o = node.getUserObject(); Experiment experiment; if (o instanceof SocietyComponent) { SocietyComponent sc = (SocietyComponent) o; String name = "Temp Experiment for " + sc.getSocietyName(); name = experimen...
public void startConsole() { DefaultMutableTreeNode node = getSelectedNode(); Object o = node.getUserObject(); Experiment experiment; if (o instanceof SocietyComponent) { SocietyComponent sc = (SocietyComponent) o; String name = "Temp Experiment for " + sc.getSocietyName(); name = experimen...
58,711
public void startExperimentBuilder() { Experiment experiment = null; DefaultMutableTreeNode node = getSelectedNode(); Object o = node.getUserObject(); if (o instanceof RecipeComponent || o instanceof SocietyComponent) { if (o instanceof SocietyComponent) { SocietyComponent sc = (SocietyCompone...
public void startExperimentBuilder() { Experiment experiment = null; DefaultMutableTreeNode node = getSelectedNode(); Object o = node.getUserObject(); if (o instanceof RecipeComponent || o instanceof SocietyComponent) { if (o instanceof SocietyComponent) { SocietyComponent sc = (SocietyCompone...
58,712
public void startExperimentBuilder() { Experiment experiment = null; DefaultMutableTreeNode node = getSelectedNode(); Object o = node.getUserObject(); if (o instanceof RecipeComponent || o instanceof SocietyComponent) { if (o instanceof SocietyComponent) { SocietyComponent sc = (SocietyCompone...
public void startExperimentBuilder() { Experiment experiment = null; DefaultMutableTreeNode node = getSelectedNode(); Object o = node.getUserObject(); if (o instanceof RecipeComponent || o instanceof SocietyComponent) { if (o instanceof SocietyComponent) { SocietyComponent sc = (SocietyCompone...
58,713
protected void generate() throws Exception { Class type = getSuperclass(); List constructors = new ArrayList(Arrays.asList(type.getDeclaredConstructors())); filterMembers(constructors, new VisibilityFilter(type)); if (constructors.size() == 0) { throw new IllegalArgumentExcept...
protected void generate() throws Exception { Class type = getSuperclass(); List constructors = new ArrayList(Arrays.asList(type.getDeclaredConstructors())); filterMembers(constructors, new VisibilityFilter(type)); if (constructors.size() == 0) { throw new IllegalArgumentExcept...
58,715
protected void generate() throws Exception { Class type = getSuperclass(); List constructors = new ArrayList(Arrays.asList(type.getDeclaredConstructors())); filterMembers(constructors, new VisibilityFilter(type)); if (constructors.size() == 0) { throw new IllegalArgumentExcept...
protected void generate() throws Exception { Class type = getSuperclass(); List constructors = new ArrayList(Arrays.asList(type.getDeclaredConstructors())); filterMembers(constructors, new VisibilityFilter(type)); if (constructors.size() == 0) { throw new IllegalArgumentExcept...
58,716
private void generateFactory() throws Exception { int[] keys = getCallbackKeys(); // Factory.getCallback(int) begin_method(GET_CALLBACK); load_this(); load_arg(0); process_switch(keys, new ProcessSwitchCallback() { public void processCase(int key, Label end) ...
private void generateFactory(List constructors) throws Exception { int[] keys = getCallbackKeys(); // Factory.getCallback(int) begin_method(GET_CALLBACK); load_this(); load_arg(0); process_switch(keys, new ProcessSwitchCallback() { public void processCase(int...
58,717
private void generateFactory() throws Exception { int[] keys = getCallbackKeys(); // Factory.getCallback(int) begin_method(GET_CALLBACK); load_this(); load_arg(0); process_switch(keys, new ProcessSwitchCallback() { public void processCase(int key, Label end) ...
private void generateFactory() throws Exception { int[] keys = getCallbackKeys(); // Factory.getCallback(int) begin_method(GET_CALLBACK); load_this(); load_arg(0); process_switch(keys, new ProcessSwitchCallback() { public void processCase(int key, Label end) ...
58,718
private void generateFactory() throws Exception { int[] keys = getCallbackKeys(); // Factory.getCallback(int) begin_method(GET_CALLBACK); load_this(); load_arg(0); process_switch(keys, new ProcessSwitchCallback() { public void processCase(int key, Label end) ...
private void generateFactory() throws Exception { int[] keys = getCallbackKeys(); // Factory.getCallback(int) begin_method(GET_CALLBACK); load_this(); load_arg(0); process_switch(keys, new ProcessSwitchCallback() { public void processCase(int key, Label end) ...
58,719
private void generateFactory() throws Exception { int[] keys = getCallbackKeys(); // Factory.getCallback(int) begin_method(GET_CALLBACK); load_this(); load_arg(0); process_switch(keys, new ProcessSwitchCallback() { public void processCase(int key, Label end) ...
private void generateFactory() throws Exception { int[] keys = getCallbackKeys(); // Factory.getCallback(int) begin_method(GET_CALLBACK); load_this(); load_arg(0); process_switch(keys, new ProcessSwitchCallback() { public void processCase(int key, Label end) ...
58,720
private void generateStatic(List constructors, CallbackGenerator[] generators, CallbackGenerator.Context[] contexts) throws Exception { begin_static(); new_instance(HashMap.class); dup(); invoke_constructor(HashMap.class); ...
private void generateStatic(List constructors, CallbackGenerator[] generators, CallbackGenerator.Context[] contexts) throws Exception { begin_static(); new_instance(HashMap.class); dup(); invoke_constructor(HashMap.class); ...
58,721
int accept(Member member);
int accept(Member member);
58,722
static CallbackGenerator getGenerator(int type) { switch (type) { case INTERCEPT: return MethodInterceptorGenerator.INSTANCE; case LAZY_LOAD: return LazyLoaderGenerator.INSTANCE; case NO_OP: return NoOpCallbackGenerator.INSTANCE; case JDK_PROXY: ...
static CallbackGenerator getGenerator(int type) { switch (type) { case INTERCEPT: return MethodInterceptorGenerator.INSTANCE; case LAZY_LOAD: return LazyLoaderGenerator.INSTANCE; case NO_OP: return NoOpCallbackGenerator.INSTANCE; case JDK_PROXY: ...
58,723
static Class getType(int type) { switch (type) { case JDK_PROXY: case INTERCEPT: return MethodInterceptor.class; case LAZY_LOAD: return LazyLoader.class; default: return null; } }
static Class getType(int type) { switch (type) { case INTERCEPT: return MethodInterceptor.class; case LAZY_LOAD: return LazyLoader.class; default: return null; } }
58,724
void generate(CodeGenerator cg, List methods, Context context) throws Exception;
void generate(CodeGenerator cg, List methods, Context context) throws Exception;
58,726
void generateStatic(CodeGenerator cg, List methods) throws Exception;
void generateStatic(CodeGenerator cg, List methods) throws Exception;
58,727
public DefaultArtifact(ModuleRevisionId mrid, Date publicationDate, String name, String type, String ext, Map extraAttributes) { this(mrid, publicationDate, name, type, ext, null, extraAttributes); }
public DefaultArtifact(ModuleRevisionId mrid, Date publicationDate, String name, String type, String ext, Map extraAttributes) { this(mrid, publicationDate, name, type, ext, null, extraAttributes); }
58,728
public static Artifact cloneWithAnotherType(Artifact artifact, String newType) { return new DefaultArtifact(artifact.getModuleRevisionId(), artifact.getPublicationDate(), artifact.getName(), newType, artifact.getExt(), artifact.getExtraAttributes()); }
public static Artifact cloneWithAnotherType(Artifact artifact, String newType) { return new DefaultArtifact(artifact.getModuleRevisionId(), artifact.getPublicationDate(), artifact.getName(), newType, artifact.getExt(), artifact.getUrl(), artifact.getExtraAttributes()); }
58,729