buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public static void main( String[] argv) {
if (argv.length == 0) {
printUsage();
System.exit(1);
}
try {
// get DOM Implementation using DOM Registry
System.setProperty(DOMImplementationRegistry.PROPERTY,"org.apache.xerces.dom.DOMXSImplement... | public static void main( String[] argv) {
if (argv.length == 0) {
printUsage();
System.exit(1);
}
try {
// get DOM Implementation using DOM Registry
// System.setProperty(DOMImplementationRegistry.PROPERTY,"org.apache.xerces.dom.DOMXSImplem... |
public void renderHead(IHeaderResponse response)
{
response.renderCSSReference(new CompressedResourceReference(scope, path));
}
});
}
| public void renderHead(IHeaderResponse response)
{
response.renderCSSReference(new CompressedResourceReference(scope, path), media);
}
});
}
|
protected Map getMessageContextVariables(final String input,
final FormComponent component)
{
final Map resourceModel = new HashMap(2);
resourceModel.put("input", input);
resourceModel.put("name", component.getName());
return resourceModel;
}
| protected Map getMessageContextVariables(final String input,
final FormComponent component)
{
final Map resourceModel = new HashMap(4);
resourceModel.put("input", input);
resourceModel.put("name", component.getName());
return resourceModel;
}
|
public void create (Composite parent, int style) {
String className = "SWTWebViewDelegate"; //$NON-NLS-1$
if (OS.objc_lookUpClass(className) == 0) {
Class safariClass = this.getClass();
Callback3 = new Callback(safariClass, "browserProc", 3); //$NON-NLS-1$
int /*long*/ proc3 = Callback3.getAddress();
if (proc... | public void create (Composite parent, int style) {
String className = "SWTWebViewDelegate"; //$NON-NLS-1$
if (OS.objc_lookUpClass(className) == 0) {
Class safariClass = this.getClass();
Callback3 = new Callback(safariClass, "browserProc", 3); //$NON-NLS-1$
int /*long*/ proc3 = Callback3.getAddress();
if (proc... |
public void _setVisible (boolean visible) {
if (visible == OS.GTK_WIDGET_MAPPED (handle)) return;
if (visible) {
sendEvent (SWT.Show);
if (getItemCount () != 0) {
int /*long*/ address = hasLocation ? display.menuPositionProc: 0;
/*
* Bug in GTK. The timestamp passed into gtk_menu_popup is used
* to p... | public Menu (MenuItem parentItem) {
this (checkNull (parentItem).parent);
}
static Control checkNull (Control control) {
if (control == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
return control;
}
static Menu checkNull (Menu menu) {
if (menu == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
return menu;
}
static Me... |
private void drawSample(long x, Sample oneSample, Graphics g) {
// int width = getWidth();
int height = getHeight();
log.debug("Drawing a sample at " + x);
int adjustedWidth = (int)(x % width); // will always be within range of an int: as must be < width
if (wantData) {
... | private void drawSample(long x, Sample oneSample, Graphics g) {
// int width = getWidth();
int height = getHeight();
log.debug("Drawing a sample at " + x);
int adjustedWidth = (int)(x % width); // will always be within range of an int: as must be < width
if (wantData) {
... |
public void setVisible (boolean visible) {
checkWidget ();
if (this.visible == visible) return;
if (visible) {
sendEvent (SWT.Show);
if (isDisposed ()) return;
}
this.visible = visible;
float width = image != null && visible ? OS.CGImageGetWidth (image.handle) + BORDER : 0;
Cocoa.objc_msgSend (handle, Cocoa.... | public void setVisible (boolean visible) {
checkWidget ();
if (this.visible == visible) return;
if (visible) {
sendEvent (SWT.Show);
if (isDisposed ()) return;
}
this.visible = visible;
float width = image != null && visible ? OS.CGImageGetWidth (image.handle) + BORDER : 0;
Cocoa.objc_msgSend (handle, Cocoa.... |
public static boolean insertLoadedTree(int id, HashTree tree, boolean merging) throws Exception, IllegalUserActionException {
// convertTree(tree);
if (tree == null) {
throw new Exception("Error in TestPlan - see log file");
}
boolean isTestPlan = tree.getArray()[0] instanceof TestPlan;
// If we are load... | public static boolean insertLoadedTree(int id, HashTree tree, boolean merging) throws Exception, IllegalUserActionException {
// convertTree(tree);
if (tree == null) {
throw new Exception("Error in TestPlan - see log file");
}
boolean isTestPlan = tree.getArray()[0] instanceof TestPlan;
// If we are load... |
public boolean isAspect() {
return binding.scope.referenceContext instanceof AspectDeclaration;
}
| public boolean isAspect() {
return declaration instanceof AspectDeclaration;
}
|
private IModel originalModel;
/**
* Construct.
*
* @param component
* subject of the change
*/
ModelChange(final Component component)
{
if (component == null)
{
throw new IllegalArgumentException("argument component must be not null");
}
// Save component
this.component = compon... | private IModel originalModel;
/**
* Construct.
*
* @param component
* subject of the change
*/
ModelChange(final Component component)
{
if (component == null)
{
throw new IllegalArgumentException("argument component must be not null");
}
// Save component
this.component = compon... |
public void setEncoding(final String encoding) {
this.encoding = encoding;
this.zipEncoding = ZipEncodingHelper.getZipEncoding(encoding);
useUTF8Flag &= ZipEncodingHelper.isUTF8(encoding);
}
| public void setEncoding(final String encoding) {
this.encoding = encoding;
this.zipEncoding = ZipEncodingHelper.getZipEncoding(encoding);
useUTF8Flag = useUTF8Flag && ZipEncodingHelper.isUTF8(encoding);
}
|
public synchronized void close() throws IOException {
if (alwaysCreate) {
ensureOpened();
}
if (opened) {
fos.close();
}
closed = true;
}
| public synchronized void close() throws IOException {
if (alwaysCreate && !closed) {
ensureOpened();
}
if (opened) {
fos.close();
}
closed = true;
}
|
public String getConstraintValue() {
// REVISIT: SCAPI: what's the proper representation
return getConstraintType() == XSConstants.VC_NONE ?
null :
fDefault.normalizedValue;
}
| public String getConstraintValue() {
// REVISIT: SCAPI: what's the proper representation
return getConstraintType() == XSConstants.VC_NONE ?
null :
fDefault.actualValue.toString();
}
|
public String validRestrictionOf(XSAttributeGroupDecl baseGroup) {
String errorCode = null;
XSAttributeUseImpl attrUse = null;
XSAttributeDecl attrDecl = null;
XSAttributeUseImpl baseAttrUse = null;
XSAttributeDecl baseAttrDecl = null;
for (int i=0; i<fAttrUseNum; i... | public String validRestrictionOf(XSAttributeGroupDecl baseGroup) {
String errorCode = null;
XSAttributeUseImpl attrUse = null;
XSAttributeDecl attrDecl = null;
XSAttributeUseImpl baseAttrUse = null;
XSAttributeDecl baseAttrDecl = null;
for (int i=0; i<fAttrUseNum; i... |
public String getConstraintValue() {
// REVISIT: SCAPI: what's the proper representation
return getConstraintType() == XSConstants.VC_NONE ?
null :
fDefault.normalizedValue;
}
| public String getConstraintValue() {
// REVISIT: SCAPI: what's the proper representation
return getConstraintType() == XSConstants.VC_NONE ?
null :
fDefault.stringValue();
}
|
private boolean isDuplicateOf(XSSimpleType dv, String v1, String v2) {
//REVISIT: now we always store string values in IDValue, so we have to
// validate the two string again to get actual values.
// we should store actual values in IDValue.
try {
Object a... | private boolean isDuplicateOf(XSSimpleType dv, String v1, String v2) {
//REVISIT: now we always store string values in IDValue, so we have to
// validate the two string again to get actual values.
// we should store actual values in IDValue.
try {
Object a... |
public TextLayout (Device device) {
super(device);
wrapWidth = ascent = descent = -1;
lineSpacing = 0;
orientation = SWT.LEFT_TO_RIGHT;
styles = new StyleItem[2];
styles[0] = new StyleItem();
styles[1] = new StyleItem();
stylesCount = 2;
text = ""; //$NON-NLS-1$
int /*long*/[] ppv = new int /*long*/[1];
OS.O... | public TextLayout (Device device) {
super(device);
wrapWidth = ascent = descent = -1;
lineSpacing = 0;
orientation = SWT.LEFT_TO_RIGHT;
styles = new StyleItem[2];
styles[0] = new StyleItem();
styles[1] = new StyleItem();
stylesCount = 2;
text = ""; //$NON-NLS-1$
int /*long*/[] ppv = new int /*long*/[1];
OS.O... |
public static final CharSequence throttleScript(CharSequence script, String throttleId,
Duration throttleDelay)
{
if (Strings.isEmpty(script))
{
throw new IllegalArgumentException("script cannot be empty");
}
if (Strings.isEmpty(throttleId))
{
throw new IllegalArgumentException("throttleId cannot b... | public static final CharSequence throttleScript(CharSequence script, String throttleId,
Duration throttleDelay)
{
if (Strings.isEmpty(script))
{
throw new IllegalArgumentException("script cannot be empty");
}
if (Strings.isEmpty(throttleId))
{
throw new IllegalArgumentException("throttleId cannot b... |
public void internalPrepareForRender(boolean setRenderingFlag)
{
if (!getFlag(FLAG_INITIALIZED))
{
// initialize the page if not yet initialized
internalInitialize();
}
super.internalPrepareForRender(setRenderingFlag);
}
| public void internalPrepareForRender(boolean setRenderingFlag)
{
if (!isInitialized())
{
// initialize the page if not yet initialized
internalInitialize();
}
super.internalPrepareForRender(setRenderingFlag);
}
|
private boolean includes(FieldMetaData fmd) {
if (hasFetchGroupAll()
|| (fmd.isInDefaultFetchGroup()
&& hasFetchGroupDefault())
|| hasField(fmd.getFullName(false))
|| hasField(fmd.getRealName()))
return true;
String[] fgs = fmd.getCustomFe... | private boolean includes(FieldMetaData fmd) {
if (hasFetchGroupAll()
|| (fmd.isInDefaultFetchGroup()
&& hasFetchGroupDefault())
|| hasField(fmd.getFullName(false))
|| hasField(fmd.getRealName())) // OPENJPA-704
return true;
String[] fgs = ... |
public SampleResult sample(Entry e) {
JMeterContext context = JMeterContextService.getContext();
int target = getTarget();
int action = getAction();
if (action == PAUSE) {
pause(getDurationAsString());
} else if (action == STOP || action == STOP_NOW) {
... | public SampleResult sample(Entry e) {
JMeterContext context = JMeterContextService.getContext();
int target = getTarget();
int action = getAction();
if (action == PAUSE) {
pause(getDurationAsString());
} else if (action == STOP || action == STOP_NOW) {
... |
import org.w3c.dom.DOMImplementation;
/*
* 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, V... | import org.w3c.dom.DOMImplementation;
/*
* 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, V... |
import org.w3c.dom.Document;
/*
* 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 2.... | import org.w3c.dom.Document;
/*
* 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 2.... |
public void setText (String string) {
checkWidget ();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
if ((style & SWT.ARROW) != 0) return;
if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) {
OS.SendMessage (handle, OS.BCM_SETIMAGELIST, 0, 0);
if (imageList != null) imageList.dispose ();
imageList = null;... | public void setText (String string) {
checkWidget ();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
if ((style & SWT.ARROW) != 0) return;
if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) {
OS.SendMessage (handle, OS.BCM_SETIMAGELIST, 0, 0);
if (imageList != null) imageList.dispose ();
imageList = null;... |
static protected RangeToken getRange(String name, boolean positive) {
if (Token.categories.size() == 0) {
synchronized (Token.categories) {
Token[] ranges = new Token[Token.categoryNames.length];
for (int i = 0; i < ranges.length; i ++) {
ran... | static protected RangeToken getRange(String name, boolean positive) {
if (Token.categories.size() == 0) {
synchronized (Token.categories) {
Token[] ranges = new Token[Token.categoryNames.length];
for (int i = 0; i < ranges.length; i ++) {
ran... |
public static void main(String[] args)
{
if (args.length < 1)
{
System.out.println(
"You must specify a comma-delimited list of paths to search " +
"for unit tests");
System.exit(0);
}
initializeLogging(args);
initia... | public static void main(String[] args)
{
if (args.length < 1)
{
System.out.println(
"You must specify a comma-delimited list of paths to search " +
"for unit tests");
System.exit(0);
}
initializeLogging(args);
initia... |
private CMNode fChild;
};
| private final CMNode fChild;
};
|
public IChatRoomInfo[] getChatRoomInfos() {
ID[] chatRooms = getChatRooms();
if (chatRooms == null)
return null;
IChatRoomInfo[] res = new IChatRoomInfo[chatRooms.length];
int count = 0;
for (int i = 0; i < chatRooms.length; i++) {
IChatRoomInfo infoResult = getChatRoomInfo(chatRooms[i]);
if (infoRe... | public IChatRoomInfo[] getChatRoomInfos() {
ID[] chatRooms = getChatRooms();
if (chatRooms == null)
return new IChatRoomInfo[0];
IChatRoomInfo[] res = new IChatRoomInfo[chatRooms.length];
int count = 0;
for (int i = 0; i < chatRooms.length; i++) {
IChatRoomInfo infoResult = getChatRoomInfo(chatRooms[i]... |
boolean hasAnnotation(TypeX ofType);
/* *******************************************************************
* Copyright (c) 2004 IBM Corporation.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Common Public License v1.0
* which accompanies this ... | boolean hasAnnotation(TypeX ofType);
/* *******************************************************************
* Copyright (c) 2004 IBM Corporation.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Common Public License v1.0
* which accompanies this ... |
private List<Object> checkCache(QueryKey qk) {
if (qk == null)
return null;
FetchConfiguration fetch = getContext().getFetchConfiguration();
if (!fetch.getQueryCacheEnabled())
return null;
if (fetch.getReadLockLevel() > LockLevels.LOCK_NONE)
return... | private List<Object> checkCache(QueryKey qk) {
if (qk == null)
return null;
FetchConfiguration fetch = getContext().getFetchConfiguration();
if (!fetch.getQueryCacheEnabled())
return null;
if (fetch.getReadLockLevel() > LockLevels.LOCK_NONE)
return... |
private static void checkVersion(Class clazz, String expected) {
String actual = "*NONE*"; // $NON-NLS-1$
try {
actual = (String) clazz.getMethod("getVersion", null).invoke(null, null);
actual = extractVersion(actual);
} catch (Exception ignored) {
// Not needed
}
if (0 != actual.compareTo(expected... | private static void checkVersion(Class clazz, String expected) {
String actual = "*NONE*"; // $NON-NLS-1$
try {
actual = (String) clazz.getMethod("getVersion", null).invoke(null, null);
actual = extractVersion(actual);
} catch (Exception ignored) {
// Not needed
}
if (0 != actual.compareTo(expected... |
private final void steps()
{
try
{
// get the processor
IRequestCycleProcessor processor = safeGetRequestProcessor();
// Arbitrary maximum number of steps
final int maxSteps = Short.MAX_VALUE;
// Loop through steps
for (int totalSteps = 0; currentStep < DONE; totalSteps++)
{
// There is... | private final void steps()
{
try
{
// get the processor
IRequestCycleProcessor processor = safeGetRequestProcessor();
// Arbitrary maximum number of steps
final int maxSteps = 100;
// Loop through steps
for (int totalSteps = 0; currentStep < DONE; totalSteps++)
{
// There is no way to c... |
public static PrinterData[] getPrinterList() {
PrinterData[] list = getEnvPrinterList();
/* Ensure that default printer data occurs in the printer list */
PrinterData data = getEnvDefaultPrinter(list);
if (data == null) return list;
for (int i = 0; i < list.length; i++) {
PrinterData printerData = list[i];
... | public static PrinterData[] getPrinterList() {
PrinterData[] list = getEnvPrinterList();
/* Ensure that default printer data occurs in the printer list */
PrinterData data = getEnvDefaultPrinter(list);
if (data == null) return list;
for (int i = 0; i < list.length; i++) {
PrinterData printerData = list[i];
... |
/*public*/ Rectangle getBounds () {
checkWidget ();
if ((parent.style & SWT.BAR) != 0) {
int index = parent.indexOf (this);
if (index == -1) return new Rectangle (0 ,0, 0, 0);
Menu menu = display.getMenuBar ();
if (parent != menu) return new Rectangle (0 ,0, 0, 0);
int outMenuRef [] = new int [1];
if (OS.... | /*public*/ Rectangle getBounds () {
checkWidget ();
if ((parent.style & SWT.BAR) != 0) {
int index = parent.indexOf (this);
if (index == -1) return new Rectangle (0 ,0, 0, 0);
Menu menu = display.getMenuBar ();
if (parent != menu) return new Rectangle (0 ,0, 0, 0);
int outMenuRef [] = new int [1];
if (OS.... |
public void pack () {
checkWidget ();
GC gc = new GC (parent);
int width = gc.stringExtent (text).x;
if (iconRef != 0 || (image != null && OS.VERSION >= 0x1040)) {
/* Note that the image is stretched to the header height */
width += parent.headerHeight;
if (text.length () != 0) width += parent.getGap ();
}
... | public void pack () {
checkWidget ();
GC gc = new GC (parent);
int width = gc.stringExtent (text).x;
if (iconRef != 0 || (image != null && OS.VERSION >= 0x1040)) {
/* Note that the image is stretched to the header height */
width += parent.headerHeight;
if (text.length () != 0) width += parent.getGap ();
}
... |
public void removeSelectionListener(SelectionListener listener) {
checkWidget ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
if (eventTable == null) return;
eventTable.unhook(SWT.Selection, listener);
eventTable.unhook(SWT.DefaultSelection,listener);
}
/**
* Removes the listener from the collection o... | public void removeSelectionListener(SelectionListener listener) {
checkWidget ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
if (eventTable == null) return;
eventTable.unhook(SWT.Selection, listener);
eventTable.unhook(SWT.DefaultSelection,listener);
}
/**
* Removes the listener from the collection o... |
public Display getDisplay () {
Display display = this.display;
if (display == null) error (SWT.ERROR_WIDGET_DISPOSED);
return display;
}
String getName () {
String string = getClass ().getName ();
int index = string.length ();
while (--index > 0 && string.charAt (index) != '.');
return string.substring (index +... | public Display getDisplay () {
Display display = this.display;
if (display == null) error (SWT.ERROR_WIDGET_DISPOSED);
return display;
}
String getName () {
String string = getClass ().getName ();
int index = string.length ();
while (--index > 0 && string.charAt (index) != '.') {/* empty */}
return string.subst... |
public void removeExpandListener (ExpandListener listener) {
checkWidget ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
if (eventTable == null) return;
eventTable.unhook (SWT.Expand, listener);
eventTable.unhook (SWT.Collapse, listener);
}
void setScrollbar () {
if (itemCount == 0) return;
RECT rec... | public void removeExpandListener (ExpandListener listener) {
checkWidget ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
if (eventTable == null) return;
eventTable.unhook (SWT.Expand, listener);
eventTable.unhook (SWT.Collapse, listener);
}
void setScrollbar () {
if (itemCount == 0) return;
RECT rec... |
public void deselectAll () {
checkWidget ();
LVITEM lvItem = new LVITEM ();
lvItem.mask = OS.LVIF_STATE;
lvItem.stateMask = OS.LVIS_SELECTED;
ignoreSelect = true;
OS.SendMessage (handle, OS.LVM_SETITEMSTATE, -1, lvItem);
ignoreSelect = false;
}
void destroyItem (TableColumn column) {
int index = 0;
while (ind... | public void deselectAll () {
checkWidget ();
LVITEM lvItem = new LVITEM ();
lvItem.mask = OS.LVIF_STATE;
lvItem.stateMask = OS.LVIS_SELECTED;
ignoreSelect = true;
OS.SendMessage (handle, OS.LVM_SETITEMSTATE, -1, lvItem);
ignoreSelect = false;
}
void destroyItem (TableColumn column) {
int index = 0;
while (ind... |
public boolean getVisible () {
checkWidget ();
return visible;
}
int messageProc (int hwnd, int msg, int wParam, int lParam) {
/*
* Feature in Windows. When the user clicks on the tray
* icon, another application may be the foreground window.
* This means that the event loop is not running and can
* cause prob... | public boolean getVisible () {
checkWidget ();
return visible;
}
int messageProc (int hwnd, int msg, int wParam, int lParam) {
/*
* Feature in Windows. When the user clicks on the tray
* icon, another application may be the foreground window.
* This means that the event loop is not running and can
* cause prob... |
private URL getResourceURL(File file, String resourceName) {
try {
if (!file.exists()) {
return null;
}
if (file.isDirectory()) {
File resource = new File(file, resourceName);
if (resource.exists()) {
t... | private URL getResourceURL(File file, String resourceName) {
try {
if (!file.exists()) {
return null;
}
if (file.isDirectory()) {
File resource = new File(file, resourceName);
if (resource.exists()) {
t... |
public PerClause concretize(ResolvedType inAspect) {
PerCflow ret = new PerCflow(entry, isBelow);
ret.inAspect = inAspect;
if (inAspect.isAbstract()) return ret;
Member cflowStackField = new ResolvedMemberImpl(
Member.FIELD, inAspect, Modifier.STATIC|Modifier.PUBLIC|Modifier.FINAL,
UnresolvedType.f... | public PerClause concretize(ResolvedType inAspect) {
PerCflow ret = new PerCflow(entry, isBelow);
ret.inAspect = inAspect;
if (inAspect.isAbstract()) return ret;
Member cflowStackField = new ResolvedMemberImpl(
Member.FIELD, inAspect, Modifier.STATIC|Modifier.PUBLIC|Modifier.FINAL,
UnresolvedType.f... |
public PerClause concretize(ResolvedType inAspect) {
PerObject ret = new PerObject(entry, isThis);
ret.inAspect = inAspect;
if (inAspect.isAbstract()) return ret;
World world = inAspect.getWorld();
Pointcut concreteEntry = entry.concretize(inAspect, 0, null);
//concreteEntry = new AndPointcut(t... | public PerClause concretize(ResolvedType inAspect) {
PerObject ret = new PerObject(entry, isThis);
ret.inAspect = inAspect;
if (inAspect.isAbstract()) return ret;
World world = inAspect.getWorld();
Pointcut concreteEntry = entry.concretize(inAspect, inAspect, 0, null);
//concreteEntry = new And... |
public Pointcut makeConcretePointcut(String s) {
return makeResolvedPointcut(s).concretize(null, 0);
}
| public Pointcut makeConcretePointcut(String s) {
return makeResolvedPointcut(s).concretize(null, null, 0);
}
|
public Pointcut makePointcut(String pattern) {
Pointcut pointcut0 = Pointcut.fromString(pattern);
Bindings bindingTable = new Bindings(0);
IScope scope = new SimpleScope(world, FormalBinding.NONE);
pointcut0.resolveBindings(scope, bindingTable);
Pointcut pointcut1 = pointcut0;
ret... | public Pointcut makePointcut(String pattern) {
Pointcut pointcut0 = Pointcut.fromString(pattern);
Bindings bindingTable = new Bindings(0);
IScope scope = new SimpleScope(world, FormalBinding.NONE);
pointcut0.resolveBindings(scope, bindingTable);
Pointcut pointcut1 = pointcut0;
ret... |
protected void handleStartElement(QName element, XMLAttributes attributes) throws XNIException {
// REVISIT: Here are current assumptions about validation features
// given that XMLSchema validator is in the pipeline
//
// http://xml.org/sax/features/validation = true
... | protected void handleStartElement(QName element, XMLAttributes attributes) throws XNIException {
// REVISIT: Here are current assumptions about validation features
// given that XMLSchema validator is in the pipeline
//
// http://xml.org/sax/features/validation = true
... |
public void checkShadowSet(List l, String[] ss) {
outer:
for (int i = 0, len = ss.length; i < len; i++) {
inner:
for (Iterator j = l.iterator(); j.hasNext(); ) {
BcelShadow shadow = (BcelShadow) j.next();
String shadowString = shadow.toString();
if (shadowString.equals(ss[... | public void checkShadowSet(List l, String[] ss) {
outer:
for (int i = 0, len = ss.length; i < len; i++) {
//inner:
for (Iterator j = l.iterator(); j.hasNext(); ) {
BcelShadow shadow = (BcelShadow) j.next();
String shadowString = shadow.toString();
if (shadowString.equals(s... |
public static Icon getIcon(String name, int width, int height) {
Icon icon = getIcon(name);
if (icon == null) {
return null;
}
icon = new ImageIcon(((ImageIcon)icon).getImage().getScaledInstance(32, -1, Image.SCALE_SMOOTH));
return icon;
}
| public static Icon getIcon(String name, int width, int height) {
Icon icon = getIcon(name);
if (icon == null) {
return null;
}
icon = new ImageIcon(((ImageIcon)icon).getImage().getScaledInstance(width, height, Image.SCALE_SMOOTH));
return icon;
}
|
public boolean run(IRunStatus status)
throws IllegalAccessException,
InvocationTargetException,
ClassNotFoundException,
NoSuchMethodException {
boolean completedNormally = false;
if (!LangUtil.isEmpty(spec.dirChanges)) {
MessageUtil... | public boolean run(IRunStatus status)
throws IllegalAccessException,
InvocationTargetException,
ClassNotFoundException,
NoSuchMethodException {
boolean completedNormally = false;
if (!LangUtil.isEmpty(spec.dirChanges)) {
MessageUtil... |
public int /*long*/ Prompt(int /*long*/ parent, int /*long*/ dialogTitle, int /*long*/ text, int /*long*/ value, int /*long*/ checkMsg, int /*long*/ checkValue, int /*long*/ _retval) {
Browser browser = getBrowser(parent);
String titleLabel = null, textLabel, checkLabel = null;
String[] valueLabel = new String[1];
... | public int /*long*/ Prompt(int /*long*/ parent, int /*long*/ dialogTitle, int /*long*/ text, int /*long*/ value, int /*long*/ checkMsg, int /*long*/ checkValue, int /*long*/ _retval) {
Browser browser = getBrowser(parent);
String titleLabel = null, textLabel, checkLabel = null;
String[] valueLabel = new String[1];
... |
public boolean contains(float x, float y, GC gc, boolean outline) {
if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
if (gc == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
if (gc.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
gc.checkGC(GC.LINE_CAP | GC.LINE_JOIN | GC.LINE_STYLE | GC.LINE_WIDTH | GC.TRAN... | public boolean contains(float x, float y, GC gc, boolean outline) {
if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
if (gc == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
if (gc.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
gc.checkGC(GC.LINE_CAP | GC.LINE_JOIN | GC.LINE_STYLE | GC.LINE_WIDTH | GC.LINE... |
public void dropAccept(DropTargetEvent event) {
if (currentOffset != -1) {
StyledText text = (StyledText) getControl();
text.setCaretOffset(currentOffset);
currentOffset = -1;
}
}
| public void dropAccept(DropTargetEvent event) {
if (currentOffset != -1) {
StyledText text = (StyledText) getControl();
text.setSelection(currentOffset);
currentOffset = -1;
}
}
|
public Result isComponentOnAjaxResponse(Component<?> component)
{
String failMessage = "A component which is null could not have been added to the AJAX response";
notNull(failMessage, component);
Result result;
// test that the component renders the placeholder tag if it's not visible
if (!component.isVis... | public Result isComponentOnAjaxResponse(Component<?> component)
{
String failMessage = "A component which is null could not have been added to the AJAX response";
notNull(failMessage, component);
Result result;
// test that the component renders the placeholder tag if it's not visible
if (!component.isVis... |
private InputStream getCertificate() {
File certFile = new File(CERT_DIRECTORY, CERT_FILE);
InputStream in = null;
final String certPath = certFile.getAbsolutePath();
if (certFile.exists() && certFile.canRead()) {
try {
in = new FileInputStream(certFile);
... | private InputStream getCertificate() {
File certFile = new File(CERT_DIRECTORY, CERT_FILE);
InputStream in = null;
final String certPath = certFile.getAbsolutePath();
if (certFile.exists() && certFile.canRead()) {
try {
in = new BufferedInputStream(new Fil... |
private static final List NUMBERS = Arrays.asList(new String[] { "1", "2", "3" });
| private static final List LOCALES = Arrays.asList(new Locale[]
{ Locale.ENGLISH, new Locale("nl"), Locale.GERMAN , Locale.SIMPLIFIED_CHINESE });
/** available numbers for the radio selection. */
static final List NUMBERS = Arrays.asList(new String[] { "1", "2", "3" });
|
public void setXmlVersion(String value) {
if(version.equals("1.0") || version.equals("1.1")){
version = value;
}
else{
//NOT_SUPPORTED_ERR: Raised if the vesion is set to a value that is not supported by
//this document
//we dont support any ot... | public void setXmlVersion(String value) {
if(value.equals("1.0") || value.equals("1.1")){
version = value;
}
else{
//NOT_SUPPORTED_ERR: Raised if the vesion is set to a value that is not supported by
//this document
//we dont support any other ... |
private void populateCommandMap() {
log.info("populateCommandMap called");
List listClasses;
Command command;
Iterator iterClasses;
Class commandClass;
try {
listClasses = ClassFinder.findClassesThatExtend(JMeterUtils.getSearchPaths(), new Class[] { Class
.forName("org.apache.jmeter.gui.actio... | private void populateCommandMap() {
log.info("populateCommandMap called");
List listClasses;
Command command;
Iterator iterClasses;
Class commandClass;
try {
listClasses = ClassFinder.findClassesThatExtend(JMeterUtils.getSearchPaths(), new Class[] { Class
.forName("org.apache.jmeter.gui.actio... |
protected final void setMarkupStream(final MarkupStream markupStream)
{
this.markupStream = markupStream;
}
/**
* Gets a fresh markup stream that contains the (immutable) markup resource
* for this class.
*
* @return A stream of MarkupElement elements
*/
final MarkupStream getAssociatedMarkupStream()... | protected final void setMarkupStream(final MarkupStream markupStream)
{
this.markupStream = markupStream;
}
/**
* Gets a fresh markup stream that contains the (immutable) markup resource
* for this class.
*
* @return A stream of MarkupElement elements
*/
final MarkupStream getAssociatedMarkupStream()... |
private void initBcelWorld(IMessageHandler handler) throws IOException {
bcelWorld = new BcelWorld(buildConfig.getClasspath(), handler);
bcelWorld.setXnoInline(buildConfig.isXnoInline());
bcelWeaver = new BcelWeaver(bcelWorld);
for (Iterator i = buildConfig.getAspectpath().iterator(); i.hasNext();) {
Fil... | private void initBcelWorld(IMessageHandler handler) throws IOException {
bcelWorld = new BcelWorld(buildConfig.getClasspath(), handler, null);
bcelWorld.setXnoInline(buildConfig.isXnoInline());
bcelWeaver = new BcelWeaver(bcelWorld);
for (Iterator i = buildConfig.getAspectpath().iterator(); i.hasNext();) {
... |
public void setSamplerResult(Object objectResult) {
if (objectResult instanceof HTTPSampleResult) {
HTTPSampleResult sampleResult = (HTTPSampleResult) objectResult;
URL hUrl = sampleResult.getURL();
// Display with same order HTTP protocol
requestModel.addRo... | public void setSamplerResult(Object objectResult) {
if (objectResult instanceof HTTPSampleResult) {
HTTPSampleResult sampleResult = (HTTPSampleResult) objectResult;
URL hUrl = sampleResult.getURL();
// Display with same order HTTP protocol
requestModel.addRo... |
public void reportException(Throwable t) {
if (t instanceof AntException) {
AntException e = (AntException) t;
Location location = e.getLocation();
Throwable cause = e.getCause();
if (location != null && location != Location.UNKNOWN_LOCATION) {
... | public void reportException(Throwable t) {
if (t instanceof AntException) {
AntException e = (AntException) t;
Location location = e.getLocation();
Throwable cause = e.getCause();
if (location != null && location != Location.UNKNOWN_LOCATION) {
... |
protected void onComponentTag(final ComponentTag tag)
{
// Default handling for component tag
super.onComponentTag(tag);
// must be attached to <input type="checkbox" .../> tag
checkComponentTag(tag, "input");
checkComponentTagAttribute(tag, "type", "checkbox");
CheckGroup group = (CheckGroup)findParent... | protected void onComponentTag(final ComponentTag tag)
{
// Default handling for component tag
super.onComponentTag(tag);
// must be attached to <input type="checkbox" .../> tag
checkComponentTag(tag, "input");
checkComponentTagAttribute(tag, "type", "checkbox");
CheckGroup group = (CheckGroup)findParent... |
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 ... |
protected final CharSequence getEventHandler()
{
return getCallbackScript(new AppendingStringBuffer("wicketAjaxPost('").append(
getCallbackUrl()).append(
"', wicketSerialize(document.getElementById('" + getComponent().getMarkupId()
+ "'))"), null, null);
}
| protected final CharSequence getEventHandler()
{
return getCallbackScript(new AppendingStringBuffer("wicketAjaxPost('").append(
getCallbackUrl(true, false)).append(
"', wicketSerialize(document.getElementById('" + getComponent().getMarkupId()
+ "'))"), null, null);
}
|
protected void onComponentTag(final ComponentTag tag)
{
// Get tag attributes
final ValueMap attributes = tag.getAttributes();
// Default handling for component tag
super.onComponentTag(tag);
try
{
String value = getValue();
if(value != null)
{
tag.put("value", value);
}
}
catch(Exc... | protected void onComponentTag(final ComponentTag tag)
{
// Get tag attributes
final ValueMap attributes = tag.getAttributes();
// Default handling for component tag
super.onComponentTag(tag);
try
{
String value = getValue();
if(value != null && "".equals(value))
{
tag.put("value", value);
... |
public long getTimeout() {
return DEFAULT_TIMEOUT;
}
});
} catch (Throwable t) {
// rethrow as service exception
throw new ServiceException("Service exception on remote service proxy rsid=" + refImpl.getID(), ServiceException.REMOTE, t); //$NON-NLS-1$
}
}
/**
* @param aClass The Class pro... | public long getTimeout() {
return DEFAULT_TIMEOUT;
}
});
} catch (Throwable t) {
// rethrow as service exception
throw new ServiceException("Service exception on remote service proxy rsid=" + refImpl.getID(), ServiceException.REMOTE, t); //$NON-NLS-1$
}
}
/**
* @param aClass The Class pro... |
public Object put(Object key, Object value)
{
if (value instanceof String || value instanceof String[])
{
return super.put(key, value);
}
else
{
throw new WicketRuntimeException("You tried to add an object of type " +
value.getClass().getName() + " to your PageParameters for key " + key +
",... | public Object put(Object key, Object value)
{
if (value instanceof String || value instanceof String[])
{
return super.put(key, value);
}
else
{
throw new IllegalArgumentException("You tried to add an object of type " +
value.getClass().getName() + " to your PageParameters for key " + key +
... |
public void createFieldEditors() {
addField(new StringFieldEditor(CONTAINER_TYPE, "Container Type:", this.getFieldEditorParent()));
addField(new StringFieldEditor(TARGET_SERVER, "ECF Server URL:", this.getFieldEditorParent()));
addField(new StringFieldEditor(CHANNEL_ID, "Channel (Group) Name:", this.getFieldEdit... | public void createFieldEditors() {
addField(new StringFieldEditor(CONTAINER_TYPE, "Container Type:", this.getFieldEditorParent()));
addField(new StringFieldEditor(TARGET_SERVER, "ECF Server URL:", this.getFieldEditorParent()));
addField(new StringFieldEditor(CHANNEL_ID, "ChatRoomTab (Group) Name:", this.getField... |
public void setAccessType(int type) {
if (type == _accessType || type == AccessCode.UNKNOWN)
return;
if (!AccessCode.isValidClassCode(type)) {
throw new IllegalArgumentException(_loc.get("access-type-invalid",
this, AccessCode.toString(type)).getMessage());
}
if (_ac... | public void setAccessType(int type) {
if (type == _accessType || type == AccessCode.UNKNOWN)
return;
if (!AccessCode.isValidClassCode(type)) {
throw new IllegalArgumentException(_loc.get("access-type-invalid",
this, AccessCode.toString(type)).getMessage());
}
if (_ac... |
public void timerExec (int milliseconds, Runnable runnable) {
checkDevice ();
if (runnable == null) error (SWT.ERROR_NULL_ARGUMENT);
if (timerList == null) timerList = new Runnable [4];
if (timerIds == null) timerIds = new int [4];
int index = 0;
while (index < timerList.length) {
if (timerList [index] == runn... | public void timerExec (int milliseconds, Runnable runnable) {
checkDevice ();
if (runnable == null) error (SWT.ERROR_NULL_ARGUMENT);
if (timerList == null) timerList = new Runnable [4];
if (timerIds == null) timerIds = new int [4];
int index = 0;
while (index < timerList.length) {
if (timerList [index] == runn... |
public int getItemHeight () {
checkWidget ();
//FIXME what is the default size?
if (itemCount == 0) return 16;
int items = OS.ItemsControl_Items (handle);
int item = OS.ItemCollection_GetItemAt (items, 0);
double height = OS.FrameworkElement_ActualHeight (item);
OS.GCHandle_Free (item);
OS.GCHandle_Free (items)... | public int getItemHeight () {
checkWidget ();
//FIXME what is the default size?
if (itemCount == 0) return 16;
int items = OS.ItemsControl_Items (handle);
int item = OS.ItemCollection_GetItemAt (items, 0);
double height = OS.FrameworkElement_ActualHeight (item);
OS.GCHandle_Free (item);
OS.GCHandle_Free (items)... |
public void setItemCount (int count) {
checkWidget ();
count = Math.max (0, count);
setItemCount (null, count);
}
void setItemCount (TreeItem parentItem, int count) {
int itemCount = getItemCount (parentItem);
if (count == itemCount) return;
setRedraw (false);
int [] top = new int [1], left = new int [1];
O... | public void setItemCount (int count) {
checkWidget ();
count = Math.max (0, count);
setItemCount (null, count);
}
void setItemCount (TreeItem parentItem, int count) {
int itemCount = getItemCount (parentItem);
if (count == itemCount) return;
setRedraw (false);
int [] top = new int [1], left = new int [1];
O... |
public void setupRequestAndResponse()
{
servletRequest.initialize();
servletResponse.initialize();
servletRequest.setParameters(parametersForNextRequest);
parametersForNextRequest.clear();
wicketRequest = new ServletWebRequest(servletRequest);
wicketSession = getSession(wicketRequest);
getSessionStore()... | public void setupRequestAndResponse()
{
servletRequest.initialize();
servletResponse.initialize();
servletRequest.setParameters(parametersForNextRequest);
parametersForNextRequest.clear();
wicketRequest = new ServletWebRequest(servletRequest);
wicketSession = getSession(wicketRequest);
getSessionStore()... |
public final void doGet(final HttpServletRequest servletRequest,
final HttpServletResponse servletResponse) throws ServletException, IOException
{
// First, set the webapplication for this thread
Application.set(webApplication);
// Create a new webrequest
final WebRequest request = webApplication.newWebRe... | public final void doGet(final HttpServletRequest servletRequest,
final HttpServletResponse servletResponse) throws ServletException, IOException
{
// First, set the webapplication for this thread
Application.set(webApplication);
// Create a new webrequest
final WebRequest request = webApplication.newWebRe... |
public interface IContainerDisposeEvent extends IContainerEvent {
/*******************************************************************************
* Copyright (c) 2004 Composent, Inc. and others. All rights reserved. This
* program and the accompanying materials are made available under the terms of
* the Eclipse P... | public interface IContainerDisposeEvent extends IContainerEvent {
/*******************************************************************************
* Copyright (c) 2004 Composent, Inc. and others. All rights reserved. This
* program and the accompanying materials are made available under the terms of
* the Eclipse P... |
public void loadExistingFile() {
final Visualizer visualizer = getVisualizer();
if (visualizer == null) {
return; // No point reading the file if there's no visualiser
}
boolean parsedOK = false;
String filename = getFilename();
File file = new File(filena... | public void loadExistingFile() {
final Visualizer visualizer = getVisualizer();
if (visualizer == null) {
return; // No point reading the file if there's no visualiser
}
boolean parsedOK = false;
String filename = getFilename();
File file = new File(filena... |
private void pack()
throws TaskException
{
OutputStream output = null;
try
{
final FileOutputStream fileOutput = new FileOutputStream( getZipFile() );
output = getPackingStream( fileOutput );
copy( getSrc(), output );
}
catch( f... | private void pack()
throws TaskException
{
OutputStream output = null;
try
{
final FileOutputStream fileOutput = new FileOutputStream( getZipFile() );
output = getPackingStream( fileOutput );
copy( getSrc(), output );
}
catch( f... |
private void validate()
throws TaskException
{
if( null == m_src )
{
final String message = "No Src for " + getName() + " specified";
throw new TaskException( message );
}
if( !m_src.exists() )
{
final String message = "Src doe... | private void validate()
throws TaskException
{
if( null == m_src )
{
final String message = "No Src for " + getContext().getName() + " specified";
throw new TaskException( message );
}
if( !m_src.exists() )
{
final String messa... |
public void run() {
log.info("Running the test!");
running = true;
SearchByClass testPlan = new SearchByClass(TestPlan.class);
test.traverse(testPlan);
Object[] plan = testPlan.getSearchResults().toArray();
if (plan.length == 0) {
System.err.println("Coul... | public void run() {
log.info("Running the test!");
running = true;
SearchByClass testPlan = new SearchByClass(TestPlan.class);
test.traverse(testPlan);
Object[] plan = testPlan.getSearchResults().toArray();
if (plan.length == 0) {
System.err.println("Coul... |
public static void issueStopCommandToMonitor(
String commKey, String host, int monitorPort)
throws IOException, JettyMonitorException
{
Socket socket = null;
try
{
socket = new Socket(InetAddress.getByName(host), monitorPort);
OutputStream out = socket.getOutputStream();
out.write((commKey + "\r\... | public static void issueStopCommandToMonitor(
String commKey, String host, int monitorPort)
throws IOException, JettyMonitorException
{
Socket socket = null;
try
{
socket = new Socket(InetAddress.getByName(host), monitorPort);
OutputStream out = socket.getOutputStream();
out.write((commKey + "\r\... |
private void drawSample(SamplingStatCalculator p_model, Graphics g) {
int width = getWidth();
double height = getHeight() - 1.0;
// first lets draw the grid
for (int y = 0; y < 4; y++) {
int q1 = (int) (height - (height * 0.25 * y));
g.setColor(Color.lightGra... | private void drawSample(SamplingStatCalculator p_model, Graphics g) {
int width = getWidth();
double height = getHeight() - 1.0;
// first lets draw the grid
for (int y = 0; y < 4; y++) {
int q1 = (int) (height - (height * 0.25 * y));
g.setColor(Color.lightGra... |
private void close()
{
checkWritable();
try
{
jar.close();
out.close();
}
catch (IOException e)
{
throw new WicketRuntimeException("Unable to close JAR", e);
}
System.out.println("JAR: Size is " + Bytes.bytes(out.size()));
resource = new ByteArrayResource("application/x-compressed", out.toB... | private void close()
{
checkWritable();
try
{
jar.close();
out.close();
}
catch (IOException e)
{
throw new WicketRuntimeException("Unable to close JAR", e);
}
System.out.println("JAR: Size is " + Bytes.bytes(out.size()));
resource = new ByteArrayResource("application/x-compressed", out.toB... |
protected void finishZipOutputStream(ZipOutputStream zOut) throws IOException, BuildException {
writeContents(zOut);
writeManifest(zOut);
File tempDir = setupTempDir();
String tmp = tempDir.getAbsolutePath();
// installer class files
Expand expand = new Expand();
... | protected void finishZipOutputStream(ZipOutputStream zOut) throws IOException, BuildException {
writeContents(zOut);
writeManifest(zOut);
File tempDir = setupTempDir();
String tmp = tempDir.getAbsolutePath();
// installer class files
Expand expand = new Expand();
... |
public void pack () {
checkWidget ();
int index = parent.indexOf (this);
if (index == -1) return;
int columnWidth = 0;
int hwnd = parent.handle, hwndHeader = parent.hwndHeader;
RECT headerRect = new RECT ();
OS.SendMessage (hwndHeader, OS.HDM_GETITEMRECT, index, headerRect);
int hDC = OS.GetDC (hwnd);
int oldF... | public void pack () {
checkWidget ();
int index = parent.indexOf (this);
if (index == -1) return;
int columnWidth = 0;
int hwnd = parent.handle, hwndHeader = parent.hwndHeader;
RECT headerRect = new RECT ();
OS.SendMessage (hwndHeader, OS.HDM_GETITEMRECT, index, headerRect);
int hDC = OS.GetDC (hwnd);
int oldF... |
public int addRef() {
return ++refCount;
}
int /*long*/ copyBitmap (int /*long*/ hImage, int width, int height) {
BITMAP bm = new BITMAP ();
OS.GetObject (hImage, BITMAP.sizeof, bm);
int /*long*/ hDC = OS.GetDC (0);
int /*long*/ hdc1 = OS.CreateCompatibleDC (hDC);
OS.SelectObject (hdc1, hImage);
int /*long*/ hd... | public int addRef() {
return ++refCount;
}
int /*long*/ copyBitmap (int /*long*/ hImage, int width, int height) {
BITMAP bm = new BITMAP ();
OS.GetObject (hImage, BITMAP.sizeof, bm);
int /*long*/ hDC = OS.GetDC (0);
int /*long*/ hdc1 = OS.CreateCompatibleDC (hDC);
OS.SelectObject (hdc1, hImage);
int /*long*/ hd... |
public void draw (GC gc, int x, int y, int selectionStart, int selectionEnd, Color selectionForeground, Color selectionBackground) {
checkLayout();
computeRuns(gc);
if (gc == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
if (gc.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
if (selectionForeground != null && se... | public void draw (GC gc, int x, int y, int selectionStart, int selectionEnd, Color selectionForeground, Color selectionBackground) {
checkLayout();
computeRuns(gc);
if (gc == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
if (gc.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
if (selectionForeground != null && se... |
public OnClickTreeNodeLink(final String componentName,
final AbstractTree tree, final TreeNodeModel node)
{
super(componentName, tree, node);
}
| public OnClickTreeNodeLink(final String componentName,
final Tree tree, final TreeNodeModel node)
{
super(componentName, tree, node);
}
|
public TreeNodeLink(final String componentName,
final AbstractTree tree, final TreeNodeModel node)
{
super(componentName, tree, node);
}
| public TreeNodeLink(final String componentName,
final Tree tree, final TreeNodeModel node)
{
super(componentName, tree, node);
}
|
public Sequence findSequence(Sequence seq) {
return findSequence(QualifiedDBIdentifier.getPath(seq.getIdentifier()));
}
| public Sequence findSequence(Sequence seq) {
return findSequence(seq.getQualifiedPath());
}
|
private EntityI2 entityI2;
@ManyToMany
@JoinTable(name="map3 join table", schema="delim id2")
@MapKeyJoinColumn(name="map_ei3", referencedColumnName="entityI3 id")
Map<EntityI3,EntityI4> map = new HashMap<EntityI3,EntityI4>();
@ManyToMany
@JoinTable(name="map4 join table", schema="... | private EntityI2 entityI2;
@ManyToMany
@JoinTable(name="map3 join table", schema="delim id2")
@MapKeyJoinColumn(name="map_ei3", referencedColumnName="entityI3 id")
Map<EntityI3,EntityI4> map = new HashMap<EntityI3,EntityI4>();
@ManyToMany
@JoinTable(name="map4 join table", schema="... |
public void testSymbolFileGenerated() {
File file = createFile("../examples/figures-coverage/all.ajsym");
if (file.exists()) {
file.delete();
} else {
assertTrue("expected .ajsym" + file, false);
}
}
| public void testSymbolFileGenerated() {
File file = openFile("../examples/figures-coverage/all.ajsym");
if (file.exists()) {
file.delete();
} else {
assertTrue("expected .ajsym" + file, false);
}
}
|
public void setInsertMark (TreeItem item, boolean before) {
checkWidget ();
if (item == null) {
OS.gtk_tree_view_unset_rows_drag_dest(handle);
return;
}
if (item.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT);
if (item.parent != this) return;
Rectangle rect = item.getBounds();
int /*long*/ [] path = new in... | public void setInsertMark (TreeItem item, boolean before) {
checkWidget ();
if (item == null) {
OS.gtk_tree_view_set_drag_dest_row(handle, 0, OS.GTK_TREE_VIEW_DROP_BEFORE);
return;
}
if (item.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT);
if (item.parent != this) return;
Rectangle rect = item.getBounds();
... |
public void execute() throws BuildException {
if (null == jar && null == filesets) {
throw new BuildException("jar must be set through jar attribute or nested filesets");
}
if( null != jar ) {
doOneJar(jar, signedjar);
return;
} else {
... | public void execute() throws BuildException {
if (null == jar && null == filesets) {
throw new BuildException("jar must be set through jar attribute or nested filesets");
}
if( null != jar ) {
doOneJar(jar, signedjar);
return;
} else {
... |
public final String getTextFormat()
{
return converter.getDatePattern();
}
} | public final String getTextFormat()
{
return converter.getDatePattern(getLocale());
}
} |
public boolean getKrb5Debug() {
return Boolean.valueOf(System.getProperty("java.security.krb5.debug", "False")); //$NON-NLS-1$ $NON-NLS-2$
}
| public boolean getKrb5Debug() {
return Boolean.getBoolean("java.security.krb5.debug"); //$NON-NLS-1$
}
|
public List<EPackage> getPackages() {
ArrayList<EPackage> l = new ArrayList<EPackage>();
for (Resource r : getResources())
if (r instanceof Resource) {
OawXSDResource x = (OawXSDResource) r;
if (x.isEcorePackageGenerated())
l.add(x.getEPackage());
}
return l;
}
| public List<EPackage> getPackages() {
ArrayList<EPackage> l = new ArrayList<EPackage>();
for (Resource r : getResources())
if (r instanceof OawXSDResource) {
OawXSDResource x = (OawXSDResource) r;
if (x.isEcorePackageGenerated())
l.add(x.getEPackage());
}
return l;
}
|
private static final String SUGGESTED_EXCLUSIONS =
JMeterUtils.getPropDefault("proxy.excludes.suggested", ".*\\.js;.*\\.css;.*\\.swf;.*\\.gif;.*\\.png;.*\\.jpg;.*\\.bmp"); // $NON-NLS-1$
| private static final String SUGGESTED_EXCLUSIONS =
JMeterUtils.getPropDefault("proxy.excludes.suggested", ".*\\.js;.*\\.css;.*\\.swf;.*\\.gif;.*\\.png;.*\\.jpg;.*\\.jpeg;.*\\.bmp;.*\\.ico;.*\\.woff"); // $NON-NLS-1$
|
public synchronized void setBasedir(String basedir) {
checkForOpenFiles();
if (basedir != null) {
base = new File(basedir);
if (!base.isDirectory()) {
base = base.getParentFile();
}
log.info("Set new base='"+base+"'");
}
}
| public synchronized void setBasedir(String basedir) {
checkForOpenFiles(); // TODO should this be called if basedir == null?
if (basedir != null) {
base = new File(basedir);
if (!base.isDirectory()) {
base = base.getParentFile();
}
log.... |
public final class GIFFileFormat extends FileFormat {
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public ... | public final class GIFFileFormat extends FileFormat {
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public ... |
public final class OS2BMPFileFormat extends FileFormat {
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Publ... | public final class OS2BMPFileFormat extends FileFormat {
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Publ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.