buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public static void getIdColumns(FieldMapping fmd, List cols) { Column[] pkCols = ((ValueMappingImpl)fmd.getValue()).getColumns(); for (int j = 0; j < pkCols.length; j++) { Column newCol = new Column(); newCol.setName(pkCols[j].getName()); cols.add(newCol); ...
public static void getIdColumns(FieldMapping fmd, List cols) { Column[] pkCols = ((ValueMappingImpl)fmd.getValue()).getColumns(); for (int j = 0; j < pkCols.length; j++) { Column newCol = new Column(); newCol.copy(pkCols[j]); cols.add(newCol); } }
protected void createPersistenceUnit() throws ServletException { try { System.err.println("Creating Standalone Persistent Unit " + _unit + ":" + _emf); _emf = OpenJPAPersistence.cast(Persistence.createEntityManagerFactory(_unit)); System.err.println("Created Standalone P...
protected void createPersistenceUnit() throws ServletException { try { System.err.println("Creating Standalone Persistent Unit " + _unit); _emf = OpenJPAPersistence.cast(Persistence.createEntityManagerFactory(_unit)); System.err.println("Created Standalone Persistent Uni...
protected void zipFile(File file, ZipOutputStream zOut, String vPath, int mode) throws IOException { // If the file being added is META-INF/application.xml, we // warn if it's not the one specified in the "appxml" // attribute - or if it's being added twice...
protected void zipFile(File file, ZipOutputStream zOut, String vPath, int mode) throws IOException { // If the file being added is META-INF/application.xml, we // warn if it's not the one specified in the "appxml" // attribute - or if it's being added twice...
protected void zipFile(File file, ZipOutputStream zOut, String vPath, int mode) throws IOException { // If the file being added is WEB-INF/web.xml, we warn if it's // not the one specified in the "webxml" attribute - or if // it's being added twice, meaning...
protected void zipFile(File file, ZipOutputStream zOut, String vPath, int mode) throws IOException { // If the file being added is WEB-INF/web.xml, we warn if it's // not the one specified in the "webxml" attribute - or if // it's being added twice, meaning...
public final boolean isStateless() { return resource == null; }
public final boolean isStateless() { return resourceReference != null; }
protected void extract() { if (source.lastModified() > dest.lastModified()) { log("Expanding " + source.getAbsolutePath() + " to " + dest.getAbsolutePath()); FileOutputStream out = null; CBZip2InputStream zIn = null; InputStream fis = null; ...
protected void extract() { if (source.lastModified() > dest.lastModified()) { log("Expanding " + source.getAbsolutePath() + " to " + dest.getAbsolutePath()); FileOutputStream out = null; CBZip2InputStream zIn = null; InputStream fis = null; ...
public static final PackageResourceReference INDICATOR = new PackageResourceReference( AbstractDefaultAjaxBehavior.class, "wicket-ajax.js");
public static final PackageResourceReference INDICATOR = new PackageResourceReference( AbstractDefaultAjaxBehavior.class, "indicator.gif");
public void setObject(Object object) { throw new UnsupportedOperationException("DetachableModel " + getClass() + " does not support setObject(Object)"); }
public void setObject(Object object) { throw new UnsupportedOperationException("AbstractDetachableModel " + getClass() + " does not support setObject(Object)"); }
public boolean munge(BcelClassWeaver weaver) { LazyClassGen gen = weaver.getLazyClassGen(); if (!gen.getType().equals(cflowStackField.getDeclaringType())) return false; Field f = new FieldGen(cflowStackField.getModifiers(), BcelWorld.makeBcelType(cflowStackField.getReturnType()), cflowStackField.get...
public boolean munge(BcelClassWeaver weaver) { LazyClassGen gen = weaver.getLazyClassGen(); if (!gen.getType().equals(cflowStackField.getDeclaringType())) return false; Field f = new FieldGen(cflowStackField.getModifiers(), BcelWorld.makeBcelType(cflowStackField.getReturnType()), cflowStackField.get...
public void startElement(QName element, XMLAttributes attributes, XSElementDecl elementDecl) throws XNIException { if (DEBUG_METHODS2) { System.out.println(toString()+"#startElement("+ "element={"+element+"},"+ ...
public void startElement(QName element, XMLAttributes attributes, XSElementDecl elementDecl) throws XNIException { if (DEBUG_METHODS2) { System.out.println(toString()+"#startElement("+ "element={"+element+"},"+ ...
private final CMNode buildSyntaxTree(XSParticleDecl startNode) { // We will build a node at this level for the new tree CMNode nodeRet = null; if (startNode.fType == XSParticleDecl.PARTICLE_WILDCARD) { nodeRet = new XSCMAny(startNode.fType, ((XSWildcardDecl)startNode.fValue), fL...
private final CMNode buildSyntaxTree(XSParticleDecl startNode) { // We will build a node at this level for the new tree CMNode nodeRet = null; if (startNode.fType == XSParticleDecl.PARTICLE_WILDCARD) { nodeRet = new XSCMAny(startNode.fType, ((XSWildcardDecl)startNode.fValue), fL...
public final void setWicketNamespace(final String wicketNamespace) { this.wicketNamespace = wicketNamespace; wicketId = wicketNamespace + ":id"; if (!MarkupParser.WICKET.equals(wicketNamespace)) { log.info("You are using a non-standard component name: " + wicketNamespace); } }
public final void setWicketNamespace(final String wicketNamespace) { this.wicketNamespace = wicketNamespace; wicketId = wicketNamespace + ":id"; if (!MarkupParser.WICKET.equals(wicketNamespace)) { log.debug("You are using a non-standard namespace name: '{}'", wicketNamespace); } }
public void remove (int index) { checkWidget(); if (!(0 <= index && index <= itemCount)) error (SWT.ERROR_ITEM_NOT_REMOVED); TableItem item = items [index]; int /*long*/ selection = OS.gtk_tree_view_get_selection (handle); if (item != null && !item.isDisposed ()) { OS.g_signal_handlers_block_matched (selection, ...
public void remove (int index) { checkWidget(); if (!(0 <= index && index < itemCount)) error (SWT.ERROR_ITEM_NOT_REMOVED); TableItem item = items [index]; int /*long*/ selection = OS.gtk_tree_view_get_selection (handle); if (item != null && !item.isDisposed ()) { OS.g_signal_handlers_block_matched (selection, O...
public void setData (String key, Object value) { checkDevice (); if (key == null) error (SWT.ERROR_NULL_ARGUMENT); if (key.equals (ADD_WIDGET_KEY)) { Object [] data = (Object [])value; int handle = ((Integer)data [0]).intValue (); Widget widget = (Widget)data [1]; if (widget == null) removeWidget (handle); ...
public void setData (String key, Object value) { checkDevice (); if (key == null) error (SWT.ERROR_NULL_ARGUMENT); if (key.equals (ADD_WIDGET_KEY)) { Object [] data = (Object [])value; int /*long*/ handle = ((LONG)data [0]).value; Widget widget = (Widget)data [1]; if (widget == null) removeWidget (handle); ...
private void println (List list) { if (list == null || list.isEmpty()) println(NULL_OR_EMPTY); else for (Iterator i = list.iterator(); i.hasNext();) { Object o = i.next(); if (o instanceof Exception) { println((Exception)o); } else { println(i.next()...
private void println (List list) { if (list == null || list.isEmpty()) println(NULL_OR_EMPTY); else for (Iterator i = list.iterator(); i.hasNext();) { Object o = i.next(); if (o instanceof Exception) { println((Exception)o); } else { println(o.toStri...
public void handleEvent(Event event) { if (buttons[0] != null) checkValue[0] = buttons[0].getSelection() ? 1 : 0; value[0] = valueText.getText(); result[0] = event.widget == buttons[1] ? 1 : 0; shell.close(); } }; if (check != null) { buttons[0] = new Button(shell, SWT.CHECK); buttons[0...
public void handleEvent(Event event) { if (buttons[0] != null) checkValue[0] = buttons[0].getSelection() ? 1 : 0; value[0] = valueText.getText(); result[0] = event.widget == buttons[1] ? 1 : 0; shell.close(); } }; if (check != null) { buttons[0] = new Button(shell, SWT.CHECK); buttons[0...
private final XSFacets xsFacets = new XSFacets(); class FacetInfo { XSFacets facetdata; Element nodeAfterFacets; short fPresentFacets; short fFixedFacets; }
private final XSFacets xsFacets = new XSFacets(); static final class FacetInfo { XSFacets facetdata; Element nodeAfterFacets; short fPresentFacets; short fFixedFacets; }
public boolean isVisible () { checkWidget (); return getVisible (); } void redraw () { if (!isVisible ()) return; if ((style & SWT.BAR) != 0) { display.addBar (this); } else { update (); } } void releaseChild () { super.releaseChild (); if (cascade != null) cascade.releaseMenu (); if ((style & SWT.BAR) !...
public boolean isVisible () { checkWidget (); return getVisible (); } void redraw () { if (!isVisible ()) return; if ((style & SWT.BAR) != 0) { display.addBar (this); } else { update (); } } void releaseChild () { super.releaseChild (); if (cascade != null) cascade.releaseMenu (); if ((style & SWT.BAR) !...
public boolean isEnabled () { return getEnabled () && parent.isEnabled (); } void releaseChild () { super.releaseChild (); if (menu != null) menu.dispose (); menu = null; parent.destroyItem (this); } void releaseMenu () { if (!OS.IsSP) setMenu (null); menu = null; } void releaseWidget () { if (menu != null) ...
public boolean isEnabled () { return getEnabled () && parent.isEnabled (); } void releaseChild () { super.releaseChild (); if (menu != null) menu.dispose (); menu = null; parent.destroyItem (this); } void releaseMenu () { if (!OS.IsSP) setMenu (null); menu = null; } void releaseWidget () { if (menu != null) ...
public void pack () { checkWidget (); int index = parent.indexOf (this); if (index == -1) return; int hwnd = parent.handle; int oldWidth = OS.SendMessage (hwnd, OS.LVM_GETCOLUMNWIDTH, index, 0); TCHAR buffer = new TCHAR (parent.getCodePage (), text, true); int headerWidth = OS.SendMessage (hwnd, OS.LVM_GETSTRING...
public void pack () { checkWidget (); int index = parent.indexOf (this); if (index == -1) return; int hwnd = parent.handle; int oldWidth = OS.SendMessage (hwnd, OS.LVM_GETCOLUMNWIDTH, index, 0); TCHAR buffer = new TCHAR (parent.getCodePage (), text, true); int headerWidth = OS.SendMessage (hwnd, OS.LVM_GETSTRING...
public void pack () { checkWidget (); int index = parent.indexOf (this); if (index == -1) return; int columnWidth = 0; int hwnd = parent.handle; int hDC = OS.GetDC (hwnd); int oldFont = 0, newFont = OS.SendMessage (hwnd, OS.WM_GETFONT, 0, 0); if (newFont != 0) oldFont = OS.SelectObject (hDC, newFont); int cp =...
public void pack () { checkWidget (); int index = parent.indexOf (this); if (index == -1) return; int columnWidth = 0; int hwnd = parent.handle; int hDC = OS.GetDC (hwnd); int oldFont = 0, newFont = OS.SendMessage (hwnd, OS.WM_GETFONT, 0, 0); if (newFont != 0) oldFont = OS.SelectObject (hDC, newFont); int cp =...
public boolean isSelected (int index) { checkWidget(); return OS.IsDataBrowserItemSelected (handle, index + 1); } int itemCompareProc () { return sortDirection == SWT.DOWN && sortColumn != null ? display.itemCompareProc : 0; } int itemCompareProc (int browser, int itemOne, int itemTwo, int sortProperty) { if (sor...
public boolean isSelected (int index) { checkWidget(); return OS.IsDataBrowserItemSelected (handle, index + 1); } int itemCompareProc () { return sortDirection == SWT.DOWN && sortColumn != null ? display.itemCompareProc : 0; } int itemCompareProc (int browser, int itemOne, int itemTwo, int sortProperty) { if (sor...
public boolean setParent (Composite parent) { checkWidget (); if (!super.setParent (parent)) return false; OS.SendMessage (handle, OS.TB_SETPARENT, parent.handle, 0); return true; } void setRows (int count) { if ((style & SWT.VERTICAL) != 0) { /* * Feature in Windows. When the TB_SETROWS is used to set the ...
public boolean setParent (Composite parent) { checkWidget (); if (!super.setParent (parent)) return false; OS.SendMessage (handle, OS.TB_SETPARENT, parent.handle, 0); return true; } void setRows (int count) { if ((style & SWT.VERTICAL) != 0) { /* * Feature in Windows. When the TB_SETROWS is used to set the ...
protected IResourceStream locate(Class clazz, String path) { // Log attempt if (log.isDebugEnabled()) { log.debug("Attempting to locate resource '" + path + "' using classloader the servlet context"); } String location; if (clazz == AlternativePageFromWebContext.class) { // this ...
protected IResourceStream locate(Class clazz, String path) { // Log attempt if (log.isDebugEnabled()) { log.debug("Attempting to locate resource '" + path + "' using classloader the servlet context"); } String location; if (clazz == AlternativePageFromWebContext.class) { // this ...
private synchronized static final void initialize(final WebApplication application) { if (charSetMap == null) { // Get servlet context final ServletContext context = application.getWicketServlet().getServletContext(); final InputStream inputStream = context.getResourceAsStream("/WEB-INF/" + Char...
private synchronized static final void initialize(final WebApplication application) { if (charSetMap == null) { // Get servlet context final ServletContext context = application.getServletContext(); final InputStream inputStream = context.getResourceAsStream("/WEB-INF/" + CharSetMap.CHARSET_RESO...
protected void internalInit() { super.internalInit(); if (applicationContext == null) { // this application was not created as a spring bean so we // locate the app context from servlet context ServletContext sc = getWicketServlet().getServletContext(); applicationContext = WebApplicationContextUt...
protected void internalInit() { super.internalInit(); if (applicationContext == null) { // this application was not created as a spring bean so we // locate the app context from servlet context ServletContext sc = getServletContext(); applicationContext = WebApplicationContextUtils .getRequir...
public void respond(RequestCycle requestCycle) { try { WebResponse webResponse = ((WebRequestCycle)requestCycle).getWebResponse(); final ServletContext context = ((WebApplication)requestCycle.getApplication()) .getWicketServlet().getServletContext(); final InputStream in = context.getResourceAsStre...
public void respond(RequestCycle requestCycle) { try { WebResponse webResponse = ((WebRequestCycle)requestCycle).getWebResponse(); final ServletContext context = ((WebApplication)requestCycle.getApplication()) .getServletContext(); final InputStream in = context.getResourceAsStream(url); if (in ...
public static Trace create(String key) { if (isEclipse) { String res = Platform .getDebugOption(pluginName + debugPrefix + key); if (res != null) { if (Boolean.getBoolean(res)) return new Trace(pluginName + "(" + key + ")"); else return null; } else { return null; } } else ...
public static Trace create(String key) { if (isEclipse) { String res = Platform .getDebugOption(pluginName + debugPrefix + key); if (res != null) { if (Boolean.valueOf(res).booleanValue()) return new Trace(pluginName + "(" + key + ")"); else return null; } else { return null; }...
public void bugTestSubmitWithoutUploadFile() { tester.startPage(MockFormFileUploadPage.class); MockFormFileUploadPage page = (MockFormFileUploadPage)tester.getLastRenderedPage(); Session.get().setLocale(Locale.US); FormTester formTester = tester.newFormTester("form"); // without file upload formTester.s...
public void testSubmitWithoutUploadFile() { tester.startPage(MockFormFileUploadPage.class); MockFormFileUploadPage page = (MockFormFileUploadPage)tester.getLastRenderedPage(); Session.get().setLocale(Locale.US); FormTester formTester = tester.newFormTester("form"); // without file upload formTester.subm...
protected int fillCurrentChunk() throws Exception { // // See if we can find a way to reuse the buffer that may have been returned // with a recyled data chunk. // char[] recycledData = fCurrentChunk.toCharArray(); // // If we have overflow from the last call,...
protected int fillCurrentChunk() throws Exception { // // See if we can find a way to reuse the buffer that may have been returned // with a recyled data chunk. // char[] recycledData = fCurrentChunk.toCharArray(); // // If we have overflow from the last call,...
return new String[] {"BottomMargin", "LeftMargin", "RightMargin", "Text", "ToolTipText", "TopMargin"}; /******************************************************************************* * Copyright (c) 2000, 2007 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made...
return new String[] {"BottomMargin", "LeftMargin", "RightMargin", "Text", "ToolTipText", "TopMargin"}; /******************************************************************************* * Copyright (c) 2000, 2007 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made...
public FileEditor() { // Create a button to trigger the file chooser: JButton button= new JButton("Browse..."); button.addActionListener(this); // Get a WrapperEditor to provide the field or combo: editor= new WrapperEditor( new SimpleFileEditor(), new ComboStringEditor(), true, true); //...
public FileEditor() { // Create a button to trigger the file chooser: JButton button= new JButton("Browse..."); button.addActionListener(this); // Get a WrapperEditor to provide the field or combo: editor= new WrapperEditor( new SimpleFileEditor(), new ComboStringEditor(), true, true); //...
private final void shouldNeverHappen(Exception e) throws Error { throw new Error(e); // Programming error: bail out. }
private final void shouldNeverHappen(Exception e) throws Error { throw new Error(e.toString()); // Programming error: bail out. }
package wicket.util.lang; /* * $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 ...
package wicket.util.lang; /* * $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 ...
public final CharSequence getCallbackUrl(final boolean onlyTargetActivePage) { if (getComponent() == null) { throw new IllegalArgumentException( "Behavior must be bound to a component to create the URL"); } final RequestListenerInterface rli; rli = IBehaviorListener.INTERFACE; AppendingSt...
public final CharSequence getCallbackUrl(final boolean onlyTargetActivePage) { if (getComponent() == null) { throw new IllegalArgumentException( "Behavior must be bound to a component to create the URL"); } final RequestListenerInterface rli; rli = IBehaviorListener.INTERFACE; AppendingSt...
public void testInternalErrorPage() { tester.startPage(TestErrorPage.class); AjaxLink link = (AjaxLink)tester.getComponentFromLastRenderedPage("link"); // Cannot use executeAjaxEvent or onClick because WicketTester creates // an AjaxRequestTarget from scratch // tester.executeAjaxEvent(link, "onclick"); ...
public void testInternalErrorPage() { tester.startPage(TestErrorPage.class); AjaxLink link = (AjaxLink)tester.getComponentFromLastRenderedPage("link"); // Cannot use executeAjaxEvent or onClick because WicketTester creates // an AjaxRequestTarget from scratch // tester.executeAjaxEvent(link, "onclick"); ...
protected Tag createTag(TagData tagData, Tag tag, String url) throws ParserException { String baseUrl = (String) tag.getAttribute("HREF"); String absoluteBaseUrl = ""; if (baseUrl != null && baseUrl.length() > 0) { absoluteBaseUrl = baseUrl.trim(); processor.setBaseUrl(absoluteBaseUrl); } return new Ba...
protected Tag createTag(TagData tagData, Tag tag, String url) throws ParserException { String baseUrl = (String) tag.getAttribute("HREF"); String absoluteBaseUrl = ""; if (baseUrl != null && baseUrl.length() > 0) { absoluteBaseUrl = LinkProcessor.removeLastSlash(baseUrl.trim()); processor.setBaseUrl(absolu...
public boolean matches(ResolvedTypeX matchType, ResolvedTypeX aspectType) { ResolvedTypeX onType = matchType.getWorld().resolve(signature.getDeclaringType()); //System.err.println("matching: " + this + " to " + matchType + " onType = " + onType); if (matchType.equals(onType)) { if (!onType.isE...
public boolean matches(ResolvedTypeX matchType, ResolvedTypeX aspectType) { ResolvedTypeX onType = matchType.getWorld().resolve(signature.getDeclaringType()); //System.err.println("matching: " + this + " to " + matchType + " onType = " + onType); if (matchType.equals(onType)) { if (!onType.isE...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); int lineCount = (getStyle() & SWT.SINGLE) != 0 ? 1 : content.getLineCount(); int width = 0; int height = 0; if (wHint == SWT.DEFAULT || hHint == SWT.DEFAULT) { Display display = getDisplay(); int maxHeight = display.getClientArea...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); int lineCount = (getStyle() & SWT.SINGLE) != 0 ? 1 : content.getLineCount(); int width = 0; int height = 0; if (wHint == SWT.DEFAULT || hHint == SWT.DEFAULT) { Display display = getDisplay(); int maxHeight = display.getClientArea...
public void connect(ID targetID1, IConnectContext joinContext) throws ContainerConnectException { synchronized (lock) { if (disposed) throw new ContainerConnectException(Messages.JMDNSDiscoveryContainer_EXCEPTION_CONTAINER_DISPOSED); if (this.targetID != null) throw new ContainerConnectException(Messag...
public void connect(ID targetID1, IConnectContext joinContext) throws ContainerConnectException { synchronized (lock) { if (disposed) throw new ContainerConnectException(Messages.JMDNSDiscoveryContainer_EXCEPTION_CONTAINER_DISPOSED); if (this.targetID != null) throw new ContainerConnectException(Messag...
public static Configuration getConfiguration( SampleResult result, SampleSaveConfiguration saveConfig) { DefaultConfiguration config = new DefaultConfiguration( SAMPLE_RESULT_TAG_NAME, "JMeter Save Service"); if (saveConfig.saveTime())...
public static Configuration getConfiguration( SampleResult result, SampleSaveConfiguration saveConfig) { DefaultConfiguration config = new DefaultConfiguration( SAMPLE_RESULT_TAG_NAME, "JMeter Save Service"); if (saveConfig.saveTime())...
protected void saveSamplerData(HierarchicalStreamWriter writer, MarshallingContext context, HTTPSampleResult res, SampleSaveConfiguration save) { if (save.saveSamplerData()) { writeString(writer, "cookies", res.getCookies()); writeString(writer, "method", res.getHTT...
protected void saveSamplerData(HierarchicalStreamWriter writer, MarshallingContext context, HTTPSampleResult res, SampleSaveConfiguration save) { if (save.saveSamplerData(res)) { writeString(writer, "cookies", res.getCookies()); writeString(writer, "method", res.get...
public void populateItem(final ListItem listItem) { final ListObject value = (ListObject) listItem.getModelObject(); listItem.add(new Label("id", new Integer(value.getId()))); listItem.add(new Label("name", value.getName())); listI...
public void populateItem(final ListItem listItem) { final ListObject value = (ListObject) listItem.getModelObject(); listItem.add(new Label("id", Integer.toString(value.getId()))); listItem.add(new Label("name", value.getName())); ...
public void populateItem(final ListItem listItem) { final ListObject value = (ListObject) listItem.getModelObject(); listItem.add(new Label("id", new Integer(value.getId()))); listItem.add(new SmartLinkLabel("email", value.getEmail())); ...
public void populateItem(final ListItem listItem) { final ListObject value = (ListObject) listItem.getModelObject(); listItem.add(new Label("id", Integer.toString(value.getId()))); listItem.add(new SmartLinkLabel("email", value.getEmail())); ...
public void populateItem(final ListItem listItem) { final ListObject value = (ListObject) listItem.getModelObject(); listItem.add(new Label("id", new Integer(value.getId()))); listItem.add(new Label("email", value.getEmail())); lis...
public void populateItem(final ListItem listItem) { final ListObject value = (ListObject) listItem.getModelObject(); listItem.add(new Label("id", Integer.toString(value.getId()))); listItem.add(new Label("email", value.getEmail())); ...
public void populateItem(final ListItem listItem) { final ReportableListObject value = (ReportableListObject) listItem.getModelObject(); // If first row, print anyway if (previousValue == null) { listItem.add(new L...
public void populateItem(final ListItem listItem) { final ReportableListObject value = (ReportableListObject) listItem.getModelObject(); // If first row, print anyway if (previousValue == null) { listItem.add(new L...
public void populateItem(final ListItem listItem) { final ListObject value = (ListObject) listItem.getModelObject(); listItem.add(new Label("id", new Integer(value.getId()))); listItem.add(new Label("name", value.getName())); listI...
public void populateItem(final ListItem listItem) { final ListObject value = (ListObject) listItem.getModelObject(); listItem.add(new Label("id", Integer.toString(value.getId()))); listItem.add(new Label("name", value.getName())); ...
public void populateItem(final ListItem listItem) { final ListObject value = (ListObject) listItem.getModelObject(); listItem.add(new Label("id", new Integer(value.getId()))); listItem.add(new Label("name", value.getName())); listI...
public void populateItem(final ListItem listItem) { final ListObject value = (ListObject) listItem.getModelObject(); listItem.add(new Label("id", Integer.toString(value.getId()))); listItem.add(new Label("name", value.getName())); ...
public void populateItem(final ListItem listItem) { final ListObject value = (ListObject) listItem.getModelObject(); listItem.add(new Label("id", new Integer(value.getId()))); listItem.add(new Label("email", value.getEmail())); lis...
public void populateItem(final ListItem listItem) { final ListObject value = (ListObject) listItem.getModelObject(); listItem.add(new Label("id", Integer.toString(value.getId()))); listItem.add(new Label("email", value.getEmail())); ...
public static BookmarkablePageLink link(final String name, final Book book, final String noBookTitle) { final BookmarkablePageLink link = new BookmarkablePageLink(name, BookDetails.class); if (book != null) { link.setParameter("id", book.getId()); ...
public static BookmarkablePageLink link(final String name, final Book book, final String noBookTitle) { final BookmarkablePageLink link = new BookmarkablePageLink(name, BookDetails.class); if (book != null) { link.setParameter("id", book.getId()); ...
public void checkUniqueParticleAttribution(SchemaGrammar gram); } // interface XMLContentModel
public void checkUniqueParticleAttribution(SchemaGrammar gram) throws Exception; } // interface XMLContentModel
public String getBaseURI() { if (fDocumentURI != null && fDocumentURI.length() != 0 ) {// attribute value is always empty string try { fDocumentURI = new URI(fDocumentURI).toString(); } catch (org.apache.xerces.util.URI.MalformedURIException e){ ...
public String getBaseURI() { if (fDocumentURI != null && fDocumentURI.length() != 0 ) {// attribute value is always empty string try { return new URI(fDocumentURI).toString(); } catch (org.apache.xerces.util.URI.MalformedURIException e){ //...
private void initializeMapping() { _val.resolve(MODE_MAPPING_INIT); _key.resolve(MODE_MAPPING_INIT); _val.resolve(MODE_MAPPING_INIT); if (_strategy != null) _strategy.initialize(); }
private void initializeMapping() { _val.resolve(MODE_MAPPING_INIT); _key.resolve(MODE_MAPPING_INIT); _elem.resolve(MODE_MAPPING_INIT); if (_strategy != null) _strategy.initialize(); }
public void setUp() { setUp(Person.class, Employee.class, "openjpa.DetachState", "fgs(DetachedStateField=true)"); }
public void setUp() { setUp(Person.class, Employee.class, DROP_TABLES, "openjpa.DetachState", "fgs(DetachedStateField=true)"); }
public void setUp() { setUp(Customer.class, Customer.CustomerKey.class, Order.class, EntityAInverseEager.class, EntityA1InverseEager.class, EntityA2InverseEager.class, EntityBInverseEager.class, EntityCInverseEager.class, EntityDInverseEager.class, Publisher.class, Magazine.c...
public void setUp() { setUp(Customer.class, Customer.CustomerKey.class, Order.class, EntityAInverseEager.class, EntityA1InverseEager.class, EntityA2InverseEager.class, EntityBInverseEager.class, EntityCInverseEager.class, EntityDInverseEager.class, Publisher.class, Magazine.c...
public void setUp() { setUp(AllFieldTypes.class, Person.class); }
public void setUp() { setUp(AllFieldTypes.class, Person.class, DROP_TABLES); }
private DistributedDataSource createDistributedDataStore() { List<DataSource> dataSources = new ArrayList<DataSource>(); boolean isXA = true; for (Slice slice : _slices) { try { DataSource ds = createDataSource(slice); dataSources.add(ds); ...
private DistributedDataSource createDistributedDataStore() { List<DataSource> dataSources = new ArrayList<DataSource>(); boolean isXA = true; for (Slice slice : _slices) { try { DataSource ds = createDataSource(slice); dataSources.add(ds); ...
public void setText (String string) { checkWidget (); if (string == null) error (SWT.ERROR_NULL_ARGUMENT); if ((style & SWT.SEPARATOR) != 0) return; /* * Feature in Windows. For some reason, SetWindowText() for * static controls redraws the control, even when the text has * has not changed. The fix is to check...
public void setText (String string) { checkWidget (); if (string == null) error (SWT.ERROR_NULL_ARGUMENT); if ((style & SWT.SEPARATOR) != 0) return; /* * Feature in Windows. For some reason, SetWindowText() for * static controls redraws the control, even when the text has * has not changed. The fix is to check...
public CLOptionDescriptor(final String name, final int flags, final int id, final String description) { checkFlags(flags); m_id = id; m_name = name; m_flags = flags; m_description = description; m_incompatible = ((flags & DUPLICATES_ALLOWED) > 0) ? new int[0] : new ...
public CLOptionDescriptor(final String name, final int flags, final int id, final String description) { checkFlags(flags); m_id = id; m_name = name; m_flags = flags; m_description = description; m_incompatible = ((flags & DUPLICATES_ALLOWED) != 0) ? new int[0] : new...
public void touchPage(IManageablePage page) { if (page.isPageStateless() == false) { pages.put(page.getPageId(), page); } }
public void touchPage(IManageablePage page) { if (true || page.isPageStateless() == false) { pages.put(page.getPageId(), page); } }
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 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 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 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...
private void refreshFiles() { files.clear(); files.addAll(Arrays.asList(uploadFolder.listFiles())); fileListView.invalidateModel(); }
private void refreshFiles() { files.clear(); files.addAll(Arrays.asList(uploadFolder.listFiles())); fileListView.modelChangedStructure(); }
public void updateValidationFeedback(final Form form) { // Force re-rendering of the list messageListView.setModel(getPage().getFeedbackMessages().model(form)); messageListView.invalidateModel(); }
public void updateValidationFeedback(final Form form) { // Force re-rendering of the list messageListView.setModel(getPage().getFeedbackMessages().model(form)); messageListView.modelChangedStructure(); }
public void setRowsPerPage(final int rows) { this.rows = rows; List list = new ArrayList(); for (int i=0; i < rows; i++) { list.add("row: " + String.valueOf(i)); } this.setModelObject(list); if (this.findParent(Page....
public void setRowsPerPage(final int rows) { this.rows = rows; List list = new ArrayList(); for (int i=0; i < rows; i++) { list.add("row: " + String.valueOf(i)); } this.setModelObject(list); if (this.findParent(Page....
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); Rectangle trim = super.computeTrim (x, y, width, height); int border = 0; if ((style & (SWT.NO_TRIM | SWT.BORDER | SWT.SHELL_TRIM)) == 0) { border = OS.gtk_container_get_border_width (shellHandle); } int trimWidth = trimWidth ()...
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); Rectangle trim = super.computeTrim (x, y, width, height); int border = 0; if ((style & (SWT.NO_TRIM | SWT.BORDER | SWT.SHELL_TRIM)) == 0) { border = OS.gtk_container_get_border_width (shellHandle); } int trimWidth = trimWidth ()...
public int getStyle () { checkWidget (); return style; } int /*long*/ gtk_activate (int /*long*/ widget) { return 0; } int /*long*/ gtk_button_press_event (int /*long*/ widget, int /*long*/ event) { return 0; } int /*long*/ gtk_button_release_event (int /*long*/ widget, int /*long*/ event) { return 0; } int /...
public int getStyle () { checkWidget (); return style; } int /*long*/ gtk_activate (int /*long*/ widget) { return 0; } int /*long*/ gtk_button_press_event (int /*long*/ widget, int /*long*/ event) { return 0; } int /*long*/ gtk_button_release_event (int /*long*/ widget, int /*long*/ event) { return 0; } int /...
authentication[2] == '0'; /******************************************************************************* * 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 v1.0 * which accomp...
authentication[2] == '0'; /******************************************************************************* * 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 v1.0 * which accomp...
public static Duration elapsed(final Time start) { return start.elapsed(); }
public static Duration elapsed(final Time start) { return start.elapsedSince(); }
package org.eclipse.ecf.internal.example.collab.ui; /**************************************************************************** * Copyright (c) 2004 Composent, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 *...
package org.eclipse.ecf.internal.example.collab.ui; /**************************************************************************** * Copyright (c) 2004 Composent, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 *...
package org.eclipse.ecf.internal.example.collab.ui; /**************************************************************************** * Copyright (c) 2004 Composent, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 *...
package org.eclipse.ecf.internal.example.collab.ui; /**************************************************************************** * Copyright (c) 2004 Composent, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 *...
private void initClient() throws JMSException, NamingException { publisher = new Publisher(getUseJNDIPropertiesAsBoolean(), getJNDIInitialContextFactory(), getProviderUrl(), getConnectionFactory(), getDestination(), isUseAuth(), getUsername(), getPassword(), getDestinationSe...
private void initClient() throws JMSException, NamingException { publisher = new Publisher(getUseJNDIPropertiesAsBoolean(), getJNDIInitialContextFactory(), getProviderUrl(), getConnectionFactory(), getDestination(), isUseAuth(), getUsername(), getPassword(), isDestinationSta...
public boolean weave() { if (clazz.getWeaverState().isWoven()) { throw new RuntimeException("already woven: " + clazz); } boolean isChanged = false; // we want to "touch" all aspects if (clazz.getType().isAspect()) isChanged = true; ...
public boolean weave() { if (clazz.getWeaverState().isWoven()) { throw new RuntimeException("already woven: " + clazz); } boolean isChanged = false; // we want to "touch" all aspects if (clazz.getType().isAspect()) isChanged = true; ...
public void updateValidationFeedback(final Form form) { // Force re-rendering of the list messageListView.setModel(getPage().getFeedbackMessages().model(form)); messageListView.modelChangedStructure(); }
public void updateValidationFeedback(final Form form) { // Force re-rendering of the list messageListView.setModelObject(getPage().getFeedbackMessages().messages(form)); messageListView.modelChangedStructure(); }
protected ClientInfo newClientInfo() { if (getApplication().getRequestCycleSettings().getGatherExtendedBrowserInfo()) { Session session = getSession(); if (session.getMetaData(BROWSER_WAS_POLLED_KEY) == null) { // we haven't done the redirect yet; record that we will be // doing that now and redi...
protected ClientInfo newClientInfo() { if (getApplication().getRequestCycleSettings().getGatherExtendedBrowserInfo()) { Session session = getSession(); if (session.getMetaData(BROWSER_WAS_POLLED_KEY) == null) { // we haven't done the redirect yet; record that we will be // doing that now and redi...
public CompoundRequestCycleProcessor(IRequestEncoder requestEncoder, IEventProcessorStrategy eventProcessorStrategy, IExceptionResponseStrategy exceptionResponseStrategy) { this(requestEncoder, new DefaultRequestTargetResolver(), eventProcessorStrategy, new DefaultResponseProcessor(), new DefaultException...
public CompoundRequestCycleProcessor(IRequestEncoder requestEncoder, IEventProcessorStrategy eventProcessorStrategy, IExceptionResponseStrategy exceptionResponseStrategy) { this(requestEncoder, new DefaultRequestTargetResolver(), eventProcessorStrategy, new DefaultResponseProcessor(), exceptionResponseStr...
private void loadResourceMaps() throws BuildException { Locale locale = new Locale(bundleLanguage, bundleCountry, bundleVariant); String language = locale.getLanguage().length() > 0 ? "_" + locale.getLanguage() : ...
private void loadResourceMaps() throws BuildException { Locale locale = new Locale(bundleLanguage, bundleCountry, bundleVariant); String language = locale.getLanguage().length() > 0 ? "_" + locale.getLanguage() : ...
boolean getStatelessHint(); /* * $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 Licens...
boolean getStatelessHint(); /* * $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 Licens...
public ScannedEntity(String name, XMLResourceIdentifier entityLocation, InputStream stream, Reader reader, String encoding, boolean literal, boolean mayReadChunks, boolean isExternal) { super(name,fInExternalSubse...
public ScannedEntity(String name, XMLResourceIdentifier entityLocation, InputStream stream, Reader reader, String encoding, boolean literal, boolean mayReadChunks, boolean isExternal) { super(name,XMLEntityManager...
protected void onComponentRendered() { Response response=getComponent().getResponse(); final String id = getComponent().getMarkupId(); response.write(JavascriptUtils.SCRIPT_OPEN_TAG); response.write("new WicketAutoComplete('"+id+"','"+getCallbackUrl()+"');"); response.write(JavascriptUtils.SCRIPT_CLOSE_TAG)...
protected void onComponentRendered() { Response response=getComponent().getResponse(); final String id = getComponent().getMarkupId(); response.write(JavascriptUtils.SCRIPT_OPEN_TAG); response.write("new Wicket.Ajax.AutoComplete('" + id + "','" + getCallbackUrl() + "');"); response.write(JavascriptUtils.SCR...
private URI convertToURI( org.eclipse.ecf.discovery.IServiceInfo anIServiceInfo) { // get rid of the first underscore String name = anIServiceInfo.getServiceID().getServiceTypeID() .getName().substring(1); // replace the ECF delimiter name = StringUtils.replaceAll(name, "._", "/"); //$NON-NLS-1...
private URI convertToURI( org.eclipse.ecf.discovery.IServiceInfo anIServiceInfo) { // get rid of the first underscore String name = anIServiceInfo.getServiceID().getServiceTypeID() .getName().substring(1); // replace the ECF delimiter name = StringUtils.replaceAll(name, "._", "/"); //$NON-NLS-1...
public void testMissingDirBail() { expectBuildException("testMissingDirBail", "not-there doesn't exist"); assertTrue(getBuildException().getMessage().endsWith(" not found.")); }
public void testMissingDirBail() { expectBuildException("testMissingDirBail", "not-there doesn't exist"); assertTrue(getBuildException().getMessage().endsWith(" does not exist.")); }
public void testDateISO(){ TimeZone timeZone = TimeZone.getTimeZone("GMT"); Calendar cal = Calendar.getInstance(timeZone); emailtaskcal.set(2002,1,23); String text = DateUtils.format(cal.getTime(), DateUtils.ISO8601_DATE_PATTERN); assertEquals("2002-02-23", te...
public void testDateISO(){ TimeZone timeZone = TimeZone.getTimeZone("GMT"); Calendar cal = Calendar.getInstance(timeZone); cal.set(2002,1,23); String text = DateUtils.format(cal.getTime(), DateUtils.ISO8601_DATE_PATTERN); assertEquals("2002-02-23", text); ...
public EAN13BlackBox1TestCase() { super("test/data/blackbox/ean13-1", new MultiFormatReader(), BarcodeFormat.EAN_13); addTest(29, 32, 0.0f); addTest(27, 32, 180.0f); }
public EAN13BlackBox1TestCase() { super("test/data/blackbox/ean13-1", new MultiFormatReader(), BarcodeFormat.EAN_13); addTest(30, 32, 0.0f); addTest(27, 32, 180.0f); }
// test will call persistFromComponentData(), which is private form.onFormSubmitted(); // validate Collection<Cookie> cookies = tester.getServletResponse().getCookies(); Assert.assertEquals(2, cookies.size()); for (Cookie cooky : cookies) { String pathOfStoredComponent = cooky.getName().replaceAll("\\...
// test will call persistFromComponentData(), which is private form.onFormSubmitted(); // validate Collection<Cookie> cookies = tester.getServletResponse().getCookies(); Assert.assertEquals(2, cookies.size()); for (Cookie cooky : cookies) { String pathOfStoredComponent = cooky.getName().replaceAll("\\...
public Widget findWidget (int /*long*/ handle, int id) { return null; } static int /*long*/ fixedClassInitProc (int /*long*/ g_class, int /*long*/ class_data) { GtkWidgetClass klass = new GtkWidgetClass (); OS.memmove (klass, g_class); klass.map = fixedMapProc; OS.memmove (g_class, klass); return 0; } static in...
public Widget findWidget (int /*long*/ handle, int id) { return null; } static int /*long*/ fixedClassInitProc (int /*long*/ g_class, int /*long*/ class_data) { GtkWidgetClass klass = new GtkWidgetClass (); OS.memmove (klass, g_class); klass.map = fixedMapProc; OS.memmove (g_class, klass); return 0; } static in...
public void removeSelectionListener(SelectionListener listener) { checkWidget(); if (listener == null) error (SWT.ERROR_NULL_ARGUMENT); if (eventTable == null) return; eventTable.unhook (SWT.Selection, listener); eventTable.unhook (SWT.DefaultSelection,listener); } int /*long*/ rendererGetSizeProc (int /*long*/ ...
public void removeSelectionListener(SelectionListener listener) { checkWidget(); if (listener == null) error (SWT.ERROR_NULL_ARGUMENT); if (eventTable == null) return; eventTable.unhook (SWT.Selection, listener); eventTable.unhook (SWT.DefaultSelection,listener); } int /*long*/ rendererGetSizeProc (int /*long*/ ...
public void removeTreeListener(TreeListener listener) { checkWidget (); if (listener == null) error (SWT.ERROR_NULL_ARGUMENT); if (eventTable == null) return; eventTable.unhook (SWT.Expand, listener); eventTable.unhook (SWT.Collapse, listener); } int /*long*/ rendererGetSizeProc (int /*long*/ cell, int /*long*/ w...
public void removeTreeListener(TreeListener listener) { checkWidget (); if (listener == null) error (SWT.ERROR_NULL_ARGUMENT); if (eventTable == null) return; eventTable.unhook (SWT.Expand, listener); eventTable.unhook (SWT.Collapse, listener); } int /*long*/ rendererGetSizeProc (int /*long*/ cell, int /*long*/ w...
protected void removeListener (int eventType, SWTEventListener handler) { checkWidget (); if (handler == null) error (SWT.ERROR_NULL_ARGUMENT); if (eventTable == null) return; eventTable.unhook (eventType, handler); } int /*long*/ rendererGetSizeProc (int /*long*/ cell, int /*long*/ handle, int /*long*/ cell_area,...
protected void removeListener (int eventType, SWTEventListener handler) { checkWidget (); if (handler == null) error (SWT.ERROR_NULL_ARGUMENT); if (eventTable == null) return; eventTable.unhook (eventType, handler); } int /*long*/ rendererGetSizeProc (int /*long*/ cell, int /*long*/ handle, int /*long*/ cell_area,...
protected void setUp() throws Exception { // Create container container = createRestContainer(RestConstants.TEST_TWITTER_TARGET); // Get adapter IRestClientContainerAdapter adapter = (IRestClientContainerAdapter) getRestClientContainerAdapter(container); // Setup authentication info adapter.setConnectCont...
protected void setUp() throws Exception { // Create container container = createRestContainer(RestConstants.TEST_TWITTER_TARGET); // Get adapter IRestClientContainerAdapter adapter = (IRestClientContainerAdapter) getRestClientContainerAdapter(container); // Setup authentication info adapter.setConnectCont...
public Object parseProperties(String value) { if (value == null || "".equals(value) || value.indexOf('$') == -1) { return value; } ParsePosition pos = new ParsePosition(0); Object o = parseNextProperty(value, pos); if (o != null && pos.getIndex() == value.length()...
public Object parseProperties(String value) { if (value == null || "".equals(value)) { return value; } ParsePosition pos = new ParsePosition(0); Object o = parseNextProperty(value, pos); if (o != null && pos.getIndex() == value.length()) { return o; ...
public void execute() throws BuildException { if ("javadoc2".equals(taskType)) { log("!! javadoc2 is deprecated. Use javadoc instead. !!"); } if (sourcePath == null || destDir == null ) { String msg = "sourcePath and destDir attributes must be set!"; thro...
public void execute() throws BuildException { if ("javadoc2".equals(taskType)) { log("!! javadoc2 is deprecated. Use javadoc instead. !!"); } if (sourcePath == null || destDir == null ) { String msg = "sourcePath and destDir attributes must be set!"; thro...
public static final StringBuffer getConstants(byte[] bytes) throws IOException { final StringBuffer sb = new StringBuffer(); final ByteArrayInputStream bis = new ByteArrayInputStream(bytes); final ClassParser parser = new ClassParser(bis, ""); final JavaClass javaClass = pars...
public static StringBuffer getConstants(byte[] bytes) throws IOException { final StringBuffer sb = new StringBuffer(); final ByteArrayInputStream bis = new ByteArrayInputStream(bytes); final ClassParser parser = new ClassParser(bis, ""); final JavaClass javaClass = parser.par...
private void validateAppIdClassMethods(Class<?> oid) { try { oid.getConstructor((Class[]) null); } catch (Exception e) { throw new MetaDataException(_loc.get("null-cons", _type)). setCause(e); } // check for equals and hashcode overrides; don'...
private void validateAppIdClassMethods(Class<?> oid) { try { oid.getConstructor((Class[]) null); } catch (Exception e) { throw new MetaDataException(_loc.get("null-cons", oid, _type)). setCause(e); } // check for equals and hashcode overrides;...
protected static ZipLong toDosTime(Date time) { int year = time.getYear() + 1900; int month = time.getMonth() + 1; if (year < 1980) { return DOS_TIME_MIN; } long value = ((year - 1980) << 25) | (month << 21) | (time.getDate...
protected static ZipLong toDosTime(Date time) { int year = time.getYear() + 1900; int month = time.getMonth() + 1; if (year < 1980) { return DOS_TIME_MIN; } long value = ((year - 1980) << 25) | (month << 21) | (time.getDate...
public final void onSubmit() { final RequestCycle cycle = getRequestCycle(); PageParameters parameters = new PageParameters(); final Book book = (Book)getModel().getObject(); parameters.put("id", new Long(book.getId())); cycle.setPage(getPageFactory().newPage(BookDetails.class, parameters)); cycle...
public final void onSubmit() { final RequestCycle cycle = getRequestCycle(); PageParameters parameters = new PageParameters(); final Book book = (Book)getModelObject(); parameters.put("id", new Long(book.getId())); cycle.setPage(getPageFactory().newPage(BookDetails.class, parameters)); cycle.setRe...
public Object getObject() { return (pageLink.linksTo(getPage())) ? "selectedTab" : null; } })); } } }
public Object getObject(final Component component) { return (pageLink.linksTo(getPage())) ? "selectedTab" : null; } })); } } }
public final void setEnabled(final boolean enabled) { this.enabled = enabled; } /** * Detach the model if it was a IDetachableModel * Internal method. shouldn't be called from the outside */ final void detachModel() { replaceModel.detach(); } /** * Checks whether this modifier will add an attribu...
public final void setEnabled(final boolean enabled) { this.enabled = enabled; } /** * Detach the model if it was a IDetachableModel * Internal method. shouldn't be called from the outside */ final void detachModel() { replaceModel.detach(); } /** * Checks whether this modifier will add an attribu...
private boolean homePage() { final String path = getWebRequest().getPath(); final String servletPath = getWebRequest().getServletPath(); if (Strings.isEmpty(path) || ("/".equals(path) && "".equals(servletPath))) { try { Class homePage = application.getPages().getHomePage(); ApplicationPages.Home...
private boolean homePage() { final String path = getWebRequest().getPath(); final String servletPath = getWebRequest().getServletPath(); if (Strings.isEmpty(path) || ("/".equals(path))) { try { Class homePage = application.getPages().getHomePage(); ApplicationPages.HomePageRenderStrategy homePag...
public void init(String file) throws IOException { File datafile = new File(file); BufferedReader reader = null; try { if (datafile.canRead()) { reader = new BufferedReader(new FileReader(datafile)); } else ...
public void init(String file) throws IOException { File datafile = new File(file); BufferedReader reader = null; try { if (datafile.canRead()) { reader = new BufferedReader(new FileReader(datafile)); } else ...