buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public ClassMetaData addEmbeddedMetaData() {
MetaDataRepository repos = _owner.getRepository();
_embeddedMeta = repos.newEmbeddedClassMetaData(this);
_embeddedMeta.setDescribedType(_decType);
repos.getMetaDataFactory().getDefaults().populate(_embeddedMeta,
ClassMetaData.A... | public ClassMetaData addEmbeddedMetaData() {
MetaDataRepository repos = _owner.getRepository();
_embeddedMeta = repos.newEmbeddedClassMetaData(this);
_embeddedMeta.setDescribedType(_decType);
repos.getMetaDataFactory().getDefaults().populate(_embeddedMeta,
AccessCode.UNKN... |
private String getTriggerJavaScript()
{
Form form = getForm();
StringBuffer sb = new StringBuffer(100);
sb.append("var e=document.getElementById('");
sb.append(form.getHiddenFieldId(Form.HIDDEN_FIELD_FAKE_SUBMIT));
sb.append("'); e.name=\'");
sb.append(getInputName());
sb.append("'; e.value='x';");
s... | private String getTriggerJavaScript()
{
Form form = getForm();
StringBuffer sb = new StringBuffer(100);
sb.append("var e=document.getElementById('");
sb.append(form.getHiddenFieldId(Form.HIDDEN_FIELD_FAKE_SUBMIT));
sb.append("'); e.name=\'");
sb.append(getInputName());
sb.append("'; e.value='x';");
s... |
public String getName() { // HC3.1 does not have the method
return HTTPConstants.PATCH;
}
};
} else {
throw new IllegalArgumentException("Unexpected method: "+method);
}
final CacheManage... | public String getName() { // HC3.1 does not have the method
return HTTPConstants.PATCH;
}
};
} else {
throw new IllegalArgumentException("Unexpected method: '"+method+"'");
}
final CacheM... |
protected HTTPSampleResult sample(URL url, String method,
boolean areFollowingRedirect, int frameDepth) {
HTTPSampleResult res = createSampleResult(url, method);
HttpClient httpClient = setupClient(url);
HttpRequestBase httpRequest = null;
try {
URI... | protected HTTPSampleResult sample(URL url, String method,
boolean areFollowingRedirect, int frameDepth) {
HTTPSampleResult res = createSampleResult(url, method);
HttpClient httpClient = setupClient(url);
HttpRequestBase httpRequest = null;
try {
URI... |
private static final void addResources(final Class scope, final Pattern pattern,
final List resources, final StringBuffer relativePath, final File dir, boolean recurse)
{
File[] files = dir.listFiles();
for (int i = 0; i < files.length; i++)
{
File file = files[i];
if (file.isDirectory())
{
if (... | private static final void addResources(final Class scope, final Pattern pattern,
final List resources, final StringBuffer relativePath, final File dir, boolean recurse)
{
File[] files = dir.listFiles();
for (int i = 0; i < files.length; i++)
{
File file = files[i];
if (file.isDirectory())
{
if (... |
public void write(int b) throws IOException {
fBuffer[fPosition++] = (byte)b;
if (fPosition == fBuffer.length) {
fPosition = 0;
fDataOutputStream.writeInt(fBuffer.length);
write(fBuffer, 0, fBuffer.length);
}
} // write(int)
| public void write(int b) throws IOException {
fBuffer[fPosition++] = (byte)b;
if (fPosition == fBuffer.length) {
fPosition = 0;
fDataOutputStream.writeInt(fBuffer.length);
super.out.write(fBuffer, 0, fBuffer.length);
}
} // write(int)
|
protected final void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag)
{
// Buffer to hold generated body
final StringBuffer buffer = new StringBuffer();
// Iterate through choices
final List choices = getChoices();
// Loop through choices
for(int index=0;index<cho... | protected final void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag)
{
// Buffer to hold generated body
final StringBuffer buffer = new StringBuffer();
// Iterate through choices
final List choices = getChoices();
// Loop through choices
for(int index=0;index<cho... |
protected FileSet getRef(Project p) {
if (!checked) {
Stack stk = new Stack();
stk.push(this);
dieOnCircularReference(stk, p);
}
Object o = ref.getReferencedObject(p);
if (!o.getClass().equals(getClass())) {
String msg = ref.ge... | protected FileSet getRef(Project p) {
if (!checked) {
Stack stk = new Stack();
stk.push(this);
dieOnCircularReference(stk, p);
}
Object o = ref.getReferencedObject(p);
if (!getClass().isAssignableFrom(o.getClass())) {
String ms... |
public final void respond(final RequestCycle requestCycle, final RuntimeException e)
{
// If application doesn't want debug info showing up for users
final Session session = requestCycle.getSession();
final Application application = session.getApplication();
final IExceptionSettings settings = application.get... | public final void respond(final RequestCycle requestCycle, final RuntimeException e)
{
// If application doesn't want debug info showing up for users
final Session session = requestCycle.getSession();
final Application application = session.getApplication();
final IExceptionSettings settings = application.get... |
protected IRequestTarget resolveBookmarkablePage(final RequestCycle requestCycle,
final RequestParameters requestParameters)
{
String bookmarkablePageClass = requestParameters.getBookmarkablePageClass();
Session session = requestCycle.getSession();
Application application = session.getApplication();
Class<... | protected IRequestTarget resolveBookmarkablePage(final RequestCycle requestCycle,
final RequestParameters requestParameters)
{
String bookmarkablePageClass = requestParameters.getBookmarkablePageClass();
Session session = requestCycle.getSession();
Application application = session.getApplication();
Class<... |
public BinaryMethodSkeleton(char[] selector, char[] methodDescriptor, char[][] exceptionTypeNames, boolean isConstructor) {
this.selector = selector;
this.methodDescriptor = methodDescriptor;
this.exceptionTypeNames = exceptionTypeNames;
this.isConstructor = isConstructor;
}
| public BinaryMethodSkeleton(char[] selector, char[] methodDescriptor, char[][] exceptionTypeNames, boolean isConstructor) {
this.selector = selector;
this.methodDescriptor = methodDescriptor;
this.exceptionTypeNames = exceptionTypeNames;
this.isConstructor = this.isConstructor;
}
|
public String getInputName()
{
// TODO: This is a copy & paste from the FormComponent class.
String id = getId();
final PrependingStringBuffer inputName = new PrependingStringBuffer(id.length());
Component c = this;
while (true)
{
inputName.prepend(id);
c = c.getParent();
if (c == null || (c inst... | public String getInputName()
{
// TODO: This is a copy & paste from the FormComponent class.
String id = getId();
final PrependingStringBuffer inputName = new PrependingStringBuffer(id.length());
Component c = this;
while (true)
{
inputName.prepend(id);
c = c.getParent();
if (c == null || (c inst... |
public String getInputName()
{
// TODO: keep this in sync with AbstractSubmitLink#getInputName
String id = getId();
final PrependingStringBuffer inputName = new PrependingStringBuffer(id.length());
Component c = this;
while (true)
{
inputName.prepend(id);
c = c.getParent();
if (c == null || (c in... | public String getInputName()
{
// TODO: keep this in sync with AbstractSubmitLink#getInputName
String id = getId();
final PrependingStringBuffer inputName = new PrependingStringBuffer(id.length());
Component c = this;
while (true)
{
inputName.prepend(id);
c = c.getParent();
if (c == null || (c in... |
protected final TreeState newTreeState(final TreeModel treeModel, final boolean rootVisible)
{
final TreeState treeState = new TreeState();
final TreeSelectionModel treeSelectionModel = new DefaultTreeSelectionModel();
treeSelectionModel.setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
treeState.se... | protected final TreeState newTreeState(final TreeModel treeModel, final boolean rootVisible)
{
final TreeState treeState = new TreeState();
final TreeSelectionModel treeSelectionModel = new DefaultTreeSelectionModel();
treeSelectionModel.setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
treeS... |
public void execute() throws BuildException {
if ( (sourceFileSets.size() == 0) && (sourceFileLists.size() == 0) ) {
throw new BuildException("At least one <srcfileset> or <srcfilelist> element must be set");
}
if ( (targetFileSets.size() == 0) && (targetFileLists.size() == 0) )... | public void execute() throws BuildException {
if ( (sourceFileSets.size() == 0) && (sourceFileLists.size() == 0) ) {
throw new BuildException("At least one <srcfileset> or <srcfilelist> element must be set");
}
if ( (targetFileSets.size() == 0) && (targetFileLists.size() == 0) )... |
public String[] restrict(String[] files, File srcDir, File destDir,
FileNameMapper mapper) {
long now = (new java.util.Date()).getTime();
StringBuffer targetList = new StringBuffer();
/*
If we're on Windows, we have to munge the time up to 2 secs to
... | public String[] restrict(String[] files, File srcDir, File destDir,
FileNameMapper mapper) {
long now = (new java.util.Date()).getTime();
StringBuffer targetList = new StringBuffer();
/*
If we're on Windows, we have to munge the time up to 2 secs to
... |
public void execute() throws ExecutionException {
String language = factory.getScriptLanguage(scriptName);
String script = factory.getScript(scriptName);
try {
BSFManager manager = new BSFManager();
manager.declareBean("self", this, getClass());
manager.d... | public void execute() throws ExecutionException {
String language = factory.getScriptLanguage(scriptName);
String script = factory.getScript(scriptName);
try {
BSFManager manager = new BSFManager();
manager.declareBean("self", this, getClass());
manager.d... |
public void execute() throws ExecutionException {
if (baseDir == null) {
baseDir = getContext().getBaseDir();
}
if (antFile == null) {
antFile = new File(baseDir, "build.ant");
if (!antFile.exists()) {
antFile = new File(baseDir, "build.xml... | public void execute() throws ExecutionException {
if (baseDir == null) {
baseDir = getAntContext().getBaseDir();
}
if (antFile == null) {
antFile = new File(baseDir, "build.ant");
if (!antFile.exists()) {
antFile = new File(baseDir, "build.... |
public void execute() throws ExecutionException {
setProperty(MagicProperties.BASEDIR,
getContext().getBaseDir().getAbsolutePath());
ExecService execService
= (ExecService)getCoreService(ExecService.class);
execService.callTarget(getProperties(), getTargets());
... | public void execute() throws ExecutionException {
setProperty(MagicProperties.BASEDIR,
getAntContext().getBaseDir().getAbsolutePath());
ExecService execService
= (ExecService)getCoreService(ExecService.class);
execService.callTarget(getProperties(), getTargets());
... |
public void execute() throws ExecutionException {
AntContext context = getContext();
ComponentService componentService = (ComponentService)
context.getCoreService(ComponentService.class);
if (ref != null) {
componentService.importFrameComponent(ref, alias);
} ... | public void execute() throws ExecutionException {
AntContext context = getAntContext();
ComponentService componentService = (ComponentService)
context.getCoreService(ComponentService.class);
if (ref != null) {
componentService.importFrameComponent(ref, alias);
... |
public void execute() throws ExecutionException {
AntContext context = getContext();
ComponentService componentService = (ComponentService)
context.getCoreService(ComponentService.class);
componentService.addLibPath(libraryId, url);
}
| public void execute() throws ExecutionException {
AntContext context = getAntContext();
ComponentService componentService = (ComponentService)
context.getCoreService(ComponentService.class);
componentService.addLibPath(libraryId, url);
}
|
public void execute() throws ExecutionException {
AntContext context = getContext();
ComponentService componentService = (ComponentService)
context.getCoreService(ComponentService.class);
componentService.loadLib(url.toString(), importAll);
}
| public void execute() throws ExecutionException {
AntContext context = getAntContext();
ComponentService componentService = (ComponentService)
context.getCoreService(ComponentService.class);
componentService.loadLib(url.toString(), importAll);
}
|
public AggregateTransformer createReport(){
AggregateTransformer transformer = new AggregateTransformer(this);
transformers.add(transformer);
return transformer;
}
| public AggregateTransformer createReport(){
AggregateTransformer transformer = new AggregateTransformer(this);
transformers.addElement(transformer);
return transformer;
}
|
public void setSelection (int value) {
checkWidget ();
OS.SendMessage (handle, OS.TBM_SETPOS, 1, value);
}
int widgetStyle () {
int bits = super.widgetStyle () | OS.WS_TABSTOP | OS.TBS_BOTH | OS.TBS_AUTOTICKS;
if ((style & SWT.HORIZONTAL) != 0) return bits | OS.TBS_HORZ | OS.TBS_DOWNISLEFT;
return bits | OS.TBS_V... | public void setSelection (int value) {
checkWidget ();
OS.SendMessage (handle, OS.TBM_SETPOS, 1, value);
}
int widgetStyle () {
int bits = super.widgetStyle () | OS.WS_TABSTOP | OS.TBS_BOTH | OS.TBS_AUTOTICKS;
if ((style & SWT.HORIZONTAL) != 0) return bits | OS.TBS_HORZ | OS.TBS_DOWNISLEFT;
return bits | OS.TBS_V... |
private String sendPutData(PutMethod put) throws IOException {
// Buffer to hold the put body, except file content
StringBuffer putBody = new StringBuffer(1000);
boolean hasPutBody = false;
// Check if the header manager had a content type header
// This allows the u... | private String sendPutData(PutMethod put) throws IOException {
// Buffer to hold the put body, except file content
StringBuffer putBody = new StringBuffer(1000);
boolean hasPutBody = false;
// Check if the header manager had a content type header
// This allows the u... |
public NativeCommand(File directory, Map<String, String> env, String stdin, String stdout, String stderr) {
super(directory, 0L, env, stdin, stdout, stderr);
}
| public NativeCommand(File directory, Map<String, String> env, String stdin, String stdout, String stderr) {
super(directory, 0L, 100, env, stdin, stdout, stderr);
}
|
private void synchronizeMappings(ClassLoader loader) {
JDBCConfiguration conf = (JDBCConfiguration) getConfiguration();
String action = conf.getSynchronizeMappings();
if (StringUtils.isEmpty(action))
return;
MappingRepository repo = conf.getMappingRepositoryInstance();
... | protected void synchronizeMappings(ClassLoader loader) {
JDBCConfiguration conf = (JDBCConfiguration) getConfiguration();
String action = conf.getSynchronizeMappings();
if (StringUtils.isEmpty(action))
return;
MappingRepository repo = conf.getMappingRepositoryInstance();... |
public Component getHeader(MarkupContainer parent, String componentId)
{
return super.getHeader(parent, componentId).setEscapeModelStrings(true);
}
} | public Component<String> getHeader(MarkupContainer parent, String componentId)
{
return super.getHeader(parent, componentId).setEscapeModelStrings(true);
}
} |
public boolean execute(String script) {
checkWidget();
if (script == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
/* get IHTMLDocument2 */
int[] rgdispid = auto.getIDsOfNames(new String[]{"Document"}); //$NON-NLS-1$
int dispIdMember = rgdispid[0];
Variant pVarResult = auto.getProperty(dispIdMember);
if (pVarResul... | public boolean execute(String script) {
checkWidget();
if (script == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
/* get IHTMLDocument2 */
int[] rgdispid = auto.getIDsOfNames(new String[]{"Document"}); //$NON-NLS-1$
int dispIdMember = rgdispid[0];
Variant pVarResult = auto.getProperty(dispIdMember);
if (pVarResul... |
public String toString() {
StringBuffer sb = new StringBuffer();
sb.append("Member[").append(member).append(";").append(data) //$NON-NLS-1$ //$NON-NLS-2$
.append("]"); //$NON-NLS-1$
return sb.toString();
}
| public String toString() {
final StringBuffer sb = new StringBuffer();
sb.append("Member[").append(member).append(";").append(data) //$NON-NLS-1$ //$NON-NLS-2$
.append("]"); //$NON-NLS-1$
return sb.toString();
}
|
public BorderPage()
{
MyBorder border = new MyBorder(this, "border");
Label label = new Label(border, "label", "I am the label");
}
| public BorderPage()
{
MyBorder border = new MyBorder(this, "border");
new Label(border, "label", "I am the label");
}
|
public void onClick()
{
setResponsePage(new RequestsPage(sd));
}
};
new Label(link, "id", new Model<String>(sd.getId()));
new Label(item, "requestCount", new Model<Integer>(new Integer(sd.getRequests().size())));
new Label(item, "requestsTime", new Model<Double>(sd.getRequestsTime()... | public void onClick()
{
setResponsePage(new RequestsPage(sd));
}
};
new Label(link, "id", new Model<String>(sd.getId()));
new Label(item, "requestCount", new Model<Integer>(new Integer(sd.getRequests().size())));
new Label(item, "requestsTime", new Model<Double>(sd.getRequestsTime()... |
protected void populateItem(ListItem<T> listItem)
{
T modelObject = listItem.getModelObject();
if (modelObject instanceof List)
{
// create a panel that renders the sub lis
NestedList nested = new NestedList(listItem, "nested", (List)modelObject);
// if the current element is a list, we create... | protected void populateItem(ListItem<T> listItem)
{
T modelObject = listItem.getModelObject();
if (modelObject instanceof List)
{
// create a panel that renders the sub lis
new NestedList(listItem, "nested", (List)modelObject);
// if the current element is a list, we create a dummy row/
//... |
public SignInPanel(MarkupContainer parent, final String id, final boolean includeRememberMe)
{
super(parent, id);
this.includeRememberMe = includeRememberMe;
// Create feedback panel and add to page
final FeedbackPanel feedback = new FeedbackPanel(this, "feedback");
// Add sign-in form to page, passing f... | public SignInPanel(MarkupContainer parent, final String id, final boolean includeRememberMe)
{
super(parent, id);
this.includeRememberMe = includeRememberMe;
// Create feedback panel and add to page
new FeedbackPanel(this, "feedback");
// Add sign-in form to page, passing feedback panel as
// validatio... |
public StockQuotePage()
{
// code for the first example, directly using the
// stock quote component.
new StockQuoteLabel(this, "stockIBM", "IBM");
// use the second example component
new StockQuoteLabel2(this, "stock2IBM", "IBM");
// code for second example: using a form for selecting the
// symbol o... | public StockQuotePage()
{
// code for the first example, directly using the
// stock quote component.
new StockQuoteLabel(this, "stockIBM", "IBM");
// use the second example component
new StockQuoteLabel2(this, "stock2IBM", "IBM");
// code for second example: using a form for selecting the
// symbol o... |
public void process() {
JMeterContext ctx = getThreadContext();
Sampler sampler = ctx.getCurrentSampler();
if (!(sampler instanceof HTTPSamplerBase)) {// Ignore non-HTTP samplers
return;
}
SampleResult responseText = ctx.getPreviousResult();
if (responseTe... | public void process() {
JMeterContext ctx = getThreadContext();
Sampler sampler = ctx.getCurrentSampler();
if (!(sampler instanceof HTTPSamplerBase)) {// Ignore non-HTTP samplers
return;
}
SampleResult responseText = ctx.getPreviousResult();
if (responseTe... |
private void checkContent( String content, Object state, String pattern, Vector enum ) throws InvalidDatatypeValueException
{
int index = -1; //number of validators
boolean valid=false;
DatatypeValidator currentDV = null;
while ( (fValidatorsSize-1) > index++ ) { //check conte... | private void checkContent( String content, Object state, String pattern, Vector enum ) throws InvalidDatatypeValueException
{
int index = -1; //number of validators
boolean valid=false;
DatatypeValidator currentDV = null;
while ( (fValidatorsSize-1) > index++ ) { //check conte... |
public interface IMarkupFragment extends Iterable<MarkupElement>
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You ... | public interface IMarkupFragment extends Iterable<MarkupElement>
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You ... |
public void testRenderHomePage_1() throws Exception
{
boolean hit = false;
try
{
executeTest(PanelPage_1.class, "Dummy.html");
}
catch (MarkupException mex)
{
hit = true;
assertNotNull(mex.getMarkupStream());
assertTrue(mex.getMessage().contains("does not have a close tag"));
assertTrue(me... | public void testRenderHomePage_1() throws Exception
{
boolean hit = false;
try
{
executeTest(PanelPage_1.class, "Dummy.html");
}
catch (MarkupException mex)
{
hit = true;
assertNotNull(mex.getMarkupStream());
assertTrue(mex.getMessage().contains("Expected close tag for "));
assertTrue(mex.... |
public static void main (String [] args) {
Display display = new Display ();
Shell shell = new Shell (display);
shell.setLayout(new GridLayout());
final ScrolledComposite sc = new ScrolledComposite(shell, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
sc.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)... | public static void main (String [] args) {
Display display = new Display ();
Shell shell = new Shell (display);
shell.setLayout(new GridLayout());
final ScrolledComposite sc = new ScrolledComposite(shell, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
sc.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)... |
public boolean hasFeature(String feature, String version) {
return super.hasFeature(feature, version) ||
feature.equalsIgnoreCase("PSVI");
} // hasFeature(String,String):boolean
| public boolean hasFeature(String feature, String version) {
return super.hasFeature(feature, version) ||
feature.equalsIgnoreCase("psvi");
} // hasFeature(String,String):boolean
|
public void setHeaders(URLConnection connection, HTTPSampler sampler) throws IOException {
// Get the encoding to use for the request
String contentEncoding = sampler.getContentEncoding();
if(contentEncoding == null || contentEncoding.length() == 0) {
contentEncoding = ENCODING;
... | public void setHeaders(URLConnection connection, HTTPSamplerBase sampler) throws IOException {
// Get the encoding to use for the request
String contentEncoding = sampler.getContentEncoding();
if(contentEncoding == null || contentEncoding.length() == 0) {
contentEncoding = ENCODI... |
public void removeChannel(ID channelID);
} | public boolean disposeChannel(ID channelID);
} |
private VEXElement[] getOutlineChildren(final VEXElement element) {
final List children = new ArrayList();
final EList<VEXElement> childElements = element.getChildElements();
for (int i = 0; i < childElements.size(); i++) {
if (titledElements.contains(childElements.get(i).getName... | private VEXElement[] getOutlineChildren(final VEXElement element) {
final List<VEXElement> children = new ArrayList<VEXElement>();
final EList<VEXElement> childElements = element.getChildElements();
for (int i = 0; i < childElements.size(); i++) {
if (titledElements.contains(chil... |
public ScrollBar getVerticalBar () {
checkWidget();
return verticalBar;
}
boolean hasBorder () {
return (style & SWT.BORDER) != 0;
}
void hookEvents () {
super.hookEvents ();
if ((state & CANVAS) != 0 && scrolledHandle != 0) {
int controlProc = display.controlProc;
int [] mask = new int [] {
OS.kEventClas... | public ScrollBar getVerticalBar () {
checkWidget();
return verticalBar;
}
boolean hasBorder () {
return (style & SWT.BORDER) != 0;
}
void hookEvents () {
super.hookEvents ();
if ((state & CANVAS) != 0 && scrolledHandle != 0) {
int controlProc = display.controlProc;
int [] mask = new int [] {
OS.kEventClas... |
public void addEmployee(Employee2 emp) {
empMap.put(emp.getEmpPK(), emp);
}
| public void addEmployee(Employee2 emp) {
getEmpMap().put(emp.getEmpPK(), emp);
}
|
public void setFormatter(DateFormat fmt){
printMilliseconds = "ms".equals(fmt);// $NON-NLS-1$ maintain relationship
formatter = fmt;
}
| public void setFormatter(DateFormat fmt){
printMilliseconds = (fmt == null); // maintain relationship
formatter = fmt;
}
|
private void run(String[] args) throws MalformedURLException {
String antHomeProperty = System.getProperty(ANTHOME_PROPERTY);
File antHome = null;
File sourceJar = Locator.getClassSource(getClass());
File jarDir = sourceJar.getParentFile();
if (antHomeProperty != null) {
... | private void run(String[] args) throws MalformedURLException {
String antHomeProperty = System.getProperty(ANTHOME_PROPERTY);
File antHome = null;
File sourceJar = Locator.getClassSource(getClass());
File jarDir = sourceJar.getParentFile();
if (antHomeProperty != null) {
... |
public DB2Dictionary() {
platform = "DB2";
validationSQL = "SELECT DISTINCT(CURRENT TIMESTAMP) FROM "
+ "SYSIBM.SYSTABLES";
supportsSelectEndIndex = true;
nextSequenceQuery = "SELECT NEXTVAL FOR {0}";
binaryTypeName = "BLOB(1M)";
longVarbinaryTypeName = ... | public DB2Dictionary() {
platform = "DB2";
validationSQL = "SELECT DISTINCT(CURRENT TIMESTAMP) FROM "
+ "SYSIBM.SYSTABLES";
supportsSelectEndIndex = true;
nextSequenceQuery = "VALUES NEXTVAL FOR {0}";
binaryTypeName = "BLOB(1M)";
longVarbinaryTypeName = ... |
public Renderable createCell(TreeTable treeTable, TreeNode node, int level) {
return null;
}
} | public IRenderable createCell(TreeTable treeTable, TreeNode node, int level) {
return null;
}
} |
public final void validate()
{
validateRequired();
if (isValid())
{
convertInput();
if (isValid() && isRequired() && getConvertedInput() == null && !isInputNullable())
{
reportRequiredError();
}
if (isValid())
{
validateValidators();
}
}
| public final void validate()
{
validateRequired();
if (isValid())
{
convertInput();
if (isValid() && isRequired() && getConvertedInput() == null && isInputNullable())
{
reportRequiredError();
}
if (isValid())
{
validateValidators();
}
}
|
public static void testReferencesAreSoft() {
boolean isJava11=JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1);
WeakishReference reference = WeakishReference.createReference(new Object());
if (reference instanceof WeakishReference.HardReference
&& !isJava11) {
fail("... | public static void testReferencesAreSoft() {
boolean isJava11=JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1);
WeakishReference reference = WeakishReference.createReference(new Object());
if ((reference.getClass().getName().indexOf("HardReference") > 0 )
&& !isJava11) {
... |
private static List<AnnotationDefinition> getAllAnnotationsForElement(Object element)
throws JavaModelException {
if (element instanceof IPackageDeclaration) {
return getAnnotationsForElementType(ElementType.PACKAGE);
}
if (element instanceof IType)... | private static List<AnnotationDefinition> getAllAnnotationsForElement(Object element)
throws JavaModelException {
if (element instanceof IPackageDeclaration) {
return getAnnotationsForElementType(ElementType.PACKAGE);
}
if (element instanceof IType)... |
public void run() {
// Check which HTTPSampler class we should use
String httpSamplerName = target.getSamplerTypeName();
HttpRequestHdr request = new HttpRequestHdr(httpSamplerName);
SampleResult result = null;
HeaderManager headers = null;
HTTPSamplerBase sampler = ... | public void run() {
// Check which HTTPSampler class we should use
String httpSamplerName = target.getSamplerTypeName();
HttpRequestHdr request = new HttpRequestHdr(httpSamplerName);
SampleResult result = null;
HeaderManager headers = null;
HTTPSamplerBase sampler = ... |
protected IModel<T> getListItemModel(final IModel<List<T>> model, final int index)
{
return new BoundCompoundPropertyModel(super.getListItemModel(model, index));
}
| protected IModel<T> getListItemModel(final IModel<List<T>> model, final int index)
{
return new BoundCompoundPropertyModel<T>(super.getListItemModel(model, index));
}
|
public void testFormProcessing()
{
// setup some values we will use for testing as well as a test model
final String check1 = "check1-selection";
final String check2 = "check2-selection";
MockModelObject modelObject = new MockModelObject();
modelObject.setProp2(check2);
// test model constructors
List... | public void testFormProcessing()
{
// setup some values we will use for testing as well as a test model
final String check1 = "check1-selection";
final String check2 = "check2-selection";
MockModelObject modelObject = new MockModelObject();
modelObject.setProp2(check2);
// test model constructors
List... |
public void testDateField()
{
RequestCycle cycle = application.createRequestCycle();
MockPage page = new MockPage();
Form form = new Form(page, "form", new CompoundPropertyModel(new Person()));
DateField dateField = new DateField(form, "birthdate");
| public void testDateField()
{
RequestCycle cycle = application.createRequestCycle();
MockPage page = new MockPage();
Form form = new Form<Person>(page, "form", new CompoundPropertyModel<Person>(new Person()));
DateField dateField = new DateField(form, "birthdate");
|
public void testComponentClone()
{
PropertyModel pm = new PropertyModel(new TextField(new EmptyPage(), "test",
new Model<String>("test")), "modelObject");
PropertyModel pm2 = (PropertyModel)Objects.cloneModel(pm);
assertTrue(pm.getObject(null) == pm2.getObject(null));
}
| public void testComponentClone()
{
PropertyModel pm = new PropertyModel(new TextField<String>(new EmptyPage(), "test",
new Model<String>("test")), "modelObject");
PropertyModel pm2 = (PropertyModel)Objects.cloneModel(pm);
assertTrue(pm.getObject(null) == pm2.getObject(null));
}
|
import wicket.markup.repeater.Item;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Ver... | import wicket.markup.repeater.Item;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Ver... |
package wicket.markup.repeater;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version... | package wicket.markup.repeater;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version... |
package wicket.markup.repeater;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version... | package wicket.markup.repeater;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version... |
package wicket.markup.repeater.data;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Ve... | package wicket.markup.repeater.data;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Ve... |
public static void initializeClass(Class theClass) {
// ***HACK*** We ask the VM to create an instance
// by voluntarily providing illegal arguments to force
// the VM to run the class' static initializer, while
// at the same time not running a valid constructor.
final Cons... | public static void initializeClass(Class theClass) {
// ***HACK*** We ask the VM to create an instance
// by voluntarily providing illegal arguments to force
// the VM to run the class' static initializer, while
// at the same time not running a valid constructor.
final Cons... |
public void setReadOnly(boolean readOnly, boolean deep) {
if (needsSyncChildren()) {
synchronizeChildren();
}
setReadOnly(readOnly, deep);
// set read-only property
elements.setReadOnly(readOnly, true);
entities.setReadOnly(readOnly, true);
... | public void setReadOnly(boolean readOnly, boolean deep) {
if (needsSyncChildren()) {
synchronizeChildren();
}
super.setReadOnly(readOnly, deep);
// set read-only property
elements.setReadOnly(readOnly, true);
entities.setReadOnly(readOnly, true)... |
public void execute() throws BuildException {
boolean value = validateAndExecute();
if (verifyProperty != null) {
project.setProperty(verifyProperty,
new Boolean(value).toString());
}
}
| public void execute() throws BuildException {
boolean value = validateAndExecute();
if (verifyProperty != null) {
project.setNewProperty(verifyProperty,
new Boolean(value).toString());
}
}
|
public void execute() throws BuildException {
if (countConditions() > 1) {
throw new BuildException("You must not nest more than one condition into <condition>");
}
if (countConditions() < 1) {
throw new BuildException("You must nest a condition into <condition>");
... | public void execute() throws BuildException {
if (countConditions() > 1) {
throw new BuildException("You must not nest more than one condition into <condition>");
}
if (countConditions() < 1) {
throw new BuildException("You must nest a condition into <condition>");
... |
public void openDriver(SurfaceHolder holder) throws IOException {
if (camera == null) {
camera = Camera.open();
if (camera == null) {
throw new IOException();
}
camera.setPreviewDisplay(holder);
if (!initialized) {
initialized = true;
getScreenResolution();
... | public void openDriver(SurfaceHolder holder) throws IOException {
if (camera == null) {
camera = Camera.open();
if (camera == null) {
throw new IOException();
}
camera.setPreviewDisplay(holder);
if (!initialized) {
initialized = true;
getScreenResolution();
... |
protected IMarkupLoader newMarkupLoader()
{
return new DefaultMarkupLoader(application);
}
| protected IMarkupLoader newMarkupLoader()
{
return new DefaultMarkupLoader();
}
|
public void resolveStatements() {
if ((modifiers & AccSemicolonBody) != 0) {
if ((declaredModifiers & AccAbstract) == 0)
scope.problemReporter().methodNeedingAbstractModifier(this);
} else {
// the method HAS a body --> abstract native modifiers are forbiden
... | public void resolveStatements() {
if ((modifiers & AccSemicolonBody) != 0) {
if ((declaredModifiers & AccAbstract) == 0)
scope.problemReporter().methodNeedingAbstractModifier(this);
} else {
// the method HAS a body --> abstract native modifiers are forbiden
... |
public String getContentTypeFromResponseHeader()
{
String contentType = getLastResponse().getHeader("Content-Type");
if (contentType == null)
| public String getContentTypeFromResponseHeader()
{
String contentType = getLastResponse().getContentType();
if (contentType == null)
|
protected void scanPIData(String target, XMLString data)
throws IOException, XNIException {
// check target
if (target.length() == 3) {
char c0 = Character.toLowerCase(target.charAt(0));
char c1 = Character.toLowerCase(target.charAt(1));
char c2 = Charac... | protected void scanPIData(String target, XMLString data)
throws IOException, XNIException {
// check target
if (target.length() == 3) {
char c0 = Character.toLowerCase(target.charAt(0));
char c1 = Character.toLowerCase(target.charAt(1));
char c2 = Charac... |
private String getAttributeTypeName(XMLAttributeDecl attrDecl) {
switch (attrDecl.simpleType.type) {
case XMLSimpleType.TYPE_ENTITY: {
return attrDecl.simpleType.list ? XMLSymbols.fENTITIESSymbol : XMLSymbols.fENTITYSymbol;
}
case XMLSimpleType.TYPE_ENUMERATION: ... | private String getAttributeTypeName(XMLAttributeDecl attrDecl) {
switch (attrDecl.simpleType.type) {
case XMLSimpleType.TYPE_ENTITY: {
return attrDecl.simpleType.list ? XMLSymbols.fENTITIESSymbol : XMLSymbols.fENTITYSymbol;
}
case XMLSimpleType.TYPE_ENUMERATION: ... |
protected final void append(StringBuffer message, int value, int nch) {
if (value == Integer.MIN_VALUE) {
message.append(value);
return;
}
if (value < 0) {
message.append('-');
value = -value;
}
if (nch == 4) {
if (value < 10)
message.append("000");
else if... | protected final void append(StringBuffer message, int value, int nch) {
if (value == Integer.MIN_VALUE) {
message.append(value);
return;
}
if (value < 0) {
message.append('-');
value = -value;
}
if (nch == 4) {
if (value < 10)
message.append("000");
else if... |
public String toString() {
StringBuffer buf=new StringBuffer();
for (int i=0;i<fLocationPaths.length;i++){
if (i>0){
buf.append("|");
}
buf.append(fLocationPaths[i].toString());
}
return buf.toString();
} // toString():String
| public String toString() {
StringBuffer buf=new StringBuffer();
for (int i=0;i<fLocationPaths.length;i++){
if (i>0){
buf.append('|');
}
buf.append(fLocationPaths[i].toString());
}
return buf.toString();
} // toString():String
|
public String toString() {
StringBuffer str = new StringBuffer();
appendTypeInfo(str);
return str.toString();
}
void appendTypeInfo(StringBuffer str) {
String contentType[] = {"EMPTY", "SIMPLE", "ELEMENT", "MIXED"};
String derivedBy[] = {"EMPTY", "EXTENSION", "RESTRI... | public String toString() {
StringBuffer str = new StringBuffer();
appendTypeInfo(str);
return str.toString();
}
void appendTypeInfo(StringBuffer str) {
String contentType[] = {"EMPTY", "SIMPLE", "ELEMENT", "MIXED"};
String derivedBy[] = {"EMPTY", "EXTENSION", "RESTRI... |
public String toString() {
if (fDescription == null) {
StringBuffer buffer = new StringBuffer();
buffer.append("WC[");
switch (fType) {
case NSCONSTRAINT_ANY:
buffer.append(SchemaSymbols.ATTVAL_TWOPOUNDANY);
break;
c... | public String toString() {
if (fDescription == null) {
StringBuffer buffer = new StringBuffer();
buffer.append("WC[");
switch (fType) {
case NSCONSTRAINT_ANY:
buffer.append(SchemaSymbols.ATTVAL_TWOPOUNDANY);
break;
c... |
public String toString(){
StringBuffer buf = new StringBuffer();
for (int i=0;i<size;i++){
buf.append(prefixes[i]);
buf.append(" ");
}
return buf.toString();
}
}
| public String toString(){
StringBuffer buf = new StringBuffer();
for (int i=0;i<size;i++){
buf.append(prefixes[i]);
buf.append(' ');
}
return buf.toString();
}
}
|
public boolean isVisible()
{
child.configure();
return child.isVisible();
}
| public boolean isVisible()
{
child.configure();
return child.determineVisibility();
}
|
protected void populateItem(final ListItem listItem)
{
listItem.addAttributeModifier(
new ComponentTagAttributeModifier(
"class",
new Model(listItem.isEvenIndex() ? "even" : "odd")));
}
| protected void populateItem(final ListItem listItem)
{
listItem.add(
new ComponentTagAttributeModifier(
"class",
new Model(listItem.isEvenIndex() ? "even" : "odd")));
}
|
public BookDetails(final Book book)
{
Model bookModel = new Model(book);
add(new Label("title", book.getTitle()));
add(new Label("author", book.getAuthor()));
add(new Label("fiction", Boolean.toString(book.getFiction())));
add(BookDetails.link("companion", book.getCompan... | public BookDetails(final Book book)
{
Model bookModel = new Model(book);
add(new Label("title", book.getTitle()));
add(new Label("author", book.getAuthor()));
add(new Label("fiction", Boolean.toString(book.getFiction())));
add(BookDetails.link("companion", book.getCompan... |
public static File normalize( String path )
throws TaskException
{
String orig = path;
path = path.replace( '/', File.separatorChar )
.replace( '\\', File.separatorChar );
// make sure we are dealing with an absolute path
if( !path.startsWith( File.separator... | public static File normalize( String path )
throws TaskException
{
String orig = path;
path = path.replace( '/', File.separatorChar )
.replace( '\\', File.separatorChar );
// make sure we are dealing with an absolute path
if( !path.startsWith( File.separator... |
public void testParentRelativeImage()
{
tester.getApplication().getResourceSettings().setParentFolderPlaceholder("$up$");
tester.startPage(Home.class);
tester.assertContains("resource/org.apache.wicket.markup.html.image.Home/[$]up[$]/border/test.png\"");
}
| public void testParentRelativeImage()
{
tester.getApplication().getResourceSettings().setParentFolderPlaceholder("$up$");
tester.startPage(Home.class);
tester.assertContains("resource/org.apache.wicket.markup.html.image.Home/[$]up[$]/[$]up[$]/border/logo.gif\"");
}
|
public void test1() throws Exception
{
// How does the test work: Make sure you have a page, form and form component properly set
// up (getRelativePath() etc.). See setUp().
final Page page = tester.getLastRenderedPage();
// Get the form and form component created
final TestForm form = (TestForm)page.get(... | public void test1() throws Exception
{
// How does the test work: Make sure you have a page, form and form component properly set
// up (getRelativePath() etc.). See setUp().
final Page page = tester.getLastRenderedPage();
// Get the form and form component created
final TestForm form = (TestForm)page.get(... |
public void execute()
throws TaskException
{
try
{
addBeans( getProject().getProperties() );
//In Ant2 there is no difference between properties and references
//addBeans( getProject().getReferences() );
beans.put( "project", getProject() ... | public void execute()
throws TaskException
{
try
{
addBeans( getProject().getProperties() );
//In Ant2 there is no difference between properties and references
//addBeans( getProject().getReferences() );
beans.put( "context", getContext() ... |
public void deselectAll () {
checkWidget ();
if ((style & SWT.READ_ONLY) != 0) {
((NSPopUpButton)view).selectItem(null);
sendEvent (SWT.Modify);
} else {
setText ("");
}
}
boolean dragDetect(int x, int y, boolean filter, boolean[] consume) {
if ((style & SWT.READ_ONLY) == 0) {
NSText fieldEditor = view.wi... | public void deselectAll () {
checkWidget ();
if ((style & SWT.READ_ONLY) != 0) {
((NSPopUpButton)view).selectItem(null);
sendEvent (SWT.Modify);
} else {
setText ("");
}
}
boolean dragDetect(int x, int y, boolean filter, boolean[] consume) {
if ((style & SWT.READ_ONLY) == 0) {
NSText fieldEditor = view.wi... |
public interface IAssignmentAwareModel<T> extends IModel<T>
/*
* $Id: org.eclipse.jdt.ui.prefs 5004 2006-03-17 20:47:08 -0800 (Fri, 17 Mar
* 2006) eelco12 $ $Revision: 5004 $ $Date: 2006-03-17 20:47:08 -0800 (Fri, 17
* Mar 2006) $
*
* ==============================================================================... | public interface IAssignmentAwareModel<T> extends IModel<T>
/*
* $Id: org.eclipse.jdt.ui.prefs 5004 2006-03-17 20:47:08 -0800 (Fri, 17 Mar
* 2006) eelco12 $ $Revision: 5004 $ $Date: 2006-03-17 20:47:08 -0800 (Fri, 17
* Mar 2006) $
*
* ==============================================================================... |
protected void onComponentTag(final ComponentTag tag)
{
// Default handling for component tag
super.onComponentTag(tag);
// must be attached to <input type="radio" .../> tag
checkComponentTag(tag, "input");
checkComponentTagAttribute(tag, "type", "radio");
final String value = getValue();
RadioGroup<... | protected void onComponentTag(final ComponentTag tag)
{
// Default handling for component tag
super.onComponentTag(tag);
// must be attached to <input type="radio" .../> tag
checkComponentTag(tag, "input");
checkComponentTagAttribute(tag, "type", "radio");
final String value = getValue();
RadioGroup<... |
public void activate(IBreadCrumbPanelFactory breadCrumbPanelFactory)
{
activate(breadCrumbPanelFactory.create(this, getId(), breadCrumbModel));
}
| public void activate(IBreadCrumbPanelFactory breadCrumbPanelFactory)
{
activate(breadCrumbPanelFactory.create(this.getParent(), getId(), breadCrumbModel));
}
|
public static TestSuite suite() {
TestSuite suite = new TestSuite(AllTests.class.getName());
suite.addTest(AjbrowserModuleTests.suite());
suite.addTest(AjdeModuleTests.suite());
suite.addTest(AjdocModuleTests.suite());
suite.addTest(AsmModuleTests.suite());
suite.addT... | public static TestSuite suite() {
TestSuite suite = new TestSuite(AllTests.class.getName());
suite.addTest(AjbrowserModuleTests.suite());
suite.addTest(AjdeModuleTests.suite());
suite.addTest(AjdocModuleTests.suite());
suite.addTest(AsmModuleTests.suite());
suite.addT... |
public void addDeclare(Declare declare) {
// this is not extensible, oh well
if (declare instanceof DeclareErrorOrWarning) {
ShadowMunger m = new Checker((DeclareErrorOrWarning)declare);
addShadowMunger(m);
} else if (declare instanceof DeclarePrecedence) {
declareDominates.add(declare);
} else if (de... | public void addDeclare(Declare declare) {
// this is not extensible, oh well
if (declare instanceof DeclareErrorOrWarning) {
ShadowMunger m = new Checker((DeclareErrorOrWarning)declare);
addShadowMunger(m);
} else if (declare instanceof DeclarePrecedence) {
declareDominates.add(declare);
} else if (de... |
public BcelCflowStackFieldAdder(ResolvedMember cflowStackField) {
super(null, null);
this.cflowStackField = cflowStackField;
}
| public BcelCflowStackFieldAdder(ResolvedMember cflowStackField) {
super(null,(ResolvedTypeX)cflowStackField.getDeclaringType());
this.cflowStackField = cflowStackField;
}
|
public Pointcut concretize1(ResolvedTypeX inAspect, IntMap bindings) {
//make this remap from formal positions to arrayIndices
IntMap entryBindings = new IntMap();
for (int i=0, len=freeVars.length; i < len; i++) {
int freeVar = freeVars[i];
//int formalIndex = bindings.get(freeVar);
entryBindings.put(f... | public Pointcut concretize1(ResolvedTypeX inAspect, IntMap bindings) {
//make this remap from formal positions to arrayIndices
IntMap entryBindings = new IntMap();
for (int i=0, len=freeVars.length; i < len; i++) {
int freeVar = freeVars[i];
//int formalIndex = bindings.get(freeVar);
entryBindings.put(f... |
protected IStatus run(IProgressMonitor monitor) {
Assert.isNotNull(monitor);
try {
Map availableServices = Activator.getDefault().getServiceURLs();
Map removedServices = new HashMap(services);
for (Iterator itr = availableServices.entrySet().iterator(); itr.hasNext() && !monitor.isCanceled();) {
Map.E... | protected IStatus run(IProgressMonitor monitor) {
Assert.isNotNull(monitor);
try {
Map availableServices = Activator.getDefault().getLocator().getServiceURLs();
Map removedServices = new HashMap(services);
for (Iterator itr = availableServices.entrySet().iterator(); itr.hasNext() && !monitor.isCanceled();... |
public void updateModel()
{
// Only update the model if one was passed in
if (hasExplicitModel)
{
setModelObject(getFileUpload());
}
}
| public void updateModel()
{
// Only update the model if one was passed in
if (hasExplicitModel)
{
setModelObject(getConvertedInput());
}
}
|
java.util.List<Connector> getConnector();
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Licens... | java.util.List<Connector> getConnector();
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Licens... |
public static void main(String[] args) {
if (args != null && args.length == 2) {
String file = null;
// int count = 1;
if (args[0] != null) {
file = args[0];
}
if (args[1] != null) {
// count = Integer.parseInt(args[... | public static void main(String[] args) {
if (args != null && args.length == 2) {
String file = null;
// int count = 1;
if (args[0] != null) {
file = args[0];
}
if (args[1] != null) {
// count = Integer.parseInt(args[... |
public void execute(Project project) throws BuildException{
final String classname = javaCommand.getExecutable();
final Object[] argument = { javaCommand.getArguments() };
try {
if (sysProperties != null) {
sysProperties.restoreSystem();
}
... | public void execute(Project project) throws BuildException{
final String classname = javaCommand.getExecutable();
final Object[] argument = { javaCommand.getArguments() };
try {
if (sysProperties != null) {
sysProperties.setSystem();
}
fin... |
public void run() {
// Enable anything we disabled before the animation.
previousButton.setEnabled(true);
nextButton.setEnabled(true);
backgroundCombo.setEnabled(true);
scaleXCombo.setEnabled(true);
scaleYCombo.setEnabled(true);
alphaCombo.setEnabled(true);
incrementalCheck.setEnabled... | public void run() {
// Enable anything we disabled before the animation.
previousButton.setEnabled(true);
nextButton.setEnabled(true);
backgroundCombo.setEnabled(true);
scaleXCombo.setEnabled(true);
scaleYCombo.setEnabled(true);
alphaCombo.setEnabled(true);
incrementalCheck.setEnabled... |
protected AsmManager() {
hierarchy = new AspectJElementHierarchy();
List relationships = new ArrayList();
mapper = new RelationshipMap(hierarchy);
}
| protected AsmManager() {
hierarchy = new AspectJElementHierarchy();
// List relationships = new ArrayList();
mapper = new RelationshipMap(hierarchy);
}
|
public IProgramElement findElementForHandle(String handle) {
// try the cache first...
IProgramElement ret = (IProgramElement) handleMap.get(handle);
if (ret != null) return ret;
StringTokenizer st = new StringTokenizer(handle, ProgramElement.ID_DELIM);
String file = st.nextToken();
int line = new Integ... | public IProgramElement findElementForHandle(String handle) {
// try the cache first...
IProgramElement ret = (IProgramElement) handleMap.get(handle);
if (ret != null) return ret;
StringTokenizer st = new StringTokenizer(handle, ProgramElement.ID_DELIM);
String file = st.nextToken();
int line = new Integ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.