buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public int indexOf (TreeItem item) { checkWidget (); if (item == null) error (SWT.ERROR_NULL_ARGUMENT); if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); if (item.parentItem != null) return -1; return item.index; } int itemCompareProc (int browser, int itemOne, int itemTwo, int sortProperty) { int inde...
public int indexOf (TreeItem item) { checkWidget (); if (item == null) error (SWT.ERROR_NULL_ARGUMENT); if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); if (item.parentItem != null) return -1; return item.index; } int itemCompareProc (int browser, int itemOne, int itemTwo, int sortProperty) { int inde...
private void detectJavaVersion() { // Determine the Java version by looking at available classes // java.lang.StrictMath was introduced in JDK 1.3 // java.lang.ThreadLocal was introduced in JDK 1.2 // java.lang.Void was introduced in JDK 1.1 // Count up version until a NoCla...
private void detectJavaVersion() { // Determine the Java version by looking at available classes // java.lang.StrictMath was introduced in JDK 1.3 // java.lang.ThreadLocal was introduced in JDK 1.2 // java.lang.Void was introduced in JDK 1.1 // Count up version until a NoCla...
public void respond(RequestCycle requestCycle) { Application application = requestCycle.getApplication(); SharedResources sharedResources = application.getSharedResources(); final String resourceKey = getRequestParameters().getResourceKey(); Resource resource = sharedResources.get(resourceKey); // try to l...
public void respond(RequestCycle requestCycle) { Application application = requestCycle.getApplication(); SharedResources sharedResources = application.getSharedResources(); final String resourceKey = getRequestParameters().getResourceKey(); Resource resource = sharedResources.get(resourceKey); // try to l...
public static void runCommand( final Task task, final String[] cmdline ) throws TaskException { try { task.log( Commandline.toString( cmdline ), Project.MSG_VERBOSE ); final Execute exe = new Execute(); exe.setOutput( new LogOutputStream( task, Project...
public static void runCommand( final Task task, final String[] cmdline ) throws TaskException { try { task.hackGetLogger().debug( Commandline.toString( cmdline ) ); final Execute exe = new Execute(); exe.setOutput( new LogOutputStream( task, Project.MS...
public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { try { response = res; request = req; initRequest(); executeRequest(); } catch( TaskException e ) { ...
public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { try { response = res; request = req; initRequest(); executeRequest(); } catch( TaskException e ) { ...
public void execute() throws TaskException { // load command line with optional attributes Enumeration iter = optionalAttrs.keys(); while( iter.hasMoreElements() ) { String name = (String)iter.nextElement(); Object value = optionalAttrs.get( name ...
public void execute() throws TaskException { // load command line with optional attributes Enumeration iter = optionalAttrs.keys(); while( iter.hasMoreElements() ) { String name = (String)iter.nextElement(); Object value = optionalAttrs.get( name ...
protected void checkOptions() throws TaskException { super.checkOptions(); if( unused && searchPath == null ) { throw new TaskException( "'searchpath' element must be set when looking for 'unused' declarations." ); } if( !unused && searchPath != null )...
protected void checkOptions() throws TaskException { super.checkOptions(); if( unused && searchPath == null ) { throw new TaskException( "'searchpath' element must be set when looking for 'unused' declarations." ); } if( !unused && searchPath != null )...
protected void _execute( ExecuteStreamHandler handler ) throws TaskException { // target has been checked as a .jj, see if there is a matching // java file and if it is needed to run to process the grammar String pathname = target.getAbsolutePath(); int pos = pathname.len...
protected void _execute( ExecuteStreamHandler handler ) throws TaskException { // target has been checked as a .jj, see if there is a matching // java file and if it is needed to run to process the grammar String pathname = target.getAbsolutePath(); int pos = pathname.len...
public void process( String line ) { log( "P4Counter retrieved line \"" + line + "\"", Project.MSG_VERBOSE ); try { value = Integer.parseInt( line ); se...
public void process( String line ) { getLogger().debug( "P4Counter retrieved line \"" + line + "\"" ); try { value = Integer.parseInt( line ); setProper...
public void execute() throws TaskException { checkOptions(); File paramfile = createParamFile(); try { Commandline cmdl = new Commandline(); cmdl.setExecutable( new File( home, "jpcovmerge" ).getAbsolutePath() ); if( verbose ) ...
public void execute() throws TaskException { checkOptions(); File paramfile = createParamFile(); try { Commandline cmdl = new Commandline(); cmdl.setExecutable( new File( home, "jpcovmerge" ).getAbsolutePath() ); if( verbose ) ...
public boolean execute() throws TaskException { getRmic().log( "Using SUN rmic compiler", Project.MSG_VERBOSE ); Commandline cmd = setupRmicCommand(); // Create an instance of the rmic, redirecting output to // the project log LogOutputStream logstr = new LogOutp...
public boolean execute() throws TaskException { getLogger().debug( "Using SUN rmic compiler" ); Commandline cmd = setupRmicCommand(); // Create an instance of the rmic, redirecting output to // the project log LogOutputStream logstr = new LogOutputStream( getRmic...
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); } NSSize 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); } NSSize s...
public void copy () { checkWidget (); Point selection = getSelection (); if (selection.x == selection.y) return; copyToClipboard (getText (selection.x, selection.y)); } void createHandle () { if ((style & SWT.READ_ONLY) != 0) { NSPopUpButton widget = (NSPopUpButton)new SWTPopUpButton().alloc(); widget.initWit...
public void copy () { checkWidget (); Point selection = getSelection (); if (selection.x == selection.y) return; copyToClipboard (getText (selection.x, selection.y)); } void createHandle () { if ((style & SWT.READ_ONLY) != 0) { NSPopUpButton widget = (NSPopUpButton)new SWTPopUpButton().alloc(); widget.initWit...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget (); int width = 0, height = 0; NSControl widget = (NSControl)view; NSSize size = widget.cell ().cellSize (); width = (int)(0.5f + size.width); height = (int)(0.5f + size.height); if (width == 0) width = DEFAULT_WIDTH; if (height == 0...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget (); int width = 0, height = 0; NSControl widget = (NSControl)view; NSSize size = widget.cell ().cellSize (); width = (int)(0.5f + size.width); height = (int)(0.5f + size.height); if (width == 0) width = DEFAULT_WIDTH; if (height == 0...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); NSProgressIndicator widget = (NSProgressIndicator)view; NSRect oldRect = widget.frame(); widget.sizeToFit(); NSRect newRect = widget.frame(); widget.setFrame (oldRect); int size = (int)newRect.height; int width = 0, height = 0; i...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); NSProgressIndicator widget = (NSProgressIndicator)view; NSRect oldRect = widget.frame(); widget.sizeToFit(); NSRect newRect = widget.frame(); widget.setFrame (oldRect); int size = (int)newRect.height; int width = 0, height = 0; i...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); int width = 0, height = 0; if ((style & SWT.HORIZONTAL) != 0) { width += DEFAULT_WIDTH; height += 5; } else { width += 5; height += DEFAULT_HEIGHT; } if (wHint != SWT.DEFAULT) width = wHint; if (hHint != SWT.DEFAULT) height = ...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); int width = 0, height = 0; if ((style & SWT.HORIZONTAL) != 0) { width += DEFAULT_WIDTH; height += 5; } else { width += 5; height += DEFAULT_HEIGHT; } if (wHint != SWT.DEFAULT) width = wHint; if (hHint != SWT.DEFAULT) height = ...
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget (); NSTabView widget = (NSTabView)view; NSRect rect = widget.contentRect (); x -= rect.x; y -= rect.y; width += (int)(0.5f + rect.x); height += (int)(0.5f + rect.y); return super.computeTrim (x, y, width, height); } void createHandl...
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget (); NSTabView widget = (NSTabView)view; NSRect rect = widget.contentRect (); x -= rect.x; y -= rect.y; width += (int)(0.5f + rect.x); height += (int)(0.5f + rect.y); return super.computeTrim (x, y, width, height); } void createHandl...
public void setControl (Control control) { checkWidget (); if (control != null) { if (control.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT); if (control.parent != parent) error (SWT.ERROR_INVALID_PARENT); } if (this.control != null && this.control.isDisposed ()) { this.control = null; } Control oldContro...
public void setControl (Control control) { checkWidget (); if (control != null) { if (control.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT); if (control.parent != parent) error (SWT.ERROR_INVALID_PARENT); } if (this.control != null && this.control.isDisposed ()) { this.control = null; } Control oldContro...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); int width = wHint, height = hHint; if (wHint == SWT.DEFAULT) width = 0x7FFFFFFF; if (hHint == SWT.DEFAULT) height = 0x7FFFFFFF; int [] result = layout (width, height, false); Point extent = new Point (result [1], result [2]); if (w...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); int width = wHint, height = hHint; if (wHint == SWT.DEFAULT) width = 0x7FFFFFFF; if (hHint == SWT.DEFAULT) height = 0x7FFFFFFF; int [] result = layout (width, height, false); Point extent = new Point (result [1], result [2]); if (w...
public TextLayout (Device device) { super(device); wrapWidth = ascent = descent = -1; lineSpacing = 0; orientation = SWT.LEFT_TO_RIGHT; styles = new StyleItem[2]; styles[0] = new StyleItem(); styles[1] = new StyleItem(); stylesCount = 2; text = ""; //$NON-NLS-1$ int /*long*/[] ppv = new int /*long*/[1]; OS.O...
public TextLayout (Device device) { super(device); wrapWidth = ascent = descent = -1; lineSpacing = 0; orientation = SWT.LEFT_TO_RIGHT; styles = new StyleItem[2]; styles[0] = new StyleItem(); styles[1] = new StyleItem(); stylesCount = 2; text = ""; //$NON-NLS-1$ int /*long*/[] ppv = new int /*long*/[1]; OS.O...
public void disconnect() { ID groupID = getConnectedID(); fireContainerEvent(new ContainerDisconnectingEvent(this.getID(), groupID)); synchronized (getConnectLock()) { // If we are currently connected if (isConnected()) { ISynchAsynchConnection conn = getConnection(); synchronized (conn) { ...
public void disconnect() { ID groupID = getConnectedID(); fireContainerEvent(new ContainerDisconnectingEvent(this.getID(), groupID)); synchronized (getConnectLock()) { // If we are currently connected if (isConnected()) { ISynchAsynchConnection conn = getConnection(); synchronized (conn) { ...
public void runSerialTest() throws Exception { if (!(serObj instanceof Component)) {// try { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); ObjectOutputStream out = new ObjectOutputStream(bytes); out.writeObject(serObj); ...
public void runSerialTest() throws Exception { if (!(serObj instanceof Component)) {// try { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); ObjectOutputStream out = new ObjectOutputStream(bytes); out.writeObject(serObj); ...
protected String extractProjectName(BuildEvent event) { Project project = event.getProject(); return project!=null?project.getName():null; }
protected String extractProjectName(BuildEvent event) { Project project = event.getProject(); return (project != null) ? project.getName() : null; }
public XSCMValidator getContentModel(CMBuilder cmBuilder) { if (fCMValidator != null) return fCMValidator; cmBuilder.getContentModel(this); return fCMValidator; }
public XSCMValidator getContentModel(CMBuilder cmBuilder) { if (fCMValidator != null) return fCMValidator; fCMValidator = cmBuilder.getContentModel(this); return fCMValidator; }
private CharSequence getReplacementOrNull(final Component component) { return (replaceModel != null) ? replaceModel.getObject(component) : null; }
private CharSequence getReplacementOrNull(final Component component) { return (replaceModel != null) ? replaceModel.getObject() : null; }
public List<E> getChoices() { List<E> choices = this.choices.getObject(this); if (choices == null) { throw new NullPointerException( "List of choices is null - Was the supplied 'Choices' model empty?"); } return choices; }
public List<E> getChoices() { List<E> choices = this.choices.getObject(); if (choices == null) { throw new NullPointerException( "List of choices is null - Was the supplied 'Choices' model empty?"); } return choices; }
protected Map<String, Serializable> messageModel() { FormComponent[] formComponents = getDependentFormComponents(); if (formComponents != null && formComponents.length > 0) { Map<String, Serializable> args = new HashMap<String, Serializable>( formComponents.length * 3); for (int i = 0; i < formCompo...
protected Map<String, Serializable> messageModel() { FormComponent[] formComponents = getDependentFormComponents(); if (formComponents != null && formComponents.length > 0) { Map<String, Serializable> args = new HashMap<String, Serializable>( formComponents.length * 3); for (int i = 0; i < formCompo...
public interface ICompoundModel<T> extends IInhertanceAware<T> /* * $Id: ICompoundModel.java 5861 2006-05-25 20:55:07 +0000 (Thu, 25 May 2006) * eelco12 $ $Revision$ $Date: 2006-05-25 20:55:07 +0000 (Thu, 25 May * 2006) $ * * ============================================================================== * Licen...
public interface ICompoundModel<T> extends IInhertanceAware<T> /* * $Id: ICompoundModel.java 5861 2006-05-25 20:55:07 +0000 (Thu, 25 May 2006) * eelco12 $ $Revision$ $Date: 2006-05-25 20:55:07 +0000 (Thu, 25 May * 2006) $ * * ============================================================================== * Licen...
public void testComponentClone() { PropertyModel pm = new PropertyModel(new TextField<String>(new EmptyPage(), "test", new Model<String>("test")), "modelObject"); PropertyModel pm2 = (PropertyModel)Objects.cloneModel(pm); assertTrue(pm.getObject(null) == pm2.getObject(null)); }
public void testComponentClone() { PropertyModel pm = new PropertyModel(new TextField<String>(new EmptyPage(), "test", new Model<String>("test")), "modelObject"); PropertyModel pm2 = (PropertyModel)Objects.cloneModel(pm); assertTrue(pm.getObject() == pm2.getObject()); }
public void wake () { synchronized (Device.class) { if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED); if (thread == Thread.currentThread ()) return; wakeThread (); } } void wakeThread () { //new pool? NSObject object = new NSObject().alloc().init(); object.performSelectorOnMainThread(OS.sel_release, nul...
public void wake () { synchronized (Device.class) { if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED); if (thread == Thread.currentThread ()) return; wakeThread (); } } void wakeThread () { //new pool? NSObject object = new NSObject().alloc().init(); object.performSelectorOnMainThread(OS.sel_release, nul...
public PrinterData open() { if (OS.GTK_VERSION < OS.VERSION (2, 9, 0)) { return Printer.getDefaultPrinterData(); } else { byte [] titleBytes = Converter.wcsToMbcs (null, getText(), true); int /*long*/ topHandle = getParent().handle; while (topHandle != 0 && !OS.GTK_IS_WINDOW(topHandle)) { topHandle = OS.gt...
public PrinterData open() { if (OS.GTK_VERSION < OS.VERSION (2, 10, 0)) { return Printer.getDefaultPrinterData(); } else { byte [] titleBytes = Converter.wcsToMbcs (null, getText(), true); int /*long*/ topHandle = getParent().handle; while (topHandle != 0 && !OS.GTK_IS_WINDOW(topHandle)) { topHandle = OS.g...
public void testVersion() { if (Version.time_text.equals("")) return; // dev build, we can only test this on the build server. Date date = new Date(Version.time); SimpleDateFormat format = new SimpleDateFormat(Version.SIMPLE_DATE_FORMAT, Locale.UK); format.setTimeZone(TimeZone.getTimeZ...
public void testVersion() { if (Version.time_text.equals("")) return; // dev build, we can only test this on the build server. Date date = new Date(Version.time); SimpleDateFormat format = new SimpleDateFormat(Version.SIMPLE_DATE_FORMAT, Locale.getDefault()); format.setTimeZone(TimeZon...
public ASModel parseASInputSource(DOMInputSource is) throws DOMASException, Exception { // need to wrap the DOMInputSource with an XMLInputSource XMLInputSource xis = this.dom2xmlInputSource(is); try { return parseASInputSource(xis); ...
public ASModel parseASInputSource(DOMInputSource is) throws DOMASException, Exception { // need to wrap the DOMInputSource with an XMLInputSource XMLInputSource xis = this.dom2xmlInputSource(is); try { return parseASInputSource(xis); ...
public Grammar parseGrammar(String type, XMLInputSource is) throws XNIException, IOException { // REVISIT: for now, don't know what to do with DTD's... if(!type.equals(XMLGrammarDescription.XML_SCHEMA)) return null; if (fSchemaHandler == null) { fXSGramma...
public Grammar parseGrammar(String type, XMLInputSource is) throws XNIException, IOException { // REVISIT: for now, don't know what to do with DTD's... if(!type.equals(XMLGrammarDescription.XML_SCHEMA)) return null; if (fSchemaHandler == null) { fXSGramma...
tvItem.mask = OS.TVIF_HANDLE | OS.TVIF_STATE; /******************************************************************************* * Copyright (c) 2000, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License ...
tvItem.mask = OS.TVIF_HANDLE | OS.TVIF_STATE; /******************************************************************************* * Copyright (c) 2000, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License ...
package org.apache.tools.todo.types; /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.apache.tools...
package org.apache.tools.todo.types; /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.apache.tools...
package org.apache.tools.todo.util.depend; /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.apache...
package org.apache.tools.todo.util.depend; /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.apache...
protected void assertParameters(StoreQuery q, StoreQuery.Executor ex, Map params) { if (!q.requiresParameterDeclarations()) return; LinkedMap paramTypes = ex.getParameterTypes(q); for (Object actual : params.keySet()) { if (!paramTypes.containsKey(actual)) ...
protected void assertParameters(StoreQuery q, StoreQuery.Executor ex, Map params) { if (!q.requiresParameterDeclarations()) return; LinkedMap paramTypes = ex.getParameterTypes(q); for (Object actual : params.keySet()) { if (!paramTypes.containsKey(actual)) ...
public UpdateMessage transformIncomingMessage(final UpdateMessage remoteMsg) { if (!(remoteMsg instanceof ColaUpdateMessage)) { throw new IllegalArgumentException("UpdateMessage is incompatible with Cola SynchronizationStrategy"); //$NON-NLS-1$ } Trace.entering(Activator.PLUGIN_ID, DocshareDebugOptions.METHOD...
public UpdateMessage transformIncomingMessage(final UpdateMessage remoteMsg) { if (!(remoteMsg instanceof ColaUpdateMessage)) { throw new IllegalArgumentException("UpdateMessage is incompatible with Cola SynchronizationStrategy"); //$NON-NLS-1$ } Trace.entering(Activator.PLUGIN_ID, DocshareDebugOptions.METHOD...
public void itemStateChanged(final ItemEvent e) { if (e.getStateChange() == ItemEvent.SELECTED) { concurrentPool.setEnabled(true); } else { concurrentPool.setEnabled(false); } } }); concurrentPool = new JTextField(2); // 2 columns size conc...
public void itemStateChanged(final ItemEvent e) { if (imageParser.isSelected() && e.getStateChange() == ItemEvent.SELECTED) { concurrentPool.setEnabled(true); } else { concurrentPool.setEnabled(false); } } }); concurrentPool = new JTextField(2); //...
public void itemStateChanged(final ItemEvent e) { if (e.getStateChange() == ItemEvent.SELECTED) { concurrentPool.setEnabled(true); } else { concurrentPool.setEnabled(false); } } }); concurrentPool = new JTextField(2); // 2 column size concu...
public void itemStateChanged(final ItemEvent e) { if (getImages.isSelected() && e.getStateChange() == ItemEvent.SELECTED) { concurrentPool.setEnabled(true); } else { concurrentPool.setEnabled(false); } } }); concurrentPool = new JTextField(2); // 2...
public org.apache.wicket.resource.IPropertiesFactory getPropertiesFactory() { if (propertiesFactory == null) { propertiesFactory = new PropertiesFactory(Application.get()); } return propertiesFactory; }
public org.apache.wicket.resource.IPropertiesFactory getPropertiesFactory() { if (propertiesFactory == null) { propertiesFactory = new PropertiesFactory(this); } return propertiesFactory; }
public MyPropertiesFactory(Application application) { super(application); getPropertiesLoaders().clear(); getPropertiesLoaders().add(new IsoPropertiesFilePropertiesLoader("properties")); getPropertiesLoaders().add(new XmlFilePropertiesLoader("xmlProperties")); } }
public MyPropertiesFactory(Application application) { super(application.getResourceSettings()); getPropertiesLoaders().clear(); getPropertiesLoaders().add(new IsoPropertiesFilePropertiesLoader("properties")); getPropertiesLoaders().add(new XmlFilePropertiesLoader("xmlProperties")); } }
protected void onComponentRendered() { Response response=getComponent().getResponse(); final String id = getComponent().getMarkupId(); response.write("<script type=\"text/javascript\">"); response.write("new WicketAutoComplete('"+id+"','"+getCallbackUrl()+"');"); response.write("</script>"); response.writ...
protected void onComponentRendered() { Response response=getComponent().getResponse(); final String id = getComponent().getMarkupId(); response.write("<script type=\"text/javascript\">"); response.write("new WicketAutoComplete('"+id+"','"+getCallbackUrl()+"');"); response.write("</script>"); response.writ...
public static boolean run(OpenJPAConfiguration conf, String[] args, Flags flags, MetaDataRepository repos, BytecodeWriter writer, ClassLoader loader) throws IOException { if (loader == null) loader = conf.getClassResolverInstance(). getClassLoader(PCEnhanc...
public static boolean run(OpenJPAConfiguration conf, String[] args, Flags flags, MetaDataRepository repos, BytecodeWriter writer, ClassLoader loader) throws IOException { if (loader == null) loader = conf.getClassResolverInstance(). getClassLoader(PCEnhanc...
public void testIDFactoryAddNamespace() { Namespace namespace = createNamespace(); int currentSize = fixture.getNamespaces().size(); Namespace ns = fixture.addNamespace(namespace); assertNull(ns); assertTrue(fixture.getNamespaces().size() == (currentSize + 1)); fixture.removeNamespace(namespace); }
public void testIDFactoryAddNamespace() { Namespace namespace = createNamespace(); int currentSize = fixture.getNamespaces().size(); Namespace ns = fixture.addNamespace(namespace); assertNull(ns); assertTrue(fixture.getNamespaces().size() == (currentSize + 1)); assertNotNull(fixture.removeNamespace(namespa...
public Result execute(OpenJPAStateManager sm, StoreManager store, FetchConfiguration fetch) { boolean forUpdate = false; JDBCStore jstore = (JDBCStore)store; Connection conn = jstore.getConnection(); DBDictionary dict = jstore.getDBDictionary(); PreparedStatement stm...
public Result execute(OpenJPAStateManager sm, StoreManager store, FetchConfiguration fetch) { boolean forUpdate = false; JDBCStore jstore = (JDBCStore)store; Connection conn = jstore.getConnection(); DBDictionary dict = jstore.getDBDictionary(); PreparedStatement stm...
public ResultSet executeQuery(Connection conn, PreparedStatement stmnt, String sql, JDBCStore store, Object[] params) throws SQLException { return stmnt.executeQuery(); }
public ResultSet executeQuery(Connection conn, PreparedStatement stmnt, String sql, JDBCStore store, Object[] params, Column[] cols) throws SQLException { return stmnt.executeQuery(); }
protected void connectToServiceFromInfo(IServiceInfo svcInfo) { ClientConnectAction action = new ClientConnectAction(); Map props = svcInfo.getProperties(); String type = (String) props.get(PROP_CONTAINER_TYPE_NAME); if (type == null || type.equals("")) { action.setContainerType(Client.GENERIC_CONTAINER_CLI...
protected void connectToServiceFromInfo(IServiceInfo svcInfo) { ClientConnectAction action = new ClientConnectAction(); Map props = svcInfo.getProperties(); String type = (String) props.get(PROP_CONTAINER_TYPE_NAME); if (type == null || type.equals("")) { action.setContainerType(Client.GENERIC_CONTAINER_CLI...
protected TCPServerSOContainer makeServerContainer(String id, TCPServerSOContainerGroup group, String path, int keepAlive) throws IDInstantiationException { ID newServerID = IDFactory.makeStringID(id); SOContainerConfig config = new SOContainerConfig(newServerID); return new TCPServerSOContainer(config, gr...
protected TCPServerSOContainer makeServerContainer(String id, TCPServerSOContainerGroup group, String path, int keepAlive) throws IDInstantiationException { ID newServerID = IDFactory.getDefault().makeStringID(id); SOContainerConfig config = new SOContainerConfig(newServerID); return new TCPServerSOContain...
public ClientConnectAction() { try { targetID = IDFactory.makeStringID(DEFAULT_SERVER_ID); client = new Client(); } catch (Exception e) { throw new RuntimeException("Exception in ClientConnectAction()",e); } }
public ClientConnectAction() { try { targetID = IDFactory.getDefault().makeStringID(DEFAULT_SERVER_ID); client = new Client(); } catch (Exception e) { throw new RuntimeException("Exception in ClientConnectAction()",e); } }
public ClientConnectComposentAction() { super(); try { targetID = IDFactory.makeStringID(COMPOSENT_TARGET); } catch (Exception e) { throw new RuntimeException("Exception in ClientConnectAction()",e); } }
public ClientConnectComposentAction() { super(); try { targetID = IDFactory.getDefault().makeStringID(COMPOSENT_TARGET); } catch (Exception e) { throw new RuntimeException("Exception in ClientConnectAction()",e); } }
protected void traceDump(String msg, Throwable t) { if (Trace.ON && trace != null) { trace.dumpStack(t, msg); } } public ID makeObject(ID target, String className, Map map) throws Exception { ISharedObjectContext crs = getContext(); ID newID = IDFactory.makeStrin...
protected void traceDump(String msg, Throwable t) { if (Trace.ON && trace != null) { trace.dumpStack(t, msg); } } public ID makeObject(ID target, String className, Map map) throws Exception { ISharedObjectContext crs = getContext(); ID newID = IDFactory.getDefaul...
public synchronized IDataGraphSharing getInstance( ISharedObjectContainer container) throws ECFException { ISharedObjectManager mgr = container.getSharedObjectManager(); ID id = IDFactory.makeStringID(DataGraphSharing.DATA_GRAPH_SHARING_ID); DataGraphSharing result = (DataGraphSh...
public synchronized IDataGraphSharing getInstance( ISharedObjectContainer container) throws ECFException { ISharedObjectManager mgr = container.getSharedObjectManager(); ID id = IDFactory.getDefault().makeStringID(DataGraphSharing.DATA_GRAPH_SHARING_ID); DataGraphSharing result =...
public synchronized ID getLocalID() { if (containerID != null) return containerID; if (socket == null) return null; ID retID = null; try { retID = IDFactory.makeStringID(PROTOCOL + "://" + socket.getLocalAddress().getHostName() + ":" + socket....
public synchronized ID getLocalID() { if (containerID != null) return containerID; if (socket == null) return null; ID retID = null; try { retID = IDFactory.getDefault().makeStringID(PROTOCOL + "://" + socket.getLocalAddress().getHostName() + ...
protected synchronized void setEmptyNamespace() { if (namespace == null) { namespace = IDFactory.getNamespaceByName(StringID.class.getName()); } }
protected synchronized void setEmptyNamespace() { if (namespace == null) { namespace = IDFactory.getDefault().getNamespaceByName(StringID.class.getName()); } }
protected void initializeSharedObject() throws Exception { sharedObjectID = IDFactory.makeStringID(XMPP_GROUP_CHAT_SHARED_OBJECT_ID); sharedObject = new XMPPGroupChatSharedObject(); }
protected void initializeSharedObject() throws Exception { sharedObjectID = IDFactory.getDefault().makeStringID(XMPP_GROUP_CHAT_SHARED_OBJECT_ID); sharedObject = new XMPPGroupChatSharedObject(); }
protected ID makeIDFromName(String name) { ID result = null; try { result = IDFactory.makeID(XMPPID.PROTOCOL, new Object[] { name }); return result; } catch (Exception e) { dumpStack("Exception in makeIDFromName", e); return null; } ...
protected ID makeIDFromName(String name) { ID result = null; try { result = IDFactory.getDefault().makeID(XMPPID.PROTOCOL, new Object[] { name }); return result; } catch (Exception e) { dumpStack("Exception in makeIDFromName", e); return null; ...
public synchronized ID getLocalID() { if (!isConnected()) return null; try { return IDFactory.makeID(XMPPID.PROTOCOL, new Object[] { connection .getConnectionID() }); } catch (Exception e) { logException("Exception in getLocalID", e); return null; } }
public synchronized ID getLocalID() { if (!isConnected()) return null; try { return IDFactory.getDefault().makeID(XMPPID.PROTOCOL, new Object[] { connection .getConnectionID() }); } catch (Exception e) { logException("Exception in getLocalID", e); return null; } }
public Rectangle getBounds (int index) { checkWidget(); RECT rect = getBounds (index, true, true, true); int width = rect.right - rect.left, height = rect.bottom - rect.top; return new Rectangle (rect.left, rect.top, width, height); } RECT getBounds (int index, boolean getText, boolean getImage, boolean full) { //...
public Rectangle getBounds (int index) { checkWidget(); RECT rect = getBounds (index, true, true, true); int width = rect.right - rect.left, height = rect.bottom - rect.top; return new Rectangle (rect.left, rect.top, width, height); } RECT getBounds (int index, boolean getText, boolean getImage, boolean full) { //...
public float getAveLag() { return (float) ((float) totalLag / (float) count); }
public float getAveLag() { return ((float) totalLag / (float) count); }
public void run() { log.info("Running the test!"); running = true; testList = new ArrayList(); SearchByClass testPlan = new SearchByClass(TestPlan.class); getTestTree().traverse(testPlan); Object[] plan = testPlan.getSearchResults().toArray(); if (plan.length == 0) ...
public void run() { log.info("Running the test!"); running = true; testList = new ArrayList(); SearchByClass testPlan = new SearchByClass(TestPlan.class); getTestTree().traverse(testPlan); Object[] plan = testPlan.getSearchResults().toArray(); if (plan.length == 0) ...
class FillData { /******************************************************************************* * Copyright (c) 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this dist...
class FillData { /******************************************************************************* * Copyright (c) 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this dist...
public void addValue( final ConfigurationState state, final Object value ) throws ConfigurationException { final DefaultConfigurationState defState = (DefaultConfigurationState)state; // Check the property count if( defState.getPropertyCount( m_propIndex ) >= m_maxCount ) ...
public void addValue( final ConfigurationState state, final Object value ) throws ConfigurationException { final ConfigurationState defState = (ConfigurationState)state; // Check the property count if( defState.getPropertyCount( m_propIndex ) >= m_maxCount ) { ...
public void handleEvent(Event event) { GC gc = event.gc; gc.setLineAttributes(new LineAttributes(10, SWT.CAP_FLAT, SWT.JOIN_MITER, SWT.LINE_SOLID, null, 0, 10)); gc.drawPolyline(new int[]{50, 100, 50, 20, 60, 30, 50, 45}); gc.setLineAttributes(new LineAttributes(1/2, SWT.CAP_FLAT, SWT.JOIN_...
public void handleEvent(Event event) { GC gc = event.gc; gc.setLineAttributes(new LineAttributes(10, SWT.CAP_FLAT, SWT.JOIN_MITER, SWT.LINE_SOLID, null, 0, 10)); gc.drawPolyline(new int[]{50, 100, 50, 20, 60, 30, 50, 45}); gc.setLineAttributes(new LineAttributes(1/2f, SWT.CAP_FLAT, SWT.JOIN...
private String[] adjustToSandbox(String[] args,boolean doCopy) throws IOException { String[] newArgs = new String[args.length]; boolean hasClasspath = false; boolean hasOutdir = false; for (int i = 0; i < args.length; i++) { newArgs[i] = args[i]; if (FileUtil.hasSourceSuffix(args[i])) { File f = new ...
private String[] adjustToSandbox(String[] args,boolean doCopy) throws IOException { String[] newArgs = new String[args.length]; boolean hasClasspath = false; boolean hasOutdir = false; for (int i = 0; i < args.length; i++) { newArgs[i] = args[i]; if (FileUtil.hasSourceSuffix(args[i])) { File f = new ...
public Object execute(ExecutionEvent event) throws ExecutionException { IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event); IContainerManager containerManager = Activator.getDefault().getContainerManager(); IContainer[] containers = containerManager.getAllContainers(); BrowseDialog ...
public Object execute(ExecutionEvent event) throws ExecutionException { IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event); IContainerManager containerManager = Activator.getDefault().getContainerManager(); IContainer[] containers = containerManager.getAllContainers(); BrowseDialog ...
public RpcNamespace() { // nothing }
public RpcNamespace() { super(NAME, "Rpc Namespace"); //$NON-NLS-1$ }
public Map getProperties(); }
public Map<String, ?> getProperties(); }
public Class[][] getSupportedParameterTypes() { return new Class[][] { {URL.class}, {String.class}}; }
public Class[][] getSupportedParameterTypes() { return new Class[][] {{URL.class}, {String.class}, {URI.class}}; }
public void unregisterAllServices() { // logger.finer("unregisterAllServices()"); if (services.size() == 0) { return; } Collection list; synchronized (this) { list = new LinkedList(services.values()); services.clear(); } for (final Iterator iterator = list.iterator(); iterator.hasNext();...
public void unregisterAllServices() { // logger.finer("unregisterAllServices()"); if (services.size() == 0) { return; } Collection list; synchronized (this) { list = new LinkedList(services.values()); services.clear(); } for (final Iterator iterator = list.iterator(); iterator.hasNext();...
private void setNodeProperties() { this.nodeProperties.put(NODE_PROPERTY_SERVICE_NAME, getServiceName()); this.nodeProperties.put(NODE_SERVICE_PROPERTIES, super.properties); this.nodeProperties.put(NODE_PROPERTY_NAME_PROTOCOLS, getServiceID() .getServiceTypeID().getProtocols()); this.nodeProperties.put(NOD...
private void setNodeProperties() { this.nodeProperties.put(NODE_PROPERTY_SERVICE_NAME, getServiceName()); this.nodeProperties.put(NODE_SERVICE_PROPERTIES, super.properties); this.nodeProperties.put(NODE_PROPERTY_NAME_PROTOCOLS, getServiceID() .getServiceTypeID().getProtocols()); this.nodeProperties.put(NOD...
public void serviceTypeDiscovered(IServiceTypeEvent anEvent) { events.add(anEvent); if(events.size() == amountOfEventsToExpect) { synchronized (this) { notifyAll(); } } } }
public synchronized void serviceTypeDiscovered(IServiceTypeEvent anEvent) { events.add(anEvent); if(events.size() == amountOfEventsToExpect) { synchronized (this) { notifyAll(); } } } }
public String getPopupJavaScript() { String windowTitle = windowName; if (windowTitle == null) { windowTitle = ""; } else { // Fix for IE bug. windowTitle = windowTitle.replace(':', '_'); } StringBuffer script = new StringBuffer("if (!window.focus) return true; window.open(" + target +...
public String getPopupJavaScript() { String windowTitle = windowName; if (windowTitle == null) { windowTitle = ""; } else { // Fix for IE bug. windowTitle = windowTitle.replace(':', '_'); } StringBuffer script = new StringBuffer("window.open(" + target + ", '").append(windowTitle).appe...
public ResolvedMember[] getDeclaredPointcuts() { if (pointcuts == null) { Pointcut[] pcs = this.myType.getDeclaredPointcuts(); pointcuts = new ResolvedMember[pcs.length]; InternalUseOnlyPointcutParser parser = null; World world = getWorld(); if (world instanceof ReflectionWorld) { parser = new Int...
public ResolvedMember[] getDeclaredPointcuts() { if (pointcuts == null) { Pointcut[] pcs = this.myType.getDeclaredPointcuts(); pointcuts = new ResolvedMember[pcs.length]; InternalUseOnlyPointcutParser parser = null; World world = getWorld(); if (world instanceof ReflectionWorld) { parser = new Int...
public byte[] readResponse(SampleResult sampleResult, InputStream in, int length) throws IOException { byte[] readBuffer = getThreadContext().getReadBuffer(); int bufferSize=32;// Enough for MD5 MessageDigest md=null; boolean asMD5 = useMD5(); if (asMD5) { try {...
public byte[] readResponse(SampleResult sampleResult, InputStream in, int length) throws IOException { byte[] readBuffer = getThreadContext().getReadBuffer(); int bufferSize=32;// Enough for MD5 MessageDigest md=null; boolean asMD5 = useMD5(); if (asMD5) { try {...
public void updateModel() { Object object = getModelObject(); boolean isModelCollection = object instanceof Collection; /* * clear the model */ if (isModelCollection) { modelChanging(); ((Collection)object).clear(); } else { getModel().setObject(this, null); } /* * the input c...
public void updateModel() { Object object = getModelObject(); boolean isModelCollection = object instanceof Collection; /* * clear the model */ if (isModelCollection) { modelChanging(); ((Collection)object).clear(); } else { getModel().setObject(null); } /* * the input contain...
public final String getContent() { return (content != null) ? (String)content.getObject(null) : null; }
public final String getContent() { return (content != null) ? (String)content.getObject() : null; }
protected boolean renameFile(File sourceFile, File destFile, boolean filtering, boolean overwrite) throws IOException, BuildException { if (destFile.isDirectory() || filtering || getFilterSets().size() > 0 || getFilterChains().size() > 0) { return...
protected boolean renameFile(File sourceFile, File destFile, boolean filtering, boolean overwrite) throws IOException, BuildException { if (destFile.isDirectory() || filtering || getFilterSets().size() > 0 || getFilterChains().size() > 0) { return...
public void rename(File from, File to) throws IOException { // identical logic lives in Move.renameFile(): from = normalize(from.getAbsolutePath()).getCanonicalFile(); to = normalize(to.getAbsolutePath()); if (!from.exists()) { System.err.println("Cannot rename nonexisten...
public void rename(File from, File to) throws IOException { // identical logic lives in Move.renameFile(): from = normalize(from.getAbsolutePath()).getCanonicalFile(); to = normalize(to.getAbsolutePath()); if (!from.exists()) { System.err.println("Cannot rename nonexisten...
public static final String EVENT_COMPONENT = "eventComponent";
public void setName(String name) { this.name = name; } } }
private static boolean isEnhanced(byte[] b) { ConstantPoolTable table = new ConstantPoolTable(b); int idx = table.getEndIndex(); idx += 6; // skip access, cls, super int ifaces = table.readUnsignedShort(idx); int clsEntry, utfEntry, len; String name; for (int...
private static boolean isEnhanced(byte[] b) { ConstantPoolTable table = new ConstantPoolTable(b); int idx = table.getEndIndex(); idx += 6; // skip access, cls, super int ifaces = table.readUnsignedShort(idx); int clsEntry, utfEntry; String name; for (int i = ...
protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { AppendingStringBuffer script = new AppendingStringBuffer( "<script type='text/javascript'>_filter_focus_restore('").append( getFocusTrackerFieldCssId()).append("');</script>"); replaceComponentTagBody(markupStre...
protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { AppendingStringBuffer script = new AppendingStringBuffer( "<script type=\"text/javascript\">_filter_focus_restore('").append( getFocusTrackerFieldCssId()).append("');</script>"); replaceComponentTagBody(markupSt...
public static final String PLUGIN_ID = "org.eclipse.ecf.provider.msn"; //$NON-NLS-1$ static final String NAMESPACE_ID = "ecf.msn.gokigenyou";
public static final String PLUGIN_ID = "org.eclipse.ecf.provider.msn"; //$NON-NLS-1$ static final String NAMESPACE_ID = "ecf.msn.gokigenyou"; //$NON-NLS-1$
protected PageParameters getLinkPageParameters() { PageParameters params = new PageParameters(); params.addNamedParameter("pageId", getPage().getId()); return params; }
protected PageParameters getLinkPageParameters() { PageParameters params = new PageParameters(); params.add("pageId", getPage().getId()); return params; }
public InspectorBug(final String id, final WebPage page) { super(id); PageParameters parameters = new PageParameters(); parameters.addNamedParameter("pageId", page.getId()); Link<?> link = new BookmarkablePageLink<Void>("link", InspectorPage.class, parameters); link.add(new NonCachingImage("bug")); add(li...
public InspectorBug(final String id, final WebPage page) { super(id); PageParameters parameters = new PageParameters(); parameters.add("pageId", page.getId()); Link<?> link = new BookmarkablePageLink<Void>("link", InspectorPage.class, parameters); link.add(new NonCachingImage("bug")); add(link); }
public InspectorPage(final PageParameters parameters) { add(new ApplicationView("application", Application.get())); add(new SessionView("session", Session.get())); IManageablePage page = null; try { final int pageId = parameters.getNamedParameter("pageId").toInt(); page = Session.get().getPageManager(...
public InspectorPage(final PageParameters parameters) { add(new ApplicationView("application", Application.get())); add(new SessionView("session", Session.get())); IManageablePage page = null; try { final int pageId = parameters.get("pageId").toInt(); page = Session.get().getPageManager().getPage(page...
// public default // constructor and/ or a constructor with a PageParameters argument // Here, we add a link to a bookmarkable page without passing any // parameters add(new BookmarkablePageLink<Void>("pageLinkNoArgs", BookmarkablePage.class)); // And here, we add a link to a bookmarkable page with passin...
// public default // constructor and/ or a constructor with a PageParameters argument // Here, we add a link to a bookmarkable page without passing any // parameters add(new BookmarkablePageLink<Void>("pageLinkNoArgs", BookmarkablePage.class)); // And here, we add a link to a bookmarkable page with passin...
public Home(final PageParameters parameters) { getSession().bind(); final String word = parameters.getNamedParameter("word").toOptionalString(); if (word == null) { getGame().newGame(5, new WordGenerator()); } else { getGame().newGame(5, new WordGenerator(new String[] { word })); } add(new Boo...
public Home(final PageParameters parameters) { getSession().bind(); final String word = parameters.get("word").toOptionalString(); if (word == null) { getGame().newGame(5, new WordGenerator()); } else { getGame().newGame(5, new WordGenerator(new String[] { word })); } add(new BookmarkablePageL...
public BookDetails(final PageParameters parameters) throws StringValueConversionException { this(Book.get(parameters.getNamedParameter("id").toLong())); }
public BookDetails(final PageParameters parameters) throws StringValueConversionException { this(Book.get(parameters.get("id").toLong())); }
public Page3(PageParameters parameters) { add(new Label("bookmarkparameter", parameters.getNamedParameter("bookmarkparameter") .toOptionalString())); }
public Page3(PageParameters parameters) { add(new Label("bookmarkparameter", parameters.get("bookmarkparameter") .toOptionalString())); }
public HelloWorld(PageParameters params) { add(new Label("message", "Message is: '" + params.getNamedParameter("message").toString() + "'")); }
public HelloWorld(PageParameters params) { add(new Label("message", "Message is: '" + params.get("message").toString() + "'")); }
private void setParameterImpl(String key, Object value) { if (parameters == null) { parameters = new PageParameters(); } parameters.setNamedParameter(key, value); }
private void setParameterImpl(String key, Object value) { if (parameters == null) { parameters = new PageParameters(); } parameters.set(key, value); }
private IRequestablePage getPageInstance(Integer pageId, Class<? extends IRequestablePage> pageClass, PageParameters pageParameters, Integer renderCount) { IRequestablePage page = null; boolean freshCreated = false; if (pageId != null) { page = getPageSource().getPageInstance(pageId); if (page != ...
private IRequestablePage getPageInstance(Integer pageId, Class<? extends IRequestablePage> pageClass, PageParameters pageParameters, Integer renderCount) { IRequestablePage page = null; boolean freshCreated = false; if (pageId != null) { page = getPageSource().getPageInstance(pageId); if (page != ...
public Url mapHandler(IRequestHandler requestHandler) { if (requestHandler instanceof ResourceReferenceRequestHandler) { ResourceReferenceRequestHandler referenceRequestHandler = (ResourceReferenceRequestHandler)requestHandler; ResourceReference reference = referenceRequestHandler.getResourceReference(); ...
public Url mapHandler(IRequestHandler requestHandler) { if (requestHandler instanceof ResourceReferenceRequestHandler) { ResourceReferenceRequestHandler referenceRequestHandler = (ResourceReferenceRequestHandler)requestHandler; ResourceReference reference = referenceRequestHandler.getResourceReference(); ...
private Page processPage(Page page, PageParameters pageParameters) { // the page might have not propagate page parameters from constructor. if that's the case // we force the parameters if (pageParameters != null && page.getPageParameters() != pageParameters) { page.getPageParameters().assign(pageParameter...
private Page processPage(Page page, PageParameters pageParameters) { // the page might have not propagate page parameters from constructor. if that's the case // we force the parameters if (pageParameters != null && page.getPageParameters() != pageParameters) { page.getPageParameters().overwriteWith(pagePa...
public EnclosurePage_4(PageParameters param) { final WebMarkupContainer foo = new WebMarkupContainer("foo"); final Label bar = new Label("bar", "bazqux"); // that one doesn't matter boolean visible = param.getNamedParameter("visible").toBoolean(); bar.setVisible(visible); foo.add(bar); add(foo); }
public EnclosurePage_4(PageParameters param) { final WebMarkupContainer foo = new WebMarkupContainer("foo"); final Label bar = new Label("bar", "bazqux"); // that one doesn't matter boolean visible = param.get("visible").toBoolean(); bar.setVisible(visible); foo.add(bar); add(foo); }
public EnclosurePage_5(PageParameters param) { final WebMarkupContainer foo = new WebMarkupContainer("foo"); final Label bar = new Label("bar", "bazqux"); // that one doesn't matter boolean visible = param.getNamedParameter("visible").toBoolean(); bar.setVisible(visible); foo.add(bar); add(foo); }
public EnclosurePage_5(PageParameters param) { final WebMarkupContainer foo = new WebMarkupContainer("foo"); final Label bar = new Label("bar", "bazqux"); // that one doesn't matter boolean visible = param.get("visible").toBoolean(); bar.setVisible(visible); foo.add(bar); add(foo); }
public void testBookmarkableRequestWithInterceptWithParams() throws Exception { if (true) return; PageParameters pp = new PageParameters(); pp.setNamedParameter("test", "test"); tester.startPage(BookmarkableThrowsInterceptPage.class, pp); assertEquals(tester.getLastRenderedPage().getClass(), Bookmarka...
public void testBookmarkableRequestWithInterceptWithParams() throws Exception { if (true) return; PageParameters pp = new PageParameters(); pp.set("test", "test"); tester.startPage(BookmarkableThrowsInterceptPage.class, pp); assertEquals(tester.getLastRenderedPage().getClass(), BookmarkableSetSecurity...
public A(final PageParameters parameters) { ((WicketApplication)WebApplication.get()).intercept(); file = parameters.getNamedParameter("file").toString(); add(new Label("file", file)); }
public A(final PageParameters parameters) { ((WicketApplication)WebApplication.get()).intercept(); file = parameters.get("file").toString(); add(new Label("file", file)); }