buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag)
{
replaceComponentTagBody(markupStream, openTag, text);
}
} | public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag)
{
replaceComponentTagBody(markupStream, openTag, text);
}
} |
protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
{
String state = form.isEnabled() ? "enabled" : "disabled";
replaceComponentTagBody(markupStream, openTag, "form is " + state);
}
}
} | public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
{
String state = form.isEnabled() ? "enabled" : "disabled";
replaceComponentTagBody(markupStream, openTag, "form is " + state);
}
}
} |
public void generate(Method method) {
MethodData methodData = getMetaData().getMetaData(method);
if (methodData.getFlag("no_gen")) return;
Class returnType = method.getReturnType();
Class[] paramTypes = method.getParameterTypes();
String function = getFunctionName(method);
if (!(returnType == Void.TYPE || retur... | public void generate(Method method) {
MethodData methodData = getMetaData().getMetaData(method);
if (methodData.getFlag("no_gen")) return;
Class returnType = method.getReturnType();
Class[] paramTypes = method.getParameterTypes();
String function = getFunctionName(method);
if (!(returnType == Void.TYPE || retur... |
private static void processMembers(List/*IProgramElement*/ members, PrintWriter writer, boolean declaringTypeIsInterface) throws DocException {
for (Iterator it = members.iterator(); it.hasNext();) {
IProgramElement member = (IProgramElement) it.next();
if (member.getKind().isType()) {
if (!me... | private static void processMembers(List/*IProgramElement*/ members, PrintWriter writer, boolean declaringTypeIsInterface) throws DocException {
for (Iterator it = members.iterator(); it.hasNext();) {
IProgramElement member = (IProgramElement) it.next();
if (member.getKind().isType()) {
if (!me... |
public ResolvedTypeMunger parameterizedFor(ResolvedType target) {
ResolvedType genericType = target;
if (target.isRawType() || target.isParameterizedType()) genericType = genericType.getGenericType();
ResolvedMember parameterizedSignature = null;
// If we are parameterizing it for a generic type, we just need ... | public ResolvedTypeMunger parameterizedFor(ResolvedType target) {
ResolvedType genericType = target;
if (target.isRawType() || target.isParameterizedType()) genericType = genericType.getGenericType();
ResolvedMember parameterizedSignature = null;
// If we are parameterizing it for a generic type, we just need ... |
private int processDirective()
{
String part = document.substring(pos);
if (part.matches("<!--.*-->.*"))
{
// This is a comment
comment = part.substring(4, part.indexOf("-->")).trim();
pos += part.indexOf("-->") + 3;
return COMMENT;
... | private int processDirective()
{
String part = document.substring(pos);
if (part.matches("<!--.*-->.*"))
{
// This is a comment
comment = part.substring(4, part.indexOf("-->")).trim();
pos += part.indexOf("-->") + 3;
return COMMENT;
... |
public void afterCompiling(CompilationUnitDeclaration[] units) {
this.eWorld.cleanup();
try {
// not great ... but one more check before we continue, see pr132314
if (!reportedErrors && units!=null) {
for (int i = 0; i < units.length; i++) {
if (units[i]!=null && units[i].compilationResult!=null && ... | public void afterCompiling(CompilationUnitDeclaration[] units) {
this.eWorld.cleanup();
try {
// not great ... but one more check before we continue, see pr132314
if (!reportedErrors && units!=null) {
for (int i = 0; i < units.length; i++) {
if (units[i]!=null && units[i].compilationResult!=null && ... |
public void afterCompiling(CompilationUnitDeclaration[] units) {
this.eWorld.cleanup();
if (!weaverInitialized) { // nothing got compiled, doesnt mean there is nothing to do... (binary weaving)
if (!(isXTerminateAfterCompilation || (reportedErrors && !proceedOnError))) {
// acceptResult(unit.compilationResul... | public void afterCompiling(CompilationUnitDeclaration[] units) {
this.eWorld.cleanup();
if (!weaverInitialized) { // nothing got compiled, doesnt mean there is nothing to do... (binary weaving)
if (!(isXTerminateAfterCompilation || (reportedErrors && !proceedOnError))) {
// acceptResult(unit.compilationResul... |
public void internal_dispose_Accessible() {
if (actionNames != null) actionNames.release();
actionNames = null;
if (attributeNames != null) attributeNames.release();
attributeNames = null;
if (parameterizedAttributeNames != null) parameterizedAttributeNames.release();
parameterizedAttributeNames = null;
... | public void internal_dispose_Accessible() {
if (actionNames != null) actionNames.release();
actionNames = null;
if (attributeNames != null) attributeNames.release();
attributeNames = null;
if (parameterizedAttributeNames != null) parameterizedAttributeNames.release();
parameterizedAttributeNames = null;
... |
public boolean isLayoutDeferred () {
checkWidget ();
return findDeferredControl () != null;
}
boolean isOpaque (int /*long*/ id, int /*long*/ sel) {
if ((state & CANVAS) != 0) {
if (id == view.id) {
if (region == null && background != null && background[3] == 1) {
return true;
}
}
}
return super.isO... | public boolean isLayoutDeferred () {
checkWidget ();
return findDeferredControl () != null;
}
boolean isOpaque (int /*long*/ id, int /*long*/ sel) {
if ((state & CANVAS) != 0) {
if (id == view.id) {
if (region == null && background != null && background[3] == 1) {
return true;
}
}
}
return super.isO... |
public ToolBar (Composite parent, int style) {
super (parent, checkStyle (style));
/*
* Ensure that either of HORIZONTAL or VERTICAL is set.
* NOTE: HORIZONTAL and VERTICAL have the same values
* as H_SCROLL and V_SCROLL so it is necessary to first
* clear these bits to avoid scroll bars and then reset
* the b... | public ToolBar (Composite parent, int style) {
super (parent, checkStyle (style));
/*
* Ensure that either of HORIZONTAL or VERTICAL is set.
* NOTE: HORIZONTAL and VERTICAL have the same values
* as H_SCROLL and V_SCROLL so it is necessary to first
* clear these bits to avoid scroll bars and then reset
* the b... |
public StatVisualizer() {
super();
model = new ObjectTableModel(COLUMNS,
SamplingStatCalculator.class,
new Functor[] {
new Functor("getLabel"), //$NON-NLS-1$
new Functor("getCount"), //$NON-NLS-1$
new Functor("getMeanAsNumber"), //$NON-NLS-... | public StatVisualizer() {
super();
model = new ObjectTableModel(COLUMNS,
SamplingStatCalculator.class,
new Functor[] {
new Functor("getLabel"), //$NON-NLS-1$
new Functor("getCount"), //$NON-NLS-1$
new Functor("getMeanAsNumber"), //$NON-NLS-... |
public NSSize containerSize() {
NSSize result = new NSSize();
OS.objc_msgSend_stret(result, this.id, OS.sel_containerSize);
return result;
}
| public NSSize containerSize() {
NSSize result = new NSSize();
OS.objc_msgSend_struct(result, this.id, OS.sel_containerSize);
return result;
}
|
public int hashCode() {
if (_name == null) {
return super.hashCode();
}
return _name.hashCode();
}
| public int hashCode() {
if (_name == null) {
return super.hashCode();
}
return _name.toUpperCase().hashCode();
}
|
public String getText () {
checkWidget ();
return text;
}
Rect getInset () {
if ((style & SWT.PUSH) == 0) return super.getInset();
return display.buttonInset;
}
int kEventControlHit (int nextHandler, int theEvent, int userData) {
int result = super.kEventControlHit (nextHandler, theEvent, userData);
if (result ... | public String getText () {
checkWidget ();
return text;
}
Rect getInset () {
if ((style & SWT.PUSH) == 0) return super.getInset();
return display.buttonInset;
}
int kEventControlHit (int nextHandler, int theEvent, int userData) {
int result = super.kEventControlHit (nextHandler, theEvent, userData);
if (result ... |
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
int width = 0, height = 0;
if ((style & SWT.HORIZONTAL) != 0) {
width += DEFAULT_WIDTH; height += 5;
} else {
width += 5; height += DEFAULT_HEIGHT;
}
if (wHint != SWT.DEFAULT) width = wHint;
if (hHint != SWT.DEFAULT) height = ... | public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
int width = 0, height = 0;
if ((style & SWT.HORIZONTAL) != 0) {
width += DEFAULT_WIDTH; height += 5;
} else {
width += 5; height += DEFAULT_HEIGHT;
}
if (wHint != SWT.DEFAULT) width = wHint;
if (hHint != SWT.DEFAULT) height = ... |
public int getThumb () {
checkWidget();
return OS.GetControlViewSize (handle);
}
int kEventControlTrack (int nextHandler, int theEvent, int userData) {
int result = super.kEventControlTrack (nextHandler, theEvent, userData);
if (result == OS.noErr) return result;
tracking = true;
return OS.eventNotHandledErr;... | public int getThumb () {
checkWidget();
return OS.GetControlViewSize (handle);
}
int kEventControlTrack (int nextHandler, int theEvent, int userData) {
int result = super.kEventControlTrack (nextHandler, theEvent, userData);
if (result == OS.noErr) return result;
tracking = true;
return OS.eventNotHandledErr;... |
public boolean isEnabled () {
checkWidget();
return getEnabled () && parent.isEnabled ();
}
int kEventControlHit (int nextHandler, int theEvent, int userData) {
int result = super.kEventControlHit (nextHandler, theEvent, userData);
if (result == OS.noErr) return result;
if ((style & SWT.RADIO) != 0) {
if ((pare... | public boolean isEnabled () {
checkWidget();
return getEnabled () && parent.isEnabled ();
}
int kEventControlHit (int nextHandler, int theEvent, int userData) {
int result = super.kEventControlHit (nextHandler, theEvent, userData);
if (result == OS.noErr) return result;
if ((style & SWT.RADIO) != 0) {
if ((pare... |
public int indexOf (TreeItem item) {
checkWidget ();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
if (item.parentItem != null) return -1;
return _indexOf (null, item);
}
int _indexOf (TreeItem parentItem, TreeItem item) {
int [] ids = parentItem =... | public int indexOf (TreeItem item) {
checkWidget ();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
if (item.parentItem != null) return -1;
return _indexOf (null, item);
}
int _indexOf (TreeItem parentItem, TreeItem item) {
int [] ids = parentItem =... |
private void loadProtocolHandlers() {
this.retrieveFileTransferProtocolMap = new HashMap(3);
this.sendFileTransferProtocolMap = new HashMap(3);
this.browseFileTransferProtocolMap = new HashMap(3);
final IExtensionRegistry reg = getExtensionRegistry();
if (reg != null) {
String[] existingSchemes = getPlatf... | private void loadProtocolHandlers() {
this.retrieveFileTransferProtocolMap = new HashMap(3);
this.sendFileTransferProtocolMap = new HashMap(3);
this.browseFileTransferProtocolMap = new HashMap(3);
final IExtensionRegistry reg = getExtensionRegistry();
if (reg != null) {
String[] existingSchemes = getPlatf... |
public Process exec( Project project, String[] cmd, String[] env, File workingDir )
throws IOException, TaskException
{
if( workingDir == null )
{
return exec( project, cmd, env );
}
System.getProperties().put( "user.dir", workingDir.getAbsolutePath() );
... | public Process exec( Project project, String[] cmd, String[] env, File workingDir )
throws IOException, TaskException
{
if( workingDir == null )
{
return exec( project, cmd, env );
}
System.getProperties().put( "user.dir", workingDir.getAbsolutePath() );
... |
{ // TODO finalize javadoc
/*
* $Id$
* $Revision$
* $Date$
*
* ====================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | { // TODO finalize javadoc
/*
* $Id$
* $Revision$
* $Date$
*
* ====================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... |
* public void setName(String name)
* {
* this.name = name;
* }
*
* }
* </pre>
*
* with label:
*
* <pre>
*
*
*
* add(new Label("myLabel", person, "name");
*
*
*
* </pre>
*
* will replace the span body with the 'name' property of the given person ... | * public void setName(String name)
* {
* this.name = name;
* }
*
* }
* </pre>
*
* with label:
*
* <pre>
*
*
*
* add(new Label("myLabel", person, "name");
*
*
*
* </pre>
*
* will replace the span body with the 'name' property of the given person ... |
{ // TODO finalize javadoc
/*
* $Id$
* $Revision$
* $Date$
*
* ====================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | { // TODO finalize javadoc
/*
* $Id$
* $Revision$
* $Date$
*
* ====================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... |
* public Object getObjectById(String id)
* {
* if(id == null) return null;
* return definitionDAO.loadDefinitionType(Long.valueOf(id));
* // note: more efficient would be to just look up the object in this list
* // as it is loaded allready
* }
* }
* </pre>
... | * public Object getObjectById(String id)
* {
* if(id == null) return null;
* return definitionDAO.loadDefinitionType(Long.valueOf(id));
* // note: more efficient would be to just look up the object in this list
* // as it is loaded allready
* }
* }
* </pre>
... |
* public void populateItem(final ListItem item)
* {
* final UserDetails user = (UserDetails) item.getModelObject();
* cell.add(new Label("id", user.getId()));
* }
* });
* </pre><p>
* <p>Note:
* Because Wicket model object must be seralizable, java.util.... | * public void populateItem(final ListItem item)
* {
* final UserDetails user = (UserDetails) item.getModelObject();
* cell.add(new Label("id", user.getId()));
* }
* });
* </pre><p>
* <p>Note:
* Because Wicket model object must be seralizable, java.util.... |
* public void setName(String name)
* {
* this.name = name;
* }
*
* }
* </pre>
*
* We could construct a label that dynamically fetches the name property of the given
* person object like this:
*
* <pre>
*
*
*
* Person person = getSomePerson();
* ...
* add(new Label(&q... | * public void setName(String name)
* {
* this.name = name;
* }
*
* }
* </pre>
*
* We could construct a label that dynamically fetches the name property of the given
* person object like this:
*
* <pre>
*
*
*
* Person person = getSomePerson();
* ...
* add(new Label(&q... |
{ // TODO finalize javadoc
/*
* $Id$
* $Revision$
* $Date$
*
* ====================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | { // TODO finalize javadoc
/*
* $Id$
* $Revision$
* $Date$
*
* ====================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... |
{ // TODO finalize javadoc
/*
* $Id$
* $Revision$
* $Date$
*
* ====================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | { // TODO finalize javadoc
/*
* $Id$
* $Revision$
* $Date$
*
* ====================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... |
private void mapBaseClass(Table table) {
ClassMapping cls = newClassMapping(table, null);
if (cls == null)
return;
// check for datastore identity and builtin identity; for now
// we assume that any non-datastore single primary key column will use
// builtin iden... | private void mapBaseClass(Table table) {
ClassMapping cls = newClassMapping(table, null);
if (cls == null)
return;
// check for datastore identity and builtin identity; for now
// we assume that any non-datastore single primary key column will use
// builtin iden... |
public boolean isVisible () {
checkWidget();
return getVisible () && parent.isVisible ();
}
Decorations menuShell () {
return parent.menuShell ();
}
int kEventAccessibleGetChildAtPoint (int nextHandler, int theEvent, int userData) {
if (accessible != null) {
return accessible.internal_kEventAccessibleGetChildAt... | public boolean isVisible () {
checkWidget();
return getVisible () && parent.isVisible ();
}
Decorations menuShell () {
return parent.menuShell ();
}
int kEventAccessibleGetChildAtPoint (int nextHandler, int theEvent, int userData) {
if (accessible != null) {
return accessible.internal_kEventAccessibleGetChildAt... |
private final static String RESERVED_ATTRIBUTES[] =
{
"id", "logger"
};
| private final static String RESERVED_ATTRIBUTES[] =
{
"logger"
};
|
public PartialBlackBoxTestCase() {
super("test/data/blackbox/partial");
addTest(1, 0.0f);
addTest(1, 90.0f);
addTest(1, 180.0f);
addTest(0, 270.0f);
}
| public PartialBlackBoxTestCase() {
super("test/data/blackbox/partial");
addTest(1, 0.0f);
addTest(1, 90.0f);
addTest(1, 180.0f);
addTest(1, 270.0f);
}
|
public final void onValidate(final FormComponent formComponent, final String value)
{
// Check value only if form component can take on a null value
if (formComponent.isValueNullable())
{
// Check value
if (Strings.isEmpty(value))
{
error(formComponent);
}
}
}
| public final void onValidate(final FormComponent formComponent, final String value)
{
// Check value only if form component can take on a null value
if (formComponent.isInputNullable())
{
// Check value
if (Strings.isEmpty(value))
{
error(formComponent);
}
}
}
|
public interface IPageParametersEncoder
/*
* $Id$
* $Revision$
* $Date$
*
* ==============================================================================
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy o... | public interface IPageParametersEncoder
/*
* $Id$
* $Revision$
* $Date$
*
* ==============================================================================
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy o... |
public void setUp() {
setUp(LRSEntity.class, BasicEntity.class);
EntityManager em = emf.createEntityManager();
em.getTransaction().begin();
LRSEntity lrs = new LRSEntity();
lrs.setName("lrs");
for (int i = 1; i <= 3; i++) {
BasicEntity basic = n... | public void setUp() {
setUp(LRSEntity.class, BasicEntity.class, CLEAR_TABLES);
EntityManager em = emf.createEntityManager();
em.getTransaction().begin();
LRSEntity lrs = new LRSEntity();
lrs.setName("lrs");
for (int i = 1; i <= 3; i++) {
BasicEn... |
protected IContainer[] getContainers(IServiceID serviceID,
IServiceEndpointDescription endpointDescription) {
// Get all containers available
IContainer[] allContainers = getAllContainers();
// If none then return null
if (allContainers == null)
return null;
List results = new ArrayList();
for (int... | protected IContainer[] getContainers(IServiceID serviceID,
IServiceEndpointDescription endpointDescription) {
// Get all containers available
IContainer[] allContainers = getAllContainers();
// If none then return null
if (allContainers == null)
return null;
List results = new ArrayList();
for (int... |
public int validateContent(QName children[], int offset, int length) throws CMException {
if (DEBUG_VALIDATE_CONTENT)
System.out.println("DFAContentModel#validateContent");
//
// A DFA content model must *always* have at least 1 child
// so a failure is given if no chi... | public int validateContent(QName children[], int offset, int length) throws CMException {
if (DEBUG_VALIDATE_CONTENT)
System.out.println("DFAContentModel#validateContent");
//
// A DFA content model must *always* have at least 1 child
// so a failure is given if no chi... |
public void addValue(String value, Field field) throws SAXException;
} // interface ValueStore | public void addValue(Field field, String value) throws Exception;
} // interface ValueStore |
public final int getVersions()
{
return versionManager == null ? 1 : versionManager.getVersions();
}
| public final int getVersions()
{
return versionManager == null ? 1 : versionManager.getVersions()+1;
}
|
public void renderHead(final HtmlHeaderContainer container)
{
if (isVisible())
{
if (this instanceof IHeaderContributor)
{
((IHeaderContributor)this).renderHead(container.getHeaderResponse());
}
// Ask all behaviors if they have something to contribute to the
// header or body onLoad tag.
i... | public void renderHead(final HtmlHeaderContainer container)
{
if (isVisible())
{
if (this instanceof IHeaderContributor)
{
((IHeaderContributor)this).renderHead(container.getHeaderResponse());
}
// Ask all behaviors if they have something to contribute to the
// header or body onLoad tag.
i... |
protected OutputStream getOutputStream() throws IOException {
if (caller.FRAMES.equals(caller.format)){
// dummy output for the framed report
// it's all done by extension...
return new ByteArrayOutputStream();
} else {
return new FileOutputStream(new ... | protected OutputStream getOutputStream() throws IOException {
if (caller.FRAMES.equals(caller.format)){
// dummy output for the framed report
// it's all done by extension...
return new ByteArrayOutputStream();
} else {
return new FileOutputStream(new ... |
public CustomControlExample(Composite parent) {
super (parent);
}
/**
* Answers the set of example Tabs
*/
Tab[] createTabs() {
return new Tab [] {
new CComboTab (this),
new CLabelTab (this),
new CTabFolderTab (this),
new SashFormTab (this),
new StyledTextTab (this),
new TableTreeTab (th... | public CustomControlExample(Composite parent) {
super (parent);
}
/**
* Answers the set of example Tabs
*/
Tab[] createTabs() {
return new Tab [] {
new CComboTab (this),
new CLabelTab (this),
new CTabFolderTab (this),
new SashFormTab (this),
new StyledTextTab (this),
//new TableTreeTab (... |
public void addRedefinedGroupDecl(XSGroupDecl derived, XSGroupDecl base, SimpleLocator locator) {
if (fRGCount == fRedefinedGroupDecls.length) {
// double array size each time.
fRedefinedGroupDecls = resize(fRedefinedGroupDecls, fRGCount << 1);
fRGLocators = resize(fRGLoc... | public void addRedefinedGroupDecl(XSGroupDecl derived, XSGroupDecl base, SimpleLocator locator) {
if (fRGCount == fRedefinedGroupDecls.length) {
// double array size each time.
fRedefinedGroupDecls = resize(fRedefinedGroupDecls, fRGCount << 1);
fRGLocators = resize(fRGLoc... |
public void insert (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
int [] start = new int [1], end = new int [1];
OS.XmTextGetSelectionPosition (handle, start, end);
if (start [0] == end [0]) {
start [0] = end [0] = OS.XmTextGetInsertionPosition (handle);
}
byte [] buffer ... | public void insert (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
int [] start = new int [1], end = new int [1];
OS.XmTextGetSelectionPosition (handle, start, end);
if (start [0] == end [0]) {
start [0] = end [0] = OS.XmTextGetInsertionPosition (handle);
}
byte [] buffer ... |
public void selectAll () {
checkWidget ();
if ((style & SWT.SINGLE) != 0) return;
LVITEM lvItem = new LVITEM ();
lvItem.mask = OS.LVIF_STATE;
lvItem.state = OS.LVIS_SELECTED;
lvItem.stateMask = OS.LVIS_SELECTED;
ignoreSelect = true;
OS.SendMessage (handle, OS.LVM_SETITEMSTATE, -1, lvItem);
ignoreSelect = false... | public void selectAll () {
checkWidget ();
if ((style & SWT.SINGLE) != 0) return;
LVITEM lvItem = new LVITEM ();
lvItem.mask = OS.LVIF_STATE;
lvItem.state = OS.LVIS_SELECTED;
lvItem.stateMask = OS.LVIS_SELECTED;
ignoreSelect = true;
OS.SendMessage (handle, OS.LVM_SETITEMSTATE, -1, lvItem);
ignoreSelect = false... |
public void respond(RequestCycle requestCycle)
{
// Should page be redirected to?
if (requestCycle.getRedirect())
{
// Redirect to the page
requestCycle.redirectTo(page);
}
else
{
// Let page render itself
page.renderPage();
}
}
| public void respond(RequestCycle requestCycle)
{
// Should page be redirected to?
if (requestCycle.isRedirect())
{
// Redirect to the page
requestCycle.redirectTo(page);
}
else
{
// Let page render itself
page.renderPage();
}
}
|
public void run() {
if (styledText == null) return;
int i;
long start = System.currentTimeMillis();
for (i = 0; i < lineCount; i++) {
if (lineHeight[i] == -1 || lineWidth[i] == -1) {
calculate(i, 1);
if (System.currentTimeMillis() - start > IDLE_TIME) break;
}
}
if (i < lineCount) ... | public void run() {
if (styledText == null) return;
int i;
long start = System.currentTimeMillis();
for (i = 0; i < lineCount; i++) {
if (lineHeight[i] == -1 || lineWidth[i] == -1) {
calculate(i, 1);
if (System.currentTimeMillis() - start > IDLE_TIME) break;
}
}
if (i < lineCount) ... |
package org.apache.myrmidon.interfaces.classloader;
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package ... | package org.apache.myrmidon.interfaces.classloader;
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package ... |
public void marshal(Object arg0, HierarchicalStreamWriter writer, MarshallingContext context) {
TestElement el = (TestElement) arg0;
if (testFormat22){
ConversionHelp.saveSpecialProperties(el,writer);
}
PropertyIterator iter = el.propertyIterator();
while (iter.hasNext()) {
... | public void marshal(Object arg0, HierarchicalStreamWriter writer, MarshallingContext context) {
TestElement el = (TestElement) arg0;
if (testFormat22){
ConversionHelp.saveSpecialProperties(el,writer);
}
PropertyIterator iter = el.propertyIterator();
while (iter.hasNext()) {
... |
public void marshal(Object arg0, HierarchicalStreamWriter writer, MarshallingContext context) {
TestElementProperty prop = (TestElementProperty) arg0;
writer.addAttribute(ConversionHelp.ATT_NAME, ConversionHelp.encode(prop.getName()));
Class clazz = prop.getObjectValue().getClass();
writer.addAttribute(C... | public void marshal(Object arg0, HierarchicalStreamWriter writer, MarshallingContext context) {
TestElementProperty prop = (TestElementProperty) arg0;
writer.addAttribute(ConversionHelp.ATT_NAME, ConversionHelp.encode(prop.getName()));
Class clazz = prop.getObjectValue().getClass();
writer.addAttribute(C... |
public void process() {
initTemplate();
JMeterContext context = getThreadContext();
SampleResult previousResult = context.getPreviousResult();
if (previousResult == null || previousResult.getResponseData().length == 0) {
return;
}
log.debug("RegexExtractor processing result");
// Fetch some variables... | public void process() {
initTemplate();
JMeterContext context = getThreadContext();
SampleResult previousResult = context.getPreviousResult();
if (previousResult == null) {
return;
}
log.debug("RegexExtractor processing result");
// Fetch some variables
JMeterVariables vars = context.getVariables()... |
public void open () {
checkWidget();
int mask = SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL;
if ((style & mask) != 0) {
display.setModalShell (this);
} else {
updateModal ();
}
bringToTop (false);
setWindowVisible (true, true);
if (isDisposed ()) return;
if (!restoreFocus () && !traverseGr... | public void open () {
checkWidget();
int mask = SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL;
if ((style & mask) != 0) {
display.setModalShell (this);
} else {
updateModal ();
}
bringToTop (false);
setWindowVisible (true, true);
if (isDisposed ()) return;
if (!restoreFocus () && !traverseGr... |
public String getText () {
checkWidget ();
return text;
}
Rect getInset () {
if ((style & SWT.PUSH) == 0) return super.getInset();
return display.buttonInset;
}
int kEventControlHit (int nextHandler, int theEvent, int userData) {
int result = super.kEventControlHit (nextHandler, theEvent, userData);
if (result ... | public String getText () {
checkWidget ();
return text;
}
Rect getInset () {
if ((style & SWT.PUSH) == 0) return super.getInset();
return display.buttonInset;
}
int kEventControlHit (int nextHandler, int theEvent, int userData) {
int result = super.kEventControlHit (nextHandler, theEvent, userData);
if (result ... |
public int getThumb () {
checkWidget();
return OS.GetControlViewSize (handle);
}
int kEventControlTrack (int nextHandler, int theEvent, int userData) {
int result = super.kEventControlTrack (nextHandler, theEvent, userData);
if (result == OS.noErr) return result;
tracking = true;
return OS.eventNotHandledErr;... | public int getThumb () {
checkWidget();
return OS.GetControlViewSize (handle);
}
int kEventControlTrack (int nextHandler, int theEvent, int userData) {
int result = super.kEventControlTrack (nextHandler, theEvent, userData);
if (result == OS.noErr) return result;
tracking = true;
return OS.eventNotHandledErr;... |
public boolean isEnabled () {
checkWidget();
return getEnabled () && parent.isEnabled ();
}
int kEventControlContextualMenuClick (int nextHandler, int theEvent, int userData) {
return parent.kEventControlContextualMenuClick (nextHandler, theEvent, userData);
}
int kEventControlHit (int nextHandler, int theEvent, i... | public boolean isEnabled () {
checkWidget();
return getEnabled () && parent.isEnabled ();
}
int kEventControlContextualMenuClick (int nextHandler, int theEvent, int userData) {
return parent.kEventControlContextualMenuClick (nextHandler, theEvent, userData);
}
int kEventControlHit (int nextHandler, int theEvent, i... |
public int indexOf (TreeItem item) {
checkWidget ();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
if (item.parentItem != null) return -1;
return _indexOf (null, item);
}
int _indexOf (TreeItem parentItem, TreeItem item) {
int [] ids = parentItem =... | public int indexOf (TreeItem item) {
checkWidget ();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
if (item.parentItem != null) return -1;
return _indexOf (null, item);
}
int _indexOf (TreeItem parentItem, TreeItem item) {
int [] ids = parentItem =... |
public void modelUpdated(StructureModel rootNode);
} | public void containmentHierarchyUpdated(StructureModel rootNode);
} |
public void testCGLibInterceptorReplacement()
{
ProxyReplacement ser = new ProxyReplacement(
ConcreteObject.class.getName(), concreteObjectLocator);
ConcreteObject proxy2 = (ConcreteObject) Objects.cloneObject(ser);
assertEquals(proxy2.getMessage(), "concrete");
}
| public void testCGLibInterceptorReplacement()
{
ProxyReplacement ser = new ProxyReplacement(
ConcreteObject.class.getName(), concreteObjectLocator);
ConcreteObject proxy2 = (ConcreteObject) Objects.cloneObject((Object)ser);
assertEquals(proxy2.getMessage(), "concrete");
}
|
public ToolBar (Composite parent, int style) {
super (parent, checkStyle (style));
/*
* Ensure that either of HORIZONTAL or VERTICAL is set.
* NOTE: HORIZONTAL and VERTICAL have the same values
* as H_SCROLL and V_SCROLL so it is necessary to first
* clear these bits to avoid scroll bars and then reset
* the b... | public ToolBar (Composite parent, int style) {
super (parent, checkStyle (style));
/*
* Ensure that either of HORIZONTAL or VERTICAL is set.
* NOTE: HORIZONTAL and VERTICAL have the same values
* as H_SCROLL and V_SCROLL so it is necessary to first
* clear these bits to avoid scroll bars and then reset
* the b... |
public int hashCode () {
return handle;
}
void init(Device device, int width, int height) {
if (width <= 0 || height <= 0) {
SWT.error (SWT.ERROR_INVALID_ARGUMENT);
}
this.device = device;
this.type = SWT.BITMAP;
/* Create the image */
int bpr = width * 4;
int dataSize = height * bpr;
data = OS.NewPtr(data... | public int hashCode () {
return handle;
}
void init(Device device, int width, int height) {
if (width <= 0 || height <= 0) {
SWT.error (SWT.ERROR_INVALID_ARGUMENT);
}
this.device = device;
this.type = SWT.BITMAP;
/* Create the image */
int bpr = width * 4;
int dataSize = height * bpr;
data = OS.NewPtr(data... |
public static Manifest getDefaultManifest() throws BuildException {
InputStream in = null;
InputStreamReader insr = null;
try {
String defManifest = "/org/apache/tools/ant/defaultManifest.mf";
in = Manifest.class.getResourceAsStream(defManifest);
if (in ==... | public static Manifest getDefaultManifest() throws BuildException {
InputStream in = null;
InputStreamReader insr = null;
try {
String defManifest = "/org/apache/tools/ant/defaultManifest.mf";
in = Manifest.class.getResourceAsStream(defManifest);
if (in ==... |
private JMeterGUIComponent getGuiFromCache(Class guiClass, Class testClass) throws InstantiationException,
IllegalAccessException, ClassNotFoundException {
JMeterGUIComponent comp;
if (guiClass == TestBeanGUI.class) {
comp = (TestBeanGUI) testBeanGUIs.get(testClass);
if (comp == null) {
comp = new Tes... | private JMeterGUIComponent getGuiFromCache(Class guiClass, Class testClass) throws InstantiationException,
IllegalAccessException {
JMeterGUIComponent comp;
if (guiClass == TestBeanGUI.class) {
comp = (TestBeanGUI) testBeanGUIs.get(testClass);
if (comp == null) {
comp = new TestBeanGUI(testClass);
... |
public void GUIComponents2() throws Exception {
String name = guiItem.getClass().getName();
// TODO these assertions should be separate tests
TestElement el = guiItem.createTestElement();
assertNotNull(name + ".createTestElement should be non-null ", el);
assertEquals("GUI-CLASS: Failed on " + name, name, ... | public void GUIComponents2() throws Exception {
String name = guiItem.getClass().getName();
// TODO these assertions should be separate tests
TestElement el = guiItem.createTestElement();
assertNotNull(name + ".createTestElement should be non-null ", el);
assertEquals("GUI-CLASS: Failed on " + name, name, ... |
public void renderHead(IHeaderResponse response)
{
YuiLib.load(response);
if (enableMonthYearSelection())
{
response.renderCSSReference(new ResourceReference(YuiLib.class,
"calendar/assets/wicket-calendar.css"));
String idSelector = "#" + getEscapedComponentMarkupId() + "DpJs";
new StringHeaderCon... | public void renderHead(IHeaderResponse response)
{
YuiLib.load(response);
if (enableMonthYearSelection())
{
response.renderCSSReference(new ResourceReference(YuiLib.class,
"calendar/assets/wicket-calendar.css"));
String idSelector = "#" + getEscapedComponentMarkupId() + "DpJs";
new StringHeaderCon... |
public Shell [] getShells () {
checkWidget();
int count = 0;
Shell [] shells = display.getShells ();
for (int i=0; i<shells.length; i++) {
Control shell = shells [i];
do {
shell = shell.getParent ();
} while (shell != null && shell != this);
if (shell == this) count++;
}
int index = 0;
Shell [] result... | public Shell [] getShells () {
checkWidget();
int count = 0;
Shell [] shells = display.getShells ();
for (int i=0; i<shells.length; i++) {
Control shell = shells [i];
do {
shell = shell.getParent ();
} while (shell != null && shell != this);
if (shell == this) count++;
}
int index = 0;
Shell [] result... |
public static String[] getIds(final IFile xml, final String type) {
String ids = "Use first " + type + " id;";
try {
Document doc = parse(xml);
Element current = null;
NodeList nodes = null;
if (type != null && type.equals("encryption")) {
... | public static String[] getIds(final IFile xml, final String type) {
String ids = "Use first " + type + ";";
try {
Document doc = parse(xml);
Element current = null;
NodeList nodes = null;
if (type != null && type.equals("encryption")) {
... |
public String getName() {
return fName;
}
| public String getName() {
return getIsAnonymous() ? null : fName;
}
|
public void evict(final PageMap pageMap)
{
// Do we need to evict under this strategy?
if (pageMap.getVersions() > maxVersions)
{
// Remove oldest entry from access stack
final PageMap.Access oldestAccess = (PageMap.Access)pageMap.getAccessStack().remove(0);
final IPageMapEntry oldestEntry = pageMap.ge... | public void evict(final PageMap pageMap)
{
// Do we need to evict under this strategy?
if (pageMap.getVersions() > maxVersions)
{
// Remove oldest entry from access stack
final PageMap.Access oldestAccess = (PageMap.Access)pageMap.getAccessStack().remove(0);
final IPageMapEntry oldestEntry = pageMap.ge... |
public void setIME (IME ime) {
checkWidget ();
if (ime != null && ime.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
this.ime = ime;
}
int /*long*/ windowProc (int /*long*/ hwnd, int msg, int /*long*/ wParam, int /*long*/ lParam) {
if (msg == Display.SWT_RESTORECARET) {
if ((state & CANVAS) != 0) {
if (care... | public void setIME (IME ime) {
checkWidget ();
if (ime != null && ime.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
this.ime = ime;
}
int /*long*/ windowProc (int /*long*/ hwnd, int msg, int /*long*/ wParam, int /*long*/ lParam) {
if (msg == Display.SWT_RESTORECARET) {
if ((state & CANVAS) != 0) {
if (care... |
public synchronized String execute(SampleResult previousResult, Sampler currentSampler)
throws InvalidVariableException {
JMeterVariables vars = getVariables();
long min = Long.parseLong(minimum.execute().trim());
long max = Long.parseLong(maximum.execute().trim());
long rand = Math.round(min + Math.rand... | public synchronized String execute(SampleResult previousResult, Sampler currentSampler)
throws InvalidVariableException {
JMeterVariables vars = getVariables();
long min = Long.parseLong(minimum.execute().trim());
long max = Long.parseLong(maximum.execute().trim());
long rand = min + (long) Math.random()... |
public static WeaveMessage constructWeavingMessage(
WeaveMessageKind kind,
String[] inserts) {
StringBuffer str = new StringBuffer(kind.getMessage());
int pos = -1;
while ((pos=str.indexOf("%"))!=-1) {
int n = Character.getNumericValue(str.charAt(pos+1));
str.replace(pos,pos+2,inserts[n-1]);
}
re... | public static WeaveMessage constructWeavingMessage(
WeaveMessageKind kind,
String[] inserts) {
StringBuffer str = new StringBuffer(kind.getMessage());
int pos = -1;
while ((pos=new String(str).indexOf("%"))!=-1) {
int n = Character.getNumericValue(str.charAt(pos+1));
str.replace(pos,pos+2,inserts[n-1... |
public void reset(){
fName = null;
fTargetNamespace = null;
fBaseType = null;
fDerivedBy = XSConstants.DERIVATION_RESTRICTION;
fFinal = XSConstants.DERIVATION_NONE;
fBlock = XSConstants.DERIVATION_NONE;
fMiscFlags = 0;
// reset attribute group
... | public void reset(){
fName = null;
fTargetNamespace = null;
fBaseType = null;
fDerivedBy = XSConstants.DERIVATION_RESTRICTION;
fFinal = XSConstants.DERIVATION_NONE;
fBlock = XSConstants.DERIVATION_NONE;
fMiscFlags = 0;
// reset attribute group
... |
public static void loadLibrary (String name, boolean mapName) {
/* Compute the library name and mapped name */
String libName1, libName2, mappedName1, mappedName2;
if (mapName) {
String version = System.getProperty ("swt.version"); //$NON-NLS-1$
if (version == null) {
version = "" + MAJOR_VERSION; //$NON-NL... | public static void loadLibrary (String name, boolean mapName) {
/* Compute the library name and mapped name */
String libName1, libName2, mappedName1, mappedName2;
if (mapName) {
String version = System.getProperty ("swt.version"); //$NON-NLS-1$
if (version == null) {
version = "" + MAJOR_VERSION; //$NON-NL... |
private int requiresBaseMarkup(final Markup markup)
{
for (int i = 0; i < markup.size(); i++)
{
MarkupElement elem = (MarkupElement)markup.get(i);
if (elem instanceof WicketTag)
{
WicketTag wtag = (WicketTag)elem;
if (wtag.isExtendTag())
{
// Ok, inheritance is on and we must get the
... | private int requiresBaseMarkup(final Markup markup)
{
for (int i = 0; i < markup.size(); i++)
{
MarkupElement elem = markup.get(i);
if (elem instanceof WicketTag)
{
WicketTag wtag = (WicketTag)elem;
if (wtag.isExtendTag())
{
// Ok, inheritance is on and we must get the
// inherited ... |
public String toString()
{
return "BookmarkablePageEncoder[page=" + (Class)bookmarkablePageClassRef.get() + "]";
}
| public String toString()
{
return "BookmarkablePageEncoder[page=" + bookmarkablePageClassRef.get() + "]";
}
|
public static String fromEscapedUnicode(String escapedUnicodeString)
{
int off = 0;
char[] in = escapedUnicodeString.toCharArray();
int len = in.length;
char[] convtBuf = new char[len];
if (convtBuf.length < len)
{
int newLen = len * 2;
if (newLen < 0)
{
newLen = Integer.MAX_VALUE;
}
c... | public static String fromEscapedUnicode(String escapedUnicodeString)
{
int off = 0;
char[] in = escapedUnicodeString.toCharArray();
int len = in.length;
char[] convtBuf = new char[len];
if (convtBuf.length < len)
{
int newLen = len * 2;
if (newLen < 0)
{
newLen = Integer.MAX_VALUE;
}
c... |
public Page getTestPage()
{
return page;
}
});
// Setup the request. It should be a IMultipartWebRequest
RequestCycle requestCycle = tester.createRequestCycle();
MockHttpServletRequest servletRequest = tester.getServletRequest();
servletRequest.setMethod("POST");
servletRequest.setParameter("f... | public Page getTestPage()
{
return page;
}
});
// Setup the request. It should be a IMultipartWebRequest
RequestCycle requestCycle = tester.createRequestCycle();
MockHttpServletRequest servletRequest = tester.getServletRequest();
servletRequest.setMethod("POST");
servletRequest.setParameter("f... |
public void setTopIndex (int index) {
checkWidget ();
if (!(0 <= index && index < itemsCount)) return;
Rectangle clientArea = getClientArea ();
int visibleItemCount = (clientArea.height - getHeaderHeight ()) / itemHeight;
if (itemsCount <= visibleItemCount) return;
index = Math.min (index, itemsCount - visibleIte... | public void setTopIndex (int index) {
checkWidget ();
if (!(0 <= index && index < itemsCount)) return;
Rectangle clientArea = getClientArea ();
int visibleItemCount = (clientArea.height - getHeaderHeight ()) / itemHeight;
if (itemsCount <= visibleItemCount) return;
index = Math.min (index, itemsCount - visibleIte... |
public void testNativeSQL() {
EntityManager em = emf.createEntityManager();
em.getTransaction().begin();
int count = em.createNativeQuery("INSERT INTO Address (id, city,"
+ " country, streetAd, zipcode) VALUES (?,?,?,?,?)")
.setParameter(1, System.currentTimeMillis()%1000... | public void testNativeSQL() {
EntityManager em = emf.createEntityManager();
em.getTransaction().begin();
int count = em.createNativeQuery("INSERT INTO Address (id, city,"
+ " country, streetAd, zipcode) VALUES (?,?,?,?,?)")
.setParameter(1, System.currentTimeMillis()%1000... |
public void deselectAll () {
checkWidget ();
NSTableView widget = (NSTableView)view;
ignoreSelect = true;
widget.deselectAll(null);
ignoreSelect = false;
}
void destroyItem (TableColumn column) {
int index = 0;
while (index < columnCount) {
if (columns [index] == column) break;
index++;
}
for (int i=0; i<... | public void deselectAll () {
checkWidget ();
NSTableView widget = (NSTableView)view;
ignoreSelect = true;
widget.deselectAll(null);
ignoreSelect = false;
}
void destroyItem (TableColumn column) {
int index = 0;
while (index < columnCount) {
if (columns [index] == column) break;
index++;
}
for (int i=0; i<... |
public void deselect (TreeItem item) {
checkWidget ();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
NSOutlineView widget = (NSOutlineView)view;
int /*long*/ row = widget.rowForItem(item.handle);
ignoreSelect = true;
widget.deselectRow (row);
igno... | public void deselect (TreeItem item) {
checkWidget ();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
NSOutlineView widget = (NSOutlineView)view;
int /*long*/ row = widget.rowForItem(item.handle);
ignoreSelect = true;
widget.deselectRow (row);
igno... |
public String getHomePageClass() throws IOException
{
return application.getClass().getName();
}
| public String getHomePageClass() throws IOException
{
return application.getHomePage().getName();
}
|
protected void scanXMLDeclOrTextDecl(boolean scanningTextDecl)
throws IOException, XNIException {
// scan decl
super.scanXMLDeclOrTextDecl(scanningTextDecl, fStrings);
fMarkupDepth--;
// pseudo-attribute values
String version = fStrings[0];
String encoding ... | protected void scanXMLDeclOrTextDecl(boolean scanningTextDecl)
throws IOException, XNIException {
// scan decl
super.scanXMLDeclOrTextDecl(scanningTextDecl, fStrings);
fMarkupDepth--;
// pseudo-attribute values
String version = fStrings[0];
String encoding ... |
protected final static Hashtable fJava2IANAMap = new Hashtable();
//
// Static initialization
//
static {
// add IANA to Java encoding mappings.
fIANA2JavaMap.put("BIG5", "Big5");
fIANA2JavaMap.put("CSBIG5", "Big5");
fIANA2JavaMap.put("CP037",... | protected final static Hashtable fJava2IANAMap = new Hashtable();
//
// Static initialization
//
static {
// add IANA to Java encoding mappings.
fIANA2JavaMap.put("BIG5", "Big5");
fIANA2JavaMap.put("CSBIG5", "Big5");
fIANA2JavaMap.put("CP037",... |
public void messageLogged(BuildEvent event) {
int priority = event.getPriority();
// Filter out messages based on priority
if (priority <= msgOutputLevel) {
StringBuffer message = new StringBuffer();
if (event.getTask() != null && !emacsMode) {
// Pri... | public void messageLogged(BuildEvent event) {
int priority = event.getPriority();
// Filter out messages based on priority
if (priority <= msgOutputLevel) {
StringBuffer message = new StringBuffer();
if (event.getTask() != null && !emacsMode) {
// Pri... |
private XtendFacade(final ExecutionContext ctx) {
this.ctx = ctx;
}
| private ExecutionContext ctx;
XtendFacade(final ExecutionContext ctx) {
this.ctx = ctx;
}
|
protected void layout(Composite composite, boolean flushCache) {
SashForm sashForm = (SashForm)composite;
Rectangle area = sashForm.getClientArea();
if (area.width == 0 || area.height == 0) return;
Control[] newControls = sashForm.getControls(true);
if (sashForm.controls.length == 0 && newControls.length == 0) r... | protected void layout(Composite composite, boolean flushCache) {
SashForm sashForm = (SashForm)composite;
Rectangle area = sashForm.getClientArea();
if (area.width <= 1 || area.height <= 1) return;
Control[] newControls = sashForm.getControls(true);
if (sashForm.controls.length == 0 && newControls.length == 0) r... |
public int internal_kEventAccessibleGetAllAttributeNames (int nextHandler, int theEvent, int userData) {
int code = userData; // userData flags whether nextHandler has already been called
if (axuielementref != 0) {
if (code == OS.eventNotHandledErr) OS.CallNextEventHandler (nextHandler, theEvent);
int [] arr... | public int internal_kEventAccessibleGetAllAttributeNames (int nextHandler, int theEvent, int userData) {
int code = userData; // userData flags whether nextHandler has already been called
if (axuielementref != 0) {
if (code == OS.eventNotHandledErr) OS.CallNextEventHandler (nextHandler, theEvent);
int [] arr... |
public void run() {
try {
if (localGUI != null) {
localGUI.removeUser(member);
}
} catch (Exception e) {
log("Exception in showLineOnGUI", e);
}
}
});
}
public void messageProxyObject(ID target, String classname, String meth,
Object[] args) {
SharedObjectMsg m = SharedOb... | public void run() {
try {
if (localGUI != null) {
localGUI.removeUser(member);
}
} catch (Exception e) {
log("Exception in showLineOnGUI", e);
}
}
});
}
public void messageProxyObject(ID target, String classname, String meth,
Object[] args) {
SharedObjectMsg m = SharedOb... |
protected ModelAndView handleRequestInternal(HttpServletRequest servletRequest,
HttpServletResponse servletResponse) throws Exception
{
if (application != null)
{
application.doService(servletRequest, servletResponse);
}
else
{
log.erro... | protected ModelAndView handleRequestInternal(HttpServletRequest servletRequest,
HttpServletResponse servletResponse) throws Exception
{
if (application != null)
{
application.getWicketServlet().doGet(servletRequest, servletResponse);
}
else
{
... |
public String signIn(final String username, final String password)
{
return null;
}
};
this.panel.setPersistent(true);
this.form = (Form)panel.get("signInForm");
final ICrypt crypt = settings.getCryptInstance();
final String encryptedPassw... | public String signIn(final String username, final String password)
{
return null;
}
};
this.panel.setPersistent(true);
this.form = (Form)panel.get("signInForm");
final ICrypt crypt = application.getCrypt();
final String encryptedPassword =... |
public String getShortTabText() {
return "EB";
}
| String getShortTabText() {
/*******************************************************************************
* Copyright (c) 2000, 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accom... |
public String getShortTabText() {
return "PB";
}
| String getShortTabText() {
/*******************************************************************************
* Copyright (c) 2000, 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accom... |
public String getShortTabText() {
return "TF";
}
| String getShortTabText() {
/*******************************************************************************
* Copyright (c) 2000, 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accom... |
public final class ScopeEnum
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.myrmidon.api;... | public final class ScopeEnum
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.myrmidon.api;... |
public ASModel parseASInputSource(DOMInputSource is)
throws DOMASException, Exception {
// need to wrap the DOMInputSource with an XMLInputSource
XMLInputSource xis = this.dom2xmlInputSource(is);
return parseASInputSource(xis);
}
ASModel parseAS... | public ASModel parseASInputSource(DOMInputSource is)
throws DOMASException, Exception {
// need to wrap the DOMInputSource with an XMLInputSource
XMLInputSource xis = this.dom2xmlInputSource(is);
return parseASInputSource(xis);
}
ASModel parseAS... |
public Declare parseDeclare() {
int startPos = tokenSource.peek().getStart();
eatIdentifier("declare");
String kind = parseIdentifier();
Declare ret;
if (kind.equals("error")) {
eat(":");
ret = parseErrorOrWarning(true);
} else if (kind.equals("warning")) {
eat(":");
ret = parseErrorOrWarnin... | public Declare parseDeclare() {
int startPos = tokenSource.peek().getStart();
eatIdentifier("declare");
String kind = parseIdentifier();
Declare ret;
if (kind.equals("error")) {
eat(":");
ret = parseErrorOrWarning(true);
} else if (kind.equals("warning")) {
eat(":");
ret = parseErrorOrWarnin... |
protected boolean scanCDATASection(boolean complete)
throws IOException, XNIException {
// call handler
if (fDocumentHandler != null) {
fDocumentHandler.startCDATA(null);
}
while (true) {
fStringBuffer.clear();
if (!fEntityScanne... | protected boolean scanCDATASection(boolean complete)
throws IOException, XNIException {
// call handler
if (fDocumentHandler != null) {
fDocumentHandler.startCDATA(null);
}
while (true) {
fStringBuffer.clear();
if (fEntityScanner... |
public String[] mapFileName(String s) {
return new String[] {"fred colon", "carot"};
}
| public String[] mapFileName(String s) {
return new String[] {"fred colon", "carrot ironfoundersson"};
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.