buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public Node cloneNode(boolean deep) {
AttrImpl newattr = (AttrImpl)super.cloneNode(deep);
newattr.owned = owned;
newattr.specified = specified;
return newattr;
}
| public Node cloneNode(boolean deep) {
AttrImpl newattr = (AttrImpl)super.cloneNode(deep);
newattr.owned = false;
newattr.specified = specified;
return newattr;
}
|
protected FuzzyBoolean matchInternal(Shadow shadow) {
if (shadow.getKind() != kind) return FuzzyBoolean.NO;
if (!signature.matches(shadow.getSignature(), shadow.getIWorld(),this.kind == Shadow.MethodCall)){
if(kind == Shadow.MethodCall) {
warnOnConfusingSig(shadow);
//... | protected FuzzyBoolean matchInternal(Shadow shadow) {
if (shadow.getKind() != kind) return FuzzyBoolean.NO;
if (!signature.matches(shadow.getMatchingSignature(), shadow.getIWorld(),this.kind == Shadow.MethodCall)){
if(kind == Shadow.MethodCall) {
warnOnConfusingSig(shadow);
... |
protected void init() {
super.init ();
settings = OS.gtk_print_settings_new();
pageSetup = OS.gtk_page_setup_new();
if (data.otherData != null) {
/* Retreive stored printer_settings data. */
settingsData = data.otherData;
start = end = 0;
while (end < settingsData.length && settingsData[end] != 0) {
star... | protected void init() {
super.init ();
settings = OS.gtk_print_settings_new();
pageSetup = OS.gtk_page_setup_new();
if (data.otherData != null) {
/* Retreive stored printer_settings data. */
settingsData = data.otherData;
start = end = 0;
while (end < settingsData.length && settingsData[end] != 0) {
star... |
private void processSlowScan(String[] arr) {
for (int i = 0; i < arr.length; i++) {
TokenizedPath path = new TokenizedPath(arr[i]);
if (!couldHoldIncluded(path)) {
scandir(new File(basedir, arr[i]), path, false);
}
}
}
| private void processSlowScan(String[] arr) {
for (int i = 0; i < arr.length; i++) {
TokenizedPath path = new TokenizedPath(arr[i]);
if (!couldHoldIncluded(path) || contentsExcluded(path)) {
scandir(new File(basedir, arr[i]), path, false);
}
}
... |
public AdvertisedService(IServiceInfo serviceInfo) {
super(serviceInfo.getLocation(), serviceInfo.getServiceName(),
serviceInfo.getServiceID().getServiceTypeID(), serviceInfo
.getPriority(), serviceInfo.getWeight(), serviceInfo
.getServiceProperties());
this.uuid = UUID.randomUUID().toString();
/... | public AdvertisedService(IServiceInfo serviceInfo) {
super(serviceInfo.getLocation(), serviceInfo.getServiceName(),
serviceInfo.getServiceID().getServiceTypeID(), serviceInfo
.getPriority(), serviceInfo.getWeight(), serviceInfo
.getServiceProperties());
this.uuid = UUID.randomUUID().toString();
/... |
public boolean accept(FeedbackMessage message)
{
return container.isAncestorOf(message.getReporter());
}
| public boolean accept(FeedbackMessage message)
{
return container.getParent().contains(message.getReporter(), false);
}
|
private String s2;
/*
* By default, OpenJPA stores Chars as Ints, so to force the use of
* a char(1) field, you would need to override this processing via
* a DBDictionary property:
* -Dopenjpa.jdbc.DBDictionary=derby(StoreCharsAsNumbers=false)
*/
@Column(name="USE_STREAMING", length=1)
@ExternalV... | private String s2;
/*
* By default, OpenJPA stores Chars as Ints, so to force the use of
* a char(1) field, you would need to override this processing via
* a DBDictionary property:
* -Dopenjpa.jdbc.DBDictionary=derby(StoreCharsAsNumbers=false)
*/
@Column(name="USE_STREAMING")
@ExternalValues({"tr... |
public void setUp() {
super.setUp(CLEAR_TABLES, EntityA.class);
}
| public void setUp() {
super.setUp(DROP_TABLES, EntityA.class);
}
|
public static SampleResult getSampleResult(Configuration config) {
SampleResult result = new SampleResult(config.getAttributeAsLong(TIME_STAMP, 0L), config.getAttributeAsLong(
TIME, 0L));
result.setThreadName(config.getAttribute(THREAD_NAME, "")); // $NON-NLS-1$
result.setDataType(config.getAttribute(DAT... | public static SampleResult getSampleResult(Configuration config) {
SampleResult result = new SampleResult(config.getAttributeAsLong(TIME_STAMP, 0L), config.getAttributeAsLong(
TIME, 0L));
result.setThreadName(config.getAttribute(THREAD_NAME, "")); // $NON-NLS-1$
result.setDataType(config.getAttribute(DAT... |
protected boolean retrieveItem(HierarchicalStreamReader reader, UnmarshallingContext context, SampleResult res,
Object subItem) {
String nodeName = reader.getNodeName();
if (subItem instanceof AssertionResult) {
res.addAssertionResult((AssertionResult) subItem);
} else if (subItem instanceof SampleResult) ... | protected boolean retrieveItem(HierarchicalStreamReader reader, UnmarshallingContext context, SampleResult res,
Object subItem) {
String nodeName = reader.getNodeName();
if (subItem instanceof AssertionResult) {
res.addAssertionResult((AssertionResult) subItem);
} else if (subItem instanceof SampleResult) ... |
public void testMarkupNotFoundInformationIsCachedInDeploymentMode()
{
IMarkupFragment markup = cache.getMarkup(component, null, false);
assertEquals(Markup.NO_MARKUP, markup);
markup = cache.getMarkup(component, null, false);
assertEquals(Markup.NO_MARKUP, markup);
}
private class MarkupCachingAssumingCom... | public void testMarkupNotFoundInformationIsCachedInDeploymentMode()
{
IMarkupFragment markup = cache.getMarkup(component, null, false);
assertEquals(Markup.NO_MARKUP, markup);
markup = cache.getMarkup(component, null, false);
assertEquals(Markup.NO_MARKUP, markup);
}
private static class MarkupCachingAssu... |
protected WeatherStation load()
{
return new WeatherStation();
}
};
StringResourceModel model = new StringResourceModel("simple.text", page, wsDetachModel);
model.getObject();
Assert.assertNotNull(model.getLocalizer());
model.detach();
}
/**
* Inner class used for testing.
*/
public cl... | protected WeatherStation load()
{
return new WeatherStation();
}
};
StringResourceModel model = new StringResourceModel("simple.text", page, wsDetachModel);
model.getObject();
Assert.assertNotNull(model.getLocalizer());
model.detach();
}
/**
* Inner class used for testing.
*/
public st... |
public void sendPostData(URLConnection connection, HTTPSampler sampler)
throws IOException
{
// If filename was specified then send the post using multipart syntax
String filename = sampler.getFileField();
if ((filename != null) && (filename.trim().length() > 0))
{
OutputStream out = connection.getOutp... | public void sendPostData(URLConnection connection, HTTPSampler sampler)
throws IOException
{
// If filename was specified then send the post using multipart syntax
String filename = sampler.getFileField();
if ((filename != null) && (filename.trim().length() > 0))
{
OutputStream out = connection.getOutp... |
public Object component(final Component component)
{
if (!component.getPath().startsWith(PageView.this.getPath()))
{
final ComponentData componentData = new ComponentData();
// anonymous class? Get the parent's class name
String name = component.getClass().getName();
if (name.i... | public Object component(final Component component)
{
if (!component.getPath().startsWith(PageView.this.getPath()))
{
final ComponentData componentData = new ComponentData();
// anonymous class? Get the parent's class name
String name = component.getClass().getName();
if (name.i... |
public void onSubmit()
{
try
{
Page page = new SuccessPage();
page.info(getString("book.save.success", new Model(book)));
setResponsePage(page);
}
finally
{
getSession().remove(getPage());
}
}
}
| public void onSubmit()
{
try
{
Page page = new SuccessPage();
page.info(getString("book.save.success", new Model(book)));
setResponsePage(page);
}
finally
{
getPage().getPageMap().remove(getPage());
}
}
}
|
protected boolean isValidOs() {
return Os.isFamily("unix") && super.isValidOs();
}
| protected boolean isValidOs() {
return Os.isFamily(Os.FAMILY_UNIX) && super.isValidOs();
}
|
protected void handleComponentTag(final ComponentTag tag)
{
checkTag(tag, "form");
super.handleComponentTag(tag);
tag.put("method", "POST");
String url = getRequestCycle().urlFor(Form.this, IFormSubmitListener.class);
url = url.replaceAll("&", "&");
tag.put("action", url);
}
| protected void handleComponentTag(final ComponentTag tag)
{
checkComponentTag(tag, "form");
super.handleComponentTag(tag);
tag.put("method", "POST");
String url = getRequestCycle().urlFor(Form.this, IFormSubmitListener.class);
url = url.replaceAll("&", "&");
tag.put("action", url);
}
|
protected final void handleRender()
{
// Render the tag that included this html compoment
final MarkupStream markupStream = findMarkupStream();
if (!markupStream.atOpenCloseTag())
{
markupStream.throwMarkupException("A panel must be referenced by an openclose tag.");... | protected final void handleRender()
{
// Render the tag that included this html compoment
final MarkupStream markupStream = findMarkupStream();
if (!markupStream.atOpenCloseTag())
{
markupStream.throwMarkupException("A panel must be referenced by an openclose tag.");... |
void rconfigure(HashTree testTree, String host, File jmxBase, String scriptName) throws RemoteException;
/*
* 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 ownershi... | void rconfigure(HashTree testTree, String host, File jmxBase, String scriptName) throws RemoteException;
/*
* 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 ownershi... |
public void update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
throws SQLException {
if (field.getMappedBy() != null && !field.isBiMTo1JT())
return;
Map map = (Map) sm.fetchObject(field.getIndex());
ChangeTracker ct = null;
if (map instanceof ... | public void update(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
throws SQLException {
if (field.getMappedBy() != null && !field.isBiMTo1JT())
return;
Map map = (Map) sm.fetchObject(field.getIndex());
ChangeTracker ct = null;
if (map instanceof ... |
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);
}
void sendScrollEvent (int detail) {
Event event =... | 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);
}
void sendScrollEvent (int detail) {
Event event =... |
public long delay() {
long delay = 0;
try {
ScriptEngine scriptEngine = getScriptEngine();
Object o = processFileOrScript(scriptEngine, null);
if (o == null) {
log.warn("Script did not return a value");
return 0;
}
... | public long delay() {
long delay = 0;
try {
ScriptEngine scriptEngine = getScriptEngine();
Object o = processFileOrScript(scriptEngine, null);
if (o == null) {
log.warn("Script did not return a value");
return 0;
}
... |
public BuildEvent(Task task) {
super(task);
this.project = task.getProject();
this.target = task.getTarget();
this.task = task;
}
| public BuildEvent(Task task) {
super(task);
this.project = task.getProject();
this.target = task.getOwningTarget();
this.task = task;
}
|
private void serializeTable(String table, String elementName,
String defaultName, ClassMappingInfo secondaryInfo, Unique[] uniques)
throws SAXException {
List<Column> cols = null;
if (secondaryInfo != null)
cols = (List<Column>) secondaryInfo.getSecondaryTableJoinColumns
... | private void serializeTable(String table, String elementName,
String defaultName, ClassMappingInfo secondaryInfo, Unique[] uniques)
throws SAXException {
List<Column> cols = null;
if (secondaryInfo != null)
cols = (List<Column>) secondaryInfo.getSecondaryTableJoinColumns
... |
public void setData (Object data) {
checkDevice ();
this.data = data;
}
int setDirectionProc (int /*long*/ widget, int /*long*/ direction) {
OS.gtk_widget_set_direction (widget, (int)/*64*/ direction);
if (OS.GTK_IS_CONTAINER (widget)) {
OS.gtk_container_forall (widget, setDirectionProc, direction);
}
return 0... | public void setData (Object data) {
checkDevice ();
this.data = data;
}
int /*long*/ setDirectionProc (int /*long*/ widget, int /*long*/ direction) {
OS.gtk_widget_set_direction (widget, (int)/*64*/ direction);
if (OS.GTK_IS_CONTAINER (widget)) {
OS.gtk_container_forall (widget, setDirectionProc, direction);
}
... |
protected void create (DeviceData data) {
checkSubclass ();
checkDisplay(thread = Thread.currentThread (), false);
createDisplay (data);
register ();
if (Default == null) Default = this;
}
synchronized void createDisplay (DeviceData data) {
/* Required for g_main_context_wakeup */
if (!OS.g_thread_supported ())... | protected void create (DeviceData data) {
checkSubclass ();
checkDisplay(thread = Thread.currentThread (), false);
createDisplay (data);
register ();
if (Default == null) Default = this;
}
synchronized void createDisplay (DeviceData data) {
/* Required for g_main_context_wakeup */
if (!OS.g_thread_supported ())... |
protected Object nativeToJava(TransferData transferData) {
if (!isSupportedType(transferData) || transferData.data == null) return null;
if (transferData.data == null) return null;
NSData data = (NSData) transferData.data;
if (data.length() == 0) return null;
byte[] bytes = new byte[data.length()];
data.getBytes(... | protected Object nativeToJava(TransferData transferData) {
if (!isSupportedType(transferData) || transferData.data == null) return null;
if (transferData.data == null) return null;
NSData data = (NSData) transferData.data;
if (data.length() == 0) return null;
byte[] bytes = new byte[(int)/*64*/data.length()];
dat... |
public Object nativeToJava(TransferData transferData) {
if (!isSupportedType(transferData) || transferData.data == null) return null;
NSArray array = (NSArray) transferData.data;
if (array.count() == 0) return null;
int count = array.count();
String[] fileNames = new String[count];
for (int i=0; i<count; i++) {
... | public Object nativeToJava(TransferData transferData) {
if (!isSupportedType(transferData) || transferData.data == null) return null;
NSArray array = (NSArray) transferData.data;
if (array.count() == 0) return null;
int count = (int)/*64*/array.count();
String[] fileNames = new String[count];
for (int i=0; i<coun... |
public PrinterData open() {
PrinterData data = null;
NSPrintPanel panel = NSPrintPanel.printPanel();
NSPrintInfo printInfo = new NSPrintInfo(NSPrintInfo.sharedPrintInfo().copy());
NSMutableDictionary dict = printInfo.dictionary();
if (printToFile) {
dict.setValue(OS.NSPrintSaveJob, OS.NSPrintJobDisposition);
}... | public PrinterData open() {
PrinterData data = null;
NSPrintPanel panel = NSPrintPanel.printPanel();
NSPrintInfo printInfo = new NSPrintInfo(NSPrintInfo.sharedPrintInfo().copy());
NSMutableDictionary dict = printInfo.dictionary();
if (printToFile) {
dict.setValue(OS.NSPrintSaveJob, OS.NSPrintJobDisposition);
}... |
public int hashCode () {
return handle != null ? handle.id : 0;
}
| public int hashCode () {
return handle != null ? (int)/*64*/handle.id : 0;
}
|
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
if ((style & SWT.ARROW) != 0) {
// TODO use some OS metric instead of hardcoded values
int width = wHint != SWT.DEFAULT ? wHint : 23;
int height = hHint != SWT.DEFAULT ? hHint : 23;
return new Point (width, height);
}
return s... | public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
if ((style & SWT.ARROW) != 0) {
// TODO use some OS metric instead of hardcoded values
int width = wHint != SWT.DEFAULT ? wHint : 23;
int height = hHint != SWT.DEFAULT ? hHint : 23;
return new Point (width, height);
}
return s... |
public String open () {
String directoryPath = null;
NSOpenPanel panel = NSOpenPanel.openPanel();
panel.setAllowsMultipleSelection((style & SWT.MULTI) != 0);
if (filterPath != null) panel.setDirectory(NSString.stringWith(filterPath));
panel.setTitle(NSString.stringWith(title != null ? title : ""));
panel.setCanCh... | public String open () {
String directoryPath = null;
NSOpenPanel panel = NSOpenPanel.openPanel();
panel.setAllowsMultipleSelection((style & SWT.MULTI) != 0);
if (filterPath != null) panel.setDirectory(NSString.stringWith(filterPath));
panel.setTitle(NSString.stringWith(title != null ? title : ""));
panel.setCanCh... |
public void addSelectionListener (SelectionListener listener) {
checkWidget ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
TypedListener typedListener = new TypedListener (listener);
addListener (SWT.Selection, typedListener);
addListener (SWT.DefaultSelection, typedListener);
}
boolean clickOnLink(in... | public void addSelectionListener (SelectionListener listener) {
checkWidget ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
TypedListener typedListener = new TypedListener (listener);
addListener (SWT.Selection, typedListener);
addListener (SWT.DefaultSelection, typedListener);
}
boolean textView_click... |
public int open () {
int alertType = OS.NSInformationalAlertStyle;
if ((style & SWT.ICON_ERROR) != 0) alertType = OS.NSCriticalAlertStyle;
if ((style & SWT.ICON_INFORMATION) != 0) alertType = OS.NSInformationalAlertStyle;
if ((style & SWT.ICON_QUESTION) != 0) alertType = OS.NSInformationalAlertStyle;
if ((style & ... | public int open () {
int alertType = OS.NSInformationalAlertStyle;
if ((style & SWT.ICON_ERROR) != 0) alertType = OS.NSCriticalAlertStyle;
if ((style & SWT.ICON_INFORMATION) != 0) alertType = OS.NSInformationalAlertStyle;
if ((style & SWT.ICON_QUESTION) != 0) alertType = OS.NSInformationalAlertStyle;
if ((style & ... |
public Rectangle computeTrim (int x, int y, int width, int height) {
checkWidget();
if (scrollView != null) {
NSSize size = new NSSize();
size.width = width;
size.height = height;
int border = hasBorder() ? OS.NSBezelBorder : OS.NSNoBorder;
size = NSScrollView.frameSizeForContentSize(size, (style & SWT.H_SC... | public Rectangle computeTrim (int x, int y, int width, int height) {
checkWidget();
if (scrollView != null) {
NSSize size = new NSSize();
size.width = width;
size.height = height;
int border = hasBorder() ? OS.NSBezelBorder : OS.NSNoBorder;
size = NSScrollView.frameSizeForContentSize(size, (style & SWT.H_SC... |
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);
}
void sendSelection () {
Event event = new Event()... | 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);
}
void sendSelection () {
Event event = new Event()... |
public void setSelection (int index) {
checkWidget ();
int count = itemCount;
if (!(0 <= index && index < count)) return;
setSelection (index, false, false);
}
void setSelection (int index, boolean notify, boolean force) {
if (!(0 <= index && index < itemCount)) return;
int currentIndex = getSelectionIndex ();
... | public void setSelection (int index) {
checkWidget ();
int count = itemCount;
if (!(0 <= index && index < count)) return;
setSelection (index, false, false);
}
void setSelection (int index, boolean notify, boolean force) {
if (!(0 <= index && index < itemCount)) return;
int currentIndex = getSelectionIndex ();
... |
public void addSelectionListener (SelectionListener listener) {
checkWidget ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
TypedListener typedListener = new TypedListener (listener);
addListener (SWT.Selection,typedListener);
addListener (SWT.DefaultSelection,typedListener);
}
static int checkStyle (i... | public void addSelectionListener (SelectionListener listener) {
checkWidget ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
TypedListener typedListener = new TypedListener (listener);
addListener (SWT.Selection,typedListener);
addListener (SWT.DefaultSelection,typedListener);
}
static int checkStyle (i... |
public void testRenderHomePage_10() throws Exception
{
// executeTest(HeaderSectionPage_10.class, "HeaderSectionPageExpectedResult_10.html");
}
| public void testRenderHomePage_10() throws Exception
{
executeTest(HeaderSectionPage_10.class, "HeaderSectionPageExpectedResult_10.html");
}
|
public int hashCode () {
return handle;
}
/**
* Allocates the operating system resources associated
* with the receiver.
*
* @param device the device on which to allocate the color
* @param red the amount of red in the color
* @param green the amount of green in the color
* @param blue the amount of blue in t... | public int hashCode () {
return handle;
}
/**
* Allocates the operating system resources associated
* with the receiver.
*
* @param device the device on which to allocate the color
* @param red the amount of red in the color
* @param green the amount of green in the color
* @param blue the amount of blue in t... |
private Pointcut asPointcut(Method method) {
org.aspectj.lang.annotation.Pointcut pcAnn = method.getAnnotation(org.aspectj.lang.annotation.Pointcut.class);
if (pcAnn != null) {
String name = method.getName();
if (name.startsWith(ajcMagic)) {
// extract real name
int nameStart = name.indexOf("$$");
... | private Pointcut asPointcut(Method method) {
org.aspectj.lang.annotation.Pointcut pcAnn = method.getAnnotation(org.aspectj.lang.annotation.Pointcut.class);
if (pcAnn != null) {
String name = method.getName();
if (name.startsWith(ajcMagic)) {
// extract real name
int nameStart = name.indexOf("$$");
... |
public Object clone()
{
MapProperty prop = (MapProperty) super.clone();
prop.value = cloneMap();
return value;
}
| public Object clone()
{
MapProperty prop = (MapProperty) super.clone();
prop.value = cloneMap();
return prop;
}
|
public TreeItem (TreeItem parentItem, int style, int index) {
super (checkNull (parentItem).parent, style);
this.parentItem = parentItem;
parent = parentItem.parent;
depth = parentItem.depth + 1;
int validItemIndex = parentItem.items.length;
if (!(0 <= index && index <= validItemIndex)) error (SWT.ERROR_INVALID_R... | public TreeItem (TreeItem parentItem, int style, int index) {
super (checkNull (parentItem).parent, style);
this.parentItem = parentItem;
parent = parentItem.parent;
depth = parentItem.depth + 1;
int validItemIndex = parentItem.items.length;
if (!(0 <= index && index <= validItemIndex)) error (SWT.ERROR_INVALID_R... |
public WicketComponentTreeTestPage(final PageParameters parameters)
{
add(new Label("label1", "test1"));
// Create a dummy component with inner class
add(new Label("label2", "test22"));
// Add component tree
add(new WicketPageView("componentList", this));
}
| public WicketComponentTreeTestPage(final PageParameters parameters)
{
add(new Label("label1", "test1"));
// Create a dummy component with inner class
add(new Label("label2", "test22"));
// Add component tree
add(new PageView("componentList", this));
}
|
public void focusGained(FocusEvent e) {
}
});
durationPanel.add(new JLabel(durationLabel));
durationPanel.add(durationField);
add(durationPanel);
}
| public void focusGained(FocusEvent e) {
}
});
durationPanel.add(new JLabel("Duration"));
durationPanel.add(durationField);
add(durationPanel);
}
|
public void run() {
running = true;
long time;
totalLag = 0;
count = 0;
while (running) {
time = System.currentTimeMillis();
try {
Thread.sleep(incr);
} catch (InterruptedException e) {
}
time = System.currentTimeMillis() - time;
totalLag += time - incr;
count++;
}
}
| public void run() {
running = true;
long time;
totalLag = 0;
count = 0;
while (running) {
time = System.currentTimeMillis();
try {
Thread.sleep(incr);
} catch (Exception e) {
}
time = System.currentTimeMillis() - time;
totalLag += time - incr;
count++;
}
}
|
public void setParameters(Collection parameters) throws InvalidVariableException {
}
static Object getNamedFunction(String functionName) throws InvalidVariableException {
if (functions.containsKey(functionName)) {
try {
return ((Class) functions.get(functionName)).newInstance();
} catch (Exception e) {
... | public void setParameters(Collection parameters) throws InvalidVariableException {
}
static Object getNamedFunction(String functionName) throws InvalidVariableException {
if (functions.containsKey(functionName)) {
try {
return (Function) ((Class) functions.get(functionName)).newInstance();
} catch (Exce... |
public SampleResult sample(Entry e) {
trace("sample()");
SampleResult res = new SampleResult();
boolean isOK = false; // Did sample succeed?
String data = getData(); // Sampler data
String response = null;
res.setSampleLabel(getTitle());
/*
* Perform the sampling
*/
res.sampleStart(); // Start t... | public SampleResult sample(Entry e) {
trace("sample()");
SampleResult res = new SampleResult();
boolean isOK = false; // Did sample succeed?
String data = getData(); // Sampler data
String response = null;
res.setSampleLabel(getTitle());
/*
* Perform the sampling
*/
res.sampleStart(); // Start t... |
public String toString() {
StringBuffer sb = new StringBuffer();
sb.append("Link to : " + link + "; titled : " + linkText + "; begins at : " + elementBegin() + "; ends at : "
+ elementEnd() + ", AccessKey=");
if (accessKey == null)
sb.append("null\n");
else
sb.append(accessKey + "\n");
if (children... | public String toString() {
StringBuffer sb = new StringBuffer();
sb.append("Link to : " + link + "; titled : " + linkText + "; begins at : " + elementBegin() + "; ends at : "
+ elementEnd() + ", AccessKey=");
if (accessKey == null)
sb.append("null\n");
else
sb.append(accessKey + "\n");
if (children... |
public static Object get(Object key) {
return client_map.get(key);
}
| public static Object get(Object key) {
return (OnMessageSubscriber) client_map.get(key);
}
|
public SampleResult sample(Entry e) {
SampleResult res = new SampleResult();
boolean isSuccessful = false;
res.setSampleLabel(getName());
res.setSamplerData(getPropertyAsString(TEST));// TODO improve this
LdapClient ldap = new LdapClient();
try {
ldap.connect(getServername(), getPort(), getRootdn(), ge... | public SampleResult sample(Entry e) {
SampleResult res = new SampleResult();
boolean isSuccessful = false;
res.setSampleLabel(getName());
res.setSamplerData(getPropertyAsString(TEST));// TODO improve this
LdapClient ldap = new LdapClient();
try {
ldap.connect(getServername(), getPort(), getRootdn(), ge... |
public void buildStarted(BuildEvent event) {
startTime = System.currentTimeMillis();
}
static void throwableMessage(StringBuffer m, Throwable error, boolean verbose) {
while (error instanceof BuildException) { // #43398
Throwable cause = ((BuildException) error).getCause();
... | public void buildStarted(BuildEvent event) {
startTime = System.currentTimeMillis();
}
static void throwableMessage(StringBuffer m, Throwable error, boolean verbose) {
while (error instanceof BuildException) { // #43398
Throwable cause = error.getCause();
if (cause =... |
protected void runCommand(Commandline toExecute) throws BuildException {
// XXX: we should use JCVS (www.ice.com/JCVS) instead of
// command line execution so that we don't rely on having
// native CVS stuff around (SM)
// We can't do it ourselves as jCVS is GPLed, a third party tas... | protected void runCommand(Commandline toExecute) throws BuildException {
// XXX: we should use JCVS (www.ice.com/JCVS) instead of
// command line execution so that we don't rely on having
// native CVS stuff around (SM)
// We can't do it ourselves as jCVS is GPLed, a third party tas... |
public void testElementCollectionAssocOverrides() {
_sql.clear();
HashMap<String, Object> props = new HashMap<String, Object>();
props.put("openjpa.jdbc.JDBCListeners",
new JDBCListener[] { new SQLListener() });
OpenJPAEntityManagerFactorySPI emf1 =
(OpenJP... | public void testElementCollectionAssocOverrides() {
_sql.clear();
HashMap<String, Object> props = new HashMap<String, Object>();
props.put("openjpa.jdbc.JDBCListeners",
new JDBCListener[] { new SQLListener() });
OpenJPAEntityManagerFactorySPI emf1 =
(OpenJP... |
protected Object checkRemoteCreate(ID fromID, ID toID,
SharedObjectDescription desc) throws Exception {
debug("checkRemoteCreate(" + fromID + "," + toID + "," + desc + ")");
if (policy != null) {
policy.checkAddSharedObject(fromID, toID, getID(), desc);
}
| protected Object checkRemoteCreate(ID fromID, ID toID,
SharedObjectDescription desc) throws Exception {
debug("checkRemoteCreate(" + fromID + "," + toID + "," + desc + ")");
if (policy != null) {
return policy.checkAddSharedObject(fromID, toID, getID(), desc);
}
|
public String toScript(Locale locale)
{
StringBuffer b = new StringBuffer();
// create the script that represents these properties. Only create entries for
// values that are different from the default value (save a bit bandwith)
if (!isMode())
{
b.append("\n\tmode : false,");
}
if (getFirstDay() !... | public String toScript(Locale locale)
{
StringBuffer b = new StringBuffer();
// create the script that represents these properties. Only create entries for
// values that are different from the default value (save a bit bandwith)
if (!isMode())
{
b.append("\n\tmode : false,");
}
if (getFirstDay() !... |
public void onComponentTag(final Component component, final ComponentTag tag)
{
if (isEnabled())
{
tag.getAttributes().put(attribute, value);
}
}
| public void onComponentTag(final Component component, final ComponentTag tag)
{
if (isEnabled(component))
{
tag.getAttributes().put(attribute, value);
}
}
|
public synchronized boolean isFilesystemOnly() {
if (isReference()) {
return ((BaseResourceCollectionContainer) getCheckedRef()).isFilesystemOnly();
}
dieOnCircularReference();
//first the easy way, if all children are filesystem-only, return true:
boolean goEarly... | public synchronized boolean isFilesystemOnly() {
if (isReference()) {
return ((BaseResourceCollectionContainer) getCheckedRef()).isFilesystemOnly();
}
dieOnCircularReference();
//first the easy way, if all children are filesystem-only, return true:
boolean goEarly... |
public synchronized boolean isFilesystemOnly() {
if (isReference()) {
return ((BaseResourceCollectionContainer) getCheckedRef()).isFilesystemOnly();
}
dieOnCircularReference();
if (rc == null || rc.isFilesystemOnly()) {
return true;
}
/* now c... | public synchronized boolean isFilesystemOnly() {
if (isReference()) {
return ((BaseResourceCollectionContainer) getCheckedRef()).isFilesystemOnly();
}
dieOnCircularReference();
if (rc == null || rc.isFilesystemOnly()) {
return true;
}
/* now c... |
// non-private for testing
LazyClassGen weave(UnwovenClassFile classFile, BcelObjectType classType) throws IOException {
JavaClass javaClass = classType.getJavaClass();
List shadowMungers = fastMatch(shadowMungerList, javaClass);
List typeMungers = fastMatch(classType.getInterTypeMungers(), javaClass);
LazyC... | // non-private for testing
LazyClassGen weave(UnwovenClassFile classFile, BcelObjectType classType) throws IOException {
JavaClass javaClass = classType.getJavaClass();
List shadowMungers = fastMatch(shadowMungerList, javaClass);
List typeMungers = fastMatch(classType.getInterTypeMungers(), javaClass);
LazyC... |
public int size()
{
return markupElements.size();
}
/**
* Add a MarkupElement
*
* @param markupElement
*/
final void addMarkupElement(final MarkupElement markupElement)
{
this.markupElements.add(markupElement);
}
/**
* Add a MarkupElement
*
* @param pos
* @param markupElement
*/
final... | public int size()
{
return markupElements.size();
}
/**
* Add a MarkupElement
*
* @param markupElement
*/
final void addMarkupElement(final MarkupElement markupElement)
{
this.markupElements.add(markupElement);
}
/**
* Add a MarkupElement
*
* @param pos
* @param markupElement
*/
final... |
public boolean hasMoreComponentTags()
{
while (hasMore())
{
MarkupElement elem = next();
if (elem instanceof ComponentTag)
{
return true;
}
}
return false;
}
| public boolean hasMoreComponentTags()
{
while (hasMore())
{
final MarkupElement elem = next();
if (elem instanceof ComponentTag)
{
return true;
}
}
return false;
}
|
public MarkupElement nextTag() throws ParseException
{
// Get the next tag from the markup.
// If null, no more tags are available
ComponentTag tag = nextComponentTag();
if (tag == null)
{
return tag;
}
// must be <body onload="...">
if (tag.isOpen() && "body".equalsIgnoreCase(tag.getName()) && (t... | public MarkupElement nextTag() throws ParseException
{
// Get the next tag from the markup.
// If null, no more tags are available
final ComponentTag tag = nextComponentTag();
if (tag == null)
{
return tag;
}
// must be <body onload="...">
if (tag.isOpen() && "body".equalsIgnoreCase(tag.getName())... |
public MarkupElement nextTag() throws ParseException
{
// Get the next tag from the markup.
// If null, no more tags are available
ComponentTag tag = nextComponentTag();
if (tag == null)
{
return tag;
}
// Whatever there is left in the markup, ignore it
if (ignoreTheRest == true)
{
return tag... | public MarkupElement nextTag() throws ParseException
{
// Get the next tag from the markup.
// If null, no more tags are available
final ComponentTag tag = nextComponentTag();
if (tag == null)
{
return tag;
}
// Whatever there is left in the markup, ignore it
if (ignoreTheRest == true)
{
retu... |
public MarkupElement nextTag() throws ParseException
{
// If there is something in the stack, ...
while (stack.size() > 0)
{
final ComponentTag top = stack.pop();
return top;
}
// Get the next tag. If null, no more tags are available
// in the markup
final ComponentTag tag = nextComponentTag();
... | public MarkupElement nextTag() throws ParseException
{
// If there is something in the stack, ...
while (stack.size() > 0)
{
final ComponentTag top = stack.pop();
return top;
}
// Get the next tag. If null, no more tags are available
// in the markup
final ComponentTag tag = nextComponentTag();
... |
public final MarkupElement nextTag() throws ParseException
{
// Get next tag. Null, if no more tag available
final ComponentTag tag = nextComponentTag();
if (tag == null)
{
return tag;
}
// Only xml tags not already identified as Wicket components will be
// considered for autolinking. This is becau... | public final MarkupElement nextTag() throws ParseException
{
// Get next tag. Null, if no more tag available
final ComponentTag tag = nextComponentTag();
if (tag == null)
{
return tag;
}
// Only xml tags not already identified as Wicket components will be
// considered for autolinking. This is becau... |
public MarkupElement nextTag() throws ParseException
{
// Get the next tag from the markup.
// If null, no more tags are available
XmlTag xmlTag = (XmlTag)getParent().nextTag();
if (xmlTag == null)
{
return xmlTag;
}
final String namespace = this.markup.getWicketNamespace();
// Identify tags with... | public MarkupElement nextTag() throws ParseException
{
// Get the next tag from the markup.
// If null, no more tags are available
final XmlTag xmlTag = (XmlTag)getParent().nextTag();
if (xmlTag == null)
{
return xmlTag;
}
final String namespace = this.markup.getWicketNamespace();
// Identify tag... |
private int OnFocus(int fGotFocus) {
return COM.S_OK;
}
int OnUIDeactivate(int fUndoable) {
// controls don't need to do anything for
// border space or menubars
if (frame == null || frame.isDisposed()) return COM.S_OK;
state = STATE_INPLACEACTIVE;
frame.SetActiveObject(0,0);
redraw();
Shell shell = getShell();... | protected int OnUIDeactivate(int fUndoable) {
// controls don't need to do anything for
// border space or menubars
if (frame == null || frame.isDisposed()) return COM.S_OK;
state = STATE_INPLACEACTIVE;
frame.SetActiveObject(0,0);
redraw();
Shell shell = getShell();
if (isFocusControl() || frame.isFocusControl(... |
public AboutDialog(Icon logo) {
setModal(true);
setLayout(new BorderLayout());
JButton button = new JButton("<html>"
+ "<b>OpenBooks</b> "
+ "<br> using OpenJPA version " + OpenJPAVersion.MAJOR_RELEASE + "." + OpenJPAVersion.MINOR_REL... | public AboutDialog(Icon logo) {
setModal(true);
setLayout(new BorderLayout());
JButton button = new JButton("<html>"
+ "<b>OpenBooks</b> "
+ "<br> using OpenJPA version " + OpenJPAVersion.MAJOR_RELEASE + "." + OpenJPAVersion.MINOR_REL... |
private void prepareForSerialization(XMLSerializer ser, Node node) {
ser.reset();
ser.features = features;
ser.fDOMErrorHandler = fErrorHandler;
ser.fNamespaces = (features & NAMESPACES) != 0;
ser.fNamespacePrefixes = (features & NSDECL) != 0;
ser._format.setOmitComme... | private void prepareForSerialization(XMLSerializer ser, Node node) {
ser.reset();
ser.features = features;
ser.fDOMErrorHandler = fErrorHandler;
ser.fNamespaces = (features & NAMESPACES) != 0;
ser.fNamespacePrefixes = (features & NSDECL) != 0;
ser._format.setOmitComme... |
protected FuzzyBoolean matchInternal(Shadow shadow) {
if (!couldMatch(shadow)) return FuzzyBoolean.NO;
UnresolvedType typeToMatch = isThis ? shadow.getThisType() : shadow.getTargetType();
//if (typeToMatch == ResolvedType.MISSING) return FuzzyBoolean.NO;
return type.matches(typeToMatch.resolve(shadow.getIW... | protected FuzzyBoolean matchInternal(Shadow shadow) {
if (!couldMatch(shadow)) return FuzzyBoolean.NO;
UnresolvedType typeToMatch = isThis ? shadow.getThisType() : shadow.getTargetType();
//if (typeToMatch == ResolvedType.MISSING) return FuzzyBoolean.NO;
return type.matches(typeToMatch.resolve(shadow.getIW... |
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 static String getJMeterVersion()
{
return "@VERSION@";
}
| public static String getJMeterVersion()
{
return VERSION;
}
|
public void testRenderHomePage_6() throws Exception
{
boolean hit = false;
try
{
executeTest(SimplePage_6.class, "SimplePageExpectedResult_6.html");
}
catch (MarkupException ex)
{
hit = true;
}
assertTrue("Did expect a MarkupException", hit);
}
| public void testRenderHomePage_6() throws Exception
{
boolean hit = false;
try
{
executeTest(SimplePage_6.class, "SimplePageExpectedResult_6.html");
}
catch (MarkupNotFoundException ex)
{
hit = true;
}
assertTrue("Did expect a MarkupException", hit);
}
|
HeaderPartContainer newHeaderPartContainer(String id, String scope);
/*
* 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 ... | HeaderPartContainer newHeaderPartContainer(String id, String scope);
/*
* 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 ... |
Form<?> getForm();
/*
* 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.0
* (the ... | Form<?> getForm();
/*
* 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.0
* (the ... |
Component<?> getTarget();
/*
* 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.0
... | Component<?> getTarget();
/*
* 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.0
... |
private void modify(HTTPSamplerBase sampler, String value) {
if (isPathExtension()) {
if (isPathExtensionNoEquals()) {
sampler.setPath(sampler.getPath() + ";" + getArgumentName() + value);
} else {
sampler.setPath(sampler.getPath() + ";" + getArgumentName() + "=" + value);
}
} else {
sampler.ge... | private void modify(HTTPSamplerBase sampler, String value) {
if (isPathExtension()) {
if (isPathExtensionNoEquals()) {
sampler.setPath(sampler.getPath() + ";" + getArgumentName() + value);
} else {
sampler.setPath(sampler.getPath() + ";" + getArgumentName() + "=" + value);
}
} else {
sampler.ge... |
protected XpandPluginExecutionContext(ResourceManager resourceManager, Resource currentResource,
TypeSystemImpl typeSystem, Map<String, Variable> vars, Map<String, Variable> globalVars, Output output,
ProtectedRegionResolver prs, ProgressMonitor monitor, IXtendXpandProject xp) {
super(resourceManager, currentR... | protected XpandPluginExecutionContext(ResourceManager resourceManager, Resource currentResource,
TypeSystemImpl typeSystem, Map<String, Variable> vars, Map<String, Variable> globalVars, Output output,
ProtectedRegionResolver prs, ProgressMonitor monitor, IXtendXpandProject xp) {
super(resourceManager, currentR... |
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... |
public String toString()
{
String ret = null;
JMeterVariables vars = getVariables();
if ( vars != null )
ret = vars.get(name);
if( ret == null || ret.length() == 0 )
return "${"+name+"}";
return ret;
}
| public String toString()
{
String ret = null;
JMeterVariables vars = getVariables();
if ( vars != null )
ret = vars.get(name);
if( ret == null)
return "${"+name+"}";
return ret;
}
|
public final void writeOutput(final Response response, final boolean stripWicketAttributes,
final String namespace)
{
response.write("<");
if (getType() == XmlTag.CLOSE)
{
response.write("/");
}
if (getNamespace() != null)
{
response.write(getNamespace());
response.write(":");
}
respons... | public final void writeOutput(final Response response, final boolean stripWicketAttributes,
final String namespace)
{
response.write("<");
if (getType() == XmlTag.CLOSE)
{
response.write("/");
}
if (getNamespace() != null)
{
response.write(getNamespace());
response.write(":");
}
respons... |
public void setTestPlanFile(String f) {
testPlanFile = f;
getMainFrame().setExtendedFrameTitle(testPlanFile);
// Enable file revert action if a file is used
getMainFrame().setFileRevertEnabled(f != null);
getMainFrame().setProjectFileLoaded(f);
try {
File... | public void setTestPlanFile(String f) {
testPlanFile = f;
getMainFrame().setExtendedFrameTitle(testPlanFile);
// Enable file revert action if a file is used
getMainFrame().setFileRevertEnabled(f != null);
getMainFrame().setProjectFileLoaded(f);
try {
File... |
public void testStarted() {
if (getBasedir() != null && getBasedir().length() > 0) {
try {
FileServer.getFileServer().setBasedir(FileServer.getFileServer().getBaseDir() + getBasedir());
} catch (IOException e) {
log.error("Failed to set file server bas... | public void testStarted() {
if (getBasedir() != null && getBasedir().length() > 0) {
try {
FileServer.getFileServer().setBasedir(FileServer.getFileServer().getBaseDir() + getBasedir());
} catch (IllegalStateException e) {
log.error("Failed to set file ... |
public void setReportPlanFile(String f) {
reportPlanFile = f;
ReportGuiPackage.getInstance().getMainFrame().setExtendedFrameTitle(reportPlanFile);
try {
FileServer.getFileServer().setBasedir(reportPlanFile);
} catch (IOException e1) {
log.error("Failure settin... | public void setReportPlanFile(String f) {
reportPlanFile = f;
ReportGuiPackage.getInstance().getMainFrame().setExtendedFrameTitle(reportPlanFile);
try {
FileServer.getFileServer().setBasedir(reportPlanFile);
} catch (IllegalStateException e1) {
log.error("Fail... |
public void testStarted() {
if (getBasedir() != null && getBasedir().length() > 0) {
try {
FileServer.getFileServer().setBasedir(FileServer.getFileServer().getBaseDir() + getBasedir());
} catch (IOException e) {
log.error("Failed to set file server bas... | public void testStarted() {
if (getBasedir() != null && getBasedir().length() > 0) {
try {
FileServer.getFileServer().setBasedir(FileServer.getFileServer().getBaseDir() + getBasedir());
} catch (IllegalStateException e) {
log.error("Failed to set file ... |
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget ();
if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0;
if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0;
int width, height;
if (OS.COMCTL32_MAJOR >= 6) {
int hDC = OS.GetDC (handle);
int newFont = OS.SendMessage (handle, OS.WM_GETFON... | public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget ();
if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0;
if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0;
int width, height;
if (OS.COMCTL32_MAJOR >= 6) {
int hDC = OS.GetDC (handle);
int newFont = OS.SendMessage (handle, OS.WM_GETFON... |
public WicketExamplePage(IModel model)
{
super(model);
final String packageName = getClass().getPackage().getName();
add(new WicketExampleHeader(this,"mainNavigation", Strings.afterLast(packageName, '.'), this));
explain();
}
| public WicketExamplePage(IModel model)
{
super(model);
final String packageName = getClass().getPackage().getName();
add(new WicketExampleHeader("mainNavigation", Strings.afterLast(packageName, '.'), this));
explain();
}
|
public ClockPage()
{
// add the clock component
Clock clock = new Clock(this,"clock", TimeZone.getTimeZone("America/Los_Angeles"));
add(clock);
// add the ajax behavior which will keep updating the component every 5
// seconds
clock.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
}
| public ClockPage()
{
// add the clock component
Clock clock = new Clock("clock", TimeZone.getTimeZone("America/Los_Angeles"));
add(clock);
// add the ajax behavior which will keep updating the component every 5
// seconds
clock.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
}
|
public Index()
{
// normal link instead of an autolink as it looks a bit weird to refer
// to PageWithCustomLoading.html while the template has got a very
// different name (CustomLoadedTemplate.html)
add(new BookmarkablePageLink(this,"customLoadingPageLink", PageWithCustomLoading.class));
}
| public Index()
{
// normal link instead of an autolink as it looks a bit weird to refer
// to PageWithCustomLoading.html while the template has got a very
// different name (CustomLoadedTemplate.html)
add(new BookmarkablePageLink("customLoadingPageLink", PageWithCustomLoading.class));
}
|
public Page3(PageParameters parameters)
{
add(new Label(this,"id", parameters.getString("id")));
}
| public Page3(PageParameters parameters)
{
add(new Label("id", parameters.getString("id")));
}
|
public Home(final PageParameters parameters)
{
add(new Label(this,"message", "Hello world! Test: äöü"));
}
| public Home(final PageParameters parameters)
{
add(new Label("message", "Hello world! Test: äöü"));
}
|
public Home(final PageParameters parameters)
{
final String word = parameters.getString("word");
if (word == null)
{
getGame().newGame(5, new WordGenerator());
}
else
{
getGame().newGame(5, new WordGenerator(new String[] { word }));
}
add(new PageLink(this,"start", Guess.class));
}
| public Home(final PageParameters parameters)
{
final String word = parameters.getString("word");
if (word == null)
{
getGame().newGame(5, new WordGenerator());
}
else
{
getGame().newGame(5, new WordGenerator(new String[] { word }));
}
add(new PageLink("start", Guess.class));
}
|
public HelloWorld()
{
add(new Label(this,"message", "Hello World!"));
}
| public HelloWorld()
{
add(new Label("message", "Hello World!"));
}
|
public AuthenticatedWebPage()
{
// Create border and add it to the page
border = new LibraryApplicationBorder(this,"border");
border.setTransparentResolver(true);
super.add(border);
}
| public AuthenticatedWebPage()
{
// Create border and add it to the page
border = new LibraryApplicationBorder("border");
border.setTransparentResolver(true);
super.add(border);
}
|
public BookDetails(final Book book)
{
add(new Label(this,"title", book.getTitle()));
}
| public BookDetails(final Book book)
{
add(new Label("title", book.getTitle()));
}
|
public Page3(PageParameters parameters)
{
add(new Label(this,"bookmarkparameter", parameters.getString("bookmarkparameter")));
}
| public Page3(PageParameters parameters)
{
add(new Label("bookmarkparameter", parameters.getString("bookmarkparameter")));
}
|
public Popup()
{
add(new PopupCloseLink(this,"close"));
}
| public Popup()
{
add(new PopupCloseLink("close"));
}
|
public Page1()
{
add(new NavomaticBorder(this,"navomaticBorder"));
}
| public Page1()
{
add(new NavomaticBorder("navomaticBorder"));
}
|
public Page2()
{
add(new NavomaticBorder(this,"navomaticBorder"));
}
| public Page2()
{
add(new NavomaticBorder("navomaticBorder"));
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.