bugged
stringlengths 6
599k
| fixed
stringlengths 10
599k
| __index_level_0__
int64 0
1.13M
|
|---|---|---|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
| 1,119,723
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
|
private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); }
| 1,119,724
|
public org.eclipse.draw2d.RectangleFigure getFigureStereotypeFigure_AttributesCompartment() { return fStereotypeFigure_AttributesCompartment; }
|
public RectangleFigure getFigureStereotypeFigure_AttributesCompartment() { return fStereotypeFigure_AttributesCompartment; }
| 1,119,725
|
public org.eclipse.draw2d.RectangleFigure getFigureStereotypeFigure_ConstraintsCompartment() { return fStereotypeFigure_ConstraintsCompartment; }
|
public RectangleFigure getFigureStereotypeFigure_ConstraintsCompartment() { return fStereotypeFigure_ConstraintsCompartment; }
| 1,119,726
|
public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureStereotypeFigure_NameLabel() { return fStereotypeFigure_NameLabel; }
|
public WrapLabel getFigureStereotypeFigure_NameLabel() { return fStereotypeFigure_NameLabel; }
| 1,119,727
|
public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureStereotypeFigure_StereotypeLabel() { return fStereotypeFigure_StereotypeLabel; }
|
public WrapLabel getFigureStereotypeFigure_StereotypeLabel() { return fStereotypeFigure_StereotypeLabel; }
| 1,119,728
|
private void setFigureStereotypeFigure_AttributesCompartment(org.eclipse.draw2d.RectangleFigure fig) { fStereotypeFigure_AttributesCompartment = fig; }
|
private void setFigureStereotypeFigure_AttributesCompartment(RectangleFigure fig) { fStereotypeFigure_AttributesCompartment = fig; }
| 1,119,729
|
private void setFigureStereotypeFigure_ConstraintsCompartment(org.eclipse.draw2d.RectangleFigure fig) { fStereotypeFigure_ConstraintsCompartment = fig; }
|
private void setFigureStereotypeFigure_ConstraintsCompartment(RectangleFigure fig) { fStereotypeFigure_ConstraintsCompartment = fig; }
| 1,119,730
|
private void setFigureStereotypeFigure_NameLabel(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) { fStereotypeFigure_NameLabel = fig; }
|
private void setFigureStereotypeFigure_NameLabel(WrapLabel fig) { fStereotypeFigure_NameLabel = fig; }
| 1,119,731
|
private void setFigureStereotypeFigure_StereotypeLabel(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) { fStereotypeFigure_StereotypeLabel = fig; }
|
private void setFigureStereotypeFigure_StereotypeLabel(WrapLabel fig) { fStereotypeFigure_StereotypeLabel = fig; }
| 1,119,732
|
public void testGetUserAttributesMap() { Map awp9Key = new HashMap(); awp9Key.put("uid", "awp9"); assertEquals(this.backingMap.get("awp9"), this.testInstance.getUserAttributes(awp9Key)); Map unknownUserKey = new HashMap(); unknownUserKey.put("uid", "unknownUser"); assertNull(this.testInstance.getUserAttributes(unknownUserKey)); }
|
public void testGetUserAttributesMap() { Map awp9Key = new HashMap(); awp9Key.put("username", "awp9"); assertEquals(this.backingMap.get("awp9"), this.testInstance.getUserAttributes(awp9Key)); Map unknownUserKey = new HashMap(); unknownUserKey.put("uid", "unknownUser"); assertNull(this.testInstance.getUserAttributes(unknownUserKey)); }
| 1,119,733
|
private static JTextArea makeTextArea(Controller c, String source, GridBagLayout gbl, GridBagConstraints con, int rows, int cols) { JTextArea txt = new JTextArea(); txt.setForeground(null); txt.setBackground(new Color(55, 55, 55)); txt.setCaretColor(Color.WHITE); txt.setAutoscrolls(true); txt.setColumns(cols); txt.setRows(rows); gbl.setConstraints(txt, con); if (source.startsWith("#")) { c.bind(txt, source.substring(1)); } else { txt.setText(source); } txt.setLineWrap(true); txt.setAutoscrolls(true); return txt; }
|
private static JTextArea makeTextArea(Controller c, String source, GridBagLayout gbl, GridBagConstraints con, int rows, int cols) { JTextArea txt = new JTextArea(); txt.setForeground(Color.WHITE); txt.setBackground(new Color(55, 55, 55)); txt.setCaretColor(Color.WHITE); txt.setAutoscrolls(true); txt.setColumns(cols); txt.setRows(rows); gbl.setConstraints(txt, con); if (source.startsWith("#")) { c.bind(txt, source.substring(1)); } else { txt.setText(source); } txt.setLineWrap(true); txt.setAutoscrolls(true); return txt; }
| 1,119,734
|
public static final float[] convolve(float[] fdata, float[] gdata) { Cmplx[] fTrans = fft(fdata); Cmplx[] gTrans = fft(gdata); for (int i=0; i<fdata.length; i++) { fTrans[i] = Cmplx.mul(fTrans[i], gTrans[i]); } // end of for (int i=0; i<gdata.length; i++) return fftInverse(fTrans, fdata.length); }
|
public static final float[] convolve(float[] fdata, float[] gdata) { Cmplx[] fTrans = fft(fdata); Cmplx[] gTrans = fft(gdata); for (int i=0; i<fdata.length; i++) { fTrans[i] = Cmplx.mul(fTrans[i], gTrans[i]); } // end of for (int i=0; i<gdata.length; i++) return fftInverse(fTrans, fdata.length); }
| 1,119,735
|
public static final float[] correlate(float[] fdata, float[] gdata) { Cmplx[] fTrans = fft(fdata); Cmplx[] gTrans = fft(gdata); for (int i=0; i<fdata.length; i++) { fTrans[i] = Cmplx.mul(fTrans[i], gTrans[i].conjg()); } // end of for (int i=0; i<gdata.length; i++) return fftInverse(fTrans, fdata.length); }
|
public static final float[] correlate(float[] fdata, float[] gdata) { Cmplx[] fTrans = fft(fdata); Cmplx[] gTrans = fft(gdata); for (int i=0; i<fdata.length; i++) { fTrans[i] = Cmplx.mul(fTrans[i], gTrans[i].conjg()); } // end of for (int i=0; i<gdata.length; i++) return fftInverse(fTrans, fdata.length); }
| 1,119,736
|
protected boolean checkSvci(HttpServletRequest request, BwActionFormBase form, BwSession sess, int access, String user, boolean publicAdmin, boolean canSwitch, boolean debug) throws CalFacadeException { /** Do some checks first */ String authUser = String.valueOf(form.getCurrentUser()); if (!publicAdmin) { /* We're never allowed to switch identity as a user client. */ if (!authUser.equals(String.valueOf(user))) { return false; } } else if (user == null) { throw new CalFacadeException("Null user parameter for public admin."); } CalSvcI svci = BwWebUtil.getCalSvcI(request); /** Make some checks to see if this is an old - restarted session. If so discard the svc interface */ if (svci != null) { if (!svci.isOpen()) { svci = null; info(".Svci interface discarded from old session"); } } if (svci != null) { /* Already there and already opened */ if (debug) { debugMsg("CalSvcI-- Obtained from session for user " + svci.getUser()); } } else { if (debug) { debugMsg(".CalSvcI-- get new object for user " + user); } /* create a call back object so the filter can open the service interface */ BwCallback cb = new Callback(form); HttpSession hsess = request.getSession(); hsess.setAttribute(BwCallback.cbAttrName, cb); svci = new CalSvc(); CalSvcIPars pars = new CalSvcIPars(user, access, user, publicAdmin, false, // caldav null, // synchId debug); svci.init(pars); BwWebUtil.setCalSvcI(request, svci); form.setCalSvcI(svci); try { cb.in(true); } catch (Throwable t) { if (t instanceof CalFacadeException) { throw (CalFacadeException)t; } throw new CalFacadeException(t); } } form.assignUserVO((BwUser)svci.getUser().clone()); if (publicAdmin) { canSwitch = canSwitch || ((access & UserAuth.contentAdminUser) != 0) || ((access & UserAuth.superUser) != 0); BwUser u = svci.getUser(); if (u == null) { throw new CalFacadeException("Null user for public admin."); } String curUser = u.getAccount(); if (!canSwitch && !user.equals(curUser)) { /** Trying to switch but not allowed */ return false; } if (!user.equals(curUser)) { /** Switching user */ svci.setUser(user); curUser = user; } form.assignCurrentAdminUser(curUser); } return true; }
|
protected boolean checkSvci(HttpServletRequest request, BwActionFormBase form, BwSession sess, int access, String user, boolean publicAdmin, boolean canSwitch, boolean debug) throws CalFacadeException { /** Do some checks first */ String authUser = String.valueOf(form.getCurrentUser()); if (!publicAdmin) { /* We're never allowed to switch identity as a user client. */ if (!authUser.equals(String.valueOf(user))) { return false; } } else if (user == null) { throw new CalFacadeException("Null user parameter for public admin."); } CalSvcI svci = BwWebUtil.getCalSvcI(request); /** Make some checks to see if this is an old - restarted session. If so discard the svc interface */ if (svci != null) { if (!svci.isOpen()) { svci = null; info(".Svci interface discarded from old session"); } } if (svci != null) { /* Already there and already opened */ if (debug) { debugMsg("CalSvcI-- Obtained from session for user " + svci.getUser()); } } else { if (debug) { debugMsg(".CalSvcI-- get new object for user " + user); } /* create a call back object so the filter can open the service interface */ BwCallback cb = new Callback(form); HttpSession hsess = request.getSession(); hsess.setAttribute(BwCallback.cbAttrName, cb); svci = new CalSvc(); CalSvcIPars pars = new CalSvcIPars(user, access, user, publicAdmin, false, // caldav null, // synchId debug); svci.init(pars); BwWebUtil.setCalSvcI(request, svci); form.setCalSvcI(svci); try { cb.in(true); } catch (Throwable t) { if (t instanceof CalFacadeException) { throw (CalFacadeException)t; } throw new CalFacadeException(t); } } form.assignUserVO((BwUser)svci.getUser().clone()); if (publicAdmin) { canSwitch = canSwitch || ((access & UserAuth.contentAdminUser) != 0) || ((access & UserAuth.superUser) != 0); BwUser u = svci.getUser(); if (u == null) { throw new CalFacadeException("Null user for public admin."); } String curUser = u.getAccount(); if (!canSwitch && !user.equals(curUser)) { /** Trying to switch but not allowed */ return false; } if (!user.equals(curUser)) { /** Switching user */ svci.setUser(user); curUser = user; } form.assignCurrentAdminUser(curUser); } return true; }
| 1,119,737
|
protected boolean checkSvci(HttpServletRequest request, BwActionFormBase form, BwSession sess, int access, String user, boolean publicAdmin, boolean canSwitch, boolean debug) throws CalFacadeException { /** Do some checks first */ String authUser = String.valueOf(form.getCurrentUser()); if (!publicAdmin) { /* We're never allowed to switch identity as a user client. */ if (!authUser.equals(String.valueOf(user))) { return false; } } else if (user == null) { throw new CalFacadeException("Null user parameter for public admin."); } CalSvcI svci = BwWebUtil.getCalSvcI(request); /** Make some checks to see if this is an old - restarted session. If so discard the svc interface */ if (svci != null) { if (!svci.isOpen()) { svci = null; info(".Svci interface discarded from old session"); } } if (svci != null) { /* Already there and already opened */ if (debug) { debugMsg("CalSvcI-- Obtained from session for user " + svci.getUser()); } } else { if (debug) { debugMsg(".CalSvcI-- get new object for user " + user); } /* create a call back object so the filter can open the service interface */ BwCallback cb = new Callback(form); HttpSession hsess = request.getSession(); hsess.setAttribute(BwCallback.cbAttrName, cb); svci = new CalSvc(); CalSvcIPars pars = new CalSvcIPars(user, access, user, publicAdmin, false, // caldav null, // synchId debug); svci.init(pars); BwWebUtil.setCalSvcI(request, svci); form.setCalSvcI(svci); try { cb.in(true); } catch (Throwable t) { if (t instanceof CalFacadeException) { throw (CalFacadeException)t; } throw new CalFacadeException(t); } } form.assignUserVO((BwUser)svci.getUser().clone()); if (publicAdmin) { canSwitch = canSwitch || ((access & UserAuth.contentAdminUser) != 0) || ((access & UserAuth.superUser) != 0); BwUser u = svci.getUser(); if (u == null) { throw new CalFacadeException("Null user for public admin."); } String curUser = u.getAccount(); if (!canSwitch && !user.equals(curUser)) { /** Trying to switch but not allowed */ return false; } if (!user.equals(curUser)) { /** Switching user */ svci.setUser(user); curUser = user; } form.assignCurrentAdminUser(curUser); } return true; }
|
protected boolean checkSvci(HttpServletRequest request, BwActionFormBase form, BwSession sess, int access, String user, boolean publicAdmin, boolean canSwitch, boolean debug) throws CalFacadeException { /** Do some checks first */ String authUser = String.valueOf(form.getCurrentUser()); if (!publicAdmin) { /* We're never allowed to switch identity as a user client. */ if (!authUser.equals(String.valueOf(user))) { return false; } } else if (user == null) { throw new CalFacadeException("Null user parameter for public admin."); } CalSvcI svci = BwWebUtil.getCalSvcI(request); /** Make some checks to see if this is an old - restarted session. If so discard the svc interface */ if (svci != null) { if (!svci.isOpen()) { svci = null; info(".Svci interface discarded from old session"); } } if (svci != null) { /* Already there and already opened */ if (debug) { debugMsg("CalSvcI-- Obtained from session for user " + svci.getUser()); } } else { if (debug) { debugMsg(".CalSvcI-- get new object for user " + user); } /* create a call back object so the filter can open the service interface */ BwCallback cb = new Callback(form); HttpSession hsess = request.getSession(); hsess.setAttribute(BwCallback.cbAttrName, cb); svci = new CalSvc(); CalSvcIPars pars = new CalSvcIPars(user, access, user, publicAdmin, false, // caldav null, // synchId debug); svci.init(pars); BwWebUtil.setCalSvcI(request, svci); form.setCalSvcI(svci); try { cb.in(true); } catch (Throwable t) { if (t instanceof CalFacadeException) { throw (CalFacadeException)t; } throw new CalFacadeException(t); } } form.assignUserVO((BwUser)svci.getUser().clone()); if (publicAdmin) { canSwitch = canSwitch || ((access & UserAuth.contentAdminUser) != 0) || ((access & UserAuth.superUser) != 0); BwUser u = svci.getUser(); if (u == null) { throw new CalFacadeException("Null user for public admin."); } String curUser = u.getAccount(); if (!canSwitch && !user.equals(curUser)) { /** Trying to switch but not allowed */ return false; } if (!user.equals(curUser)) { /** Switching user */ svci.setUser(user); curUser = user; } form.assignCurrentAdminUser(curUser); } return true; }
| 1,119,738
|
public IdeaView(Idea anIdea) { System.out.println("creating view for "+anIdea); this.idea = anIdea; this.setLength(15 * anIdea.getText().length()); int subNum = anIdea.getSubIdeas().size(); int i = 0; for (Idea subIdea: anIdea.getSubIdeas()) { IdeaView subView = new IdeaView(subIdea); subView.setAngle(i * (Math.PI / subNum) - (subNum - 1) * Math.PI / subNum); add(subView); i++; } anIdea.addIdeaListener(this); }
|
public IdeaView(Idea anIdea) { this.idea = anIdea; this.setLength(15 * anIdea.getText().length()); int subNum = anIdea.getSubIdeas().size(); int i = 0; for (Idea subIdea: anIdea.getSubIdeas()) { IdeaView subView = new IdeaView(subIdea); subView.setAngle(i * (Math.PI / subNum) - (subNum - 1) * Math.PI / subNum); add(subView); i++; } anIdea.addIdeaListener(this); }
| 1,119,739
|
public boolean handlesProtocol(String protocol) { if (protocol == null) { return false; } for (int i = 0; i < protocols.length; i++) { if (protocol.equalsIgnoreCase(protocols[i])) { return true; } } return false; }
|
public boolean handlesProtocol(String protocol) { if (protocol == null || protocols == null) { return false; } for (int i = 0; i < protocols.length; i++) { if (protocol.equalsIgnoreCase(protocols[i])) { return true; } } return false; }
| 1,119,740
|
public static JavaMethod[] getAllMethods(Class fromClass, boolean isStatic) { // assemble a set of all unique selectors of all (non-)static methods of the class HashSet uniqueNames = new HashSet(); Method[] methods = fromClass.getMethods(); for (int i = 0; i < methods.length; i++) { Method m = methods[i]; if ((Modifier.isStatic(m.getModifiers())) == isStatic) { uniqueNames.add(m.getName()); } } // create a JavaMethod[] array large enough to contain all 'unique methods' JavaMethod[] jmethods = new JavaMethod[uniqueNames.size()]; // loop over all entries and group the methods into a single wrapper int i = 0; for (Iterator iter = uniqueNames.iterator(); iter.hasNext();) { String methodName = (String) iter.next(); jmethods[i] = getMethods(fromClass, methodName, isStatic); } return jmethods; }
|
public static JavaMethod[] getAllMethods(Class fromClass, boolean isStatic) { // assemble a set of all unique selectors of all (non-)static methods of the class HashSet uniqueNames = new HashSet(); Method[] methods = fromClass.getMethods(); for (int i = 0; i < methods.length; i++) { Method m = methods[i]; if ((Modifier.isStatic(m.getModifiers())) == isStatic) { uniqueNames.add(m.getName()); } } // create a JavaMethod[] array large enough to contain all 'unique methods' JavaMethod[] jmethods = new JavaMethod[uniqueNames.size()]; // loop over all entries and group the methods into a single wrapper int i = 0; for (Iterator iter = uniqueNames.iterator(); iter.hasNext();) { String methodName = (String) iter.next(); jmethods[i++] = getMethods(fromClass, methodName, isStatic); } return jmethods; }
| 1,119,741
|
static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //mapping cannot be null if (mappedAttribute == null) throw new IllegalArgumentException("Values in the map cannot be null. key='" + sourceAttrName + "'"); //Create a single item set for the string mapping if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); }
|
static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //mapping cannot be null if (mappedAttribute == null) throw new IllegalArgumentException("Values in the map cannot be null. key='" + sourceAttrName + "'"); //Create a single item set for the string mapping if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); }
| 1,119,742
|
static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //mapping cannot be null if (mappedAttribute == null) throw new IllegalArgumentException("Values in the map cannot be null. key='" + sourceAttrName + "'"); //Create a single item set for the string mapping if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); }
|
static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //mapping cannot be null if (mappedAttribute == null) throw new IllegalArgumentException("Values in the map cannot be null. key='" + sourceAttrName + "'"); //Create a single item set for the string mapping if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); }
| 1,119,743
|
static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //mapping cannot be null if (mappedAttribute == null) throw new IllegalArgumentException("Values in the map cannot be null. key='" + sourceAttrName + "'"); //Create a single item set for the string mapping if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); }
|
static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //mapping cannot be null if (mappedAttribute == null) throw new IllegalArgumentException("Values in the map cannot be null. key='" + sourceAttrName + "'"); //Create a single item set for the string mapping if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); }
| 1,119,744
|
static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //mapping cannot be null if (mappedAttribute == null) throw new IllegalArgumentException("Values in the map cannot be null. key='" + sourceAttrName + "'"); //Create a single item set for the string mapping if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); }
|
static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //mapping cannot be null if (mappedAttribute == null) throw new IllegalArgumentException("Values in the map cannot be null. key='" + sourceAttrName + "'"); //Create a single item set for the string mapping if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); }
| 1,119,745
|
static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //mapping cannot be null if (mappedAttribute == null) throw new IllegalArgumentException("Values in the map cannot be null. key='" + sourceAttrName + "'"); //Create a single item set for the string mapping if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); }
|
static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //mapping cannot be null if (mappedAttribute == null) throw new IllegalArgumentException("Values in the map cannot be null. key='" + sourceAttrName + "'"); //Create a single item set for the string mapping if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); }
| 1,119,746
|
public void testGetPossibleUserAttributeNames() { HashSet expectedAttributeNames = new HashSet(); expectedAttributeNames.add("shirtColor"); expectedAttributeNames.add("phone"); Set possibleAttributeNames = this.testInstance.getPossibleUserAttributeNames(); assertEquals(expectedAttributeNames, possibleAttributeNames); StubPersonAttributeDao nullBacking = new StubPersonAttributeDao(); assertNull(nullBacking.getPossibleUserAttributeNames()); }
|
public void testGetPossibleUserAttributeNames() { HashSet expectedAttributeNames = new HashSet(); expectedAttributeNames.add("shirtColor"); expectedAttributeNames.add("phone"); Set possibleAttributeNames = this.testInstance.getPossibleUserAttributeNames(); assertEquals(expectedAttributeNames, possibleAttributeNames); StubPersonAttributeDao nullBacking = new StubPersonAttributeDao(); assertEquals(Collections.EMPTY_SET, nullBacking.getPossibleUserAttributeNames()); }
| 1,119,748
|
public Map getUserAttributes(final String uid) { if (uid == null) { throw new IllegalArgumentException("Illegal to invoke getUserAttributes(String) with a null argument."); } return this.backingMap; }
|
public Map getUserAttributes(final String uid) { if (uid == null) { throw new IllegalArgumentException("Illegal to invoke getUserAttributes(String) with a null argument."); } return this.backingMap; }
| 1,119,749
|
public void run() { setProgressOwner(this); setProgressMax(this, 100); NetworkAccess[] nets = getSelectedNetworks(); try { clearStations(); setProgressValue(this, 10); for (int i=0; i<nets.length; i++) { logger.debug("Before get stations"); Station[] newStations = nets[i].retrieve_stations(); logger.debug("got "+newStations.length+" stations"); setProgressValue(this, 60); synchronized (ChannelChooser.this) { if (this.equals(getStationLoader())) { clearStations(); } } for (int j=0; j<newStations.length; j++) { synchronized (ChannelChooser.this) { if (this.equals(getStationLoader())) { addStation(newStations[j]); try { sleep((int)(.1*1000)); } catch (InterruptedException e) { } // end of try-catch } else { // no longer the active station loader return; } // end of else } setProgressValue(this, 100-newStations.length+j); } setProgressValue(this, 100); logger.debug("finished adding stations"); try { sleep((int)(.1*1000)); } catch (InterruptedException e) { } // end of try-catch } // end of for ((int i=0; i<nets.length; i++) logger.debug("There are "+stationNames.getSize()+" items in the station list model"); // stationList.validate(); //stationList.repaint(); } catch (Exception e) { edu.sc.seis.fissuresUtil.exceptionHandlerGUI.ExceptionHandlerGUI.handleException(e); } // end of try-catch } }
|
public void run() { setProgressOwner(this); setProgressMax(this, 100); NetworkAccess[] nets = getSelectedNetworks(); try { clearStations(); setProgressValue(this, 10); for (int i=0; i<nets.length; i++) { logger.debug("Before get stations"); Station[] newStations = nets[i].retrieve_stations(); logger.debug("got "+newStations.length+" stations"); setProgressValue(this, 60); synchronized (ChannelChooser.this) { if (this.equals(getStationLoader())) { clearStations(); } } for (int j=0; j<newStations.length; j++) { synchronized (ChannelChooser.this) { if (this.equals(getStationLoader())) { addStation(newStations[j]); try { sleep((int)(.01*1000)); } catch (InterruptedException e) { } // end of try-catch } else { // no longer the active station loader return; } // end of else } setProgressValue(this, 100-newStations.length+j); } setProgressValue(this, 100); logger.debug("finished adding stations"); try { sleep((int)(.01*1000)); } catch (InterruptedException e) { } // end of try-catch } // end of for ((int i=0; i<nets.length; i++) logger.debug("There are "+stationNames.getSize()+" items in the station list model"); // stationList.validate(); //stationList.repaint(); } catch (Exception e) { edu.sc.seis.fissuresUtil.exceptionHandlerGUI.ExceptionHandlerGUI.handleException(e); } // end of try-catch } }
| 1,119,750
|
public void itemStateChanged(ItemEvent ae) { if(ae.getStateChange() == ItemEvent.SELECTED) { view.addDisplayKey(((AbstractButton)ae.getItem()).getText()); } else if(ae.getStateChange() == ItemEvent.DESELECTED){ view.removeDisplaykey(((AbstractButton)ae.getItem()).getText()); } // view.setDisplayKey(ae.getActionCommand()); repaint(); System.out.println("The radiobutton selected is "+ ((AbstractButton)ae.getItem()).getText()); }
|
public void itemStateChanged(ItemEvent ae) { if(ae.getStateChange() == ItemEvent.SELECTED) { view.addDisplayKey(((AbstractButton)ae.getItem()).getText()); } else if(ae.getStateChange() == ItemEvent.DESELECTED){ view.removeDisplaykey(((AbstractButton)ae.getItem()).getText()); } // view.setDisplayKey(ae.getActionCommand()); repaint(); }
| 1,119,751
|
void drawPlottableNew(Graphics g) { int mean = getMean(); // get new graphics to avoid messing up original Graphics2D g2 = (Graphics2D)g.create(); g2.setClip(LABEL_X_SHIFT, 0, rowWidth, Integer.MAX_VALUE); AffineTransform originalTransform = AffineTransform.getTranslateInstance(LABEL_X_SHIFT, titleHeight); for(int row = 0; row < rows && currentImageGraphics == g; row++) { //use title and label transform to draw red center lines g2.setTransform(originalTransform); g2.setPaint(axisColor); int yLoc = rowOffset * row; System.out.println("yLoc: " + yLoc); System.out.println("rowWidth: " + rowWidth); g2.drawLine(0, yLoc, rowWidth, yLoc); //Create new transform to draw plottable scaled correctly g2.setTransform(new AffineTransform()); //shift the shape left to get to the correct point for this row //and down to get to the correct draw height g2.translate(-1 * rowWidth * row + LABEL_X_SHIFT, yLoc + titleHeight); //flip the y axis to make going lower positive g2.scale(1, -1); //scale for the amplitude slider g2.scale(1, ampScale); g2.scale(1, ampScalePercent); //center the mean g2.translate(0, -1 * mean); if(row % 2 == 0) { g2.setPaint(evenColor); } else { g2.setPaint(oddColor); } if(plottableShape != null) { g2.draw(plottableShape); } // end of if (plottableShape != null) } repaint(); }
|
void drawPlottableNew(Graphics g) { int mean = getMean(); // get new graphics to avoid messing up original Graphics2D g2 = (Graphics2D)g.create(); g2.setClip(LABEL_X_SHIFT, 0, rowWidth, Integer.MAX_VALUE); AffineTransform originalTransform = AffineTransform.getTranslateInstance(LABEL_X_SHIFT, titleHeight); for(int row = 0; row < rows && currentImageGraphics == g; row++) { //use title and label transform to draw red center lines g2.setTransform(originalTransform); g2.setPaint(axisColor); int yLoc = rowOffset * row; System.out.println("yLoc: " + yLoc); System.out.println("rowWidth: " + rowWidth); g2.drawLine(0, yLoc, rowWidth, yLoc); //Create new transform to draw plottable scaled correctly g2.setTransform(new AffineTransform()); //shift the shape left to get to the correct point for this row //and down to get to the correct draw height g2.translate(-1 * rowWidth * row + LABEL_X_SHIFT, yLoc + titleHeight); //flip the y axis to make going lower positive g2.scale(1, -1); //scale for the amplitude slider g2.scale(1, ampScale); g2.scale(1, ampScalePercent); //center the mean g2.translate(0, -1 * mean); if(row % 2 == 0) { g2.setPaint(evenColor); } else { g2.setPaint(oddColor); } if(plottableShape != null) { g2.draw(plottableShape); } // end of if (plottableShape != null) } repaint(); }
| 1,119,753
|
protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); short size = 4; intTestData = new int[size]; shortTestData = new short[size]; floatTestData = new float[size]; doubleTestData = new double[size]; for (short i=0; i<size; i++) { shortTestData[i] = i; intTestData[i] = i; floatTestData[i] = i; doubleTestData[i] = i; } // end of for (int i=0; i<intTestData.length; i++) rtrend = createInstance(); // JUnitDoclet end method testcase.setUp }
|
protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); short size = 40; intTestData = new int[size]; shortTestData = new short[size]; floatTestData = new float[size]; doubleTestData = new double[size]; for (short i=0; i<size; i++) { shortTestData[i] = i; intTestData[i] = i; floatTestData[i] = i; doubleTestData[i] = i; } // end of for (int i=0; i<intTestData.length; i++) rtrend = createInstance(); // JUnitDoclet end method testcase.setUp }
| 1,119,754
|
protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); short size = 4; intTestData = new int[size]; shortTestData = new short[size]; floatTestData = new float[size]; doubleTestData = new double[size]; for (short i=0; i<size; i++) { shortTestData[i] = i; intTestData[i] = i; floatTestData[i] = i; doubleTestData[i] = i; } // end of for (int i=0; i<intTestData.length; i++) rtrend = createInstance(); // JUnitDoclet end method testcase.setUp }
|
protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); short size = 4; intTestData = new int[size]; shortTestData = new short[size]; floatTestData = new float[size]; doubleTestData = new double[size]; for (short i=0; i<size; i++) { shortTestData[i] = i; intTestData[i] = i; floatTestData[i] = i; doubleTestData[i] = i; } // end of for (int i=0; i<intTestData.length; i++) rtrend = createInstance(); // JUnitDoclet end method testcase.setUp }
| 1,119,755
|
public void init(WebdavServlet servlet, HttpServletRequest req, Properties props, boolean debug) throws WebdavIntfException { super.init(servlet, req, props, debug); namespacePrefix = WebdavUtils.getUrlPrefix(req); namespace = namespacePrefix + "/schema"; try { publicCalendarRoot = getSvci().getSyspars().getPublicCalendarRoot(); userCalendarRoot = getSvci().getSyspars().getUserCalendarRoot(); } catch (Throwable t) { throw new WebdavIntfException(t); } }
|
public void init(WebdavServlet servlet, HttpServletRequest req, Properties props, boolean debug) throws WebdavIntfException { super.init(servlet, req, props, debug); namespacePrefix = WebdavUtils.getUrlPrefix(req); namespace = namespacePrefix + "/schema"; try { publicCalendarRoot = getSvci().getSyspars().getPublicCalendarRoot(); userCalendarRoot = getSvci().getSyspars().getUserCalendarRoot(); } catch (Throwable t) { throw new WebdavIntfException(t); } }
| 1,119,757
|
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = debug; boolean userCreated = false; if (authenticatedUser == null) { this.superUser = false; // be safe } try { objTimestamp = new Timestamp(System.currentTimeMillis()); this.superUser = superUser; this.synchId = synchId; if ((synchId != null) && publicAdmin) { throw new CalFacadeException("synch only valid for non admin"); } } catch (Throwable t) { throw new CalFacadeException(t); } if (user == null) { user = authenticatedUser; } return userCreated; }
|
public boolean init(String authenticatedUser, String user, boolean publicAdmin, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = debug; boolean userCreated = false; if (authenticatedUser == null) { this.superUser = false; // be safe } try { objTimestamp = new Timestamp(System.currentTimeMillis()); this.superUser = superUser; this.synchId = synchId; if ((synchId != null) && publicAdmin) { throw new CalFacadeException("synch only valid for non admin"); } } catch (Throwable t) { throw new CalFacadeException(t); } if (user == null) { user = authenticatedUser; } return userCreated; }
| 1,119,758
|
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = debug; boolean userCreated = false; if (authenticatedUser == null) { this.superUser = false; // be safe } try { objTimestamp = new Timestamp(System.currentTimeMillis()); this.superUser = superUser; this.synchId = synchId; if ((synchId != null) && publicAdmin) { throw new CalFacadeException("synch only valid for non admin"); } } catch (Throwable t) { throw new CalFacadeException(t); } if (user == null) { user = authenticatedUser; } return userCreated; }
|
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = debug; boolean userCreated = false; if (authenticatedUser == null) { this.superUser = false; // be safe } try { objTimestamp = new Timestamp(System.currentTimeMillis()); this.superUser = superUser; this.synchId = synchId; if ((synchId != null) && publicAdmin) { throw new CalFacadeException("synch only valid for non admin"); } } catch (Throwable t) { throw new CalFacadeException(t); } if (user == null) { user = authenticatedUser; } return userCreated; }
| 1,119,759
|
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = debug; boolean userCreated = false; if (authenticatedUser == null) { this.superUser = false; // be safe } try { objTimestamp = new Timestamp(System.currentTimeMillis()); this.superUser = superUser; this.synchId = synchId; if ((synchId != null) && publicAdmin) { throw new CalFacadeException("synch only valid for non admin"); } } catch (Throwable t) { throw new CalFacadeException(t); } if (user == null) { user = authenticatedUser; } return userCreated; }
|
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = debug; boolean userCreated = false; if (authenticatedUser == null) { this.superUser = false; // be safe } try { objTimestamp = new Timestamp(System.currentTimeMillis()); this.synchId = synchId; if ((synchId != null) && publicAdmin) { throw new CalFacadeException("synch only valid for non admin"); } } catch (Throwable t) { throw new CalFacadeException(t); } if (user == null) { user = authenticatedUser; } return userCreated; }
| 1,119,760
|
public void createParticleDisplay(BasicSeismogramDisplay creator){ if(particleDisplay == null){ logger.debug("creating particle display"); particleWindow = new JFrame(); LocalSeismogramImpl seis = (((LocalSeismogramImpl)((DataSetSeismogram)creator.getSeismograms().getFirst()).getSeismogram())); particleDisplay = new ParticleMotionDisplay(seis, creator.getTimeRegistrar(), creator.getAmpRegistrar(), creator.getAmpRegistrar(), ((DataSetSeismogram)creator.getSeismograms().getFirst()).getDataSet()); particleDisplay.addAzimuthLine(15); particleDisplay.addSector(10, 20); JPanel displayPanel = new JPanel(); JButton zoomIn = new JButton("zoomIn"); JButton zoomOut = new JButton("zoomOut"); JPanel buttonPanel = new JPanel(); buttonPanel.setLayout(new FlowLayout()); buttonPanel.add(zoomIn); buttonPanel.add(zoomOut); displayPanel.setLayout(new BorderLayout()); displayPanel.add(particleDisplay, java.awt.BorderLayout.CENTER); displayPanel.add(buttonPanel, java.awt.BorderLayout.SOUTH); java.awt.Dimension size = new java.awt.Dimension(400, 400); displayPanel.setSize(size); particleWindow.getContentPane().add(displayPanel); selectionWindow.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { particleWindow.dispose(); particleDisplay = null; } }); particleWindow.setSize(size); zoomIn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { particleDisplay.setZoomIn(true); // particleDisplay.setZoomOut(false); } }); zoomOut.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { particleDisplay.setZoomOut(true); // particleDisplay.setZoomIn(false); } }); Toolkit tk = Toolkit.getDefaultToolkit(); if(particleWindow.getSize().width*particleDisplays < tk.getScreenSize().width){ particleWindow.setLocation(particleWindow.getSize().width * particleDisplays, tk.getScreenSize().height - particleWindow.getSize().width); }else{ particleWindow.setLocation(tk.getScreenSize().width - particleWindow.getSize().width, tk.getScreenSize().height - particleWindow.getSize().height); } particleDisplays++; particleWindow.setVisible(true); } }
|
public void createParticleDisplay(BasicSeismogramDisplay creator){ if(particleDisplay == null){ logger.debug("creating particle display"); particleWindow = new JFrame(); LocalSeismogramImpl seis = (((LocalSeismogramImpl)((DataSetSeismogram)creator.getSeismograms().getFirst()).getSeismogram())); particleDisplay = new ParticleMotionDisplay(seis, creator.getTimeRegistrar(), creator.getAmpRegistrar(), creator.getAmpRegistrar(), ((DataSetSeismogram)creator.getSeismograms().getFirst()).getDataSet()); particleDisplay.addAzimuthLine(15); particleDisplay.addSector(10, 20); JPanel displayPanel = new JPanel(); JButton zoomIn = new JButton("zoomIn"); JButton zoomOut = new JButton("zoomOut"); JPanel buttonPanel = new JPanel(); buttonPanel.setLayout(new FlowLayout()); buttonPanel.add(zoomIn); buttonPanel.add(zoomOut); displayPanel.setLayout(new BorderLayout()); displayPanel.add(particleDisplay, java.awt.BorderLayout.CENTER); displayPanel.add(buttonPanel, java.awt.BorderLayout.SOUTH); java.awt.Dimension size = new java.awt.Dimension(400, 400); displayPanel.setSize(size); particleWindow.getContentPane().add(displayPanel); particleWindow.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { particleWindow.dispose(); particleDisplay = null; } }); particleWindow.setSize(size); zoomIn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { particleDisplay.setZoomIn(true); // particleDisplay.setZoomOut(false); } }); zoomOut.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { particleDisplay.setZoomOut(true); // particleDisplay.setZoomIn(false); } }); Toolkit tk = Toolkit.getDefaultToolkit(); if(particleWindow.getSize().width*particleDisplays < tk.getScreenSize().width){ particleWindow.setLocation(particleWindow.getSize().width * particleDisplays, tk.getScreenSize().height - particleWindow.getSize().width); }else{ particleWindow.setLocation(tk.getScreenSize().width - particleWindow.getSize().width, tk.getScreenSize().height - particleWindow.getSize().height); } particleDisplays++; particleWindow.setVisible(true); } }
| 1,119,761
|
public void changeAccess(Object o, Collection aces) throws CalFacadeException { Collection oldAces = getAces(o); try { Acl acl = new Acl(debug); acl.setAces(oldAces); Iterator it = aces.iterator(); while (it.hasNext()) { Ace ace = (Ace)it.next(); acl.removeAccess(ace); acl.addAce(ace); } BwShareableDbentity sdbe = (BwShareableDbentity)o; sdbe.setAccess(new String(acl.encode())); } catch (Throwable t) { throw new CalFacadeException(t); } }
|
public void changeAccess(Object o, Collection aces) throws CalFacadeException { Collection oldAces = getAces(o); try { Acl acl = new Acl(debug); acl.setAces(oldAces); Iterator it = aces.iterator(); while (it.hasNext()) { Ace ace = (Ace)it.next(); acl.removeAccess(ace); acl.addAce(ace); } BwShareableDbentity sdbe = (BwShareableDbentity)o; sdbe.setAccess(new String(acl.encode())); } catch (Throwable t) { throw new CalFacadeException(t); } }
| 1,119,762
|
public void changeAccess(Object o, Collection aces) throws CalFacadeException { Collection oldAces = getAces(o); try { Acl acl = new Acl(debug); acl.setAces(oldAces); Iterator it = aces.iterator(); while (it.hasNext()) { Ace ace = (Ace)it.next(); acl.removeAccess(ace); acl.addAce(ace); } BwShareableDbentity sdbe = (BwShareableDbentity)o; sdbe.setAccess(new String(acl.encode())); } catch (Throwable t) { throw new CalFacadeException(t); } }
|
public void changeAccess(Object o, Collection aces) throws CalFacadeException { Collection oldAces = getAces(o); try { Acl acl = new Acl(debug); acl.setAces(oldAces); Iterator it = aces.iterator(); while (it.hasNext()) { Ace ace = (Ace)it.next(); acl.removeAccess(ace); acl.addAce(ace); } BwShareableDbentity sdbe = (BwShareableDbentity)o; sdbe.setAccess(new String(acl.encode())); } catch (Throwable t) { throw new CalFacadeException(t); } }
| 1,119,763
|
public Collection getAces(Object o) throws CalFacadeException { if (!(o instanceof BwShareableDbentity)) { throw new CalFacadeException(CalFacadeException.illegalObjectClass); } BwShareableDbentity sdbe = (BwShareableDbentity)o; return getAces(sdbe, privWriteAcl); }
|
public Collection getAces(Object o) throws CalFacadeException { if (!(o instanceof BwShareableDbentity)) { throw new CalFacadeException(CalFacadeException.illegalObjectClass); } BwShareableDbentity sdbe = (BwShareableDbentity)o; return getAces(sdbe, privWriteAcl); }
| 1,119,764
|
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException;
|
public boolean init(String authenticatedUser, String user, boolean publicAdmin, Groups groups, String synchId, boolean debug) throws CalFacadeException;
| 1,119,765
|
public int doEndTag() throws JspException { SelectTag select = (SelectTag) findAncestorWithClass(this, SelectTag.class); if (select == null) throw new JspException("selected-value tag must be nested inside a select tag"); select.addValue(value); return EVAL_PAGE; }
|
public int doEndTag() throws JspException { SelectTag select = (SelectTag) findAncestorWithClass(this, SelectTag.class); if (select == null) throw new JspException("selected-value tag must be nested inside a select tag"); select.addValue(value); return EVAL_PAGE; }
| 1,119,766
|
public void applyInPlace(float[] data) { int w = Math.round(data.length*width); double[] coeff = getCoefficients(w); double omega = coeff[0]; double f0 = coeff[1]; double f1 = coeff[2]; for (int i=0; i < w ; i++) { data[i] = (float)(data[i] * (f0 - f1 * Math.cos(omega*i))); data[data.length-i-1] = (float)(data[data.length-i] * (f0 - f1 * Math.cos(omega*i))); } }
|
public void applyInPlace(float[] data) { int w = Math.round(data.length*width); double[] coeff = getCoefficients(w); double omega = coeff[0]; double f0 = coeff[1]; double f1 = coeff[2]; for (int i=0; i < w ; i++) { data[i] = (float)(data[i] * (f0 - f1 * Math.cos(omega*i))); data[data.length-i-1] = (float)(data[data.length-i-1] * (f0 - f1 * Math.cos(omega*i))); } }
| 1,119,767
|
public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; ActionForm form = (ActionForm)frm; setup(request, form, messages); try { forward = doAction(request, response, form); } catch (Throwable t) { form.getErr().emit("org.bedework.error.exc", t.getMessage()); form.getErr().emit(t); } if (form.getPropertyCollections().size() == 0) { // Load the default properties Properties pr = Util.getPropertiesFromResource(defaultProperties); resetProperties(pr, form); } return forward; }
|
public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; ActionForm form = (ActionForm)frm; setup(request, form, messages); try { forward = doAction(request, response, form); } catch (Throwable t) { form.getErr().emit("org.bedework.client.error.exc", t.getMessage()); form.getErr().emit(t); } if (form.getPropertyCollections().size() == 0) { // Load the default properties Properties pr = Util.getPropertiesFromResource(defaultProperties); resetProperties(pr, form); } return forward; }
| 1,119,768
|
protected Serializable getCacheKey(Map querySeed) { final HashMap cacheKey = new HashMap(); if (this.cacheKeyAttributes == null || this.cacheKeyAttributes.size() == 0) { final String defaultAttrName = this.getDefaultAttributeName(); if (defaultAttrName == null) { throw new IllegalStateException("Both 'defaultAttrName' and 'cacheKeyAttributes' properties may not be null."); } cacheKey.put(defaultAttrName, querySeed.get(defaultAttrName)); if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using default attribute='" + defaultAttrName + "'"); } } else { for (final Iterator attrItr = this.cacheKeyAttributes.iterator(); attrItr.hasNext();) { final String attr = (String)attrItr.next(); cacheKey.put(attr, querySeed.get(attr)); } if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using attributes='" + this.cacheKeyAttributes + "'"); } } if (cacheKey.size() > 0) { return cacheKey; } else { return null; } }
|
protected Serializable getCacheKey(Map querySeed) { final HashMap cacheKey = new HashMap(); if (this.cacheKeyAttributes == null || this.cacheKeyAttributes.size() == 0) { final String defaultAttrName = this.getDefaultAttributeName(); if (defaultAttrName == null) { throw new IllegalStateException("Both 'defaultAttrName' and 'cacheKeyAttributes' properties may not be null."); } cacheKey.put(defaultAttrName, querySeed.get(defaultAttrName)); if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using default attribute='" + defaultAttrName + "'"); } } else { for (final Iterator attrItr = this.cacheKeyAttributes.iterator(); attrItr.hasNext();) { final String attr = (String)attrItr.next(); cacheKey.put(attr, querySeed.get(attr)); } if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using attributes='" + this.cacheKeyAttributes + "'"); } } if (cacheKey.size() > 0) { return cacheKey; } else { return null; } }
| 1,119,769
|
protected Serializable getCacheKey(Map querySeed) { final HashMap cacheKey = new HashMap(); if (this.cacheKeyAttributes == null || this.cacheKeyAttributes.size() == 0) { final String defaultAttrName = this.getDefaultAttributeName(); if (defaultAttrName == null) { throw new IllegalStateException("Both 'defaultAttrName' and 'cacheKeyAttributes' properties may not be null."); } cacheKey.put(defaultAttrName, querySeed.get(defaultAttrName)); if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using default attribute='" + defaultAttrName + "'"); } } else { for (final Iterator attrItr = this.cacheKeyAttributes.iterator(); attrItr.hasNext();) { final String attr = (String)attrItr.next(); cacheKey.put(attr, querySeed.get(attr)); } if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using attributes='" + this.cacheKeyAttributes + "'"); } } if (cacheKey.size() > 0) { return cacheKey; } else { return null; } }
|
protected Serializable getCacheKey(Map querySeed) { final HashMap cacheKey = new HashMap(); if (this.cacheKeyAttributes == null || this.cacheKeyAttributes.size() == 0) { final String defaultAttrName = this.getDefaultAttributeName(); if (defaultAttrName == null) { throw new IllegalStateException("Both 'defaultAttrName' and 'cacheKeyAttributes' properties may not be null."); } if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using default attribute='" + defaultAttrName + "'"); } } else { for (final Iterator attrItr = this.cacheKeyAttributes.iterator(); attrItr.hasNext();) { final String attr = (String)attrItr.next(); cacheKey.put(attr, querySeed.get(attr)); } if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using attributes='" + this.cacheKeyAttributes + "'"); } } if (cacheKey.size() > 0) { return cacheKey; } else { return null; } }
| 1,119,770
|
protected Serializable getCacheKey(Map querySeed) { final HashMap cacheKey = new HashMap(); if (this.cacheKeyAttributes == null || this.cacheKeyAttributes.size() == 0) { final String defaultAttrName = this.getDefaultAttributeName(); if (defaultAttrName == null) { throw new IllegalStateException("Both 'defaultAttrName' and 'cacheKeyAttributes' properties may not be null."); } cacheKey.put(defaultAttrName, querySeed.get(defaultAttrName)); if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using default attribute='" + defaultAttrName + "'"); } } else { for (final Iterator attrItr = this.cacheKeyAttributes.iterator(); attrItr.hasNext();) { final String attr = (String)attrItr.next(); cacheKey.put(attr, querySeed.get(attr)); } if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using attributes='" + this.cacheKeyAttributes + "'"); } } if (cacheKey.size() > 0) { return cacheKey; } else { return null; } }
|
protected Serializable getCacheKey(Map querySeed) { final HashMap cacheKey = new HashMap(); if (this.cacheKeyAttributes == null || this.cacheKeyAttributes.size() == 0) { final String defaultAttrName = this.getDefaultAttributeName(); if (defaultAttrName == null) { throw new IllegalStateException("Both 'defaultAttrName' and 'cacheKeyAttributes' properties may not be null."); } cacheKey.put(defaultAttrName, querySeed.get(defaultAttrName)); if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using default attribute='" + defaultAttrName + "'"); } } else { for (final Iterator attrItr = this.cacheKeyAttributes.iterator(); attrItr.hasNext();) { final String attr = (String)attrItr.next(); if (querySeed.containsKey(attr)) { cacheKey.put(attr, querySeed.get(attr)); } } if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using attributes='" + this.cacheKeyAttributes + "'"); } } if (cacheKey.size() > 0) { return cacheKey; } else { return null; } }
| 1,119,771
|
public Element retrieve() throws java.net.MalformedURLException, java.io.IOException, org.xml.sax.SAXException, javax.xml.transform.TransformerException { String xlink = element.getAttribute("xlink:href"); int sharpIndex = xlink.indexOf("#"); String fragment = xlink.substring(sharpIndex+1, xlink.length()); int index; System.out.println(fragment); // check for escaped quotes, ASCII 22 (hex) is quote while ((index = fragment.indexOf("%22")) != -1) { fragment = fragment.substring(0,index)+'"'+ fragment.substring(index+3); System.out.println(fragment); } // end of while (fragment.indexOf("%22") != -1) if (xlink.startsWith("http") || xlink.startsWith("ftp")) { URL url = new URL(base, xlink); InputStream conn = url.openStream(); BufferedInputStream inStream = new BufferedInputStream(conn); Document doc = docBuilder.parse(inStream); return retrieve(doc, fragment); } // end of if (link.startsWith("http") || link.startsWith("ftp")) // assume it is a relative path, within current document return retrieve(element, fragment); }
|
public Element retrieve() throws java.net.MalformedURLException, java.io.IOException, org.xml.sax.SAXException, javax.xml.transform.TransformerException { String xlink = element.getAttribute("xlink:href"); int sharpIndex = xlink.indexOf("#"); String fragment = xlink.substring(sharpIndex+1, xlink.length()); int index; // check for escaped quotes, ASCII 22 (hex) is quote while ((index = fragment.indexOf("%22")) != -1) { fragment = fragment.substring(0,index)+'"'+ fragment.substring(index+3); } // end of while (fragment.indexOf("%22") != -1) if (xlink.startsWith("http") || xlink.startsWith("ftp")) { URL url = new URL(base, xlink); InputStream conn = url.openStream(); BufferedInputStream inStream = new BufferedInputStream(conn); Document doc = docBuilder.parse(inStream); return retrieve(doc, fragment); } // end of if (link.startsWith("http") || link.startsWith("ftp")) // assume it is a relative path, within current document return retrieve(element, fragment); }
| 1,119,772
|
public ExtensionPolyline() { this.setFill(true); this.setFillXOR(false); this.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); this.setForegroundColor(org.eclipse.draw2d.ColorConstants.black); this.setBackgroundColor(org.eclipse.draw2d.ColorConstants.black); setTargetDecoration(createTargetDecoration()); }
|
public ExtensionPolyline() { this.setFill(true); this.setFillXOR(false); this.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); this.setForegroundColor(org.eclipse.draw2d.ColorConstants.black); this.setBackgroundColor(org.eclipse.draw2d.ColorConstants.black); setTargetDecoration(createTargetDecoration()); }
| 1,119,775
|
private org.eclipse.draw2d.RotatableDecoration createTargetDecoration() { org.eclipse.draw2d.PolygonDecoration df = new org.eclipse.draw2d.PolygonDecoration(); df.setFill(true); df.setFillXOR(false); df.setOutline(true); df.setOutlineXOR(false); df.setLineWidth(1); df.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.draw2d.geometry.PointList pl = new org.eclipse.draw2d.geometry.PointList(); pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(1)); pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0)); pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(-1)); df.setTemplate(pl); df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3)); return df; }
|
private org.eclipse.draw2d.RotatableDecoration createTargetDecoration() { org.eclipse.draw2d.PolygonDecoration df = new org.eclipse.draw2d.PolygonDecoration(); df.setFill(true); df.setFillXOR(false); df.setOutline(true); df.setOutlineXOR(false); df.setLineWidth(1); df.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.draw2d.geometry.PointList pl = new org.eclipse.draw2d.geometry.PointList(); pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(1)); pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0)); pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(-1)); df.setTemplate(pl); df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3)); return df; }
| 1,119,776
|
private org.eclipse.draw2d.RotatableDecoration createTargetDecoration() { org.eclipse.draw2d.PolygonDecoration df = new org.eclipse.draw2d.PolygonDecoration(); df.setFill(true); df.setFillXOR(false); df.setOutline(true); df.setOutlineXOR(false); df.setLineWidth(1); df.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.draw2d.geometry.PointList pl = new org.eclipse.draw2d.geometry.PointList(); pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(1)); pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0)); pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(-1)); df.setTemplate(pl); df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3)); return df; }
|
private org.eclipse.draw2d.RotatableDecoration createTargetDecoration() { org.eclipse.draw2d.PolygonDecoration df = new org.eclipse.draw2d.PolygonDecoration(); df.setFill(true); df.setFillXOR(false); df.setOutline(true); df.setOutlineXOR(false); df.setLineWidth(1); df.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.draw2d.geometry.PointList pl = new org.eclipse.draw2d.geometry.PointList(); pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(1)); pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0)); pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(-1)); df.setTemplate(pl); df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3)); return df; }
| 1,119,777
|
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } String reqpar = request.getParameter("delete"); if (reqpar != null) { return "delete"; } CalSvcI svci = form.fetchSvci(); boolean add = form.getAddingCalendar(); /** We are just updating from the current form values. */ if (!validateCalendar(request, form, add)) { return "retry"; } BwCalendar cal = form.getCalendar(); if (add) { BwCalendar parent = svci.getCalendar(form.getParentCalendarId()); if (parent == null) { return "error"; } svci.addCalendar(cal, parent); } else { svci.updateCalendar(cal); } updateAuthPrefs(form, null, null, null, cal); if (add) { form.getMsg().emit("org.bedework.client.message.calendar.added"); } else { form.getMsg().emit("org.bedework.client.message.calendar.updated"); } return "continue"; }
|
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } String reqpar = request.getParameter("delete"); if (reqpar != null) { return "delete"; } CalSvcI svci = form.fetchSvci(); boolean add = form.getAddingCalendar(); /** We are just updating from the current form values. */ if (!validateCalendar(request, form, add)) { return "retry"; } BwCalendar cal = form.getCalendar(); if (add) { BwCalendar parent = svci.getCalendar(form.getParentCalendarId()); if (parent == null) { return "error"; } svci.addCalendar(cal, parent); } else { svci.updateCalendar(cal); } if (cal.getCalendarCollection()) { updateAuthPrefs(form, null, null, null, cal); } if (add) { form.getMsg().emit("org.bedework.client.message.calendar.added"); } else { form.getMsg().emit("org.bedework.client.message.calendar.updated"); } return "continue"; }
| 1,119,778
|
public char[] encode() throws AccessException { startEncoding(); if (aces != null) { Iterator it = aces.iterator(); while (it.hasNext()) { Ace ace = (Ace)it.next(); ace.encode(this); } } return getEncoding(); }
|
public char[] encode() throws AccessException { startEncoding(); if (aces != null) { Iterator it = aces.iterator(); while (it.hasNext()) { Ace ace = (Ace)it.next(); if (!ace.getInherited()) { ace.encode(this); } } } return getEncoding(); }
| 1,119,779
|
public void dump(Logger log, String indent) { StringBuffer sb = new StringBuffer(indent); sb.append("<prop-filter name=\""); sb.append(name); sb.append("\">\n"); log.debug(sb.toString()); if (isNotDefined) { log.debug(indent + " " + "<is-not-defined/>\n"); } else if (timeRange != null) { timeRange.dump(log, indent + " "); } else { match.dump(log, indent + " "); } if (paramFilters != null) { Iterator it = paramFilters.iterator(); while (it.hasNext()) { ParamFilter pf = (ParamFilter)it.next(); pf.dump(log, indent + " "); } } log.debug(indent + "<prop-filter/>"); }
|
public void dump(Logger log, String indent) { StringBuffer sb = new StringBuffer(indent); sb.append("<prop-filter name=\""); sb.append(name); sb.append("\">\n"); log.debug(sb.toString()); if (isNotDefined) { log.debug(indent + " " + "<is-not-defined/>\n"); } else if (timeRange != null) { timeRange.dump(log, indent + " "); } else if (match != null) { match.dump(log, indent + " "); } if (paramFilters != null) { Iterator it = paramFilters.iterator(); while (it.hasNext()) { ParamFilter pf = (ParamFilter)it.next(); pf.dump(log, indent + " "); } } log.debug(indent + "<prop-filter/>"); }
| 1,119,780
|
public void run() { int maxFail = 5; setFinished(false); consecutiveFailures = 0; quitThread = false; while (!quitThread) { try { checkNet(); } catch (RuntimeException e) { if(consecutiveFailures > maxFail) { throw e; } try { setStatus("Waiting 2 seconds before making another attempt"); consecutiveFailures++; Thread.sleep(2000 * consecutiveFailures); if(consecutiveFailures > maxFail) quitThread = true; }catch(InterruptedException e) { } } } logger.debug("network checker thread quitting"); setFinished(); if(consecutiveFailures > maxFail) setStatus("Failed"); }
|
public void run() { int maxFail = 5; setFinished(false); consecutiveFailures = 0; quitThread = false; while (!quitThread) { try { checkNet(); } catch (RuntimeException e) { if(consecutiveFailures > maxFail) { throw e; } try { setStatus("Waiting 2 seconds before making another attempt"); consecutiveFailures++; Thread.sleep(2000 * consecutiveFailures); if(consecutiveFailures > maxFail) quitThread = true; }catch(InterruptedException interrupted) { } } } logger.debug("network checker thread quitting"); setFinished(); if(consecutiveFailures > maxFail) setStatus("Failed"); }
| 1,119,781
|
public int doEndTag() throws JspException { try { JspWriter out = pageContext.getOut(); // get locale-specific stuff locale = getDefaultLocale(); if (resourceBundle == null) resourceBundle = getDefaultResourceBundle(); if (timeZone == null) timeZone = getDefaultTimeZone(); if (dateFormatSymbols == null) dateFormatSymbols = getDateFormatSymbols(); Date currentTime = new Date(); if (showDate == null) showDate = new Date(currentTime.getTime()); Calendar current = Calendar.getInstance(timeZone, locale); current.setTime(showDate); Calendar prevCal = Calendar.getInstance(timeZone, locale); prevCal.setTime(current.getTime()); prevCal.add(Calendar.MONTH, -1); Calendar nextCal = Calendar.getInstance(timeZone, locale); nextCal.setTime(current.getTime()); nextCal.add(Calendar.MONTH, 1); renderPrevLink(out, prevCal.get(Calendar.MONTH) + 1, prevCal.get(Calendar.YEAR)); renderCaption(out, current); renderNextLink(out, nextCal.get(Calendar.MONTH) + 1, nextCal.get(Calendar.YEAR)); return EVAL_PAGE; } catch (IOException e) { throw new JspException(e); } finally { cleanup(); } }
|
public int doEndTag() throws JspException { try { JspWriter out = pageContext.getOut(); // get locale-specific stuff locale = getDefaultLocale(); if (resourceBundle == null) resourceBundle = getDefaultResourceBundle(); if (timeZone == null) timeZone = getDefaultTimeZone(); if (dateFormatSymbols == null) dateFormatSymbols = getDateFormatSymbols(); Date currentTime = new Date(); if (showDate == null) showDate = new Date(currentTime.getTime()); Calendar current = Calendar.getInstance(timeZone, locale); current.setTime(showDate); Calendar prevCal = Calendar.getInstance(timeZone, locale); prevCal.setTime(current.getTime()); prevCal.add(Calendar.MONTH, -1); Calendar nextCal = Calendar.getInstance(timeZone, locale); nextCal.setTime(current.getTime()); nextCal.add(Calendar.MONTH, 1); renderPrevLink(out, prevCal.get(Calendar.YEAR), prevCal.get(Calendar.MONTH) + 1); renderCaption(out, current); renderNextLink(out, nextCal.get(Calendar.MONTH) + 1, nextCal.get(Calendar.YEAR)); return EVAL_PAGE; } catch (IOException e) { throw new JspException(e); } finally { cleanup(); } }
| 1,119,782
|
public int doEndTag() throws JspException { try { JspWriter out = pageContext.getOut(); // get locale-specific stuff locale = getDefaultLocale(); if (resourceBundle == null) resourceBundle = getDefaultResourceBundle(); if (timeZone == null) timeZone = getDefaultTimeZone(); if (dateFormatSymbols == null) dateFormatSymbols = getDateFormatSymbols(); Date currentTime = new Date(); if (showDate == null) showDate = new Date(currentTime.getTime()); Calendar current = Calendar.getInstance(timeZone, locale); current.setTime(showDate); Calendar prevCal = Calendar.getInstance(timeZone, locale); prevCal.setTime(current.getTime()); prevCal.add(Calendar.MONTH, -1); Calendar nextCal = Calendar.getInstance(timeZone, locale); nextCal.setTime(current.getTime()); nextCal.add(Calendar.MONTH, 1); renderPrevLink(out, prevCal.get(Calendar.MONTH) + 1, prevCal.get(Calendar.YEAR)); renderCaption(out, current); renderNextLink(out, nextCal.get(Calendar.MONTH) + 1, nextCal.get(Calendar.YEAR)); return EVAL_PAGE; } catch (IOException e) { throw new JspException(e); } finally { cleanup(); } }
|
public int doEndTag() throws JspException { try { JspWriter out = pageContext.getOut(); // get locale-specific stuff locale = getDefaultLocale(); if (resourceBundle == null) resourceBundle = getDefaultResourceBundle(); if (timeZone == null) timeZone = getDefaultTimeZone(); if (dateFormatSymbols == null) dateFormatSymbols = getDateFormatSymbols(); Date currentTime = new Date(); if (showDate == null) showDate = new Date(currentTime.getTime()); Calendar current = Calendar.getInstance(timeZone, locale); current.setTime(showDate); Calendar prevCal = Calendar.getInstance(timeZone, locale); prevCal.setTime(current.getTime()); prevCal.add(Calendar.MONTH, -1); Calendar nextCal = Calendar.getInstance(timeZone, locale); nextCal.setTime(current.getTime()); nextCal.add(Calendar.MONTH, 1); renderPrevLink(out, prevCal.get(Calendar.MONTH) + 1, prevCal.get(Calendar.YEAR)); renderCaption(out, current); renderNextLink(out, nextCal.get(Calendar.YEAR), nextCal.get(Calendar.MONTH) + 1); return EVAL_PAGE; } catch (IOException e) { throw new JspException(e); } finally { cleanup(); } }
| 1,119,783
|
public BasicSeismogramDisplay addDisplay(DataSetSeismogram[] dss){ return addDisplay(dss, DisplayUtils.getSeismogramNames(dss)); }
|
public BasicSeismogramDisplay addDisplay(DataSetSeismogram[] dss){ return addDisplay(dss, globalRegistrar, globalRegistrar); }
| 1,119,784
|
public void testJavaBaseFieldAssignment() { try { ATMessage message = new NATMethodInvocation( AGSymbol.alloc("at"), NATTable.EMPTY); message.base_setArguments( new NATTable(new ATObject[] { closures.base_getLength() })); ATObject element = message.base_sendTo(closures); element.base_asClosure().base_apply(NATTable.EMPTY); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
|
public void testJavaBaseFieldAssignment() { try { ATMessage message = new NATMethodInvocation( AGSymbol.jAlloc("at"), NATTable.EMPTY); message.base_setArguments( new NATTable(new ATObject[] { closures.base_getLength() })); ATObject element = message.base_sendTo(closures); element.base_asClosure().base_apply(NATTable.EMPTY); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
| 1,119,785
|
public void testSimulatedBaseFieldAccess() { try { ATObject accessor = closures.meta_select(closures, AGSymbol.alloc("at")); ATObject element = accessor.base_asClosure().base_apply( new NATTable(new ATObject[] { closures.meta_select(closures, AGSymbol.alloc("length"))})); element.base_asClosure().base_apply(NATTable.EMPTY); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
|
public void testSimulatedBaseFieldAccess() { try { ATObject accessor = closures.meta_select(closures, AGSymbol.jAlloc("at")); ATObject element = accessor.base_asClosure().base_apply( new NATTable(new ATObject[] { closures.meta_select(closures, AGSymbol.alloc("length"))})); element.base_asClosure().base_apply(NATTable.EMPTY); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
| 1,119,786
|
public void testSimulatedBaseFieldAccess() { try { ATObject accessor = closures.meta_select(closures, AGSymbol.alloc("at")); ATObject element = accessor.base_asClosure().base_apply( new NATTable(new ATObject[] { closures.meta_select(closures, AGSymbol.alloc("length"))})); element.base_asClosure().base_apply(NATTable.EMPTY); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
|
public void testSimulatedBaseFieldAccess() { try { ATObject accessor = closures.meta_select(closures, AGSymbol.alloc("at")); ATObject element = accessor.base_asClosure().base_apply( new NATTable(new ATObject[] { closures.meta_select(closures, AGSymbol.jAlloc("length"))})); element.base_asClosure().base_apply(NATTable.EMPTY); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
| 1,119,787
|
public void testSimulatedBaseFieldAssignment() { try { ATMessage message = new NATMethodInvocation( AGSymbol.alloc("at"), NATTable.EMPTY); message.meta_assignVariable( AGSymbol.alloc("arguments"), new NATTable(new ATObject[] { closures.base_getLength() })); ATObject element = message.base_sendTo(closures); element.base_asClosure().base_apply(NATTable.EMPTY); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
|
public void testSimulatedBaseFieldAssignment() { try { ATMessage message = new NATMethodInvocation( AGSymbol.jAlloc("at"), NATTable.EMPTY); message.meta_assignVariable( AGSymbol.alloc("arguments"), new NATTable(new ATObject[] { closures.base_getLength() })); ATObject element = message.base_sendTo(closures); element.base_asClosure().base_apply(NATTable.EMPTY); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
| 1,119,788
|
public void testSimulatedBaseFieldAssignment() { try { ATMessage message = new NATMethodInvocation( AGSymbol.alloc("at"), NATTable.EMPTY); message.meta_assignVariable( AGSymbol.alloc("arguments"), new NATTable(new ATObject[] { closures.base_getLength() })); ATObject element = message.base_sendTo(closures); element.base_asClosure().base_apply(NATTable.EMPTY); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
|
public void testSimulatedBaseFieldAssignment() { try { ATMessage message = new NATMethodInvocation( AGSymbol.alloc("at"), NATTable.EMPTY); message.meta_assignVariable( AGSymbol.jAlloc("arguments"), new NATTable(new ATObject[] { closures.base_getLength() })); ATObject element = message.base_sendTo(closures); element.base_asClosure().base_apply(NATTable.EMPTY); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
| 1,119,789
|
public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
|
public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.jAlloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
| 1,119,790
|
public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
|
public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.jAlloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
| 1,119,791
|
public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
|
public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.jAlloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
| 1,119,792
|
public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
|
public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.jAlloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
| 1,119,793
|
public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
|
public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.jAlloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
| 1,119,794
|
public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
|
public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.jAlloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } }
| 1,119,795
|
public ATNil meta_addField(ATField field) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.alloc("addField"), new NATTable(new ATObject[] { field }) ); return NATNil._INSTANCE_; }
|
public ATNil meta_addField(ATField field) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("addField"), new NATTable(new ATObject[] { field }) ); return NATNil._INSTANCE_; }
| 1,119,796
|
public ATNil meta_addMethod(ATMethod method) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.alloc("addMethod"), new NATTable(new ATObject[] { method }) ); return NATNil._INSTANCE_; }
|
public ATNil meta_addMethod(ATMethod method) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("addMethod"), new NATTable(new ATObject[] { method }) ); return NATNil._INSTANCE_; }
| 1,119,797
|
public ATNil meta_assignField(ATObject receiver, ATSymbol selector, ATObject value) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.alloc("assignField"), new NATTable(new ATObject[] { receiver, selector, value }) ); return NATNil._INSTANCE_; }
|
public ATNil meta_assignField(ATObject receiver, ATSymbol selector, ATObject value) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("assignField"), new NATTable(new ATObject[] { receiver, selector, value }) ); return NATNil._INSTANCE_; }
| 1,119,798
|
public ATNil meta_assignVariable(ATSymbol name, ATObject value) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.alloc("assignVariable"), new NATTable(new ATObject[] { name, value }) ); return NATNil._INSTANCE_; }
|
public ATNil meta_assignVariable(ATSymbol name, ATObject value) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("assignVariable"), new NATTable(new ATObject[] { name, value }) ); return NATNil._INSTANCE_; }
| 1,119,799
|
public ATObject meta_clone() throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.alloc("clone"), NATTable.EMPTY )); }
|
public ATObject meta_clone() throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("clone"), NATTable.EMPTY )); }
| 1,119,800
|
public ATNil meta_defineField(ATSymbol name, ATObject value) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.alloc("defineField"), new NATTable(new ATObject[] { name, value }) ); return NATNil._INSTANCE_; }
|
public ATNil meta_defineField(ATSymbol name, ATObject value) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("defineField"), new NATTable(new ATObject[] { name, value }) ); return NATNil._INSTANCE_; }
| 1,119,801
|
public ATObject meta_doesNotUnderstand(ATSymbol selector) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.alloc("doesNotUnderstand"), new NATTable(new ATObject[] { selector }) )); }
|
public ATObject meta_doesNotUnderstand(ATSymbol selector) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("doesNotUnderstand"), new NATTable(new ATObject[] { selector }) )); }
| 1,119,802
|
public ATObject meta_eval(ATContext ctx) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.alloc("eval"), new NATTable(new ATObject[] { ctx }) )); }
|
public ATObject meta_eval(ATContext ctx) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("eval"), new NATTable(new ATObject[] { ctx }) )); }
| 1,119,803
|
public ATObject meta_extend(ATClosure code) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.alloc("extend"), new NATTable(new ATObject[] { code }) )); }
|
public ATObject meta_extend(ATClosure code) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("extend"), new NATTable(new ATObject[] { code }) )); }
| 1,119,804
|
public ATObject meta_getDynamicParent() throws InterpreterException { return Reflection.downObject(mirror_.meta_select( mirror_, AGSymbol.alloc("dynamicParent"))); }
|
public ATObject meta_getDynamicParent() throws InterpreterException { return Reflection.downObject(mirror_.meta_select( mirror_, AGSymbol.jAlloc("dynamicParent"))); }
| 1,119,805
|
public ATObject meta_getLexicalParent() throws InterpreterException { return Reflection.downObject(mirror_.meta_select( mirror_, AGSymbol.alloc("lexicalParent"))); }
|
public ATObject meta_getLexicalParent() throws InterpreterException { return Reflection.downObject(mirror_.meta_select( mirror_, AGSymbol.jAlloc("lexicalParent"))); }
| 1,119,806
|
public ATField meta_grabField(ATSymbol selector) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.alloc("getField"), new NATTable(new ATObject[] { selector }) )).base_asField(); }
|
public ATField meta_grabField(ATSymbol selector) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("getField"), new NATTable(new ATObject[] { selector }) )).base_asField(); }
| 1,119,807
|
public ATMethod meta_grabMethod(ATSymbol selector) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.alloc("getMethod"), new NATTable(new ATObject[] { selector }) )).base_asMethod(); }
|
public ATMethod meta_grabMethod(ATSymbol selector) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("getMethod"), new NATTable(new ATObject[] { selector }) )).base_asMethod(); }
| 1,119,808
|
public ATObject meta_invoke(ATObject receiver, ATSymbol selector, ATTable arguments) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.alloc("invoke"), new NATTable(new ATObject[] { receiver, selector, arguments }) )); }
|
public ATObject meta_invoke(ATObject receiver, ATSymbol selector, ATTable arguments) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("invoke"), new NATTable(new ATObject[] { receiver, selector, arguments }) )); }
| 1,119,809
|
public ATTable meta_listFields() throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.alloc("listFields"), NATTable.EMPTY )).base_asTable(); }
|
public ATTable meta_listFields() throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("listFields"), NATTable.EMPTY )).base_asTable(); }
| 1,119,810
|
public ATTable meta_listMethods() throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.alloc("listMethods"), NATTable.EMPTY )).base_asTable(); }
|
public ATTable meta_listMethods() throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("listMethods"), NATTable.EMPTY )).base_asTable(); }
| 1,119,811
|
public ATObject meta_lookup(ATSymbol selector) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.alloc("lookup"), new NATTable(new ATObject[] { selector }) )); }
|
public ATObject meta_lookup(ATSymbol selector) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("lookup"), new NATTable(new ATObject[] { selector }) )); }
| 1,119,812
|
public ATObject meta_newInstance(ATTable initargs) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.alloc("newInstance"), new NATTable(new ATObject[] { initargs }) )); }
|
public ATObject meta_newInstance(ATTable initargs) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("newInstance"), new NATTable(new ATObject[] { initargs }) )); }
| 1,119,813
|
public ATObject meta_quote(ATContext ctx) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.alloc("quote"), new NATTable(new ATObject[] { ctx }) )); }
|
public ATObject meta_quote(ATContext ctx) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("quote"), new NATTable(new ATObject[] { ctx }) )); }
| 1,119,814
|
public ATBoolean meta_respondsTo(ATSymbol selector) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.alloc("respondsTo"), new NATTable(new ATObject[] { selector }) )).base_asBoolean(); }
|
public ATBoolean meta_respondsTo(ATSymbol selector) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("respondsTo"), new NATTable(new ATObject[] { selector }) )).base_asBoolean(); }
| 1,119,815
|
public ATObject meta_select(ATObject receiver, ATSymbol selector) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.alloc("select"), new NATTable(new ATObject[] { receiver, selector }) )); }
|
public ATObject meta_select(ATObject receiver, ATSymbol selector) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("select"), new NATTable(new ATObject[] { receiver, selector }) )); }
| 1,119,816
|
public ATNil meta_send(ATAsyncMessage message) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.alloc("send"), new NATTable(new ATObject[] { message }) ); return NATNil._INSTANCE_; }
|
public ATNil meta_send(ATAsyncMessage message) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("send"), new NATTable(new ATObject[] { message }) ); return NATNil._INSTANCE_; }
| 1,119,817
|
public ATObject meta_share(ATClosure code) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.alloc("share"), new NATTable(new ATObject[] { code }) )); }
|
public ATObject meta_share(ATClosure code) throws InterpreterException { return Reflection.downObject(mirror_.meta_invoke( mirror_, AGSymbol.jAlloc("share"), new NATTable(new ATObject[] { code }) )); }
| 1,119,818
|
FilterPanel( SortedSet tags, DataDictionary dataDictionary ) { setLayout( new FlowLayout() ); enablePanel( false ); checkBox.setPreferredSize( new Dimension(25, 25) ); add( checkBox ); comboBox.setPreferredSize( new Dimension(200, 25) ); add( comboBox ); operatorComboBox.setPreferredSize( new Dimension(50, 25) ); add( operatorComboBox ); textField.setPreferredSize( new Dimension(275, 25) ); add( textField ); add( new JLabel() ); TreeSet sortedTags = new TreeSet(tags); Iterator i = sortedTags.iterator(); while( i.hasNext() ) { comboBox.addItem( new ComboBoxItem((Integer)i.next(), dataDictionary )); } checkBox.addChangeListener( this ); }
|
FilterPanel( SortedSet tags, DataDictionary dataDictionary ) { setLayout( new FlowLayout() ); enablePanel( false ); checkBox.setPreferredSize( new Dimension(25, 25) ); add( checkBox ); comboBox.setPreferredSize( new Dimension(200, 25) ); add( comboBox ); operatorComboBox.setPreferredSize( new Dimension(50, 25) ); add( operatorComboBox ); textField.setPreferredSize( new Dimension(250, 25) ); add( textField ); add( new JLabel() ); TreeSet sortedTags = new TreeSet(tags); Iterator i = sortedTags.iterator(); while( i.hasNext() ) { comboBox.addItem( new ComboBoxItem((Integer)i.next(), dataDictionary )); } checkBox.addChangeListener( this ); }
| 1,119,819
|
public ControlPanel(final AudioPlayer owner) { this(owner, PREV | PLAY | NEXT | RANDOM); }
|
public ControlPanel(final AudioPlayer owner) { this(owner, PREV | PLAY | NEXT | PLAYALL | RANDOM); }
| 1,119,821
|
public void actionPerformed(ActionEvent e) { MainPanel mainPanel = (MainPanel)owner.getPanelInstance(); mainPanel.getPlaylist().setRandom(random.isSelected()); }
|
public void actionPerformed(ActionEvent e) { MainPanel mainPanel = (MainPanel)owner.getPanelInstance(); mainPanel.getPlaylist().setPlayAll(playAll.isSelected()); }
| 1,119,822
|
public ATObject base_reflect_(ATObject reflectee) throws InterpreterException { return NATMirrorFactory._INSTANCE_.base_createMirror(reflectee); }
|
public ATObject base_reflect_(ATObject reflectee) throws InterpreterException { return NATIntrospectiveMirror.atValue(reflectee); }
| 1,119,823
|
public int doStartTag() throws JspException { HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); String[] roles = role.split(","); for (int i = 0; i < roles.length; i++) { if (request.isUserInRole(roles[i])) return EVAL_BODY_INCLUDE; } return SKIP_BODY; }
|
public int doStartTag() throws JspException { HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); String[] roles = role.split(","); for (int i = 0; i < roles.length; i++) { if (request.isUserInRole(roles[i].trim())) return EVAL_BODY_INCLUDE; } return SKIP_BODY; }
| 1,119,824
|
protected String evalString(Node context, String path) { try { return xpath.eval(config, "@datasetid").str(); } catch (javax.xml.transform.TransformerException e) { logger.error("Couldn't get String", e); } // end of try-catch return null; }
|
protected String evalString(Node context, String path) { try { return xpath.eval(config, path).str(); } catch (javax.xml.transform.TransformerException e) { logger.error("Couldn't get String", e); } // end of try-catch return null; }
| 1,119,826
|
public Object getParamter(String name) { if (parameterCache.containsKey(name)) { return parameterCache.get(name); } // end of if (parameterCache.containsKey(name)) NodeList nList = evalNodeList(config, "dataset/parameter[name/text()="+ dquote+name+dquote+"]"); if (nList != null && nList.getLength() != 0) { Node n = nList.item(0); if (n instanceof Element) { parameterCache.put(name, n); return (Element)n; } } // not a parameter, try parameterRef nList = evalNodeList(config, "dataset/parameterRef[text()="+dquote+name+dquote+"]"); if (nList != null && nList.getLength() != 0) { Node n = nList.item(0); if (n instanceof Element) { SimpleXLink sl = new SimpleXLink(docBuilder, (Element)n); try { Element e = sl.retrieve(); parameterCache.put(name, e); return e; } catch (Exception e) { logger.error("can't get paramterRef", e); } // end of try-catch } } //can't find that name??? return null; }
|
public Object getParamter(String name) { if (parameterCache.containsKey(name)) { return parameterCache.get(name); } // end of if (parameterCache.containsKey(name)) NodeList nList = evalNodeList(config, "parameter[name/text()="+ dquote+name+dquote+"]"); if (nList != null && nList.getLength() != 0) { Node n = nList.item(0); if (n instanceof Element) { parameterCache.put(name, n); return (Element)n; } } // not a parameter, try parameterRef nList = evalNodeList(config, "dataset/parameterRef[text()="+dquote+name+dquote+"]"); if (nList != null && nList.getLength() != 0) { Node n = nList.item(0); if (n instanceof Element) { SimpleXLink sl = new SimpleXLink(docBuilder, (Element)n); try { Element e = sl.retrieve(); parameterCache.put(name, e); return e; } catch (Exception e) { logger.error("can't get paramterRef", e); } // end of try-catch } } //can't find that name??? return null; }
| 1,119,827
|
public Object getParamter(String name) { if (parameterCache.containsKey(name)) { return parameterCache.get(name); } // end of if (parameterCache.containsKey(name)) NodeList nList = evalNodeList(config, "dataset/parameter[name/text()="+ dquote+name+dquote+"]"); if (nList != null && nList.getLength() != 0) { Node n = nList.item(0); if (n instanceof Element) { parameterCache.put(name, n); return (Element)n; } } // not a parameter, try parameterRef nList = evalNodeList(config, "dataset/parameterRef[text()="+dquote+name+dquote+"]"); if (nList != null && nList.getLength() != 0) { Node n = nList.item(0); if (n instanceof Element) { SimpleXLink sl = new SimpleXLink(docBuilder, (Element)n); try { Element e = sl.retrieve(); parameterCache.put(name, e); return e; } catch (Exception e) { logger.error("can't get paramterRef", e); } // end of try-catch } } //can't find that name??? return null; }
|
public Object getParamter(String name) { if (parameterCache.containsKey(name)) { return parameterCache.get(name); } // end of if (parameterCache.containsKey(name)) NodeList nList = evalNodeList(config, "dataset/parameter[name/text()="+ dquote+name+dquote+"]"); if (nList != null && nList.getLength() != 0) { Node n = nList.item(0); if (n instanceof Element) { parameterCache.put(name, n); return (Element)n; } } // not a parameter, try parameterRef nList = evalNodeList(config, "parameterRef[text()="+dquote+name+dquote+"]"); if (nList != null && nList.getLength() != 0) { Node n = nList.item(0); if (n instanceof Element) { SimpleXLink sl = new SimpleXLink(docBuilder, (Element)n); try { Element e = sl.retrieve(); parameterCache.put(name, e); return e; } catch (Exception e) { logger.error("can't get paramterRef", e); } // end of try-catch } } //can't find that name??? return null; }
| 1,119,828
|
public BwFreeBusy getFreeBusy(CalSvcI svci, BwCalendar cal, String account) throws WebdavException { try { BwUser user = svci.findUser(account); if (user == null) { throw WebdavIntfException.unauthorized(); } BwFreeBusy fb = svci.getFreeBusy(cal, user, timeRange.getStart(), timeRange.getEnd(), null, false); if (debug) { trace("Got " + fb); } return fb; } catch (Throwable t) { throw new WebdavException(t); } }
|
public BwFreeBusy getFreeBusy(CalSvcI svci, BwCalendar cal, String account) throws WebdavException { try { BwUser user = svci.findUser(account); if (user == null) { throw WebdavIntfException.unauthorized(); } if (svci.isUserRoot(cal)) { cal = null; } BwFreeBusy fb = svci.getFreeBusy(null, cal, user, timeRange.getStart(), timeRange.getEnd(), null, false); if (debug) { trace("Got " + fb); } return fb; } catch (Throwable t) { throw new WebdavException(t); } }
| 1,119,830
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.