bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public String toXML(){ StringBuffer sb = new StringBuffer(); int indent = 0; sb.append(" <style>\n"); // this is the BJCP style dtd: sb.append(" <subcategory id=\"" + catNum + "\">"); indent = 4; sb.append(xmlElement("name", name, indent)); sb.append(xmlElement("aroma", aroma, indent)); ...
public String toXML(){ StringBuffer sb = new StringBuffer(); int indent = 0; sb.append(" <style>\n"); // this is the BJCP style dtd: sb.append(" <subcategory id=\"" + catNum + "\">"); indent = 4; sb.append(xmlElement("name", name, indent)); sb.append(xmlElement("aroma", aroma, indent)); ...
1,115,817
public String toXML(){ StringBuffer sb = new StringBuffer(); int indent = 0; sb.append(" <style>\n"); // this is the BJCP style dtd: sb.append(" <subcategory id=\"" + catNum + "\">"); indent = 4; sb.append(xmlElement("name", name, indent)); sb.append(xmlElement("aroma", aroma, indent)); ...
public String toXML(){ StringBuffer sb = new StringBuffer(); int indent = 0; sb.append(" <style>\n"); // this is the BJCP style dtd: sb.append(" <subcategory id=\"" + catNum + "\">"); indent = 4; sb.append(xmlElement("name", name, indent)); sb.append(xmlElement("aroma", aroma, indent)); ...
1,115,818
public Object getValueAt(int row, int col) { try { switch (col) { case 0 : return data.getStepType(row); case 1 : return data.getStepMethod(row); case 2 : return new Double(data.getStepStartTemp(row)) ; case 3 : return new Double(data.getStepEndTemp(row)) ; case 4 : return ...
public Object getValueAt(int row, int col) { try { switch (col) { case 0 : return data.getStepType(row); case 1 : return data.getStepMethod(row); case 2 : return SBStringUtils.df1.format(data.getStepStartTemp(row)); case 3 : return new Double(data.getStepEndTemp(row)) ; case 4 ...
1,115,820
public Object getValueAt(int row, int col) { try { switch (col) { case 0 : return data.getStepType(row); case 1 : return data.getStepMethod(row); case 2 : return new Double(data.getStepStartTemp(row)) ; case 3 : return new Double(data.getStepEndTemp(row)) ; case 4 : return ...
public Object getValueAt(int row, int col) { try { switch (col) { case 0 : return data.getStepType(row); case 1 : return data.getStepMethod(row); case 2 : return new Double(data.getStepStartTemp(row)) ; case 3 : return SBStringUtils.df1.format(data.getStepEndTemp(row)) ; case 4...
1,115,821
private static void setDuplexReference(Config compConf, XmlPullParser parser, Bundle declaringBundle) throws IllegalXMLException, XmlPullParserException, IOException { String interfaceName = null; // String target = null; String bind = null; String unbind = null; ...
private static void setDuplexReference(Config compConf, XmlPullParser parser, Bundle declaringBundle) throws IllegalXMLException, XmlPullParserException, IOException { String interfaceName = null; // String target = null; String bind = null; String unbind = null; ...
1,115,822
private static void setReference(Config compConf, XmlPullParser parser, Bundle declaringBundle) throws IllegalXMLException, XmlPullParserException, IOException { String name = null; String interfaceName = null; String target = null; String bind = null; String...
private static void setReference(Config compConf, XmlPullParser parser, Bundle declaringBundle) throws IllegalXMLException, XmlPullParserException, IOException { String name = null; String interfaceName = null; String target = null; String bind = null; String...
1,115,823
private static void setReference(Config compConf, XmlPullParser parser, Bundle declaringBundle) throws IllegalXMLException, XmlPullParserException, IOException { String name = null; String interfaceName = null; String target = null; String bind = null; String...
private static void setReference(Config compConf, XmlPullParser parser, Bundle declaringBundle) throws IllegalXMLException, XmlPullParserException, IOException { String name = null; String interfaceName = null; String target = null; String bind = null; String...
1,115,824
private static void setService(Config compConf, XmlPullParser parser, Bundle declaringBundle) throws IllegalXMLException, XmlPullParserException, IOException { boolean interfaceFound = false; /* If there is an attribute in the service tag */ for (int i = 0; i < parser.getA...
private static void setService(Config compConf, XmlPullParser parser, Bundle declaringBundle) throws IllegalXMLException, XmlPullParserException, IOException { boolean interfaceFound = false; /* If there is an attribute in the service tag */ for (int i = 0; i < parser.getA...
1,115,826
private static void setService(Config compConf, XmlPullParser parser, Bundle declaringBundle) throws IllegalXMLException, XmlPullParserException, IOException { boolean interfaceFound = false; /* If there is an attribute in the service tag */ for (int i = 0; i < parser.getA...
private static void setService(Config compConf, XmlPullParser parser, Bundle declaringBundle) throws IllegalXMLException, XmlPullParserException, IOException { boolean interfaceFound = false; /* If there is an attribute in the service tag */ for (int i = 0; i < parser.getA...
1,115,827
private void displayDilution(){ postBoilText.setValue(new Double(myRecipe.getPostBoilVol(myRecipe.getVolUnits()))); diluteWithText.setValue(new Double(myRecipe.dilution.getAddVol())); totalVolumeSpinner.setValue(new Double(myRecipe.dilution.getDilVol())); ibuDilutedSpin.setValue(new Double(myRecipe.dilution.getD...
public void displayDilution(){ postBoilText.setValue(new Double(myRecipe.getPostBoilVol(myRecipe.getVolUnits()))); diluteWithText.setValue(new Double(myRecipe.dilution.getAddVol())); totalVolumeSpinner.setValue(new Double(myRecipe.dilution.getDilVol())); ibuDilutedSpin.setValue(new Double(myRecipe.dilution.getDi...
1,115,829
public Object log(Object param) throws ParseException { if (param instanceof Number) { double num = ((Number) param).doubleValue(); if( num > 0) return new Double(Math.log(num)/LOG10); else { Complex temp = new Complex(num); return temp.log().div(CLOG10); } } else if (param instanceof Complex)...
public Object log(Object param) throws ParseException { if (param instanceof Number) { double num = ((Number) param).doubleValue(); if( num > 0) return new Double(Math.log(num)/LOG10); else { Complex temp = new Complex(num); return temp.log().div(CLOG10); } } else if (param instanceof Complex)...
1,115,830
public Object log(Object param) throws ParseException { if (param instanceof Number) { double num = ((Number) param).doubleValue(); if( num > 0) return new Double(Math.log(num)/LOG10); else { Complex temp = new Complex(num); return temp.log().div(CLOG10); } } else if (param instanceof Complex)...
public Object log(Object param) throws ParseException { if (param instanceof Number) { double num = ((Number) param).doubleValue(); if( num > 0) return new Double(Math.log(num)/LOG10); else { Complex temp = new Complex(num); return temp.log().div(CLOG10); } } else if (param instanceof Complex)...
1,115,831
public void addFile(String file, String revision) { m_files.addElement(new RCSFile(file, revision)); }
public void addFile(String file, String revision) { m_files.addElement(new RCSFile(file, revision)); }
1,115,832
public void testsendPasswordConfirmation() throws MessagingException { PasswordConfirmationMailForm mailForm = new PasswordConfirmationMailForm(); Operator operator = new Operator(); mailForm.setOperator(operator); List<Server> serverList = new ArrayList<Server>(); // Server transportServ...
public void testsendPasswordConfirmation() throws MessagingException { PasswordConfirmationMailForm mailForm = new PasswordConfirmationMailForm(); Operator operator = new Operator(); mailForm.setOperator(operator); List<Server> serverList = new ArrayList<Server>(); // Server transportServ...
1,115,835
public void testsendPasswordConfirmation() throws MessagingException { PasswordConfirmationMailForm mailForm = new PasswordConfirmationMailForm(); Operator operator = new Operator(); mailForm.setOperator(operator); List<Server> serverList = new ArrayList<Server>(); // Server transportServ...
public void testsendPasswordConfirmation() throws MessagingException { PasswordConfirmationMailForm mailForm = new PasswordConfirmationMailForm(); Operator operator = new Operator(); mailForm.setOperator(operator); List<Server> serverList = new ArrayList<Server>(); // Server transportServ...
1,115,836
public Operator createLocalDefaultOperator() { Operator operator = OperatorCreator.operatorFactory("DEFAULT", OperationMode.LOCAL, Locale.getDefault()); Entity entity = OperatorCreator.entityFactory(operator, "DEFAULT"); Identity identity = AuthenticationCreator.identityFactory("...
public Operator createLocalDefaultOperator() { Operator operator = OperatorCreator.operatorFactory("DEFAULT", OperationMode.LOCAL, Locale.getDefault()); Entity entity = OperatorCreator.entityFactory(operator, "DEFAULT"); Identity identity = AuthenticationCreator.identityFactory("...
1,115,837
public void actionPerformed(ActionEvent e) { Object o = e.getSource(); if (o == ratioText) { double d = Double.parseDouble(ratioText.getText()); myRecipe.mash.setMashRatio(d); } else if (o == volUnitsCombo) { String s = (String) volUnitsComboModel.getSelectedItem(); myRecipe.mash.setMashVolUnits(s); } else...
public void actionPerformed(ActionEvent e) { Object o = e.getSource(); if (o == ratioText) { double d = Double.parseDouble(ratioText.getText()); myRecipe.mash.setMashRatio(d); } else if (o == volUnitsCombo) { String s = (String) volUnitsComboModel.getSelectedItem(); myRecipe.mash.setMashVolUnits(s); } else...
1,115,838
public void actionPerformed(ActionEvent e) { Object o = e.getSource(); if (o == ratioText) { double d = Double.parseDouble(ratioText.getText()); myRecipe.mash.setMashRatio(d); } else if (o == volUnitsCombo) { String s = (String) volUnitsComboModel.getSelectedItem(); myRecipe.mash.setMashVolUnits(s); } else...
public void actionPerformed(ActionEvent e) { Object o = e.getSource(); if (o == ratioText) { double d = Double.parseDouble(ratioText.getText()); myRecipe.mash.setMashRatio(d); } else if (o == volUnitsCombo) { String s = (String) volUnitsComboModel.getSelectedItem(); myRecipe.mash.setMashVolUnits(s); } else...
1,115,839
public void displayMash() { if (myRecipe != null) { recipeNameLabel.setText(myRecipe.getName()); volUnitsComboModel.addOrInsert(myRecipe.mash.getMashVolUnits()); // temp units: if (myRecipe.mash.getMashTempUnits().equals("F")) tempFrb.setSelected(true); else tempCrb.setSelected(true); grainTempULabe...
public void displayMash() { if (myRecipe != null) { recipeNameLabel.setText(myRecipe.getName()); volUnitsComboModel.addOrInsert(myRecipe.mash.getMashVolUnits()); // temp units: if (myRecipe.mash.getMashTempUnits().equals("F")) tempFrb.setSelected(true); else tempCrb.setSelected(true); grainTempULabe...
1,115,840
private void initGUI() { try { GridBagLayout thisLayout = new GridBagLayout(); thisLayout.columnWeights = new double[]{0.3, 0.3}; thisLayout.columnWidths = new int[]{7, 7}; thisLayout.rowWeights = new double[]{0.1, 0.8, 0.1}; thisLayout.rowHeights = new int[]{7, 7, 7}; this.setLayout(thisLayout); { t...
private void initGUI() { try { GridBagLayout thisLayout = new GridBagLayout(); thisLayout.columnWeights = new double[]{0.3, 0.3}; thisLayout.columnWidths = new int[]{7, 7}; thisLayout.rowWeights = new double[]{0.1, 0.8, 0.1}; thisLayout.rowHeights = new int[]{7, 7, 7}; this.setLayout(thisLayout); { t...
1,115,841
private void initGUI() { try { GridBagLayout thisLayout = new GridBagLayout(); thisLayout.columnWeights = new double[]{0.3, 0.3}; thisLayout.columnWidths = new int[]{7, 7}; thisLayout.rowWeights = new double[]{0.1, 0.8, 0.1}; thisLayout.rowHeights = new int[]{7, 7, 7}; this.setLayout(thisLayout); { t...
private void initGUI() { try { GridBagLayout thisLayout = new GridBagLayout(); thisLayout.columnWeights = new double[]{0.3, 0.3}; thisLayout.columnWidths = new int[]{7, 7}; thisLayout.rowWeights = new double[]{0.1, 0.8, 0.1}; thisLayout.rowHeights = new int[]{7, 7, 7}; this.setLayout(thisLayout); { t...
1,115,842
public void run(Stack stack) throws ParseException { // Check if stack is null if (null == stack) { throw new ParseException("Stack argument null"); } Object param = null; double result = 0; int i = 0; // repeat summation for each one of the current parameters ...
public void run(Stack stack) throws ParseException { // Check if stack is null if (null == stack) { throw new ParseException("Stack argument null"); } Object param = null; double result = 0; int i = 0; // repeat summation for each one of the current parameters ...
1,115,843
public void run(Stack stack) throws ParseException { // Check if stack is null if (null == stack) { throw new ParseException("Stack argument null"); } Object param = null; double result = 0; int i = 0; // repeat summation for each one of the current parameters ...
public void run(Stack stack) throws ParseException { // Check if stack is null if (null == stack) { throw new ParseException("Stack argument null"); } Object param = null; double result = 0; int i = 0; // repeat summation for each one of the current parameters ...
1,115,844
public void run(Stack stack) throws ParseException { // Check if stack is null if (null == stack) { throw new ParseException("Stack argument null"); } Object param = null; double result = 0; int i = 0; // repeat summation for each one of the current parameters ...
public void run(Stack stack) throws ParseException { // Check if stack is null if (null == stack) { throw new ParseException("Stack argument null"); } Object param = null; double result = 0; int i = 0; // repeat summation for each one of the current parameters ...
1,115,845
public void run(Stack stack) throws ParseException { // Check if stack is null if (null == stack) { throw new ParseException("Stack argument null"); } Object param = null; double result = 0; int i = 0; // repeat summation for each one of the current parameters ...
public void run(Stack stack) throws ParseException { // Check if stack is null if (null == stack) { throw new ParseException("Stack argument null"); } Object param = null; double result = 0; int i = 0; // repeat summation for each one of the current parameters ...
1,115,846
public UnitRangeImpl getAmpRange(){ return ampConfig.getAmpRange(); }
public UnitRangeImpl getAmpRange(LocalSeismogram seis){ return ampConfig.getAmpRange(seis); }
1,115,847
private void layoutUi() { JPanel buttons = new JPanel(); okButton = new JButton("OK"); okButton.addActionListener(this); JButton cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(okButton); ge...
private void layoutUi() { JPanel buttons = new JPanel(); okButton = new JButton("OK"); okButton.addActionListener(this); JButton cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(okButton); ge...
1,115,848
public BigReals(int scale,int roundMode) { this.roundMode = roundMode; this.scale = scale; }
public BigReals(int scale,int roundMode) { this.roundMode = roundMode; this.scale = scale; }
1,115,850
public Number div(Number num1, Number num2) { BigDecimal a = (BigDecimal) num1; BigDecimal b = (BigDecimal) num2; if(scale>0) return a.divide(b,scale,roundMode); else return a.divide(b,roundMode); }
public Number div(Number num1, Number num2) { BigDecimal a = (BigDecimal) num1; BigDecimal b = (BigDecimal) num2; if(scale>0) return a.divide(b,scale,roundMode); else return a.divide(b,roundMode); }
1,115,851
public String toXML() { StringBuffer sb = new StringBuffer(); sb.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"); sb.append("<STRANGEBREWRECIPE version = \"" + version + "\">\n"); sb.append("<!-- This is a SBJava export. StrangeBrew 1.8 will not import it. -->\n"); sb.append(" <DETAILS>\n"); sb.app...
public String toXML() { StringBuffer sb = new StringBuffer(); sb.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"); sb.append("<STRANGEBREWRECIPE version = \"" + version + "\">\n"); sb.append("<!-- This is a SBJava export. StrangeBrew 1.8 will not import it. -->\n"); sb.append(" <DETAILS>\n"); sb.app...
1,115,854
public String toXML(){ StringBuffer sb = new StringBuffer(); sb.append( " <ITEM>\n" ); sb.append( " <HOP>"+getName()+"</HOP>\n" ); sb.append( " <AMOUNT>"+getAmountAs(getUnits())+"</AMOUNT>\n" ); sb.append( " <TIME>"+getMinutes()+"</TIME>\n" ); sb.append( " <UNITS>"+getUni...
public String toXML(){ StringBuffer sb = new StringBuffer(); sb.append( " <ITEM>\n" ); sb.append( " <HOP>"+getName()+"</HOP>\n" ); sb.append( " <AMOUNT>"+getAmountAs(getUnits())+"</AMOUNT>\n" ); sb.append( " <TIME>"+getMinutes()+"</TIME>\n" ); sb.append( " <UNITS>"+getUni...
1,115,855
public String toXML(){ StringBuffer sb = new StringBuffer(); sb.append( " <ITEM>\n" ); sb.append( " <NAME>"+getName()+"</NAME>\n" ); sb.append( " <AMOUNT>"+getAmountAs(getUnits())+"</AMOUNT>\n" ); sb.append( " <UNITS>"+getUnits()+"</UNITS>\n" ); sb.append( " <STAGE>"+stag...
public String toXML(){ StringBuffer sb = new StringBuffer(); sb.append( " <ITEM>\n" ); sb.append( " <NAME>"+getName()+"</NAME>\n" ); sb.append( " <AMOUNT>"+getAmountAs(getUnits())+"</AMOUNT>\n" ); sb.append( " <UNITS>"+getUnits()+"</UNITS>\n" ); sb.append( " <STAGE>"+stag...
1,115,856
private R update(TreeMap<Integer, R> m, Integer key, R value) { R first = m.get(m.firstKey()); R r = m.put(key, value); SortedMap<Integer,R> head = m.headMap(key); if(!head.isEmpty()) { R prev = m.get(head.lastKey()); value.nextBuild = prev.nextBuild; val...
private R update(TreeMap<Integer, R> m, Integer key, R value) { R first = m.isEmpty() ? null : m.get(m.firstKey()); R r = m.put(key, value); SortedMap<Integer,R> head = m.headMap(key); if(!head.isEmpty()) { R prev = m.get(head.lastKey()); value.nextBuild = prev.next...
1,115,857
private R update(TreeMap<Integer, R> m, Integer key, R value) { R first = m.get(m.firstKey()); R r = m.put(key, value); SortedMap<Integer,R> head = m.headMap(key); if(!head.isEmpty()) { R prev = m.get(head.lastKey()); value.nextBuild = prev.nextBuild; val...
private R update(TreeMap<Integer, R> m, Integer key, R value) { R first = m.get(m.firstKey()); R r = m.put(key, value); SortedMap<Integer,R> head = m.headMap(key); if(!head.isEmpty()) { R prev = m.get(head.lastKey()); value.nextBuild = prev.nextBuild; val...
1,115,858
private R update(TreeMap<Integer, R> m, Integer key, R value) { R first = m.get(m.firstKey()); R r = m.put(key, value); SortedMap<Integer,R> head = m.headMap(key); if(!head.isEmpty()) { R prev = m.get(head.lastKey()); value.nextBuild = prev.nextBuild; val...
private R update(TreeMap<Integer, R> m, Integer key, R value) { R first = m.get(m.firstKey()); R r = m.put(key, value); SortedMap<Integer,R> head = m.headMap(key); if(!head.isEmpty()) { R prev = m.get(head.lastKey()); value.nextBuild = prev.nextBuild; val...
1,115,859
public static LocalSeismogramImpl getSeismogram(PSNEventRecord evRec) throws FissuresException{ MicroSecondDate beginTime = microSecondDateFromPSN(evRec.getFixedHeader().getDateTime()); Time time = beginTime.getFissuresTime(); TimeSeriesDataSel data = new TimeSeriesDataSel(); if (evRec.i...
public static LocalSeismogramImpl getSeismogram(PSNEventRecord evRec) throws FissuresException{ MicroSecondDate beginTime = microSecondDateFromPSN(evRec.getFixedHeader().getDateTime()); Time time = beginTime.getFissuresTime(); TimeSeriesDataSel data = new TimeSeriesDataSel(); if (evRec.i...
1,115,860
void process() throws ParserConfigurationException { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = factory.newDocumentBuilder(); String userName = System.getProperty("user.name"); dataset = new XMLDataSet(docBuilder, base, "genid"+Math.roun...
void process() throws ParserConfigurationException { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = factory.newDocumentBuilder(); String userName = System.getProperty("user.name"); dataset = new XMLDataSet(docBuilder, base, "genid"+Math.roun...
1,115,861
protected SortedMap<Integer,RunT> _getRuns() { if(notLoaded) { // if none is loaded yet, do so immediately. synchronized(this) { if(notLoaded) { notLoaded = false; _reload(); } } } if(nextUpd...
protected SortedMap<Integer,RunT> _getRuns() { if(notLoaded || runs==null) { // if none is loaded yet, do so immediately. synchronized(this) { if(notLoaded || runs==null) { notLoaded = false; _reload(); } ...
1,115,862
public JEP() { debug = false; topNode = null; traverse = false; allowUndeclared = false; implicitMul = false; initSymTab(); initFunTab(); errorList = new Vector(); ev = new EvaluatorVisitor(); parser = new Parser(new StringReader("")); //Ensure errors are reported for the initial expression //e.g. No expre...
public JEP() { topNode = null; traverse = false; allowUndeclared = false; implicitMul = false; initSymTab(); initFunTab(); errorList = new Vector(); ev = new EvaluatorVisitor(); parser = new Parser(new StringReader("")); //Ensure errors are reported for the initial expression //e.g. No expression entered ...
1,115,864
private SymbolTable() {}
public SymbolTable(VariableFactory varFac) { vf = varFac; }
1,115,865
public Node parseStream(java.io.Reader stream, JEP jep_in) throws ParseException { restart(stream,jep_in); // Parse the expression, and return the enable_tracing(); Node res = Start(); ...
public Node parseStream(java.io.Reader stream, JEP jep_in) throws ParseException { restart(stream,jep_in); // Parse the expression, and return the enable_tracing(); Node res = Start(); ...
1,115,866
public Object acosh(Object param) throws ParseException { if (param instanceof Complex) { return ((Complex)param).acosh(); } else if (param instanceof Number) { Complex temp = new Complex(((Number)param).doubleValue(),0.0); return temp.acosh(); } throw new ParseException("Invalid parameter type"); }
public Object acosh(Object param) throws ParseException { if (param instanceof Complex) { return ((Complex)param).acosh(); } else if (param instanceof Number) { Complex temp = new Complex(((Number)param).doubleValue(),0.0); return temp.acosh(); } throw new ParseException("Invalid parameter type"); }
1,115,867
public void execute() throws BuildException { File savedDir = m_dir; // may be altered in validate try { validate(); final Properties userList = new Properties(); loadUserlist(userList); for (Enumeration e = m_cvsUsers.elements(); e.hasMoreEl...
public void execute() throws BuildException { File savedDir = m_dir; // may be altered in validate try { validate(); final Properties userList = new Properties(); loadUserlist(userList); for (Enumeration e = m_cvsUsers.elements(); e.hasMoreEl...
1,115,868
public void execute() throws BuildException { File savedDir = m_dir; // may be altered in validate try { validate(); final Properties userList = new Properties(); loadUserlist(userList); for (Enumeration e = m_cvsUsers.elements(); e.hasMoreEl...
public void execute() throws BuildException { File savedDir = m_dir; // may be altered in validate try { validate(); final Properties userList = new Properties(); loadUserlist(userList); for (Enumeration e = m_cvsUsers.elements(); e.hasMoreEl...
1,115,869
public Object sinh(Object param) throws ParseException { if (param instanceof Number) { double value = ((Number)param).doubleValue(); return new Double((Math.exp(value)-Math.exp(-value))/2); } else if (param instanceof Complex) { return ((Complex)param).sinh(); } throw new ParseException("Invalid paramet...
public Object sinh(Object param) throws ParseException { if (param instanceof Complex) { return ((Complex)param).sinh(); } else if (param instanceof Number) { double value = ((Number)param).doubleValue(); return new Double((Math.exp(value)-Math.exp(-value))/2); } else if (param instanceof Complex) { return...
1,115,871
public Object sinh(Object param) throws ParseException { if (param instanceof Number) { double value = ((Number)param).doubleValue(); return new Double((Math.exp(value)-Math.exp(-value))/2); } else if (param instanceof Complex) { return ((Complex)param).sinh(); } throw new ParseException("Invalid paramet...
public Object sinh(Object param) throws ParseException { if (param instanceof Number) { double value = ((Number)param).doubleValue(); return new Double((Math.exp(value)-Math.exp(-value))/2); } else if (param instanceof Complex) { return ((Complex)param).sinh(); } throw new ParseException("Invalid paramet...
1,115,872
public void doConfigSubmit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { Set<Project> upstream = Collections.EMPTY_SET; synchronized(this) { try { if(!Hudson.adminCheck(req,rsp)) return; req.setCharacterEnc...
public void doConfigSubmit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { Set<Project> upstream = Collections.EMPTY_SET; synchronized(this) { try { if(!Hudson.adminCheck(req,rsp)) return; req.setCharacterEnc...
1,115,873
public void createOversizedImage(){ overTimeRange = timeConfig.getTimeRange().getOversizedTimeRange(2); redo = false; Dimension d = getSize(); int sizeScale = 5; int w = d.width * sizeScale, h = d.height; overSize = new Dimension(w, h); overSizedImage = createImage(w, h); displayInterva...
public void createOversizedImage(){ overTimeRange = timeConfig.getTimeRange().getOversizedTimeRange(2); Dimension d = getSize(); int sizeScale = 5; int w = d.width * sizeScale, h = d.height; overSize = new Dimension(w, h); overSizedImage = createImage(w, h); displayInterval = timeConfi...
1,115,874
public void createOversizedImage(){ overTimeRange = timeConfig.getTimeRange().getOversizedTimeRange(2); redo = false; Dimension d = getSize(); int sizeScale = 5; int w = d.width * sizeScale, h = d.height; overSize = new Dimension(w, h); overSizedImage = createImage(w, h); displayInterva...
public void createOversizedImage(){ overTimeRange = timeConfig.getTimeRange().getOversizedTimeRange(2); redo = false; Dimension d = getSize(); int sizeScale = 5; int w = d.width * sizeScale, h = d.height; overSize = new Dimension(w, h); overSizedImage = new SoftReference(createImage(w, h));...
1,115,875
public void createOversizedImage(){ overTimeRange = timeConfig.getTimeRange().getOversizedTimeRange(2); redo = false; Dimension d = getSize(); int sizeScale = 5; int w = d.width * sizeScale, h = d.height; overSize = new Dimension(w, h); overSizedImage = createImage(w, h); displayInterva...
public void createOversizedImage(){ overTimeRange = timeConfig.getTimeRange().getOversizedTimeRange(2); redo = false; Dimension d = getSize(); int sizeScale = 5; int w = d.width * sizeScale, h = d.height; overSize = new Dimension(w, h); overSizedImage = createImage(w, h); displayInterva...
1,115,876
public void paint(Graphics g){ if(redo) this.createOversizedImage(); long endTime = timeConfig.getTimeRange().getEndTime().getMicroSecondTime(); long beginTime = timeConfig.getTimeRange().getBeginTime().getMicroSecondTime(); long overEndTime = overTimeRange.getEndTime().getMicroSecondTime(); long ...
public void paint(Graphics g){ if(overSizedImage == null){ logger.debug("the image is null and is being recreated"); this.createOversizedImage(); long endTime = timeConfig.getTimeRange().getEndTime().getMicroSecondTime(); long beginTime = timeConfig.getTimeRange().getBeginTime().getMicroSecondTime(); ...
1,115,877
public void paint(Graphics g){ if(redo) this.createOversizedImage(); long endTime = timeConfig.getTimeRange().getEndTime().getMicroSecondTime(); long beginTime = timeConfig.getTimeRange().getBeginTime().getMicroSecondTime(); long overEndTime = overTimeRange.getEndTime().getMicroSecondTime(); long ...
public void paint(Graphics g){ if(redo) this.createOversizedImage(); long endTime = timeConfig.getTimeRange().getEndTime().getMicroSecondTime(); long beginTime = timeConfig.getTimeRange().getBeginTime().getMicroSecondTime(); long overEndTime = overTimeRange.getEndTime().getMicroSecondTime(); long ...
1,115,878
public void paint(Graphics g){ if(redo) this.createOversizedImage(); long endTime = timeConfig.getTimeRange().getEndTime().getMicroSecondTime(); long beginTime = timeConfig.getTimeRange().getBeginTime().getMicroSecondTime(); long overEndTime = overTimeRange.getEndTime().getMicroSecondTime(); long ...
public void paint(Graphics g){ if(redo) this.createOversizedImage(); long endTime = timeConfig.getTimeRange().getEndTime().getMicroSecondTime(); long beginTime = timeConfig.getTimeRange().getBeginTime().getMicroSecondTime(); long overEndTime = overTimeRange.getEndTime().getMicroSecondTime(); long ...
1,115,879
public void addSeismogram(LocalSeismogram newSeismogram){ SeismogramPlotter newPlotter = new SeismogramPlotter(newSeismogram, timeConfig, ampConfig); plotters.put(newPlotter, colors[plotters.size()%colors.length]); timeConfig.addSeismogram(newSeismogram); ampConfig.addSeismogram(newSeismogram); redo = true; }
public void addSeismogram(LocalSeismogram newSeismogram){ SeismogramPlotter newPlotter = new SeismogramPlotter(newSeismogram, timeConfig, ampConfig); plotters.put(newPlotter, colors[plotters.size()%colors.length]); timeConfig.addSeismogram(newSeismogram); ampConfig.addSeismogram(newSeismogram); overSizedImage = nu...
1,115,880
public void redraw(){ redo = true; repaint(); }
public void redraw(){ overSizedImage = null; repaint(); }
1,115,881
protected void resize() { Dimension dim = getSize(); Insets insets = getInsets(); timeScaleMap.setTotalPixels(dim.width-insets.left-insets.right); ampScaleMap.setTotalPixels(dim.height-insets.top-insets.bottom); redo = true; repaint(); }
protected void resize() { Dimension dim = getSize(); Insets insets = getInsets(); timeScaleMap.setTotalPixels(dim.width-insets.left-insets.right); ampScaleMap.setTotalPixels(dim.height-insets.top-insets.bottom); overSizedImage = null; repaint(); }
1,115,882
public void updateAmpRange(){ redo = true; this.ampScaleMap.setUnitRange(ampConfig.getAmpRange()); repaint(); }
public void updateAmpRange(){ overSizedImage = null; this.ampScaleMap.setUnitRange(ampConfig.getAmpRange()); repaint(); }
1,115,883
private void fireSecurityRuleAdded( final SecurityRule rule, final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); ...
private void fireSecurityRuleAdded( final SecurityRule rule, final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); ...
1,115,884
private void fireSecurityRuleAdded( final SecurityRule rule, final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); ...
private void fireSecurityRuleAdded( final SecurityRule rule, final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); ...
1,115,885
private void fireSecurityRuleAdded( final SecurityRule rule, final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); ...
private void fireSecurityRuleAdded( final SecurityRule rule, final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); ...
1,115,886
private void fireSecurityRuleAdded( final SecurityRule rule, final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); ...
private void fireSecurityRuleAdded( final SecurityRule rule, final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); ...
1,115,887
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
1,115,888
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
1,115,889
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
1,115,890
private void fireSecurityRuleChanged( final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChan...
private void fireSecurityRuleChanged( final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChan...
1,115,891
private void fireSecurityRuleChanged( final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChan...
private void fireSecurityRuleChanged( final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChan...
1,115,892
private void fireSecurityRuleChanged( final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChan...
private void fireSecurityRuleChanged( final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChan...
1,115,893
private void fireSecurityRuleChanged( final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChan...
private void fireSecurityRuleChanged( final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChan...
1,115,894
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
1,115,895
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
1,115,896
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
1,115,897
private void fireSecurityRuleRemoved( final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChan...
private void fireSecurityRuleRemoved( final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChan...
1,115,898
private void fireSecurityRuleRemoved( final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChan...
private void fireSecurityRuleRemoved( final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChan...
1,115,899
private void fireSecurityRuleRemoved( final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChan...
private void fireSecurityRuleRemoved( final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChan...
1,115,900
private void fireSecurityRuleRemoved( final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChan...
private void fireSecurityRuleRemoved( final int position ) { // invoke update in event dispatcher AsynchronousDispatcher.invokeLater( new Runnable() { public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChan...
1,115,901
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
1,115,902
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
1,115,903
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
public void run() { Object[] listeners = listenerList.toArray(); SecurityRulesChangeListener listener; // Process the listeners last to first, notifying // those that are interested in this event for ( int i = listeners.le...
1,115,904
public FilePath getWorkspace() { Slave s = getSlave(); if(s ==null) return new FilePath(new File(root,"workspace")); else return s.getFilePath(); }
public FilePath getWorkspace() { Slave s = getSlave(); if(s ==null) return new FilePath(new File(root,"workspace")); else return s.getFilePath().child("workspace").child(getName()); }
1,115,905
private void initGUI() { try { GridBagLayout thisLayout = new GridBagLayout(); thisLayout.columnWeights = new double[] {0.1, 0.1, 0.1}; thisLayout.columnWidths = new int[] {7, 7, 7}; thisLayout.rowWeights = new double[] {0.1, 0.8, 0.1, 0.1, 0.1, 0.1}; thisLayout.rowHeights = new int[] {7, 7, 7, 7, 7, 7}; ...
private void initGUI() { try { GridBagLayout thisLayout = new GridBagLayout(); thisLayout.columnWeights = new double[] {0.1, 0.1, 0.1}; thisLayout.columnWidths = new int[] {7, 7, 7}; thisLayout.rowWeights = new double[] {0.1, 0.8, 0.1, 0.1, 0.1, 0.1}; thisLayout.rowHeights = new int[] {7, 7, 7, 7, 7, 7}; ...
1,115,906
public Object getValueAt(int row, int col) { try { switch (col) { case 0 : return df.format(data.getNoteDate(row)); case 1 : return data.getNoteType(row); case 2 : return data.getNoteNote(row); } } catch (Exception e) { }; return ""; }
public Object getValueAt(int row, int col) { try { switch (col) { case 0 : return SBStringUtils.dateFormatShort.format(data.getNoteDate(row)); case 1 : return data.getNoteType(row); case 2 : return data.getNoteNote(row); } } catch (Exception e) { }; return ""; }
1,115,907
public void setValueAt(Object value, int row, int col) { try { switch (col) { case 0 : try { Date d = df.parse(value.toString()); data.setNoteDate(row, d); } catch(ParseException e) { System.out.println("Unable to par...
public void setValueAt(Object value, int row, int col) { try { switch (col) { case 0 : try { Date d = df.parse(value.toString()); data.setNoteDate(row, d); } catch(ParseException e) { System.out.println("Unable to par...
1,115,908
public void create(ServletAdapterList owner) { String name = beanName; if(name==null) name=urlPattern; owner.createHttpAdapter(name, urlPattern, endpoint); }
public void create(ServletAdapterList owner) { String name = beanName; if(name==null) name=urlPattern; owner.createAdapter(name, urlPattern, endpoint); }
1,115,910
private boolean equal(Object param1, Object param2) throws Exception { double tolerance = 1e-15; if ((param1 instanceof Complex) && (param2 instanceof Complex)) { return ((Complex)param1).equals((Complex)param2, tolerance); } if ((param1 instanceof Complex) && (param2 instanceof Number)) { return ((Complex)par...
private boolean equal(Object param1, Object param2) throws Exception { double tolerance = 1e-15; if ((param1 instanceof Complex) && (param2 instanceof Complex)) { return ((Complex)param1).equals((Complex)param2, tolerance); } if ((param1 instanceof Complex) && (param2 instanceof Number)) { return ((Complex)par...
1,115,911
public int deserialize(byte[] inbuf, int offset) throws UnsupportedEncodingException { fileIndex = IOUtil.deserializeIntLE(inbuf, offset); offset += 4; fileSize = IOUtil.deserializeIntLE(inbuf, offset); offset += 4; // Handle Gnotella termination of single null terminated f...
public int deserialize(byte[] inbuf, int offset) throws InvalidMessageException { fileIndex = IOUtil.deserializeIntLE(inbuf, offset); offset += 4; fileSize = IOUtil.deserializeIntLE(inbuf, offset); offset += 4; // Handle Gnotella termination of single null terminated file n...
1,115,912
public int deserialize(byte[] inbuf, int offset) throws UnsupportedEncodingException { fileIndex = IOUtil.deserializeIntLE(inbuf, offset); offset += 4; fileSize = IOUtil.deserializeIntLE(inbuf, offset); offset += 4; // Handle Gnotella termination of single null terminated f...
public int deserialize(byte[] inbuf, int offset) throws UnsupportedEncodingException { fileIndex = IOUtil.deserializeIntLE(inbuf, offset); offset += 4; fileSize = IOUtil.deserializeIntLE(inbuf, offset); offset += 4; // Handle Gnotella termination of single null terminated f...
1,115,913
private void sendQueryRoutingTable() { boolean isUltrapeer = hostMgr.isUltrapeer(); // check if we are a shilded leaf node or a Ultrapeer. // Forwarding QRT is not wanted otherwise. if ( !( hostMgr.isShieldedLeafNode() || isUltrapeer ) ) { return; } Host[] hosts = hostsContainer.getUltrapeerConnecti...
private void sendQueryRoutingTable() { boolean isUltrapeer = hostMgr.isUltrapeer(); // check if we are a shilded leaf node or a Ultrapeer. // Forwarding QRT is not wanted otherwise. if ( !( hostMgr.isShieldedLeafNode() || isUltrapeer ) ) { return; } Host[] hosts = hostsContainer.getUltrapeerConnecti...
1,115,914
private void sendQueryRoutingTable() { boolean isUltrapeer = hostMgr.isUltrapeer(); // check if we are a shilded leaf node or a Ultrapeer. // Forwarding QRT is not wanted otherwise. if ( !( hostMgr.isShieldedLeafNode() || isUltrapeer ) ) { return; } Host[] hosts = hostsContainer.getUltrapeerConnecti...
private void sendQueryRoutingTable() { boolean isUltrapeer = hostMgr.isUltrapeer(); // check if we are a shilded leaf node or a Ultrapeer. // Forwarding QRT is not wanted otherwise. if ( !( hostMgr.isShieldedLeafNode() || isUltrapeer ) ) { return; } Host[] hosts = hostsContainer.getUltrapeerConnecti...
1,115,915
private void sendQueryRoutingTable() { boolean isUltrapeer = hostMgr.isUltrapeer(); // check if we are a shilded leaf node or a Ultrapeer. // Forwarding QRT is not wanted otherwise. if ( !( hostMgr.isShieldedLeafNode() || isUltrapeer ) ) { return; } Host[] hosts = hostsContainer.getUltrapeerConnecti...
private void sendQueryRoutingTable() { boolean isUltrapeer = hostMgr.isUltrapeer(); // check if we are a shilded leaf node or a Ultrapeer. // Forwarding QRT is not wanted otherwise. if ( !( hostMgr.isShieldedLeafNode() || isUltrapeer ) ) { return; } Host[] hosts = hostsContainer.getUltrapeerConnecti...
1,115,916
public void pingHost( Host host, byte ttl ) { // Send ping msg. PingMsg pingMsg = new PingMsg(); pingMsg.getHeader().setTTL( ttl ); checkAndAddToPingRoutingTable( pingMsg.getHeader().getMsgID(), Host.LOCAL_HOST ); if ( NLogger.isDebugEnabled( NLoggerNames.OUTGOING_ME...
public void pingHost( Host host ) { // Send ping msg. PingMsg pingMsg = new PingMsg(); pingMsg.getHeader().setTTL( ttl ); checkAndAddToPingRoutingTable( pingMsg.getHeader().getMsgID(), Host.LOCAL_HOST ); if ( NLogger.isDebugEnabled( NLoggerNames.OUTGOING_MESSAGES ) )...
1,115,918
public void pingHost( Host host, byte ttl ) { // Send ping msg. PingMsg pingMsg = new PingMsg(); pingMsg.getHeader().setTTL( ttl ); checkAndAddToPingRoutingTable( pingMsg.getHeader().getMsgID(), Host.LOCAL_HOST ); if ( NLogger.isDebugEnabled( NLoggerNames.OUTGOING_ME...
public void pingHost( Host host, byte ttl ) { // Send ping msg. PingMsg pingMsg = new PingMsg(); pingMsg.getHeader().setTTL( ttl ); checkAndAddToPingRoutingTable( pingMsg.getHeader().getMsgID(), Host.LOCAL_HOST ); if ( NLogger.isDebugEnabled( NLoggerNames.OUTGOING_ME...
1,115,919
public synchronized RunT getLastSuccessfulBuild() { RunT r = getLastBuild(); // temporary hack till we figure out what's causing this bug while(r!=null && r.getResult()==null && (r.isBuilding() || r.getResult().isWorseThan(Result.UNSTABLE))) r=r.getPreviousBuild(); return r; ...
public synchronized RunT getLastSuccessfulBuild() { RunT r = getLastBuild(); // temporary hack till we figure out what's causing this bug while(r!=null && (r.isBuilding() || r.getResult()==null || r.getResult().isWorseThan(Result.UNSTABLE))) r=r.getPreviousBuild(); return r; ...
1,115,921
private void saveAs() { // Show save dialog; this method does // not return until the dialog is closed String[] ext = {"xml"}; sbFileFilter saveFileFilter = new sbFileFilter(ext, "XML"); fileChooser.setFileFilter(saveFileFilter); int returnVal = fileChooser.showSaveDialog(jMenuBar1); if (returnVal == JFileChoos...
private void saveAs() { // Show save dialog; this method does // not return until the dialog is closed String[] ext = {"xml"}; sbFileFilter saveFileFilter = new sbFileFilter(ext, "StrangeBrew XML"); fileChooser.setFileFilter(saveFileFilter); int returnVal = fileChooser.showSaveDialog(jMenuBar1); if (returnVal =...
1,115,923
private NodeFactory() {}
public NodeFactory(XJep xj) {this.xj=xj;}
1,115,925
private LocalSeismogramImpl getSeismogram(URL seisurl) throws IOException, FissuresException { Object obj = urlToLSMap.get(seisurl); if (obj instanceof SoftReference) { Object ref = ((SoftReference)obj).get(); if (ref != null) { obj = ref; } else ...
private LocalSeismogramImpl getSeismogram(URL seisurl) throws IOException, FissuresException { Object obj = urlToLSMap.get(seisurl); if (obj instanceof SoftReference) { Object ref = ((SoftReference)obj).get(); if (ref != null) { obj = ref; } else ...
1,115,926
private LocalSeismogramImpl getSeismogram(URL seisurl) throws IOException, FissuresException { Object obj = urlToLSMap.get(seisurl); if (obj instanceof SoftReference) { Object ref = ((SoftReference)obj).get(); if (ref != null) { obj = ref; } else ...
private LocalSeismogramImpl getSeismogram(URL seisurl) throws IOException, FissuresException { Object obj = urlToLSMap.get(seisurl); if (obj instanceof SoftReference) { Object ref = ((SoftReference)obj).get(); if (ref != null) { obj = ref; } else ...
1,115,927
public boolean pollSCMChanges( TaskListener listener ) { if(scm==null) return false; // no SCM FilePath workspace = getWorkspace(); if(!workspace.exists()) return false; try { // TODO: do this by using the right slave return scm.pollChanges(this, new Launcher(li...
public boolean pollSCMChanges( TaskListener listener ) { if(scm==null) { listener.getLogger().println("No SCM"); return false; } // no SCM FilePath workspace = getWorkspace(); if(!workspace.exists()) return false; try { // TODO: do this by using the right slave re...
1,115,931
public boolean pollSCMChanges( TaskListener listener ) { if(scm==null) return false; // no SCM FilePath workspace = getWorkspace(); if(!workspace.exists()) return false; try { // TODO: do this by using the right slave return scm.pollChanges(this, new Launcher(li...
public boolean pollSCMChanges( TaskListener listener ) { if(scm==null) return false; // no SCM FilePath workspace = getWorkspace(); if(!workspace.exists()) { listener.getLogger().println("No workspace is available, so can't check for updates."); listener.getLogger().println("Scheduling a n...
1,115,932
public int compareTo(Constant c) { return ((Comparable) value).compareTo((Comparable) c.value); }
public int compareTo(Constant c) { return ((Comparable) value).compareTo(c.value); }
1,115,933
public String getOpenFilename() { myOpenFileDialog.open(); return myOpenFileDialog.getFileName(); }
public String getOpenFilename() { myOpenFileDialog.open(); return myOpenFileDialog.getFilterPath().concat("/").concat( myOpenFileDialog.getFileName()); }
1,115,934