buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public static final int sizeof = OS.IsUnicode ? 92 : 60; }
public static final int sizeof = OS.IsUnicode ? OS.LOGFONTW_sizeof () : OS.LOGFONTA_sizeof (); }
public static final int sizeof = 60; }
public static final int sizeof = OS.LOGFONTA_sizeof (); }
public static final int sizeof = 92; }
public static final int sizeof = OS.LOGFONTW_sizeof (); }
public static final int sizeof = 16; }
public static final int sizeof = OS.LOGPEN_sizeof (); }
public static int sizeof = 20; }
public static int sizeof = OS.LVHITTESTINFO_sizeof (); }
public static final int sizeof = 16; }
public static final int sizeof = OS.MARGINS_sizeof (); }
public static final int sizeof = 40; }
public static final int sizeof = OS.MINMAXINFO_sizeof (); }
public static final int sizeof = 40; }
public static final int sizeof = OS.MONITORINFO_sizeof (); }
public static final int sizeof = 4292; }
public static final int sizeof = OS.NMLINK_sizeof (); }
public static final int sizeof = 52; }
public static final int sizeof = OS.NMREBARCHILDSIZE_sizeof (); }
public static int sizeof = 24; }
public static int sizeof = OS.NMRGINFO_sizeof (); }
public static final int sizeof = 24; }
public static final int sizeof = OS.NMTBHOTITEM_sizeof (); }
public static final int sizeof = 108; }
public static final int sizeof = OS.NMTTDISPINFOA_sizeof (); }
public static final int sizeof = 188; }
public static final int sizeof = OS.NMTTDISPINFOW_sizeof (); }
public static final int sizeof = OS.IsWinCE ? 56 : 60; }
public static final int sizeof = OS.NMTVCUSTOMDRAW_sizeof (); }
public static final int sizeof = 20; }
public static final int sizeof = OS.NMUPDOWN_sizeof (); }
public static final int sizeof = OS.IsUnicode ? 500 : 340; }
public static final int sizeof = OS.IsUnicode ? OS.NONCLIENTMETRICSW_sizeof () : OS.NONCLIENTMETRICSA_sizeof (); }
public static final int sizeof = 340; }
public static final int sizeof = OS.NONCLIENTMETRICSA_sizeof (); }
public static final int sizeof = 500; }
public static final int sizeof = OS.NONCLIENTMETRICSW_sizeof (); }
public static /*final*/ int sizeof = OS.IsUnicode ? 276 : 148; }
public static /*final*/ int sizeof = OS.IsUnicode ? OS.OSVERSIONINFOW_sizeof () : OS.OSVERSIONINFOA_sizeof (); }
public static final int sizeof = 148; }
public static final int sizeof = OS.OSVERSIONINFOA_sizeof (); }
public static final int sizeof = 276; }
public static final int sizeof = OS.OSVERSIONINFOW_sizeof (); }
public static final int sizeof = 8; }
public static final int sizeof = OS.POINT_sizeof (); }
public static final int sizeof = 16; }
public static final int sizeof = OS.RECT_sizeof (); }
public static final int sizeof = 4; }
public static final int sizeof = OS.SCRIPT_ANALYSIS_sizeof (); }
public static final int sizeof = 4; }
public static final int sizeof = OS.SCRIPT_CONTROL_sizeof (); }
public static final int sizeof = 16; }
public static final int sizeof = OS.SCRIPT_FONTPROPERTIES_sizeof (); }
public static final int sizeof = 8; }
public static final int sizeof = OS.SCRIPT_ITEM_sizeof (); }
public static final int sizeof = 1; }
public static final int sizeof = OS.SCRIPT_LOGATTR_sizeof (); }
public static final int sizeof = 8; }
public static final int sizeof = OS.SCRIPT_PROPERTIES_sizeof (); }
public static final int sizeof = 2; }
public static final int sizeof = OS.SCRIPT_STATE_sizeof (); }
public static final int sizeof = 28; }
public static final int sizeof = OS.SCROLLINFO_sizeof (); }
public static final int sizeof = 8; }
public static final int sizeof = OS.SIZE_sizeof (); }
public static final int sizeof = OS.IsUnicode ? 60 : 56; }
public static final int sizeof = OS.IsUnicode ? OS.TEXTMETRICW_sizeof(): OS.TEXTMETRICA_sizeof (); }
public static final int sizeof = 56; }
public static final int sizeof = OS.TEXTMETRICA_sizeof (); }
public static final int sizeof = 60; }
public static final int sizeof = OS.TEXTMETRICW_sizeof (); }
public static final int sizeof = 16; }
public static final int sizeof = OS.TRIVERTEX_sizeof (); }
public static final int sizeof = 44; }
public static final int sizeof = OS.TVITEMEX_sizeof (); }
public static final int sizeof = 8; }
public static final int sizeof = OS.UDACCEL_sizeof (); }
public static final int sizeof = 44; }
public static final int sizeof = OS.WINDOWPLACEMENT_sizeof (); }
public MarkupInheritanceBaseBase_11() { WebMarkupContainer css = new WebMarkupContainer("css"); css.add(new AttributeModifier("src", true, new Model("myStyle.css"))); add(css); add(new Label("label1", "base label 1")); add(new Label("label2", "base label 2")); }
public MarkupInheritanceBaseBase_11() { WebMarkupContainer css = new WebMarkupContainer("css"); css.add(new AttributeModifier("src", true, new Model<String>("myStyle.css"))); add(css); add(new Label("label1", "base label 1")); add(new Label("label2", "base label 2")); }
public MarkupInheritanceBase_10() { WebMarkupContainer css = new WebMarkupContainer("css"); css.add(new AttributeModifier("src", true, new Model("myStyle.css"))); add(css); add(new Label("label1", "base label 1")); add(new Label("label2", "base label 2")); }
public MarkupInheritanceBase_10() { WebMarkupContainer css = new WebMarkupContainer("css"); css.add(new AttributeModifier("src", true, new Model<String>("myStyle.css"))); add(css); add(new Label("label1", "base label 1")); add(new Label("label2", "base label 2")); }
public SimplePage() { add(new Label("myLabel", "Test Label")); WebMarkupContainer container = new WebMarkupContainer("test"); container.setRenderBodyOnly(true); add(container); container.add(new Label("myLabel2", "Test Label2")); Panel panel = new SimplePanel("myPanel"); panel.setRenderBodyOnly(true)...
public SimplePage() { add(new Label("myLabel", "Test Label")); WebMarkupContainer container = new WebMarkupContainer("test"); container.setRenderBodyOnly(true); add(container); container.add(new Label("myLabel2", "Test Label2")); Panel panel = new SimplePanel("myPanel"); panel.setRenderBodyOnly(true)...
public SimplePage_14() { WebMarkupContainer container = new WebMarkupContainer("html"); container.add(new AttributeModifier("lang", new Model("de"))); container.add(new Label("label", "label")); add(container); }
public SimplePage_14() { WebMarkupContainer container = new WebMarkupContainer("html"); container.add(new AttributeModifier("lang", new Model<String>("de"))); container.add(new Label("label", "label")); add(container); }
public MarkupComponentBorderTestPage() { add(new Label("label", new Model("label")).setComponentBorder(new BeforeAndAfterBorder())); }
public MarkupComponentBorderTestPage() { add(new Label("label", new Model<String>("label")).setComponentBorder(new BeforeAndAfterBorder())); }
public void add(SampleResult sample) { textArea.append((String)sample.getSampleLabel()); textArea.append(getAssertionResult(sample)); textArea.append("\n"); }
public void add(SampleResult sample) { textArea.append(sample.getSamplerData().toString()); textArea.append(getAssertionResult(sample)); textArea.append("\n"); }
public void widgetDisposed(DisposeEvent e) { shells.remove(id); } }); shells.put(id, showImageShell); } showImageShell.initialize(Messages.EclipseCollabSharedObject_SCREEN_CAPTURE_FROM + fromUser, imageWrapper); showImageShell.open(); } }); }
public void widgetDisposed(DisposeEvent e) { shells.remove(id); } }); shells.put(id, showImageShell); } showImageShell.initialize(Messages.bind(Messages.EclipseCollabSharedObject_SCREEN_CAPTURE_FROM, fromUser), imageWrapper); showImageShell.open(); } }); }
public int whatCanGoHere(boolean fullyValid , InsertableElementsInfo info) throws Exception { // // For this one, having the empty slot at the insertion point is // a problem. So lets compress the array down. We know that it has ...
public int whatCanGoHere(boolean fullyValid , InsertableElementsInfo info) throws Exception { // // For this one, having the empty slot at the insertion point is // a problem. So lets compress the array down. We know that it has ...
public int whatCanGoHere(boolean fullyValid, InsertableElementsInfo info) throws Exception { // // For this one, having the empty slot at the insertion point is // a problem. So lets compress the array down. We know that it has // to have at least the empty slot at the ...
public int whatCanGoHere(boolean fullyValid, InsertableElementsInfo info) throws Exception { // // For this one, having the empty slot at the insertion point is // a problem. So lets compress the array down. We know that it has // to have at least the empty slot at the ...
public static String [] getExtensions () { String [] extensions = new String [1024]; /* Use the character encoding for the default locale */ TCHAR lpName = new TCHAR (0, 1024); int [] lpcName = new int [] {lpName.length ()}; FILETIME ft = new FILETIME (); int dwIndex = 0, count = 0; while (OS.RegEnumKeyEx (OS.HK...
public static String [] getExtensions () { String [] extensions = new String [1024]; /* Use the character encoding for the default locale */ TCHAR lpName = new TCHAR (0, 1024); int [] lpcName = new int [] {lpName.length ()}; FILETIME ft = new FILETIME (); int dwIndex = 0, count = 0; while (OS.RegEnumKeyEx (OS.HK...
public SampleResult sample(Entry e) { SampleResult res = new SampleResult(); boolean isOK = false; // Did sample succeed? res.setSampleLabel(getName()); /* * Perform the sampling */ res.sampleStart(); // Start timing try { // Create empty properties Properties props = new Properties(); // ...
public SampleResult sample(Entry e) { SampleResult res = new SampleResult(); boolean isOK = false; // Did sample succeed? res.setSampleLabel(getName()); /* * Perform the sampling */ res.sampleStart(); // Start timing try { // Create empty properties Properties props = new Properties(); // ...
public void testConfigParserErrorMessages() { doSynchronousBuild("dir-entry.lst"); List messages = NullIdeManager.getIdeManager().getCompilationSourceLineTasks(); NullIdeTaskListManager.SourceLineTask message = (NullIdeTaskListManager.SourceLineTask)messages.get(0); assertEquals(message.getContainedMessage(...
public void testConfigParserErrorMessages() { doSynchronousBuild("dir-entry.lst"); List messages = NullIdeManager.getIdeManager().getCompilationSourceLineTasks(); NullIdeTaskListManager.SourceLineTask message = (NullIdeTaskListManager.SourceLineTask)messages.get(0); assertEquals(message.getContainedMessage(...
public static void runMainInSameVM( String classpath, String className, String[] args) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException, ClassNotFoundException { ...
public static void runMainInSameVM( String classpath, String className, String[] args) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException, ClassNotFoundException { ...
protected RequestAdapter getRequestAdapter() { RequestAdapter adapter = getContext().getRequestData(); if (adapter == null) { adapter = newRequestAdapter(getContext()); getContext().setRequestData(adapter); } return adapter; }
protected RequestAdapter getRequestAdapter() { RequestAdapter adapter = (RequestAdapter)getContext().getRequestData(); if (adapter == null) { adapter = newRequestAdapter(getContext()); getContext().setRequestData(adapter); } return adapter; }
public List /* FileItem */ parseRequest(RequestContext ctx) throws FileUploadException { if (ctx == null) { throw new IllegalArgumentException("ctx parameter cannot be null"); } ArrayList items = new ArrayList(); String contentType = ctx.getContentTy...
public List /* FileItem */ parseRequest(RequestContext ctx) throws FileUploadException { if (ctx == null) { throw new IllegalArgumentException("ctx parameter cannot be null"); } ArrayList items = new ArrayList(); String contentType = ctx.getContentTy...
public boolean accept(File pFile) { // Always accept directories or the user will not be able to navigate // around the file system. if (pFile.isDirectory()) { return true; } if (acceptableExtensions.contains(getExtension(pFile)) == true) { ...
public boolean accept(File pFile) { // Always accept directories or the user will not be able to navigate // around the file system. if (pFile.isDirectory()) { return true; } if (acceptableExtensions.contains(getExtension(pFile))) { ...
public void focusLost(FocusEvent pFocusEvent) { // Compare if the value has changed, since we received focus. if (oldValue.equals(mTextArea.getText()) == false) { notifyChangeListeners(); } }
public void focusLost(FocusEvent pFocusEvent) { // Compare if the value has changed, since we received focus. if (!oldValue.equals(mTextArea.getText())) { notifyChangeListeners(); } }
public void focusLost(FocusEvent pFocusEvent) { // Compare if the value has changed, since we received focus. if (oldValue.equals(mTextField.getText()) == false) { notifyChangeListeners(); } }
public void focusLost(FocusEvent pFocusEvent) { // Compare if the value has changed, since we received focus. if (!oldValue.equals(mTextField.getText())) { notifyChangeListeners(); } }
protected Object callSynch(RemoteServiceRegistrationImpl registration, IRemoteCall call) throws ECFException { Trace.entering(Activator.PLUGIN_ID, IRemoteServiceProviderDebugOptions.METHODS_ENTERING, this.getClass(), "callSynch", new Object[] {registration, call}); //$NON-NLS-1$ boolean doneWaiting = false; Resp...
protected Object callSynch(RemoteServiceRegistrationImpl registration, IRemoteCall call) throws ECFException { Trace.entering(Activator.PLUGIN_ID, IRemoteServiceProviderDebugOptions.METHODS_ENTERING, this.getClass(), "callSynch", new Object[] {registration, call}); //$NON-NLS-1$ boolean doneWaiting = false; Resp...
private void unpackAttributes(World world) { Attribute[] attrs = field.getAttributes(); List as = BcelAttributes.readAjAttributes(attrs, getSourceContext(world),world.getMessageHandler()); for (Iterator iter = as.iterator(); iter.hasNext();) { AjAttribute a = (AjAttribute) iter.next(); if (a instanceof AjA...
private void unpackAttributes(World world) { Attribute[] attrs = field.getAttributes(); List as = BcelAttributes.readAjAttributes(getDeclaringType().getClassName(),attrs, getSourceContext(world),world.getMessageHandler()); for (Iterator iter = as.iterator(); iter.hasNext();) { AjAttribute a = (AjAttribute) it...
private void unpackAjAttributes(World world) { List as = BcelAttributes.readAjAttributes(method.getAttributes(), getSourceContext(world),world.getMessageHandler()); //System.out.println("unpack: " + this + ", " + as); for (Iterator iter = as.iterator(); iter.hasNext();) { AjAttribute a = (AjAttribute) iter.ne...
private void unpackAjAttributes(World world) { List as = BcelAttributes.readAjAttributes(getDeclaringType().getClassName(),method.getAttributes(), getSourceContext(world),world.getMessageHandler()); //System.out.println("unpack: " + this + ", " + as); for (Iterator iter = as.iterator(); iter.hasNext();) { AjA...
private void printAspectAttributes(PrintStream out) { ISourceContext context = null; if (enclosingClass != null && enclosingClass.getType() != null) { context = enclosingClass.getType().getSourceContext(); } List as = BcelAttributes.readAjAttributes(attributes, context,null); if (! as.isEmpty()) { out....
private void printAspectAttributes(PrintStream out) { ISourceContext context = null; if (enclosingClass != null && enclosingClass.getType() != null) { context = enclosingClass.getType().getSourceContext(); } List as = BcelAttributes.readAjAttributes(getClassName(),attributes, context,null); if (! as.isEmp...
public void checkSerialize(Pointcut p) throws IOException { ByteArrayOutputStream bo = new ByteArrayOutputStream(); DataOutputStream out = new DataOutputStream(bo); p.write(out); out.close(); ByteArrayInputStream bi = new ByteArrayInputStream(bo.toByteArray()); DataInputStream in = new DataInputStream(b...
public void checkSerialize(Pointcut p) throws IOException { ByteArrayOutputStream bo = new ByteArrayOutputStream(); DataOutputStream out = new DataOutputStream(bo); p.write(out); out.close(); ByteArrayInputStream bi = new ByteArrayInputStream(bo.toByteArray()); VersionedDataInputStream in = new Versione...
private void checkSerialization(String string) throws IOException { Pointcut p = makePointcut(string); ByteArrayOutputStream bo = new ByteArrayOutputStream(); DataOutputStream out = new DataOutputStream(bo); p.write(out); out.close(); ByteArrayInputStream bi = new ByteArrayInputStream(bo.toByteArray());...
private void checkSerialization(String string) throws IOException { Pointcut p = makePointcut(string); ByteArrayOutputStream bo = new ByteArrayOutputStream(); DataOutputStream out = new DataOutputStream(bo); p.write(out); out.close(); ByteArrayInputStream bi = new ByteArrayInputStream(bo.toByteArray());...
private void checkSerialization(String string) throws IOException { ModifiersPattern p = makeModifiersPattern(string); ByteArrayOutputStream bo = new ByteArrayOutputStream(); DataOutputStream out = new DataOutputStream(bo); p.write(out); out.close(); ByteArrayInputStream bi = new ByteArrayInputStream(bo...
private void checkSerialization(String string) throws IOException { ModifiersPattern p = makeModifiersPattern(string); ByteArrayOutputStream bo = new ByteArrayOutputStream(); DataOutputStream out = new DataOutputStream(bo); p.write(out); out.close(); ByteArrayInputStream bi = new ByteArrayInputStream(bo...
private void checkSerialization(SignaturePattern p) throws IOException { ByteArrayOutputStream bo = new ByteArrayOutputStream(); DataOutputStream out = new DataOutputStream(bo); p.write(out); out.close(); ByteArrayInputStream bi = new ByteArrayInputStream(bo.toByteArray()); DataInputStream in = new Data...
private void checkSerialization(SignaturePattern p) throws IOException { ByteArrayOutputStream bo = new ByteArrayOutputStream(); DataOutputStream out = new DataOutputStream(bo); p.write(out); out.close(); ByteArrayInputStream bi = new ByteArrayInputStream(bo.toByteArray()); VersionedDataInputStream in =...
private void checkSerialization(String string) throws IOException { TypePatternList p = makeArgumentsPattern(string); ByteArrayOutputStream bo = new ByteArrayOutputStream(); DataOutputStream out = new DataOutputStream(bo); p.write(out); out.close(); ByteArrayInputStream bi = new ByteArrayInputStream(bo....
private void checkSerialization(String string) throws IOException { TypePatternList p = makeArgumentsPattern(string); ByteArrayOutputStream bo = new ByteArrayOutputStream(); DataOutputStream out = new DataOutputStream(bo); p.write(out); out.close(); ByteArrayInputStream bi = new ByteArrayInputStream(bo....
private void checkSerialization(String string) throws IOException { TypePattern p = makeTypePattern(string); ByteArrayOutputStream bo = new ByteArrayOutputStream(); DataOutputStream out = new DataOutputStream(bo); p.write(out); out.close(); ByteArrayInputStream bi = new ByteArrayInputStream(bo.toByteArr...
private void checkSerialization(String string) throws IOException { TypePattern p = makeTypePattern(string); ByteArrayOutputStream bo = new ByteArrayOutputStream(); DataOutputStream out = new DataOutputStream(bo); p.write(out); out.close(); ByteArrayInputStream bi = new ByteArrayInputStream(bo.toByteArr...
private void checkSerialization(Pointcut p) throws IOException { ByteArrayOutputStream bo = new ByteArrayOutputStream(); DataOutputStream out = new DataOutputStream(bo); p.write(out); out.close(); ByteArrayInputStream bi = new ByteArrayInputStream(bo.toByteArray()); DataInputStream in = new DataInputStr...
private void checkSerialization(Pointcut p) throws IOException { ByteArrayOutputStream bo = new ByteArrayOutputStream(); DataOutputStream out = new DataOutputStream(bo); p.write(out); out.close(); ByteArrayInputStream bi = new ByteArrayInputStream(bo.toByteArray()); VersionedDataInputStream in = new Ver...
public IServiceInfo createServiceInfoForUndiscovery(EndpointDescription endpointDescription, IDiscoveryAdvertiser advertiser); }
public IServiceInfo removeServiceInfoForUndiscovery(EndpointDescription endpointDescription, IDiscoveryAdvertiser advertiser); }
public ResolvedMemberImpl parameterizedWith(UnresolvedType[] typeParameters, ResolvedType newDeclaringType, boolean isParameterized) { TypeVariable[] typeVariables = getDeclaringType().getTypeVariables(); if (isParameterized && (typeVariables.length != typeParameters.length)) { throw new IllegalStateException("...
public ResolvedMemberImpl parameterizedWith(UnresolvedType[] typeParameters, ResolvedType newDeclaringType, boolean isParameterized) { TypeVariable[] typeVariables = getDeclaringType().resolve(newDeclaringType.getWorld()).getTypeVariables(); if (isParameterized && (typeVariables.length != typeParameters.length)) {...
public void resolveBindings(IScope scope, Bindings bindings) { arguments.resolveBindings(scope, bindings, true); if (arguments.ellipsisCount > 1) { scope.message(IMessage.ERROR, this, "uses more than one .. in args (compiler limitation)"); } }
public void resolveBindings(IScope scope, Bindings bindings) { arguments.resolveBindings(scope, bindings, true, true); if (arguments.ellipsisCount > 1) { scope.message(IMessage.ERROR, this, "uses more than one .. in args (compiler limitation)"); } }
public void resolve(IScope scope) { patterns = patterns.resolveBindings(scope, Bindings.NONE, false); }
public void resolve(IScope scope) { patterns = patterns.resolveBindings(scope, Bindings.NONE, false, false); }
public void resolve(IScope scope) { exception = exception.resolveBindings(scope, null, false); pointcut = pointcut.resolve(scope); }
public void resolve(IScope scope) { exception = exception.resolveBindings(scope, null, false, true); pointcut = pointcut.resolve(scope); }
public void resolveBindings(IScope scope, Bindings bindings) { exceptionType = exceptionType.resolveBindings(scope, bindings, false); //XXX add error if exact binding and not an exception }
public void resolveBindings(IScope scope, Bindings bindings) { exceptionType = exceptionType.resolveBindings(scope, bindings, false, false); //XXX add error if exact binding and not an exception }
public void resolveBindings(IScope scope, Bindings bindings) { if (onTypeSymbolic != null) { onType = onTypeSymbolic.resolveExactType(scope, bindings); } ResolvedTypeX searchType; if (onType != null) { searchType = scope.getWorld().resolve(onType); } else { searchType = scope.getEnclosingType(); ...
public void resolveBindings(IScope scope, Bindings bindings) { if (onTypeSymbolic != null) { onType = onTypeSymbolic.resolveExactType(scope, bindings); } ResolvedTypeX searchType; if (onType != null) { searchType = scope.getWorld().resolve(onType); } else { searchType = scope.getEnclosingType(); ...
public void resolveBindings(IScope scope, Bindings bindings) { type = type.resolveBindings(scope, bindings, false); }
public void resolveBindings(IScope scope, Bindings bindings) { type = type.resolveBindings(scope, bindings, false, false); }
private void sendPostData(PostMethod post) throws IOException { // If filename was specified then send the post using multipart syntax String filename = getFilename(); if ((filename != null) && (filename.trim().length() > 0)) { int argc = getArguments().getArgumentCount(); Part[] parts = ...
private void sendPostData(PostMethod post) throws IOException { // If filename was specified then send the post using multipart syntax String filename = getFilename(); if ((filename != null) && (filename.trim().length() > 0)) { int argc = getArguments().getArgumentCount(); Part[] parts = ...
protected CharSequence getURL() { if (pageMapName != null && getPopupSettings() != null) { throw new IllegalStateException("You cannot specify popup settings and a page map"); } if (getPopupSettings() != null) { return urlFor(getPopupSettings().getPageMap(), pageClass, parameters); } else { ...
protected CharSequence getURL() { if (pageMapName != null && getPopupSettings() != null) { throw new IllegalStateException("You cannot specify popup settings and a page map"); } if (getPopupSettings() != null) { return urlFor(getPopupSettings().getPageMap(this), pageClass, parameters); } else {...
protected void addVendorFiles(Hashtable ejbFiles, String baseName) { super.addVendorFiles(ejbFiles, baseName); // Then the toplink deployment descriptor // Setup a naming standard here?. File toplinkDD = new File(getDescriptorDir(), toplinkDescriptor); if (toplinkDD.exists...
protected void addVendorFiles(Hashtable ejbFiles, String baseName) { super.addVendorFiles(ejbFiles, baseName); // Then the toplink deployment descriptor // Setup a naming standard here?. File toplinkDD = new File(getConfig().descriptorDir, toplinkDescriptor); if (toplinkDD...
public boolean initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch, Object edata) { boolean fromDatabase; DataCache cache = _mgr.selectCache(sm); DataCachePCData data = null; boolean updateCache = _ctx.getFetchConfiguration().getCacheStoreMode() != DataCacheSt...
public boolean initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch, Object edata) { boolean fromDatabase; DataCache cache = _mgr.selectCache(sm); DataCachePCData data = null; boolean updateCache = _ctx.getFetchConfiguration().getCacheRetrieveMode() != DataCach...
public LockTimeoutException(String msg, Throwable[] nested, Object failed) { super(msg); _nested = nested; _failed = failed; }
public LockTimeoutException(String msg, Throwable[] nested, Object failed) { super(msg, nested == null ? null : nested[0], failed); _nested = nested; _failed = failed; }
private void redirectToInterceptPage(final Page interceptPage) { Page p = RequestCycle.get().getRequest().getPage(); final PageMap pageMap; /* * page can be null if we throw the restart response exception before * any page is instantiated in user's session. if this happens we switch * to the pagemap ...
private void redirectToInterceptPage(final Page interceptPage) { final Page p = RequestCycle.get().getRequest().getPage(); final PageMap pageMap; /* * page can be null if we throw the restart response exception before * any page is instantiated in user's session. if this happens we switch * to the pa...
public void run() { // Check which HTTPSampler class we should use String httpSamplerName = target.getSamplerTypeName(); HttpRequestHdr request = new HttpRequestHdr(httpSamplerName); SampleResult result = null; HeaderManager headers = null; HTTPSamplerBase sampler = ...
public void run() { // Check which HTTPSampler class we should use String httpSamplerName = target.getSamplerTypeName(); HttpRequestHdr request = new HttpRequestHdr(httpSamplerName); SampleResult result = null; HeaderManager headers = null; HTTPSamplerBase sampler = ...
public interface IBookmarkablePageRequestTarget extends IRequestTarget, ISessionSynchronizable, IAccessCheckingTarget /* * $Id$ * $Revision$ $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * u...
public interface IBookmarkablePageRequestTarget extends IRequestTarget, ISessionSynchronizable, IAccessCheckingTarget /* * $Id$ * $Revision$ $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * u...
protected void handleComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { int firstCell = table.getCurrentPage() * table.getRowsPerPage(); String text = String.valueOf(list.size()) ...
protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { int firstCell = table.getCurrentPage() * table.getRowsPerPage(); String text = String.valueOf(list.size()) +...
public final void handleValidSubmit() { // Construct a copy of the edited comment final Comment newComment = new Comment(comment); // Set date of comment to add newComment.setDate(new Date()); // Add the component we edited to the list of comments synchronized (commentListView.getModelL...
public final void onSubmit() { // Construct a copy of the edited comment final Comment newComment = new Comment(comment); // Set date of comment to add newComment.setDate(new Date()); // Add the component we edited to the list of comments synchronized (commentListView.getModelLock()) ...
public final void handleValidSubmit() { // Construct a copy of the edited comment final Comment newComment = new Comment(comment); // Set date of comment to add newComment.setDate(new Date()); // Add the component we edited to the list of comments commentList.add(0, newComment); try { ...
public final void onSubmit() { // Construct a copy of the edited comment final Comment newComment = new Comment(comment); // Set date of comment to add newComment.setDate(new Date()); // Add the component we edited to the list of comments commentList.add(0, newComment); try { // Get h...
public void linkClicked() { final RequestCycle requestCycle = getRequestCycle(); System.err.println("Linked clicked for letter: " + letter); setEnabled(false); Guess guessPage = (Guess)requestCycle.getPage(); Hangman hangman = (Hangman)guessPage.getMod...
public void onLinkClicked() { final RequestCycle requestCycle = getRequestCycle(); System.err.println("Linked clicked for letter: " + letter); setEnabled(false); Guess guessPage = (Guess)requestCycle.getPage(); Hangman hangman = (Hangman)guessPage.getM...
public void linkClicked() { Hangman hangman = (Hangman) guessPage.getModelObject(); hangman.newGame(); guessPage.resetLetters(); getRequestCycle().setPage(guessPage); } }); } }
public void onLinkClicked() { Hangman hangman = (Hangman) guessPage.getModelObject(); hangman.newGame(); guessPage.resetLetters(); getRequestCycle().setPage(guessPage); } }); } }
public void linkClicked() { Hangman hangman = (Hangman)guessPage.getModelObject(); hangman.newGame(); guessPage.resetLetters(); getRequestCycle().setPage(guessPage); } }); } }
public void onLinkClicked() { Hangman hangman = (Hangman)guessPage.getModelObject(); hangman.newGame(); guessPage.resetLetters(); getRequestCycle().setPage(guessPage); } }); } }
public final void handleValidSubmit() { final RequestCycle cycle = getRequestCycle(); PageParameters parameters = new PageParameters(); parameters.put("id", new Long(book.getId())); cycle.setPage(getPageFactory().newPage(BookDetails.class, parameters)); ...
public final void onSubmit() { final RequestCycle cycle = getRequestCycle(); PageParameters parameters = new PageParameters(); parameters.put("id", new Long(book.getId())); cycle.setPage(getPageFactory().newPage(BookDetails.class, parameters)); ...
public void linkClicked() { File toDelete = new File(tempDir, fileName); log.info("delete " + toDelete); toDelete.delete(); try { Thread.sleep(100); // wait for fi...
public void onLinkClicked() { File toDelete = new File(tempDir, fileName); log.info("delete " + toDelete); toDelete.delete(); try { Thread.sleep(100); // wait for ...
public void redirect(); }
public void onRedirect(); }
public void resourceRequested(); }
public void onResourceRequested(); }
protected void handleRender() { renderComponent(findMarkupStream()); } }
protected void onRender() { renderComponent(findMarkupStream()); } }
public void formSubmitted(); }
public void onFormSubmitted(); }
void onSelectionChanged(); /* * $Id$ * $Revision$ $Date$ * * ==================================================================== Licensed * under the Apache License, Version 2.0 (the "License"); you may not use this * file except in compliance with the License. You may obtain a copy of the * License at * *...
void onSelectionChanged(); /* * $Id$ * $Revision$ $Date$ * * ==================================================================== Licensed * under the Apache License, Version 2.0 (the "License"); you may not use this * file except in compliance with the License. You may obtain a copy of the * License at * *...
public void linkClicked(); }
public void onLinkClicked(); }
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 onRender() { // 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."); ...