buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
protected Map normalizeMap(Map coll) {
Iterator iter = coll.entrySet().iterator();
Map newColl = null;
while (iter.hasNext()) {
Map.Entry entry = (Map.Entry) iter.next();
Object item = entry.getKey();
Object prop = entry.getValue();
if (newColl... | protected Map normalizeMap(Map coll) {
Iterator iter = coll.entrySet().iterator();
Map newColl = null;
while (iter.hasNext()) {
Map.Entry entry = (Map.Entry) iter.next();
Object item = entry.getKey();
Object prop = entry.getValue();
if (newColl... |
private Collection cloneCollection() {
try {
Collection newCol = (Collection) value.getClass().newInstance();
PropertyIterator iter = iterator();
while (iter.hasNext()) {
newCol.add(iter.next().clone());
}
return newCol;
} c... | private Collection cloneCollection() {
try {
Collection newCol = value.getClass().newInstance();
PropertyIterator iter = iterator();
while (iter.hasNext()) {
newCol.add(iter.next().clone());
}
return newCol;
} catch (Excepti... |
private Map cloneMap() {
try {
Map newCol = (Map) value.getClass().newInstance();
PropertyIterator iter = valueIterator();
while (iter.hasNext()) {
JMeterProperty item = iter.next();
newCol.put(item.getName(), item.clone());
}
... | private Map cloneMap() {
try {
Map newCol = value.getClass().newInstance();
PropertyIterator iter = valueIterator();
while (iter.hasNext()) {
JMeterProperty item = iter.next();
newCol.put(item.getName(), item.clone());
}
... |
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget ();
int width = 0, height = 0;
if (wHint == SWT.DEFAULT) {
if (columnCount != 0) {
for (int i=0; i<columnCount; i++) {
width += columns [i].getWidth ();
}
} else {
// int levelIndent = DISCLOSURE_COLUMN_LEVEL_INDENT;
// ... | public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget ();
int width = 0, height = 0;
if (wHint == SWT.DEFAULT) {
if (columnCount != 0) {
for (int i=0; i<columnCount; i++) {
width += columns [i].getWidth ();
}
} else {
// int levelIndent = DISCLOSURE_COLUMN_LEVEL_INDENT;
// ... |
public static String describeCommand(String[] args) {
if (args == null || args.length == 0) {
return "";
}
StringBuffer buf = new StringBuffer("Executing \'");
buf.append(args[0]);
buf.append("\'");
if (args.length > 0) {
buf.append(" with ");
... | public static String describeCommand(String[] args) {
if (args == null || args.length == 0) {
return "";
}
StringBuffer buf = new StringBuffer("Executing \'");
buf.append(args[0]);
buf.append("\'");
if (args.length > 1) {
buf.append(" with ");
... |
public void renderHead(final HtmlHeaderContainer container)
{
if (isHeadRendered() == false)
{
// Ask all behaviors if they have something to contribute to the
// header or body onLoad tag.
if (this.behaviors != null)
{
final Iterator iter = this.behaviors.iterator();
while (iter.hasNext())
... | public void renderHead(final HtmlHeaderContainer container)
{
if (isHeadRendered() == false)
{
// Ask all behaviors if they have something to contribute to the
// header or body onLoad tag.
if (this.behaviors != null)
{
final Iterator iter = this.behaviors.iterator();
while (iter.hasNext())
... |
public void init(String[] configFilesArgs, boolean visible) {
try {
UserPreferencesAdapter preferencesAdapter = new UserPreferencesStore();
browserProjectProperties = new BrowserProperties(preferencesAdapter);
TaskListManager taskListManager = new CompilerMessagesPanel();
BasicEditor ajdeEditor = new Bas... | public void init(String[] configFilesArgs, boolean visible) {
try {
UserPreferencesAdapter preferencesAdapter = new UserPreferencesStore(true);
browserProjectProperties = new BrowserProperties(preferencesAdapter);
TaskListManager taskListManager = new CompilerMessagesPanel();
BasicEditor ajdeEditor = new... |
public final boolean authorizeInstantiation(Class/* <Component> */componentClass)
{
if (componentClass.isAssignableFrom(Page.class))
{
if (!isAuthorized(componentClass))
{
throw new RestartResponseAtSignInPageException();
}
}
return true;
}
| public final boolean authorizeInstantiation(Class/* <Component> */componentClass)
{
if (Page.class.isAssignableFrom(componentClass))
{
if (!isAuthorized(componentClass))
{
throw new RestartResponseAtSignInPageException();
}
}
return true;
}
|
public void init(wicket.Application application)
{
try
{
String name = application.getName();
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
// register top level application object, but first check whether
// multiple instances of the same application (name) are running and
// if s... | public void init(wicket.Application application)
{
try
{
String name = application.getName();
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
// register top level application object, but first check whether
// multiple instances of the same application (name) are running and
// if s... |
public void testThisIsNotACircularReference() {
expectLog("thisIsNotACircularReference", "b is A/A");
}
| public void testThisIsNotACircularReference() {
expectLog("thisIsNotACircularReference", "b is A/A/A");
}
|
public void reset () {
super.reset();
// get state of namespace-declarations parameter.
fNamespaceDeclarations =
fConfiguration.getFeature(Constants.DOM_NAMESPACE_DECLARATIONS);
// DOM Filter
if (fSkippedElemStack != null) {
... | public void reset () {
super.reset();
// get state of namespace-declarations parameter.
fNamespaceDeclarations =
fConfiguration.getFeature(Constants.DOM_NAMESPACE_DECLARATIONS);
// DOM Filter
if (fSkippedElemStack != null) {
... |
package org.apache.wicket.extensions.breadcrumb;
/*
* 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... | package org.apache.wicket.extensions.breadcrumb;
/*
* 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... |
package org.apache.wicket.extensions.markup.html.tree;
/*
* 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 ... | package org.apache.wicket.extensions.markup.html.tree;
/*
* 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 ... |
package org.apache.wicket.extensions.markup.html.tree;
/*
* 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 ... | package org.apache.wicket.extensions.markup.html.tree;
/*
* 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 ... |
public static int VERSION(int major, int minor, int micro) {
return major * 100 + minor * 10 + micro;
}
| public static int VERSION(int major, int minor, int micro) {
return major << 16 + minor << 8 + micro;
}
|
private void executeChange(IProgressMonitor monitor, Change change) {
if (change == null) {
return;
}
IUndoManager manager = RefactoringCore.getUndoManager();
boolean successful = false;
Change undoChange = null;
try {
change.initializeValidat... | private void executeChange(IProgressMonitor monitor, Change change) {
if (change == null) {
return;
}
IUndoManager manager = RefactoringCore.getUndoManager();
boolean successful = false;
Change undoChange = null;
try {
change.initializeValidat... |
public void setUp() {
super.setUp(PObject.class);
}
| public void setUp() {
super.setUp(PObject.class, CLEAR_TABLES);
}
|
public final void writeString(final String string) throws IOException
{
final FileWriter out = new FileWriter(this);
try
{
out.write(string);
}
finally
{
out.close();
}
}
} | public final void write(final String string) throws IOException
{
final FileWriter out = new FileWriter(this);
try
{
out.write(string);
}
finally
{
out.close();
}
}
} |
abstract int I.getInt(); // implicitly public
before() : execution(int getInt()) && target(I) {
Tester.event("before-execution");
}
before() : call(int getInt()) && target(I) {
Tester.event("before-call");
}
}
| abstract int I.getInt(); // Error expected: Needs to be public
before() : execution(int getInt()) && target(I) {
Tester.event("before-execution");
}
before() : call(int getInt()) && target(I) {
Tester.event("before-call");
}
}
|
public void setImage (int index, Image image) {
checkWidget();
if (image != null && image.isDisposed ()) {
error(SWT.ERROR_INVALID_ARGUMENT);
}
int itemIndex = parent.indexOf (this);
if (itemIndex == -1) return;
if (!parent.itemHeight && image != null) {
parent.setItemHeight (image);
}
if (index == 0) {
... | public void setImage (int index, Image image) {
checkWidget();
if (image != null && image.isDisposed ()) {
error(SWT.ERROR_INVALID_ARGUMENT);
}
int itemIndex = parent.indexOf (this);
if (itemIndex == -1) return;
if (parent.imageBounds == null && image != null) {
parent.setItemHeight (image);
}
if (index == ... |
public void showSelection () {
checkWidget ();
int index = OS.SendMessage (handle, OS.LVM_GETNEXTITEM, -1, OS.LVNI_SELECTED);
if (index != -1) showItem (index);
}
String toolTipText (NMTTDISPINFO hdr) {
int hwndToolTip = OS.SendMessage (handle, OS.LVM_GETTOOLTIPS, 0, 0);
if (hwndToolTip == hdr.hwndFrom && toolTi... | public void showSelection () {
checkWidget ();
int index = OS.SendMessage (handle, OS.LVM_GETNEXTITEM, -1, OS.LVNI_SELECTED);
if (index != -1) showItem (index);
}
String toolTipText (NMTTDISPINFO hdr) {
int hwndToolTip = OS.SendMessage (handle, OS.LVM_GETTOOLTIPS, 0, 0);
if (hwndToolTip == hdr.hwndFrom && toolTi... |
public Spinner (Composite parent, int style) {
super (parent, checkStyle (style));
}
int callWindowProc (int hwnd, int msg, int wParam, int lParam) {
if (handle == 0) return 0;
if (hwnd == hwndText) {
return OS.CallWindowProc (EditProc, hwnd, msg, wParam, lParam);
}
if (hwnd == hwndUpDown) {
return OS.CallWin... | public Spinner (Composite parent, int style) {
super (parent, checkStyle (style));
}
int callWindowProc (int hwnd, int msg, int wParam, int lParam) {
if (handle == 0) return 0;
if (hwnd == hwndText) {
return OS.CallWindowProc (EditProc, hwnd, msg, wParam, lParam);
}
if (hwnd == hwndUpDown) {
return OS.CallWin... |
public final String getSharedResourceKey()
{
Application application = Application.get();
bind(application);
return SharedResources.path(application, scope, name, locale, style);
}
| public final String getSharedResourceKey()
{
Application application = Application.get();
bind(application);
return SharedResources.resourceKey(application, scope, name, locale, style);
}
|
private static void doReportTasksAvailability(PrintStream out) {
InputStream is = Main.class.getResourceAsStream(
MagicNames.TASKDEF_PROPERTIES_RESOURCE);
if (is == null) {
out.println("None available");
} else {
Properties props = new Properties();
... | private static void doReportTasksAvailability(PrintStream out) {
InputStream is = Main.class.getResourceAsStream(
MagicNames.TASKDEF_PROPERTIES_RESOURCE);
if (is == null) {
out.println("None available");
} else {
Properties props = new Properties();
... |
protected String getEventHandler()
{
final String formId = form.getMarkupId();
final String url = getCallbackUrl();
return getCallbackScript("wicketSubmitFormById('" + formId + "', '" + url + "' ", null,
null)
+ "; return true;";
}
| protected String getEventHandler()
{
final String formId = form.getMarkupId();
final String url = getCallbackUrl();
return getCallbackScript("wicketSubmitFormById('" + formId + "', '" + url + "' ", null,
null)
+ ";";
}
|
protected void populateItem(final ListItem listItem)
{
final ComponentData cdata = (ComponentData)listItem.getModelObject();
listItem.add(new Label("row", new Integer(listItem.getIndex() + 1)));
listItem.add(new Label("path", cdata.path));
listItem.add(new Label("type", cdata.type));
listItem... | protected void populateItem(final ListItem listItem)
{
final ComponentData cdata = (ComponentData)listItem.getModelObject();
listItem.add(new Label("row", Integer.toString(listItem.getIndex() + 1)));
listItem.add(new Label("path", cdata.path));
listItem.add(new Label("type", cdata.type));
lis... |
public boolean isVisible () {
checkWidget();
return isVisible && parent.isVisible () && hasFocus ();
}
void killFocus () {
OS.DestroyCaret ();
restoreIMEFont ();
}
void move () {
moved = false;
if (!OS.SetCaretPos (x, y)) return;
resizeIME ();
}
void resizeIME () {
if (!OS.IsDBLocale) return;
POINT ptCurren... | public boolean isVisible () {
checkWidget();
return isVisible && parent.isVisible () && hasFocus ();
}
void killFocus () {
OS.DestroyCaret ();
restoreIMEFont ();
}
void move () {
moved = false;
if (!OS.SetCaretPos (x, y)) return;
resizeIME ();
}
void resizeIME () {
if (!OS.IsDBLocale) return;
POINT ptCurren... |
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget ();
if (fixScrollWidth) setScrollWidth (null, true);
int bits = 0;
if (wHint != SWT.DEFAULT) {
bits |= wHint & 0xFFFF;
} else {
int width = 0;
int hwndHeader = OS.SendMessage (handle, OS.LVM_GETHEADER, 0, 0);
int count = OS.Send... | public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget ();
if (fixScrollWidth) setScrollWidth (null, true);
int bits = 0;
if (wHint != SWT.DEFAULT) {
bits |= wHint & 0xFFFF;
} else {
int width = 0;
int hwndHeader = OS.SendMessage (handle, OS.LVM_GETHEADER, 0, 0);
int count = OS.Send... |
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget ();
int width = 0, height = 0;
if (hwndHeader != 0) {
HDITEM hdItem = new HDITEM ();
hdItem.mask = OS.HDI_WIDTH;
int count = OS.SendMessage (hwndHeader, OS.HDM_GETITEMCOUNT, 0, 0);
for (int i=0; i<count; i++) {
OS.SendMessage (... | public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget ();
int width = 0, height = 0;
if (hwndHeader != 0) {
HDITEM hdItem = new HDITEM ();
hdItem.mask = OS.HDI_WIDTH;
int count = OS.SendMessage (hwndHeader, OS.HDM_GETITEMCOUNT, 0, 0);
for (int i=0; i<count; i++) {
OS.SendMessage (... |
public Component newAutoComponent(final MarkupContainer container, final String autoId,
PathInfo pathInfo)
{
if ((pathInfo.extension != null)
&& supportedPageExtensions.contains(pathInfo.extension))
{
// Obviously a href like href="myPkg.MyLabel.html" will do as
// well. Wicket will not throw... | public Component newAutoComponent(final MarkupContainer container, final String autoId,
PathInfo pathInfo)
{
if ((pathInfo.extension != null)
&& supportedPageExtensions.contains(pathInfo.extension))
{
// Obviously a href like href="myPkg.MyLabel.html" will do as
// well. Wicket will not throw... |
public RuntimeInvisibleParameterAnnotations(int nameIndex, int len, byte[] rvaData,ConstantPool cpool) {
super(Constants.ATTR_RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS,true,nameIndex,len,rvaData,cpool);
}
| public RuntimeInvisibleParameterAnnotations(int nameIndex, int len, byte[] rvaData,ConstantPool cpool) {
super(Constants.ATTR_RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS,false,nameIndex,len,rvaData,cpool);
}
|
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;
return computeNativeSize (handle, wHint, hHint, changed);
}
int /*long*/ eventHandle () {
return fixedHandle;
}
int enterExitHandl... | 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;
return computeNativeSize (handle, wHint, hHint, changed);
}
int /*long*/ eventHandle () {
return fixedHandle;
}
int /*long*/ enter... |
protected final static String[] DEFAULTEXCLUDES = {
"**/*~",
"**/#*#",
"**/%*%",
"**/CVS",
"**/CVS/*",
"**/.cvsignore"
};
| protected final static String[] DEFAULTEXCLUDES = {
"**/*~",
"**/#*#",
"**/%*%",
"**/CVS",
"**/CVS/**",
"**/.cvsignore"
};
|
public void testPR96220_GenericDecp() {
runTest("generic decp - simple");
verifyClassSignature("Basic","Ljava/lang/Object;LJ<Ljava/lang/Double;>;LI<Ljava/lang/Double;>;");
}
| public void testPR96220_GenericDecp() {
runTest("generic decp - simple");
verifyClassSignature("Basic","Ljava/lang/Object;PJ<Ljava/lang/Double;>;PI<Ljava/lang/Double;>;");
}
|
public void resolve(IScope scope) {
exception = exception.resolveBindings(scope, null, false, true);
ResolvedType excType = exception.getExactType().resolve(scope.getWorld());
if (excType != ResolvedType.MISSING) {
if (!scope.getWorld().getCoreType(UnresolvedType.THROWABLE).isAssignableFrom(exc... | public void resolve(IScope scope) {
exception = exception.resolveBindings(scope, null, false, true);
ResolvedType excType = exception.getExactType().resolve(scope.getWorld());
if (excType != ResolvedType.MISSING) {
if (!scope.getWorld().getCoreType(UnresolvedType.THROWABLE).isAssignableFrom(exc... |
public void testEnumFromHell() {
BcelWorld world = new BcelWorld();
JavaClass javaLangEnum = Repository.lookupClass("java/lang/Enum");
Signature.ClassSignature cSig = javaLangEnum.getGenericClassTypeSignature();
UnresolvedType superclass =
BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX(
... | public void testEnumFromHell() {
BcelWorld world = new BcelWorld();
JavaClass javaLangEnum = Repository.lookupClass("java/lang/Enum");
Signature.ClassSignature cSig = javaLangEnum.getGenericClassTypeSignature();
UnresolvedType superclass =
BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX(
... |
public String getBrowserType () {
return "safari"; //$NON-NLS-1$
}
| public String getBrowserType () {
return "webkit"; //$NON-NLS-1$
}
|
private void ensureAnnotationTypesRetrieved() {
if (annotationTypes == null) {
Annotation annos[] = method.getAnnotations();
annotationTypes = new ResolvedTypeX[annos.length];
annotations = new AnnotationX[annos.length];
for (int i = 0; i < annos.length; i++) {
Annotation annotation = an... | private void ensureAnnotationTypesRetrieved() {
if (annotationTypes == null || method.getAnnotations().length!=annotations.length) { // sometimes the list changes underneath us!
Annotation annos[] = method.getAnnotations();
annotationTypes = new ResolvedTypeX[annos.length];
annotations = new Annot... |
public String toString()
{
return "[class = " + getClass().getName() + ", id = " + id + "]";
}
| public String toString()
{
return "[Page class = " + getClass().getName() + ", id = " + id + "]";
}
|
public void setSelection (int value) {
checkWidget ();
OS.SendMessage (handle, OS.TBM_SETPOS, 1, value);
}
int widgetStyle () {
int bits = super.widgetStyle () | OS.WS_TABSTOP | OS.TBS_BOTH | OS.TBS_AUTOTICKS;
if ((style & SWT.HORIZONTAL) != 0) return bits | OS.TBS_HORZ | OS.TBS_DOWNISLEFT;
return bits | OS.TBS_V... | public void setSelection (int value) {
checkWidget ();
OS.SendMessage (handle, OS.TBM_SETPOS, 1, value);
}
int widgetStyle () {
int bits = super.widgetStyle () | OS.WS_TABSTOP | OS.TBS_BOTH | OS.TBS_AUTOTICKS;
if ((style & SWT.HORIZONTAL) != 0) return bits | OS.TBS_HORZ | OS.TBS_DOWNISLEFT;
return bits | OS.TBS_V... |
public IndexedParamUrlCodingStrategy(String mountPath, Class bookmarkablePageClass)
{
super(mountPath, bookmarkablePageClass, PageMap.DEFAULT_PAGEMAP_NAME);
}
| public IndexedParamUrlCodingStrategy(String mountPath, Class bookmarkablePageClass)
{
super(mountPath, bookmarkablePageClass, PageMap.DEFAULT_NAME);
}
|
public void onSubmit()
{
try
{
Page page = new SuccessPage();
page.info(getString("book.save.success", new Model(book)));
setResponsePage(page);
}
finally
{
getPage().getPageMap().removePage(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());
}
}
}
|
public InputStream getInputStream() throws ResourceStreamNotFoundException
{
final ServletContext context = ((WebApplication)RequestCycle.get().getApplication())
.getServletContext();
in = context.getResourceAsStream(url);
if (in == null)
{
throw new WicketRuntimeException("The requested resource was ... | public InputStream getInputStream() throws ResourceStreamNotFoundException
{
final ServletContext context = ((WebApplication)RequestCycle.get().getApplication())
.getServletContext();
in = context.getResourceAsStream(url);
if (in == null)
{
throw new ResourceStreamNotFoundException("The requested reso... |
public Rectangle computeTrim (int x, int y, int width, int height) {
checkWidget();
Rectangle trim = super.computeTrim(x, y, width, height);
NSRect rect = new NSRect ();
rect.x = trim.x;
rect.y = trim.y;
rect.width = trim.width;
rect.height = trim.height;
rect = NSWindow.static_frameRectForContentRect_styleMask... | public Rectangle computeTrim (int x, int y, int width, int height) {
checkWidget();
Rectangle trim = super.computeTrim(x, y, width, height);
NSRect rect = new NSRect ();
rect.x = trim.x;
rect.y = trim.y;
rect.width = trim.width;
rect.height = trim.height;
rect = NSWindow.static_frameRectForContentRect_styleMask... |
* public Object getObjectById(String id)
* {
* if(id == null) return null;
* return definitionDAO.loadDefinitionType(Long.valueOf(id));
* // note: more efficient would be to just look up the object in this list
* // as it is loaded allready
* }
* }
* </pre>
... | * public Object getObjectById(String id)
* {
* if(id == null) return null;
* return definitionDAO.loadDefinitionType(Long.valueOf(id));
* // note: more efficient would be to just look up the object in this list
* // as it is loaded allready
* }
* }
* </pre>
... |
protected Component newContentComponent(String componentId, BaseTree tree,
IModel<Object> model)
{
return new Label(componentId, getNodeTextModel(model));
}
};
}
| protected Component newContentComponent(String componentId, BaseTree tree,
IModel<?> model)
{
return new Label(componentId, getNodeTextModel(model));
}
};
}
|
public int /*long*/ handle;
int style, state;
Display display;
EventTable eventTable;
Object data;
/* Global state flags */
static final int DISPOSED = 1<<0;
static final int CANVAS = 1<<1;
static final int KEYED_DATA = 1<<2;
static final int HANDLE = 1<<3;
static final int DISABLED = 1<<4;
static final i... | public int /*long*/ handle;
int style, state;
Display display;
EventTable eventTable;
Object data;
/* Global state flags */
static final int DISPOSED = 1<<0;
static final int CANVAS = 1<<1;
static final int KEYED_DATA = 1<<2;
static final int HANDLE = 1<<3;
static final int DISABLED = 1<<4;
static final i... |
public int handle;
int style, state;
Display display;
EventTable eventTable;
Object data;
/* Global state flags */
static final int DISPOSED = 1<<0;
static final int CANVAS = 1<<1;
static final int KEYED_DATA = 1<<2;
static final int FOCUS_FORCED = 1<<3;
static final int BACKGROUND = 1<<4;
static final in... | public int handle;
int style, state;
Display display;
EventTable eventTable;
Object data;
/* Global state flags */
static final int DISPOSED = 1<<0;
static final int CANVAS = 1<<1;
static final int KEYED_DATA = 1<<2;
static final int FOCUS_FORCED = 1<<3;
static final int BACKGROUND = 1<<4;
static final in... |
public int handle;
int style, state;
Display display;
EventTable eventTable;
Object data;
/* Global state flags */
static final int DISPOSED = 1 << 0;
static final int CANVAS = 1 << 1;
static final int KEYED_DATA = 1 << 2;
static final int HANDLE = 1 << 3;
static final int DISABLED = 1 << 4;
static... | public int handle;
int style, state;
Display display;
EventTable eventTable;
Object data;
/* Global state flags */
static final int DISPOSED = 1 << 0;
static final int CANVAS = 1 << 1;
static final int KEYED_DATA = 1 << 2;
static final int HANDLE = 1 << 3;
static final int DISABLED = 1 << 4;
static... |
public int handle;
int jniRef;
int style, state;
Display display;
EventTable eventTable;
Object data;
/* Global state flags */
static final int DISPOSED = 1<<0;
static final int CANVAS = 1<<1;
static final int KEYED_DATA = 1<<2;
static final int DISABLED = 1<<3;
static final int HIDDEN = 1<<4;
/*... | public int handle;
int jniRef;
int style, state;
Display display;
EventTable eventTable;
Object data;
/* Global state flags */
static final int DISPOSED = 1<<0;
static final int CANVAS = 1<<1;
static final int KEYED_DATA = 1<<2;
static final int DISABLED = 1<<3;
static final int HIDDEN = 1<<4;
/*... |
protected final void renderComponentTag(ComponentTag tag)
{
if (needToRenderTag(tag))
{
// Apply behavior modifiers
List<? extends Behavior> behaviors = getBehaviors();
if ((behaviors != null) && !behaviors.isEmpty() && !tag.isClose() &&
(isIgnoreAttributeModifier() == false))
{
tag = tag.muta... | protected final void renderComponentTag(ComponentTag tag)
{
if (needToRenderTag(tag))
{
// Apply behavior modifiers
List<? extends Behavior> behaviors = getBehaviors();
if ((behaviors != null) && !behaviors.isEmpty() && !tag.isClose() &&
(isIgnoreAttributeModifier() == false))
{
tag = tag.muta... |
public IRemoteServiceContainer[] findProxyContainers(IServiceID serviceID,
IRemoteServiceEndpointDescription endpointDescription) {
trace("findProxyContainers", "serviceID=" + serviceID //$NON-NLS-1$ //$NON-NLS-2$
+ " endpointDescription=" + endpointDescription); //$NON-NLS-1$
// Get the endpointID
ID e... | public IRemoteServiceContainer[] findProxyContainers(IServiceID serviceID,
IRemoteServiceEndpointDescription endpointDescription) {
trace("findProxyContainers", "serviceID=" + serviceID //$NON-NLS-1$ //$NON-NLS-2$
+ " endpointDescription=" + endpointDescription); //$NON-NLS-1$
// Get the endpointID
ID e... |
public URI createDefaultURI() {
return URI.create("foo://" + getAuthority() + "/");
}
| public URI createDefaultURI() {
return URI.create(PROTOCOL + "://" + getAuthority() + "/");
}
|
public TrayItem [] getItems () {
checkWidget ();
TrayItem [] result = new TrayItem [itemCount];
System.arraycopy (items, 0, result, 0, result.length);
return result;
}
void releaseChildren (boolean destroy) {
if (items != null) {
for (int i=0; i<items.length; i++) {
TrayItem item = items [i];
if (item != ... | public TrayItem [] getItems () {
checkWidget ();
TrayItem [] result = new TrayItem [itemCount];
System.arraycopy (items, 0, result, 0, result.length);
return result;
}
void releaseChildren (boolean destroy) {
if (items != null) {
for (int i=0; i<items.length; i++) {
TrayItem item = items [i];
if (item != ... |
public Caret getCaret () {
checkWidget();
return caret;
}
Point getIMCaretPos () {
if (caret == null) return super.getIMCaretPos ();
return new Point (caret.x, caret.y);
}
int /*long*/ gtk_expose_event (int /*long*/ widget, int /*long*/ event) {
if ((state & OBSCURED) != 0) return 0;
boolean isFocus = caret != ... | public Caret getCaret () {
checkWidget();
return caret;
}
Point getIMCaretPos () {
if (caret == null) return super.getIMCaretPos ();
return new Point (caret.x, caret.y);
}
int /*long*/ gtk_expose_event (int /*long*/ widget, int /*long*/ event) {
if ((state & OBSCURED) != 0) return 0;
boolean isFocus = caret != ... |
public void layout (Control [] changed) {
checkWidget ();
if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT);
for (int i=0; i<changed.length; i++) {
Control control = changed [i];
if (control == null) error (SWT.ERROR_INVALID_ARGUMENT);
if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
bool... | public void layout (Control [] changed) {
checkWidget ();
if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT);
for (int i=0; i<changed.length; i++) {
Control control = changed [i];
if (control == null) error (SWT.ERROR_INVALID_ARGUMENT);
if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
bool... |
public boolean isReparentable () {
checkWidget ();
return false;
}
boolean isTabGroup () {
return true;
}
boolean isTabItem () {
return false;
}
Decorations menuShell () {
return this;
}
void removeMenu (Menu menu) {
if (menus == null) return;
for (int i=0; i<menus.length; i++) {
if (menus [i] == menu) {
... | public boolean isReparentable () {
checkWidget ();
return false;
}
boolean isTabGroup () {
return true;
}
boolean isTabItem () {
return false;
}
Decorations menuShell () {
return this;
}
void removeMenu (Menu menu) {
if (menus == null) return;
for (int i=0; i<menus.length; i++) {
if (menus [i] == menu) {
... |
public boolean isVisible () {
checkWidget();
return getVisible ();
}
int /*long*/ menuPositionProc (int /*long*/ menu, int /*long*/ x, int /*long*/ y, int /*long*/ push_in, int /*long*/ user_data) {
/*
* Feature in GTK. The menu position function sets the position of the
* top-left pixel of the menu. If the men... | public boolean isVisible () {
checkWidget();
return getVisible ();
}
int /*long*/ menuPositionProc (int /*long*/ menu, int /*long*/ x, int /*long*/ y, int /*long*/ push_in, int /*long*/ user_data) {
/*
* Feature in GTK. The menu position function sets the position of the
* top-left pixel of the menu. If the men... |
public boolean isEnabled () {
return getEnabled () && parent.isEnabled ();
}
void releaseChildren (boolean destroy) {
if (menu != null) {
menu.releaseChildren (false);
menu = null;
}
super.releaseChildren (destroy);
}
| public boolean isEnabled () {
return getEnabled () && parent.isEnabled ();
}
void releaseChildren (boolean destroy) {
if (menu != null) {
menu.release (false);
menu = null;
}
super.releaseChildren (destroy);
}
|
public Rectangle getBounds () {
checkWidget ();
int [] x = new int [1], y = new int [1];
OS.gtk_window_get_position (shellHandle, x, y);
int width = OS.GTK_WIDGET_WIDTH (scrolledHandle);
int height = OS.GTK_WIDGET_HEIGHT (scrolledHandle);
if (menuBar != null) {
int /*long*/ barHandle = menuBar.handle;
height... | public Rectangle getBounds () {
checkWidget ();
int [] x = new int [1], y = new int [1];
OS.gtk_window_get_position (shellHandle, x, y);
int width = OS.GTK_WIDGET_WIDTH (scrolledHandle);
int height = OS.GTK_WIDGET_HEIGHT (scrolledHandle);
if (menuBar != null) {
int /*long*/ barHandle = menuBar.handle;
height... |
public int indexOf (TabItem item) {
checkWidget();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
int /*long*/ list = OS.gtk_container_get_children (handle);
if (list == 0) return -1;
int count = OS.g_list_length (list);
OS.g_list_free (list);
for (int i=0; i<count; i++) {
if (items [i] == item) return i;
... | public int indexOf (TabItem item) {
checkWidget();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
int /*long*/ list = OS.gtk_container_get_children (handle);
if (list == 0) return -1;
int count = OS.g_list_length (list);
OS.g_list_free (list);
for (int i=0; i<count; i++) {
if (items [i] == item) return i;
... |
public int indexOf (ToolItem item) {
checkWidget();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
ToolItem [] items = getItems ();
for (int i=0; i<items.length; i++) {
if (item == items[i]) return i;
}
return -1;
}
boolean mnemonicHit (char key) {
ToolItem [] items = getItems ();
for (int i=0; i<items.l... | public int indexOf (ToolItem item) {
checkWidget();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
ToolItem [] items = getItems ();
for (int i=0; i<items.length; i++) {
if (item == items[i]) return i;
}
return -1;
}
boolean mnemonicHit (char key) {
ToolItem [] items = getItems ();
for (int i=0; i<items.l... |
public Caret getCaret () {
checkWidget();
return caret;
}
Caret getIMCaret () {
return caret;
}
void redrawWidget (int x, int y, int width, int height, boolean redrawAll, boolean allChildren) {
boolean isFocus = caret != null && caret.isFocusCaret ();
if (isFocus) caret.killFocus ();
super.redrawWidget (x, y, wid... | public Caret getCaret () {
checkWidget();
return caret;
}
Caret getIMCaret () {
return caret;
}
void redrawWidget (int x, int y, int width, int height, boolean redrawAll, boolean allChildren) {
boolean isFocus = caret != null && caret.isFocusCaret ();
if (isFocus) caret.killFocus ();
super.redrawWidget (x, y, wid... |
public void layout (Control [] changed) {
checkWidget ();
if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT);
for (int i=0; i<changed.length; i++) {
Control control = changed [i];
if (control == null) error (SWT.ERROR_INVALID_ARGUMENT);
if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
bool... | public void layout (Control [] changed) {
checkWidget ();
if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT);
for (int i=0; i<changed.length; i++) {
Control control = changed [i];
if (control == null) error (SWT.ERROR_INVALID_ARGUMENT);
if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
bool... |
public boolean isVisible () {
checkWidget();
return getVisible ();
}
void releaseChildren (boolean destroy) {
MenuItem [] items = getItems ();
for (int i=0; i<items.length; i++) {
MenuItem item = items [i];
if (item != null && !item.isDisposed ()) {
item.releaseChildren (false);
}
}
super.releaseChildren... | public boolean isVisible () {
checkWidget();
return getVisible ();
}
void releaseChildren (boolean destroy) {
MenuItem [] items = getItems ();
for (int i=0; i<items.length; i++) {
MenuItem item = items [i];
if (item != null && !item.isDisposed ()) {
item.release (false);
}
}
super.releaseChildren (destro... |
public boolean isEnabled () {
return getEnabled () && parent.isEnabled ();
}
String keysymName (int keysym) {
switch (keysym) {
case SWT.BS: return "BackSpace";
case SWT.TAB: return "Tab";
/*
* Bug in Motif. For some reason, the XmNaccelerator
* resource will not accept XK_Linefeed and prints Xt
* warning... | public boolean isEnabled () {
return getEnabled () && parent.isEnabled ();
}
String keysymName (int keysym) {
switch (keysym) {
case SWT.BS: return "BackSpace";
case SWT.TAB: return "Tab";
/*
* Bug in Motif. For some reason, the XmNaccelerator
* resource will not accept XK_Linefeed and prints Xt
* warning... |
public void open () {
checkWidget();
bringToTop (false);
setVisible (true);
if (isDisposed ()) return;
if (!restoreFocus () && !traverseGroup (true)) setFocus ();
}
void propagateWidget (boolean enabled) {
super.propagateWidget (enabled);
/* Allow the busy cursor to be displayed in a disabled shell */
int xCurs... | public void open () {
checkWidget();
bringToTop (false);
setVisible (true);
if (isDisposed ()) return;
if (!restoreFocus () && !traverseGroup (true)) setFocus ();
}
void propagateWidget (boolean enabled) {
super.propagateWidget (enabled);
/* Allow the busy cursor to be displayed in a disabled shell */
int xCurs... |
public int indexOf (ToolItem item) {
checkWidget();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
if (item.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
for (int i=0; i<itemCount; i++) {
if (items [i] == item) return i;
}
return -1;
}
int [] layoutHorizontal (int width, int height, boolean resize) {
in... | public int indexOf (ToolItem item) {
checkWidget();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
if (item.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
for (int i=0; i<itemCount; i++) {
if (items [i] == item) return i;
}
return -1;
}
int [] layoutHorizontal (int width, int height, boolean resize) {
in... |
public Caret getCaret () {
checkWidget ();
return caret;
}
void releaseChildren (boolean destroy) {
if (caret != null) {
caret.releaseChildren (false);
caret = null;
}
super.releaseChildren (destroy);
}
| public Caret getCaret () {
checkWidget ();
return caret;
}
void releaseChildren (boolean destroy) {
if (caret != null) {
caret.release (false);
caret = null;
}
super.releaseChildren (destroy);
}
|
public void layout (Control [] changed) {
checkWidget ();
if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT);
for (int i=0; i<changed.length; i++) {
Control control = changed [i];
if (control == null) error (SWT.ERROR_INVALID_ARGUMENT);
if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
bool... | public void layout (Control [] changed) {
checkWidget ();
if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT);
for (int i=0; i<changed.length; i++) {
Control control = changed [i];
if (control == null) error (SWT.ERROR_INVALID_ARGUMENT);
if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
bool... |
public int indexOf (CoolItem item) {
checkWidget ();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
if (item.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT);
return OS.SendMessage (handle, OS.RB_IDTOINDEX, item.id, 0);
}
void resizeToPreferredWidth (int index) {
/*
* Bug in Windows. When RB_GETBANDBORDERS ... | public int indexOf (CoolItem item) {
checkWidget ();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
if (item.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT);
return OS.SendMessage (handle, OS.RB_IDTOINDEX, item.id, 0);
}
void resizeToPreferredWidth (int index) {
/*
* Bug in Windows. When RB_GETBANDBORDERS ... |
public boolean isReparentable () {
checkWidget ();
/*
* Feature in Windows. Calling SetParent() for a shell causes
* a kind of fake MDI to happen. It doesn't work well on Windows
* and is not supported on the other platforms. The fix is to
* disallow the SetParent().
*/
return false;
}
boolean isTabGroup ()... | public boolean isReparentable () {
checkWidget ();
/*
* Feature in Windows. Calling SetParent() for a shell causes
* a kind of fake MDI to happen. It doesn't work well on Windows
* and is not supported on the other platforms. The fix is to
* disallow the SetParent().
*/
return false;
}
boolean isTabGroup ()... |
public boolean isVisible () {
checkWidget ();
return getVisible ();
}
void redraw () {
if (!isVisible ()) return;
if ((style & SWT.BAR) != 0) {
display.addBar (this);
} else {
update ();
}
}
void releaseHandle () {
super.releaseHandle ();
handle = hwndCB = 0;
}
void releaseChildren (boolean destroy) {
M... | public boolean isVisible () {
checkWidget ();
return getVisible ();
}
void redraw () {
if (!isVisible ()) return;
if ((style & SWT.BAR) != 0) {
display.addBar (this);
} else {
update ();
}
}
void releaseHandle () {
super.releaseHandle ();
handle = hwndCB = 0;
}
void releaseChildren (boolean destroy) {
M... |
public int indexOf (TabItem item) {
checkWidget ();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
int count = OS.SendMessage (handle, OS.TCM_GETITEMCOUNT, 0, 0);
for (int i=0; i<count; i++) {
if (items [i] == item) return i;
}
return -1;
}
Point minimumSize (int wHint, int hHint, boolean flushCache) {
Co... | public int indexOf (TabItem item) {
checkWidget ();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
int count = OS.SendMessage (handle, OS.TCM_GETITEMCOUNT, 0, 0);
for (int i=0; i<count; i++) {
if (items [i] == item) return i;
}
return -1;
}
Point minimumSize (int wHint, int hHint, boolean flushCache) {
Co... |
public int indexOf (ToolItem item) {
checkWidget ();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
if (item.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
return OS.SendMessage (handle, OS.TB_COMMANDTOINDEX, item.id, 0);
}
void layoutItems () {
if ((style & SWT.WRAP) != 0) {
OS.SendMessage (handle, OS.TB... | public int indexOf (ToolItem item) {
checkWidget ();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
if (item.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
return OS.SendMessage (handle, OS.TB_COMMANDTOINDEX, item.id, 0);
}
void layoutItems () {
if ((style & SWT.WRAP) != 0) {
OS.SendMessage (handle, OS.TB... |
private int hashCode = 0;
private ClassLoader classLoader = null;
| private int hashCode = 0;
private transient ClassLoader classLoader = null;
|
public void execute() throws BuildException {
File savedDir = dir;
String savedAntFile = antFile;
Vector locals = new Vector(targets);
try {
if (newProject == null) {
reinit();
}
if ((dir == null) && (inheritAll)) {
... | public void execute() throws BuildException {
File savedDir = dir;
String savedAntFile = antFile;
Vector locals = new Vector(targets);
try {
if (newProject == null) {
reinit();
}
if ((dir == null) && (inheritAll)) {
... |
public void drawText (String string, int x, int y, int flags) {
if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
if (string == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
if (string.length() == 0) return;
int /*long*/ gdipGraphics = data.gdipGraphics;
if (gdipGraphics != 0) {
checkGC(FONT | FOREGROUND | ((f... | public void drawText (String string, int x, int y, int flags) {
if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
if (string == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
if (string.length() == 0) return;
int /*long*/ gdipGraphics = data.gdipGraphics;
if (gdipGraphics != 0) {
checkGC(FONT | FOREGROUND | ((f... |
protected void initializeTableModel() {
tableModel = new ObjectTableModel(new String[] { "Library" },
new Functor[0] , new Functor[0] , // i.e. bypass the Functors
new Class[] { String.class }, false);
}
| protected void initializeTableModel() {
tableModel = new ObjectTableModel(new String[] { "Library" },
new Functor[0] , new Functor[0] , // i.e. bypass the Functors
new Class[] { String.class });
}
|
protected void initializeTableModel() {
tableModel = new ObjectTableModel(new String[] {
ArgumentsPanel.COLUMN_RESOURCE_NAMES_0, ArgumentsPanel.COLUMN_RESOURCE_NAMES_1, ENCODE_OR_NOT, INCLUDE_EQUALS },
HTTPArgument.class,
new Functor[] {
new Fu... | protected void initializeTableModel() {
tableModel = new ObjectTableModel(new String[] {
ArgumentsPanel.COLUMN_RESOURCE_NAMES_0, ArgumentsPanel.COLUMN_RESOURCE_NAMES_1, ENCODE_OR_NOT, INCLUDE_EQUALS },
HTTPArgument.class,
new Functor[] {
new Fu... |
private static void populateElementTypes()
{
// This class looks like it is due to some strange
// (read: inconsistent) JVM bugs.
// Initially all this code was placed in the static constructor,
// but that caused some early JVMs (1.1) to go mad, and if a
// class could n... | private synchronized static void populateElementTypes()
{
// This class looks like it is due to some strange
// (read: inconsistent) JVM bugs.
// Initially all this code was placed in the static constructor,
// but that caused some early JVMs (1.1) to go mad, and if a
// ... |
public Table() {
super();
}
/**
* for now the method isn't implemented. I still need to decide how
* it should be implemented.
*/
@SuppressWarnings("unchecked") // TODO fix this when there is a real implementation
@Override
| public Table() {
super();
}
/**
* for now the method isn't implemented. I still need to decide how
* it should be implemented.
*/
@SuppressWarnings("rawtypes") // TODO fix this when there is a real implementation
@Override
|
public static boolean resondsTo(Object o, String methodName)
throws BuildException {
try {
Method[] methods = o.getClass().getMethods();
for(int i=0; i<methods.length; i++) {
if(methods[i].getName() == methodName) {
return true;
... | public static boolean respondsTo(Object o, String methodName)
throws BuildException {
try {
Method[] methods = o.getClass().getMethods();
for(int i=0; i<methods.length; i++) {
if(methods[i].getName() == methodName) {
return true;
... |
public MultiLineLabel(MarkupContainer parent, final String id, String label)
{
this(parent, id, new Model(label));
}
| public MultiLineLabel(MarkupContainer parent, final String id, String label)
{
this(parent, id, new Model<String>(label));
}
|
public Image(MarkupContainer parent, final String id, final String string)
{
this(parent, id, new Model(string));
}
| public Image(MarkupContainer parent, final String id, final String string)
{
this(parent, id, new Model<String>(string));
}
|
public Include(MarkupContainer parent, String id, String modelObject)
{
super(parent, id, new Model(modelObject));
}
| public Include(MarkupContainer parent, String id, String modelObject)
{
super(parent, id, new Model<String>(modelObject));
}
|
public final void respond(final RequestCycle requestCycle, final RuntimeException e)
{
// If application doesn't want debug info showing up for users
final Session session = requestCycle.getSession();
final Application application = session.getApplication();
final IExceptionSettings settings = application.get... | public final void respond(final RequestCycle requestCycle, final RuntimeException e)
{
// If application doesn't want debug info showing up for users
final Session session = requestCycle.getSession();
final Application application = session.getApplication();
final IExceptionSettings settings = application.get... |
public static void main (String[] args) {
String ERROR_STRING = "error aspect 'ataspectj.ltwreweavable.AspectReweavableLogging' woven into 'ataspectj.ltwreweavable.MainReweavableLogging' must be declared in an aop.xml file.";
if(Boolean.getBoolean("aspectDeclared")){
//if the aspect is d... | public static void main (String[] args) {
String ERROR_STRING = "error aspect 'ataspectj.ltwreweavable.AspectReweavableLogging' woven into 'ataspectj.ltwreweavable.MainReweavableLogging' must be defined to the weaver (placed on the aspectpath, or defined in an aop.xml file if using LTW).";
if(Boolea... |
public void deselectAll () {
checkWidget ();
text.setText(""); //$NON-NLS-1$
list.deselectAll ();
}
void dropDown (boolean drop) {
if (drop == isDropped ()) return;
if (!drop) {
popup.setVisible (false);
if (!isDisposed () && isFocusControl()) {
text.setFocus();
}
return;
}
if (getShell() != popup.g... | public void deselectAll () {
checkWidget ();
text.setText(""); //$NON-NLS-1$
list.deselectAll ();
}
void dropDown (boolean drop) {
if (drop == isDropped () || !isVisible()) return;
if (!drop) {
popup.setVisible (false);
if (!isDisposed () && isFocusControl()) {
text.setFocus();
}
return;
}
if (getSh... |
public void selectAll () {
checkWidget ();
if ((style & SWT.SINGLE) != 0) return;
LVITEM lvItem = new LVITEM ();
lvItem.mask = OS.LVIF_STATE;
lvItem.state = OS.LVIS_SELECTED;
lvItem.stateMask = OS.LVIS_SELECTED;
ignoreSelect = true;
OS.SendMessage (handle, OS.LVM_SETITEMSTATE, -1, lvItem);
ignoreSelect = false... | public void selectAll () {
checkWidget ();
if ((style & SWT.SINGLE) != 0) return;
LVITEM lvItem = new LVITEM ();
lvItem.mask = OS.LVIF_STATE;
lvItem.state = OS.LVIS_SELECTED;
lvItem.stateMask = OS.LVIS_SELECTED;
ignoreSelect = true;
OS.SendMessage (handle, OS.LVM_SETITEMSTATE, -1, lvItem);
ignoreSelect = false... |
private static String helpPage =
"file://"
+ JMeterUtils.getJMeterHome()
| private static String helpPage =
"file:///"
+ JMeterUtils.getJMeterHome()
|
public void run() {
activate();
Message reply;
while (isActive()) {
reply = null;
try {
reply = consumer.receive(5000);
if (reply != null) {
if (log.isDebugEnabled()) {
log.debug("Received m... | public void run() {
activate();
Message reply;
while (isActive()) {
reply = null;
try {
reply = consumer.receive(5000);
if (reply != null) {
if (log.isDebugEnabled()) {
log.debug("Received m... |
protected Comparable getObjectToCompare(final SortableListViewHeader header, final Object object)
{
final String name = header.getName();
if (name.equals("city"))
{
return ((ReportableListObject)object).getCity();
}
if (... | protected Comparable getObjectToCompare(final SortableListViewHeader header, final Object object)
{
final String name = header.getId();
if (name.equals("city"))
{
return ((ReportableListObject)object).getCity();
}
if (na... |
public String toString()
{
return "[FeedbackMessage message = \"" + getMessage() + "\", reporter = "
+ getReporter().getName() + ", level = " + getLevelAsString() + "]";
}
| public String toString()
{
return "[FeedbackMessage message = \"" + getMessage() + "\", reporter = "
+ getReporter().getId() + ", level = " + getLevelAsString() + "]";
}
|
public ComponentTag mutable()
{
if (xmlTag.isMutable())
{
return this;
}
else
{
final ComponentWicketTag tag = new ComponentWicketTag(xmlTag.mutable());
tag.setComponentName(getComponentName());
return tag;
}
}
| public ComponentTag mutable()
{
if (xmlTag.isMutable())
{
return this;
}
else
{
final ComponentWicketTag tag = new ComponentWicketTag(xmlTag.mutable());
tag.setComponentId(getComponentId());
return tag;
}
}
|
private ComponentTag handleNext(ComponentTag tag) throws ParseException
{
// Ignore all close tags. Wicket params tags must not be close tags
// and components preceding the param tag can not be close tags
// either.
if (tag.isClose())
{
return tag;
}
// Wicket component tags will have a component n... | private ComponentTag handleNext(ComponentTag tag) throws ParseException
{
// Ignore all close tags. Wicket params tags must not be close tags
// and components preceding the param tag can not be close tags
// either.
if (tag.isClose())
{
return tag;
}
// Wicket component tags will have a component n... |
protected String ognlExpression(final Component component)
{
return component.getName();
}
| protected String ognlExpression(final Component component)
{
return component.getId();
}
|
public String getHelp() {
StringBuffer help = new StringBuffer();
help.append(NEW_LINE);
help.append("---");
help.append("ECF Commands");
help.append("---");
help.append(NEW_LINE);
help.append("\tlistfactories -- List all container factories.");
help.append(NEW_LINE);
help.append("\tlistcontainers [v... | public String getHelp() {
StringBuffer help = new StringBuffer();
help.append(NEW_LINE);
help.append("---");
help.append("Eclipse Communication Framework (ECF) Commands");
help.append("---");
help.append(NEW_LINE);
help.append("\tlistfactories -- List all container factories.");
help.append(NEW_LINE);
... |
public final String urlFor(final Component component, final Class listenerInterface)
{
// The page is not stateless if it is not an IRedirectListener
if (!IRedirectListener.class.isAssignableFrom(listenerInterface))
{
stateless = false;
}
String interfaceName = Classes.name(listenerInterface);
Request... | public final String urlFor(final Component component, final Class listenerInterface)
{
// The page is not stateless if it is not an IRedirectListener
//if (!IRedirectListener.class.isAssignableFrom(listenerInterface))
{
stateless = false;
}
String interfaceName = Classes.name(listenerInterface);
Reque... |
public final Markup loadMarkup(final MarkupContainer container,
final MarkupResourceStream markupResourceStream, final IMarkupLoader baseLoader,
final boolean enforceReload) throws IOException, ResourceStreamNotFoundException
{
// read and parse the markup
Markup markup = baseLoader.loadMarkup(container, mark... | public final Markup loadMarkup(final MarkupContainer container,
final MarkupResourceStream markupResourceStream, final IMarkupLoader baseLoader,
final boolean enforceReload) throws IOException, ResourceStreamNotFoundException
{
// read and parse the markup
Markup markup = baseLoader.loadMarkup(container, mark... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.