buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void beforeConfigurationLoad(OpenJPAConfiguration c) { c.getStoreFacadeTypeRegistry().registerImplementation(FetchPlan.class, JDBCStoreManager.class, JDBCFetchPlan.class); if (!(c instanceof JDBCConfigurationImpl)) return; JDBCConfigurationImpl conf = (JDBCCo...
public void beforeConfigurationLoad(OpenJPAConfiguration c) { c.getStoreFacadeTypeRegistry().registerImplementation(FetchPlan.class, JDBCStoreManager.class, JDBCFetchPlanImpl.class); if (!(c instanceof JDBCConfigurationImpl)) return; JDBCConfigurationImpl conf = (JD...
private static void checkVersion(Class clazz, String expected) { String actual = "*NONE*"; // $NON-NLS-1$ try { actual = (String) clazz.getMethod("getVersion", null).invoke(null, null); actual = extractVersion(actual); } catch (Exception ignored) { // Not needed } if (0 != actual.compareTo(expected...
private static void checkVersion(Class clazz, String expected) { String actual = "*NONE*"; // $NON-NLS-1$ try { actual = (String) clazz.getMethod("getVersion", null).invoke(null, null); actual = extractVersion(actual); } catch (Exception ignored) { // Not needed } if (0 != actual.compareTo(expected...
SWT.error(SWT.ERROR_UNSUPPORTED_FORMAT); /******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 ...
SWT.error(SWT.ERROR_UNSUPPORTED_FORMAT); /******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 ...
protected void registerResource( final String name, final String classname, final URL url ) throws AntException, RegistryException { if( null == classname ) { try { m_tskDeployer.deployTasklet( name,...
protected void registerResource( final String name, final String classname, final URL url ) throws AntException, RegistryException { if( null == classname ) { try { m_tskDeployer.deployTask( name, ur...
void deployTask( String name, String location, URL url ) /* * 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 file. */ package ...
void deployTask( String name, String location, URL url ) /* * 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 file. */ package ...
log("Unrecognized publicId " + publicId + " - using EJB 1.1 compiler", Project.MSG_WARN); ejbcClassName = COMPILER_EJB11; } } javaTask.setClassname(ejbcClassName); javaTask.createArg().setLine(additionalArgs); ...
log("Unrecognized publicId " + publicId + " - using EJB 1.1 compiler", Project.MSG_WARN); ejbcClassName = COMPILER_EJB11; } } javaTask.setClassname(ejbcClassName); javaTask.createArg().setLine(additionalArgs); ...
public ResourceReferenceRequestHandler(ResourceReference resourceReference, PageParameters pageParameters) { Checks.argumentNotNull(resourceReference, "resourceReference"); this.resourceReference = resourceReference; this.pageParameters = pageParameters; }
public ResourceReferenceRequestHandler(ResourceReference resourceReference, PageParameters pageParameters) { Checks.argumentNotNull(resourceReference, "resourceReference"); this.resourceReference = resourceReference; this.pageParameters = pageParameters != null ? pageParameters : new PageParameters(); }
public UrlInfo(PageComponentInfo pageComponentInfo, Class<? extends IRequestablePage> pageClass, PageParameters pageParameters) { Checks.argumentNotNull(pageClass, "pageClass"); this.pageComponentInfo = pageComponentInfo; this.pageParameters = pageParameters != null ? pageParameters : null; this.pag...
public UrlInfo(PageComponentInfo pageComponentInfo, Class<? extends IRequestablePage> pageClass, PageParameters pageParameters) { Checks.argumentNotNull(pageClass, "pageClass"); this.pageComponentInfo = pageComponentInfo; this.pageParameters = pageParameters; this.pageClass = pageClass; }
protected PageParameters extractPageParameters(Request request, int segmentsToSkip, IPageParametersEncoder encoder) { Checks.argumentNotNull(request, "request"); Checks.argumentNotNull(encoder, "encoder"); // strip the segments and first query parameter from URL Url urlCopy = new Url(request.getUrl()); w...
protected PageParameters extractPageParameters(Request request, int segmentsToSkip, IPageParametersEncoder encoder) { Checks.argumentNotNull(request, "request"); Checks.argumentNotNull(encoder, "encoder"); // strip the segments and first query parameter from URL Url urlCopy = new Url(request.getUrl()); w...
public PageParameters decodePageParameters(Request request) { PageParameters parameters = new PageParameters(); int i = 0; for (String s : request.getUrl().getSegments()) { parameters.setIndexedParameter(i, s); ++i; } for (QueryParameter p : request.getUrl().getQueryParameters()) { parameters...
public PageParameters decodePageParameters(Request request) { PageParameters parameters = new PageParameters(); int i = 0; for (String s : request.getUrl().getSegments()) { parameters.setIndexedParameter(i, s); ++i; } for (QueryParameter p : request.getUrl().getQueryParameters()) { parameters...
private CommandLauncher createShellLauncher( final File antDir ) throws ExecException { CommandLauncher launcher = null; if( Os.isFamily( "mac" ) ) { // Mac launcher = new MacCommandLauncher(); } else if( Os.isFamily( "os/2" ) ) { ...
private CommandLauncher createShellLauncher( final File antDir ) throws ExecException { CommandLauncher launcher = null; if( Os.isFamily( "mac" ) ) { // Mac launcher = new MacCommandLauncher(); } else if( Os.isFamily( "os/2" ) ) { ...
public void textSelectionChanged () { checkWidget(); // not an MSAA event } /* QueryInterface([in] iid, [out] ppvObject) * Ownership of ppvObject transfers from callee to caller so reference count on ppvObject * must be incremented before returning. Caller is responsible for releasing ppvObject. */ in...
public void textSelectionChanged () { checkWidget(); // not an MSAA event } /* QueryInterface([in] iid, [out] ppvObject) * Ownership of ppvObject transfers from callee to caller so reference count on ppvObject * must be incremented before returning. Caller is responsible for releasing ppvObject. */ in...
private static final List<String> replaceForTags = Arrays.asList(new String[] { "a", "q", "sub", "sup", "abbr", "acronym", "cite", "code", "del", "dfn", "em", "ins", "kbd", "samp", "var", "label", "textarea", "tr", "td", "th", "caption", "thead", "tbody", "tfoot", "dl", "dt", "dd", "li", "ol", "ul", "h1", "h2...
private static final List<String> replaceForTags = Arrays.asList(new String[] { "a", "q", "sub", "sup", "abbr", "acronym", "cite", "code", "del", "dfn", "em", "ins", "kbd", "samp", "var", "label", "textarea", "tr", "td", "th", "caption", "thead", "tbody", "tfoot", "dl", "dt", "dd", "li", "ol", "ul", "h1", "h2...
/*public*/ void setFormat(String string) { checkWidget(); // TODO: this needs to be locale sensitive fieldCount = (style & SWT.DATE) != 0 ? ((style & SWT.SHORT) != 0 ? 2 : 3) : ((style & SWT.SHORT) != 0 ? 3 : 4); fieldIndices = new Point[fieldCount]; fieldNames = new int[fieldCount]; if ((style & SWT.DATE) != 0) ...
/*public*/ void setFormat(String string) { checkWidget(); // TODO: this needs to be locale sensitive fieldCount = (style & SWT.DATE) != 0 ? ((style & SWT.SHORT) != 0 ? 2 : 3) : ((style & SWT.SHORT) != 0 ? 3 : 4); fieldIndices = new Point[fieldCount]; fieldNames = new int[fieldCount]; if ((style & SWT.DATE) != 0) ...
protected void deleteAllData() { EntityManager em = emf.createEntityManager(); em.getTransaction().begin(); em.createNativeQuery("delete from supplier_part").executeUpdate(); em.createQuery("delete from PartBase s").executeUpdate(); em.createQuery("delete from Supplier s").e...
protected void deleteAllData() { EntityManager em = emf.createEntityManager(); em.getTransaction().begin(); em.createNativeQuery("delete from Supplier_Part").executeUpdate(); em.createQuery("delete from PartBase s").executeUpdate(); em.createQuery("delete from Supplier s").e...
public void actionPerformed(ActionEvent e) { String[] source = new String[] { Help.HELP_PAGE, functionList.getText()}; ActionEvent helpEvent = new ActionEvent(source, e.getID(), "help"); ActionRouter.getInstance().actionPerformed(he...
public void actionPerformed(ActionEvent e) { String[] source = new String[] { Help.HELP_FUNCTIONS, functionList.getText()}; ActionEvent helpEvent = new ActionEvent(source, e.getID(), "help"); ActionRouter.getInstance().actionPerform...
private Value getValue(JPQLNode node, int handleVar) { Value val = (Value) eval(node); // determind how to evauate a variabe if (!val.isVariable()) return val; else if (handleVar == VAR_PATH) return newPath(val, val.getMetaData()); else if (handleVar ...
private Value getValue(JPQLNode node, int handleVar) { Value val = (Value) eval(node); // determind how to evauate a variabe if (!val.isVariable()) return val; else if (handleVar == VAR_PATH && !(val instanceof Path)) return newPath(val, val.getMetaData()); ...
public boolean isImporter(String configType) { if (configType == null) return false; String method = "isImporter"; //$NON-NLS-1$ Trace.entering(ECFPlugin.PLUGIN_ID, ECFDebugOptions.METHODS_ENTERING, this.getClass(), method); try { IContainerInstantiator ci = getInstantiator(); return (ci instanceof IR...
public boolean isImporterForRemoteConfigType(String configType) { if (configType == null) return false; String method = "isImporter"; //$NON-NLS-1$ Trace.entering(ECFPlugin.PLUGIN_ID, ECFDebugOptions.METHODS_ENTERING, this.getClass(), method); try { IContainerInstantiator ci = getInstantiator(); retur...
public int hashCode () { return handle; } void init(Device device, int width, int height) { if (width <= 0 || height <= 0) { SWT.error (SWT.ERROR_INVALID_ARGUMENT); } this.device = device; this.type = SWT.BITMAP; /* Create the image */ int bpr = width * 4; int dataSize = height * bpr; data = OS.NewPtr(data...
public int hashCode () { return handle; } void init(Device device, int width, int height) { if (width <= 0 || height <= 0) { SWT.error (SWT.ERROR_INVALID_ARGUMENT); } this.device = device; this.type = SWT.BITMAP; /* Create the image */ int bpr = width * 4; int dataSize = height * bpr; data = OS.NewPtr(data...
private static final int MAXOPEN_DEFAULT = 1000; static { String openzipsString = getSystemPropertyWithoutSecurityException("org.aspectj.weaver.openzips",Integer.toString(MAXOPEN_DEFAULT)); maxOpenArchives=Integer.parseInt(openzipsString); if (maxOpenArchives<20) maxOpenArchives=1000; }
private static final int MAXOPEN_DEFAULT = 1000; static { String openzipsString = getSystemPropertyWithoutSecurityException("org.aspectj.weaver.openarchives",Integer.toString(MAXOPEN_DEFAULT)); maxOpenArchives=Integer.parseInt(openzipsString); if (maxOpenArchives<20) maxOpenArchives=1000; }
public int getTopPixel () { checkWidget (); //FIXME return 0; } void HandleKeyDown (int sender, int e) { super.HandleKeyDown (sender, e); if (isDisposed ()) return; if ((style & SWT.SINGLE) != 0) { int key = OS.KeyEventArgs_Key (e); if (key == OS.Key_Return) postEvent (SWT.DefaultSelection); } }
public int getTopPixel () { checkWidget (); //FIXME return 0; } void HandleKeyDown (int sender, int e) { super.HandleKeyDown (sender, e); if (!checkEvent (e)) return; if ((style & SWT.SINGLE) != 0) { int key = OS.KeyEventArgs_Key (e); if (key == OS.Key_Return) postEvent (SWT.DefaultSelection); } }
private static final String VALUE= "\\s*=\\s*(?:\"([^\"]*)\"|'([^']*)'|([^\"'\\s>][^\\s>]*)(?=[\\s>]))"; // Note there's 3 capturing groups per value
private static final String VALUE= "\\s*=\\s*(?:\"([^\"]*)\"|'([^']*)'|([^\"'\\s>\\\\][^\\s>]*)(?=[\\s>]))"; // Note there's 3 capturing groups per value
public void handleMessageEvent(IIMMessageEvent messageEvent) { if (messageEvent instanceof IChatMessageEvent) { IChatMessage m = ((IChatMessageEvent) messageEvent).getChatMessage(); if (receiver != null) { receiver.handleMessage(m.getFromID().getName(), m.getBody()); } } ...
public void handleMessageEvent(IIMMessageEvent messageEvent) { if (messageEvent instanceof IChatMessageEvent) { IChatMessage m = ((IChatMessageEvent) messageEvent).getChatMessage(); if (receiver != null) { receiver.handleMessage(m.getFromID().getName(), m.getBody()); } } ...
public static void disableCaching(WebResponse response) { Args.notNull(response, "response"); response.setDateHeader("Date", System.currentTimeMillis()); response.setDateHeader("Expires", 0); response.setHeader("Pragma", "no-cache"); response.setHeader("Cache-Control", "no-cache"); }
public static void disableCaching(WebResponse response) { Args.notNull(response, "response"); response.setDateHeader("Date", System.currentTimeMillis()); response.setDateHeader("Expires", 0); response.setHeader("Pragma", "no-cache, no-store"); response.setHeader("Cache-Control", "no-cache"); }
protected void onComponentTag(final ComponentTag tag) { super.onComponentTag(tag); checkComponentTag(tag, "form"); if (isRootForm()) { String method = getMethod().toLowerCase(); tag.put("method", method); String url = getActionUrl().toString(); if (encodeUrlInHiddenFields()) { int i = url...
protected void onComponentTag(final ComponentTag tag) { super.onComponentTag(tag); checkComponentTag(tag, "form"); if (isRootForm()) { String method = getMethod().toLowerCase(); tag.put("method", method); String url = getActionUrl().toString(); if (encodeUrlInHiddenFields()) { int i = url...
public boolean isSelected (int index) { checkWidget(); int /*long*/ selection = OS.gtk_tree_view_get_selection (handle); byte [] buffer = Converter.wcsToMbcs (null, Integer.toString (index), true); int /*long*/ path = OS.gtk_tree_path_new_from_string (buffer); boolean answer = OS.gtk_tree_selection_path_is_selecte...
public boolean isSelected (int index) { checkWidget(); int /*long*/ selection = OS.gtk_tree_view_get_selection (handle); byte [] buffer = Converter.wcsToMbcs (null, Integer.toString (index), true); int /*long*/ path = OS.gtk_tree_path_new_from_string (buffer); boolean answer = OS.gtk_tree_selection_path_is_selecte...
public void init() { try { final String appletClassName = getParameter("appletClassName"); Container container = getContentPane(); Class c = Class.forName(appletClassName); if (c != null) { applet = (IApplet)c.newInstance(); applet.init(container, this, getModel()); } } catch (ClassN...
public void init() { try { final String appletClassName = getParameter("appletClassName"); Container container = getContentPane(); Class c = Class.forName(appletClassName); if (c != null) { applet = (IApplet)c.newInstance(); applet.init(this, container, getModel()); } } catch (ClassN...
void init(IAppletServer server, Container container, Object model); package wapplet; import java.awt.Container; /** * The IApplet interface should be implemented by the class passed to the Applet * constructor. This class and every class referenced by it will be * automatically included in the applet JAR file for...
void init(IAppletServer server, Container container, Object model); package wapplet; import java.awt.Container; /** * The IApplet interface should be implemented by the class passed to the Applet * constructor. This class and every class referenced by it will be * automatically included in the applet JAR file for...
public void testScan() throws ParserException { createParser( "<html><head><TITLE>test page</TITLE><BASE HREF=\"http://www.abc.com/\"><a href=\"home.cfm\">Home</a>...</html>", "http://www.google.com/test/index.html"); LinkScanner linkScanner = new LinkScanner("-l"); parser.addScanner(linkScanner); pars...
public void testScan() throws ParserException { createParser( "<html><head><TITLE>test page</TITLE><BASE HREF=\"http://www.abc.com/\"><a href=\"home.cfm\">Home</a>...</html>", "http://www.google.com/test/index.html"); LinkScanner linkScanner = new LinkScanner("-l"); parser.addScanner(linkScanner); pars...
public JDBCSamplerBeanInfo() { super(JDBCSampler.class); createPropertyGroup("varName", new String[] { "dataSource" }); createPropertyGroup("sql", new String[] { "queryType", "query" }); PropertyDescriptor p = property("dataSource"); p.setValue(NOT_UNDEFINED, Boolean.TRUE); p.setValue(DEFAULT, ""); p...
public JDBCSamplerBeanInfo() { super(JDBCSampler.class); createPropertyGroup("varName", new String[] { "dataSource" }); createPropertyGroup("sql", new String[] { "queryType", "query" }); PropertyDescriptor p = property("dataSource"); p.setValue(NOT_UNDEFINED, Boolean.TRUE); p.setValue(DEFAULT, ""); p...
public void startGui(CLOption testFile) { PluginManager.install(this, true); ReportTreeModel treeModel = new ReportTreeModel(); ReportTreeListener treeLis = new ReportTreeListener(treeModel); treeLis.setActionHandler(ReportActionRouter.getInstance()); ReportGuiPackage.getInst...
public void startGui(CLOption testFile) { PluginManager.install(this, true); ReportTreeModel treeModel = new ReportTreeModel(); ReportTreeListener treeLis = new ReportTreeListener(treeModel); treeLis.setActionHandler(ReportActionRouter.getInstance()); ReportGuiPackage.getInst...
private AjAttribute makeAttribute(EclipseWorld world) { if (explicitConstructorCall != null) { MethodBinding explicitConstructor = explicitConstructorCall.binding; if (explicitConstructor.alwaysNeedsAccessMethod()) { explicitConstructor = explicitConstructor.getAccessMethod(); } ((NewConstruc...
private AjAttribute makeAttribute(EclipseWorld world) { if (explicitConstructorCall != null && !(explicitConstructorCall.binding instanceof ProblemMethodBinding)) { MethodBinding explicitConstructor = explicitConstructorCall.binding; if (explicitConstructor.alwaysNeedsAccessMethod()) { explicitConstructor ...
private AjAttribute makeAttribute() { return new AjAttribute.TypeMunger(munger); } public void generateCode(ClassScope classScope, ClassFile classFile) { if (ignoreFurtherInvestigation) { System.err.println("no code for " + this); return; } classFile.extraAttributes.add(new EclipseAttributeAdapt...
private AjAttribute makeAttribute() { return new AjAttribute.TypeMunger(munger); } public void generateCode(ClassScope classScope, ClassFile classFile) { if (ignoreFurtherInvestigation) { //System.err.println("no code for " + this); return; } classFile.extraAttributes.add(new EclipseAttributeAda...
public static ResolvedMember makeResolvedMember(MethodBinding binding) { return new ResolvedMember( Member.METHOD, fromBinding(binding.declaringClass), binding.modifiers, fromBinding(binding.returnType), new String(binding.selector), fromBindings(binding.parameters)); //XXX need to add checked ex...
public static ResolvedMember makeResolvedMember(MethodBinding binding) { return new ResolvedMember( binding.isConstructor() ? Member.CONSTRUCTOR : Member.METHOD, fromBinding(binding.declaringClass), binding.modifiers, fromBinding(binding.returnType), new String(binding.selector), fromBindings(bindi...
public boolean getVisible () { checkWidget (); int /*long*/ scrolledHandle = parent.scrolledHandle; int [] hsp = new int [1], vsp = new int [1]; OS.gtk_scrolled_window_get_policy (scrolledHandle, hsp, vsp); if ((style & SWT.HORIZONTAL) != 0) { return hsp [0] != OS.GTK_POLICY_NEVER; } else { return vsp [0] != ...
public boolean getVisible () { checkWidget (); int /*long*/ scrolledHandle = parent.scrolledHandle; int [] hsp = new int [1], vsp = new int [1]; OS.gtk_scrolled_window_get_policy (scrolledHandle, hsp, vsp); if ((style & SWT.HORIZONTAL) != 0) { return hsp [0] != OS.GTK_POLICY_NEVER; } else { return vsp [0] != ...
public void addSelectionListener (SelectionListener listener) { checkWidget (); if (listener == null) error (SWT.ERROR_NULL_ARGUMENT); TypedListener typedListener = new TypedListener (listener); addListener (SWT.Selection,typedListener); addListener (SWT.DefaultSelection,typedListener); } static int checkStyle (i...
public void addSelectionListener (SelectionListener listener) { checkWidget (); if (listener == null) error (SWT.ERROR_NULL_ARGUMENT); TypedListener typedListener = new TypedListener (listener); addListener (SWT.Selection,typedListener); addListener (SWT.DefaultSelection,typedListener); } static int checkStyle (i...
protected void onAjaxEvent(AjaxRequestTarget target) { // update the container (parent) of the pageable, this assumes that // the pageable is a component, and that it is a child of a web // markup container. Component container = ((Component)pageable); // no need for a nullcheck as there is bound to be a n...
protected void onAjaxEvent(AjaxRequestTarget target) { // update the container (parent) of the pageable, this assumes that // the pageable is a component, and that it is a child of a web // markup container. Component container = ((Component)pageable); // no need for a nullcheck as there is bound to be a n...
private final String getBeanNameOfClass(ApplicationContext ctx, Class clazz) { String[] names = BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ctx, clazz); if (names.length == 0) { throw new IllegalStateException("bean of type [" + clazz.getName() + "] not found"); } if (names.length > 1) { ...
private final String getBeanNameOfClass(ApplicationContext ctx, Class clazz) { String[] names = BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ctx, clazz); if (names.length == 0) { throw new IllegalStateException("bean of type [" + clazz.getName() + "] not found"); } if (names.length > 1) { ...
public void storePage(String sessionId, Page page) { File sessionDir = new File(getWorkDir(), sessionId); sessionDir.mkdirs(); File pageFile = getPageFile(page.getNumericId(), page.getCurrentVersionNumber(), sessionDir); // currently, we always have to write, as we don't know whether // it is a new version...
public void storePage(String sessionId, Page page) { File sessionDir = new File(getWorkDir(), sessionId); sessionDir.mkdirs(); File pageFile = getPageFile(page.getNumericId(), page.getCurrentVersionNumber(), sessionDir); // currently, we always have to write, as we don't know whether // it is a new version...
public String getSelectorStr() { return fSelector.toString(); }
public String getSelectorStr() { return (fSelector != null) ? fSelector.toString() : null; }
protected void internalInit() { settingsAccessible = true; IPageSettings pageSettings = getPageSettings(); // Install default component resolvers pageSettings.addComponentResolver(new AutoComponentResolver()); pageSettings.addComponentResolver(new MarkupInheritanceResolver()); pageSettings.addComponentRe...
protected void internalInit() { settingsAccessible = true; IPageSettings pageSettings = getPageSettings(); // Install default component resolvers pageSettings.addComponentResolver(new AutoComponentResolver()); pageSettings.addComponentResolver(new MarkupInheritanceResolver()); pageSettings.addComponentRe...
public void testComponentTagAttributeModification() throws Exception { // Validate the document String document = tester.getLastResponse().getTextResponse().toString(); log.info(document); Assert.assertTrue(validateDocument(document)); }
public void testComponentTagAttributeModification() throws Exception { // Validate the document String document = tester.getLastResponseAsString(); log.info(document); Assert.assertTrue(validateDocument(document)); }
public void testStatelessComponentPageWithMount() throws Exception { tester.getApplication().mountBookmarkablePage("/stateless", StatelessComponentPage.class); // test is always the home page. it doesn't work then executeTest(StatelessComponentPage.class, "StatelessComponentPage_mount_result.html"); tester.ge...
public void testStatelessComponentPageWithMount() throws Exception { tester.getApplication().mountBookmarkablePage("/stateless", StatelessComponentPage.class); // test is always the home page. it doesn't work then executeTest(StatelessComponentPage.class, "StatelessComponentPage_mount_result.html"); tester.ge...
return new String[] {"Selection", "SelectionIndex", "ToolTipText"}; /******************************************************************************* * Copyright (c) 2000, 2007 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the E...
return new String[] {"Selection", "SelectionIndex", "ToolTipText"}; /******************************************************************************* * Copyright (c) 2000, 2007 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the E...
public void createModel() { try { IFileEditorInput modelFile = (IFileEditorInput) getEditorInput(); String path = modelFile.getFile().getFullPath().toString(); URI uri = URI.createPlatformResourceURI(modelFile.getFile() .getFullPath().toString()); ...
public void createModel() { try { IFileEditorInput modelFile = (IFileEditorInput) getEditorInput(); String path = modelFile.getFile().getFullPath().toString(); URI uri = URI.createPlatformResourceURI(modelFile.getFile() .getFullPath().toString()); ...
public void setTabList (Control [] tabList) { checkWidget (); if (tabList != null) { for (int i=0; i<tabList.length; i++) { Control control = tabList [i]; if (control == null) error (SWT.ERROR_INVALID_ARGUMENT); if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); if (control.parent != this) e...
public void setTabList (Control [] tabList) { checkWidget (); if (tabList != null) { for (int i=0; i<tabList.length; i++) { Control control = tabList [i]; if (control == null) error (SWT.ERROR_INVALID_ARGUMENT); if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); if (control.parent != this) e...
public static void load(IHeaderResponse response) { response.renderJavascriptReference(new JavascriptResourceReference(YuiLib.class, "yahoo/yahoo-min.js")); response.renderJavascriptReference(new JavascriptResourceReference(YuiLib.class, "yuiloader-beta.js")); }
public static void load(IHeaderResponse response) { response.renderJavascriptReference(new JavascriptResourceReference(YuiLib.class, "yahoo/yahoo.js")); response.renderJavascriptReference(new JavascriptResourceReference(YuiLib.class, "yuiloader-beta.js")); }
private static boolean inRange (char ch, char[] range) { int first = 0, last = range.length-1; if (ch < range[0] || ch > range[last]) return false; int middle; while (last - first >= 2) { middle = (first+last)/2; if (ch == range[middle]) ...
private static boolean inRange (char ch, char[] range) { int first = 0, last = range.length-1; if (ch < range[0] || ch > range[last]) return false; int middle; while (last - first >= 2) { middle = (first+last)/2; if (ch == range[middle]) ...
public static ISharedObjectContainer makeSharedObjectContainer( SharedObjectContainerDescription desc, String[] argTypes, Object[] args) throws SharedObjectContainerInstantiationException { debug("makeSharedObjectContainer("+desc+","+Trace.convertStringAToString(argTypes)+","+Trace.c...
public static ISharedObjectContainer makeSharedObjectContainer( SharedObjectContainerDescription desc, String[] argTypes, Object[] args) throws SharedObjectContainerInstantiationException { debug("makeSharedObjectContainer("+desc+","+Trace.convertStringAToString(argTypes)+","+Trace.c...
public static ISynchAsynchConnection makeSynchAsynchConnection( ISynchAsynchConnectionEventHandler handler, ConnectionDescription desc, String[] argTypes, Object[] args) throws ConnectionInstantiationException { debug("makeSynchAsynchConnection(" + handler + "," + desc + ...
public static ISynchAsynchConnection makeSynchAsynchConnection( ISynchAsynchConnectionEventHandler handler, ConnectionDescription desc, String[] argTypes, Object[] args) throws ConnectionInstantiationException { debug("makeSynchAsynchConnection(" + handler + "," + desc + ...
public int getImageIndent () { checkWidget(); if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED); return 0; } String getNameText () { if ((parent.style & SWT.VIRTUAL) != 0) { if (!cached) return "*virtual*"; //$NON-NLS-1$ } return getText (); }
public int getImageIndent () { checkWidget(); if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED); return 0; } String getNameText () { if ((parent.style & SWT.VIRTUAL) != 0) { if (!cached) return "*virtual*"; //$NON-NLS-1$ } return super.getNameText (); }
public int getImageIndent () { checkWidget(); if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED); return imageIndent; // TODO } String getNameText () { if ((parent.style & SWT.VIRTUAL) != 0) { if (!cached) return "*virtual*"; //$NON-NLS-1$ } return getText (); }
public int getImageIndent () { checkWidget(); if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED); return imageIndent; // TODO } String getNameText () { if ((parent.style & SWT.VIRTUAL) != 0) { if (!cached) return "*virtual*"; //$NON-NLS-1$ } return super.getNameText (); }
public Component restoreComponent(String id); }
public Component< ? > restoreComponent(String id); }
public IRequestTarget newRequestTarget(Page page, Component component, RequestListenerInterface listener, RequestParameters requestParameters) { return new ComponentResourceRequestTarget(page, component, listener); } }; /** * Called when a resource is requested. */ void onResourceRequested(); }
public IRequestTarget newRequestTarget(Page page, Component< ? > component, RequestListenerInterface listener, RequestParameters requestParameters) { return new ComponentResourceRequestTarget(page, component, listener); } }; /** * Called when a resource is requested. */ void onResourceRequested(); ...
public static boolean launch (String fileName, String workingDir) { if (fileName == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (isExecutable(fileName)) { try { Compatibility.exec(new String[] {fileName}, null, workingDir); return true; } catch (IOException e) { return false; } } int rc = -1; int ...
public static boolean launch (String fileName, String workingDir) { if (fileName == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (workingDir != null && isExecutable(fileName)) { try { Compatibility.exec(new String[] {fileName}, null, workingDir); return true; } catch (IOException e) { return false; } ...
public static boolean launch (String fileName, String workingDir) { if (fileName == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); NSAutoreleasePool pool = (NSAutoreleasePool) new NSAutoreleasePool().alloc().init(); try { if (isExecutable(fileName)) { try { Compatibility.exec(new String[] {fileName}, null, work...
public static boolean launch (String fileName, String workingDir) { if (fileName == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); NSAutoreleasePool pool = (NSAutoreleasePool) new NSAutoreleasePool().alloc().init(); try { if (workingDir != null && isExecutable(fileName)) { try { Compatibility.exec(new String[] ...
* become public and the original method above can be deprecated. */ static boolean launch (Display display, String fileName, String workingDir) { if (fileName == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (isExecutable(display, fileName)) { try {
* become public and the original method above can be deprecated. */ static boolean launch (Display display, String fileName, String workingDir) { if (fileName == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (workingDir != null && isExecutable(display, fileName)) { try {
* become public and the original method above can be deprecated. */ static boolean launch (Display display, String fileName, String workingDir) { if (fileName == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (isExecutable(display, fileName)) { try {
* become public and the original method above can be deprecated. */ static boolean launch (Display display, String fileName, String workingDir) { if (fileName == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (workingDir != null && isExecutable(display, fileName)) { try {
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 ()...
protected Object onGetObject(final Component component) { final String expression = ognlExpression(component); if (Strings.isEmpty(expression)) { // No expression will cause OGNL to throw an exception. The OGNL // expression to return the current object is "#this". Instead // of throwing that exception...
protected Object onGetObject(final Component component) { final String expression = ognlExpression(component); if (Strings.isEmpty(expression)) { // No expression will cause OGNL to throw an exception. The OGNL // expression to return the current object is "#this". Instead // of throwing that exception...
public void setRequestToComponent(final Component component) { parameters.put("component", component.getPath()); parameters.put("version", "" + component.getPage().getCurrentVersionNumber()); Class c = null; if (component instanceof IRedirectListener) { c = IRedirectListener.class; } else if (compone...
public void setRequestToComponent(final Component component) { parameters.put("path", component.getPath()); parameters.put("version", "" + component.getPage().getCurrentVersionNumber()); Class c = null; if (component instanceof IRedirectListener) { c = IRedirectListener.class; } else if (component in...
private String rebuildUrl(String queryString) { queryString = Strings.replaceAll(queryString, "1=", "component="); queryString = Strings.replaceAll(queryString, "2=", "version="); queryString = Strings.replaceAll(queryString, "4=", "interface=IRedirectListener"); queryString = Strings.replaceAll(q...
private String rebuildUrl(String queryString) { queryString = Strings.replaceAll(queryString, "1=", "path="); queryString = Strings.replaceAll(queryString, "2=", "version="); queryString = Strings.replaceAll(queryString, "4=", "interface=IRedirectListener"); queryString = Strings.replaceAll(queryS...
private String shortenUrl(String queryString) { queryString = Strings.replaceAll(queryString, "component=", "1="); queryString = Strings.replaceAll(queryString, "version=", "2="); queryString = Strings.replaceAll(queryString, "interface=IRedirectListener", "4="); queryString = Strings.replaceAll(q...
private String shortenUrl(String queryString) { queryString = Strings.replaceAll(queryString, "path=", "1="); queryString = Strings.replaceAll(queryString, "version=", "2="); queryString = Strings.replaceAll(queryString, "interface=IRedirectListener", "4="); queryString = Strings.replaceAll(queryS...
private boolean validateDocument(String document, int expectedLinkClickCount) { HtmlDocumentValidator validator = new HtmlDocumentValidator(); Tag html = new Tag("html"); Tag head = new Tag("head"); html.addExpectedChild(head); Tag title = new Tag("title"); head.addExpectedChild(title); title.addExpected...
private boolean validateDocument(String document, int expectedLinkClickCount) { HtmlDocumentValidator validator = new HtmlDocumentValidator(); Tag html = new Tag("html"); Tag head = new Tag("head"); html.addExpectedChild(head); Tag title = new Tag("title"); head.addExpectedChild(title); title.addExpected...
private static Vector jrePackages; static { // Determine the Java version by looking at available classes // java.net.Proxy was introduced in JDK 1.5 // java.lang.CharSequence was introduced in JDK 1.4 // java.lang.StrictMath was introduced in JDK 1.3 // java.lang.Thre...
private static Vector jrePackages; static { // Determine the Java version by looking at available classes // java.net.Proxy was introduced in JDK 1.5 // java.lang.CharSequence was introduced in JDK 1.4 // java.lang.StrictMath was introduced in JDK 1.3 // java.lang.Thre...
private void logVmExit(FormatterElement[] feArray, JUnitTest test, String message, String testCase) { if (delegate == null) { setupJUnitDelegate(); } try { log("Using System properties " + System.getProperties(), Project.MSG...
private void logVmExit(FormatterElement[] feArray, JUnitTest test, String message, String testCase) { if (delegate == null) { setupJUnitDelegate(); } try { log("Using System properties " + System.getProperties(), Project.MSG...
public String encodeURL(String url) { return currentResponse.encodeURL(url); }; }; setResponse(redirectResponse); // test if the invoker page was the same as the page that is going to be renderd if (getInvokePage() == getResponsePage()) { // set it to null because it is al...
public String encodeURL(String url) { return currentResponse.encodeURL(url); }; }; setResponse(redirectResponse); // test if the invoker page was the same as the page that is going to be renderd if (getInvokePage() == getResponsePage()) { // set it to null because it is al...
public <Y> Expression<Y> as(Class<Y> type) { return new Expressions.CastAs<Y>(type, this); }
public <Y> Expression<Y> as(Class<Y> type) { return type == getJavaType() ? (Expression<Y>)this : new Expressions.CastAs<Y>(type, this); }
private void normalizeWhitespace( String value, boolean collapse) { boolean skipSpace = collapse; char c; int size = value.length(); // ensure the ch array is big enough if (fNormalizedStr.ch == null || fNormalizedStr.ch.length < size) { fNormalizedStr.ch = new c...
private void normalizeWhitespace( String value, boolean collapse) { boolean skipSpace = collapse; char c; int size = value.length(); // ensure the ch array is big enough if (fNormalizedStr.ch == null || fNormalizedStr.ch.length < size) { fNormalizedStr.ch = new c...
public void test_update() { final int COUNT = 2000000; PerformanceMeter meter = createMeter(getTypeString() + "update"); meter.start(); for (int i = 0; i < COUNT; i++) { control.update(); } meter.stop(); disposeMeter(meter); }
public void test_update() { final int COUNT = isGTK ? 20000 : 2000000; PerformanceMeter meter = createMeter(getTypeString() + "update"); meter.start(); for (int i = 0; i < COUNT; i++) { control.update(); } meter.stop(); disposeMeter(meter); }
private Collection replaceValues( PropertyIterator iter, ValueTransformer transform) throws InvalidVariableException { List props = new LinkedList(); while(iter.hasNext()) { JMeterProperty val = iter.next(); if (log.isDebugEnabled()) ...
private Collection replaceValues( PropertyIterator iter, ValueTransformer transform) throws InvalidVariableException { List props = new LinkedList(); while(iter.hasNext()) { JMeterProperty val = iter.next(); if (log.isDebugEnabled()) ...
public final void onFormSubmitted() { markFormsSubmitted(); if (handleMultiPart()) { // Tells FormComponents that a new user input has come inputChanged(); String url = getRequest().getParameter(getHiddenFieldId()); if (!Strings.isEmpty(url)) { dispatchEvent(getPage(), url); } else ...
public final void onFormSubmitted() { markFormsSubmitted(); if (handleMultiPart()) { // Tells FormComponents that a new user input has come inputChanged(); String url = getRequest().getParameter(getHiddenFieldId()); if (!Strings.isEmpty(url)) { dispatchEvent(getPage(), url); } else ...
protected final String scanAttDefaultDecl(String elName, String atName, String type, XMLString defaultVal, XMLString nonNormalizedDefaultVal) throws IOException, XNIExcep...
protected final String scanAttDefaultDecl(String elName, String atName, String type, XMLString defaultVal, XMLString nonNormalizedDefaultVal) throws IOException, XNIExcep...
protected void scanAttribute(XMLAttributes attributes) throws IOException, XNIException { if (DEBUG_CONTENT_SCANNING) System.out.println(">>> scanAttribute()"); // name if (fNamespaces) { fEntityScanner.scanQName(fAttributeQName); } else { St...
protected void scanAttribute(XMLAttributes attributes) throws IOException, XNIException { if (DEBUG_CONTENT_SCANNING) System.out.println(">>> scanAttribute()"); // name if (fNamespaces) { fEntityScanner.scanQName(fAttributeQName); } else { St...
protected void scanAttribute(XMLAttributesImpl attributes) throws IOException, XNIException { if (DEBUG_CONTENT_SCANNING) System.out.println(">>> scanAttribute()"); // name fEntityScanner.scanQName(fAttributeQName); // equals fEntityScanner.skipSpaces(); if (!fE...
protected void scanAttribute(XMLAttributesImpl attributes) throws IOException, XNIException { if (DEBUG_CONTENT_SCANNING) System.out.println(">>> scanAttribute()"); // name fEntityScanner.scanQName(fAttributeQName); // equals fEntityScanner.skipSpaces(); if (!fE...
private void checkProxy() { if (System.getProperty("JMeter.NonGui") != null && System.getProperty("JMeter.NonGui").equals("true")) { this.setUseProxy(true); // we check to see if the proxy host and port are set String port = this.getPropertyAsString(PROXY_PORT); ...
private void checkProxy() { if (JMeter.isNonGUI()) { this.setUseProxy(true); // we check to see if the proxy host and port are set String port = this.getPropertyAsString(PROXY_PORT); String host = this.getPropertyAsString(PROXY_HOST); if (host == n...
void showDropTargetEffect(int effect, int eventType, int x, int y) { /******************************************************************************* * Copyright (c) 2000, 2006 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the ...
void showDropTargetEffect(int effect, int eventType, int x, int y) { /******************************************************************************* * Copyright (c) 2000, 2006 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the ...
void showDropTargetEffect(int effect, int eventType, int x, int y) { /******************************************************************************* * Copyright (c) 2000, 2006 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the ...
void showDropTargetEffect(int effect, int eventType, int x, int y) { /******************************************************************************* * Copyright (c) 2000, 2006 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the ...
public boolean generatedClassesExist(ClassLoader loader){ return ((ClassLoaderWeavingAdaptor)WeaverContainer.getWeaver(loader, weavingContext)).generatedClassesExist(); }
public boolean generatedClassesExist(ClassLoader loader){ return ((ClassLoaderWeavingAdaptor)WeaverContainer.getWeaver(loader, weavingContext)).generatedClassesExistFor(null); }
protected final void handleRender(final RequestCycle cycle) { // Render the tag that included this html compoment final MarkupStream markupStream = findMarkupStream(); if (!markupStream.atOpenCloseTag()) { markupStream.throwMarkupException( "A pan...
protected final void handleRender(final RequestCycle cycle) { // Render the tag that included this html compoment final MarkupStream markupStream = findMarkupStream(); if (!markupStream.atOpenCloseTag()) { markupStream.throwMarkupException( "A pan...
public void validate(Source source, Result result) throws SAXException, IOException { if (result instanceof SAXResult || result == null) { final SAXSource saxSource = (SAXSource) source; final SAXResult saxResult = (SAXResult) result; LexicalHandler ...
public void validate(Source source, Result result) throws SAXException, IOException { if (result instanceof SAXResult || result == null) { final SAXSource saxSource = (SAXSource) source; final SAXResult saxResult = (SAXResult) result; LexicalHandler ...
protected IModel getListItemModel(final IModel model, final int index) { return new BoundCompoundPropertyModel(super.getListItemModel(model, index)); } }
protected IModel<T> getListItemModel(final IModel<List<T>> model, final int index) { return new BoundCompoundPropertyModel(super.getListItemModel(model, index)); } }
public void disconnect() { ID groupID = getConnectedID(); fireContainerEvent(new ContainerDisconnectingEvent(this.getID(), groupID)); synchronized (getConnectLock()) { // If we are currently connected if (isConnected()) { try { multiuserchat.leave(); } catch (Exception e) { traceStack...
public void disconnect() { ID groupID = getConnectedID(); fireContainerEvent(new ContainerDisconnectingEvent(this.getID(), groupID)); synchronized (getConnectLock()) { // If we are currently connected if (isConnected()) { try { multiuserchat.leave(); } catch (Exception e) { traceStack...
public void setEmacsMode(boolean emacsMode) { throw new java.lang.UnsupportedOperationException("Method setEmacsMode() not yet implemented."); }
public void setEmacsMode(boolean emacsMode) { throw new java.lang.RuntimeException("Method setEmacsMode() not yet implemented."); }
protected void logAndAddFilesToCompile(Commandline cmd) { Vector compileList = attributes.getCompileList(); attributes.log("Compilation args: " + cmd.toString(), Project.MSG_VERBOSE); StringBuffer niceSourceList = new StringBuffer("File"); if (compileList.siz...
protected void logAndAddFilesToCompile(Commandline cmd) { Vector compileList = attributes.getCompileList(); attributes.log("Compilation args: " + cmd.toString(), Project.MSG_VERBOSE); StringBuffer niceSourceList = new StringBuffer("File"); if (compileList.siz...
public RemoteJMeterEngineImpl() throws RemoteException { try { backingEngine = new StandardJMeterEngine(InetAddress.getLocalHost().getHostName()); Naming.rebind("JMeterEngine", this); } catch(Exception ex) { log.error("",ex); } }
public RemoteJMeterEngineImpl() throws RemoteException { try { backingEngine = new StandardJMeterEngine(InetAddress.getLocalHost().getHostName()); Naming.rebind("JMeterEngine", this); } catch(Exception ex) { log.error("rmiregistry needs to be running to start JMeter in server mode",ex); } }
public void doAction(ActionEvent e) { if(e.getActionCommand().equals("start")) { startEngine(); } else if(e.getActionCommand().equals("stop")) { GuiPackage.getInstance().getMainFrame().showStoppingMessage(); engine.stopTest(); engine = null; } }
public void doAction(ActionEvent e) { if(e.getActionCommand().equals("start")) { startEngine(); } else if(e.getActionCommand().equals("stop")) { GuiPackage.getInstance().getMainFrame().showStoppingMessage(""); engine.stopTest(); engine = null; } }
public static String MAXUSE = "JDBCSampler.maxuse"; //database connection pool manager DBConnectionManager manager = DBConnectionManager.getManager(); // end method
public static String MAXUSE = "JDBCSampler.maxuse"; //database connection pool manager transient DBConnectionManager manager = DBConnectionManager.getManager(); // end method
public Value[] eval(String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate) { throw new AbstractMethodError(); }
public Value[] eval(String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate) { return null; }
protected void disconnect(HttpURLConnection conn) { if (conn != null) { String connection = conn.getHeaderField(HEADER_CONNECTION); String protocol = conn.getHeaderField(0); if ((connection == null && (protocol == null || !protocol.startsWith(HTTP_1_1))) ...
protected void disconnect(HttpURLConnection conn) { if (conn != null) { String connection = conn.getHeaderField(HEADER_CONNECTION); String protocol = conn.getHeaderField(0); if ((connection == null && (protocol == null || !protocol.startsWith(HTTP_1_1))) ...
public void setOutput(Resource output) { if (this.output != null) { throw new BuildException("Cannot set > 1 output target"); } this.output = output; FileProvider fp = (FileProvider) output.as(FileProvider.class); this.file = fp != null ? fp.getFile() : null; ...
public void setOutput(Resource output) { if (this.output != null) { throw new BuildException("Cannot set > 1 output target"); } this.output = output; FileProvider fp = output.as(FileProvider.class); this.file = fp != null ? fp.getFile() : null; }
public synchronized void addConfigured(ResourceCollection a) { if (src != null) { throw new BuildException("only a single source is supported"); } if (a.size() != 1) { throw new BuildException( "only single-element resource collections are supporte...
public synchronized void addConfigured(ResourceCollection a) { if (src != null) { throw new BuildException("only a single source is supported"); } if (a.size() != 1) { throw new BuildException( "only single-element resource collections are supporte...
public void addConfigured(ResourceCollection a) { if (a.size() != 1) { throw new BuildException("only single argument resource collections" + " are supported"); } src = (Resource) a.iterator().next(); }
public void addConfigured(ResourceCollection a) { if (a.size() != 1) { throw new BuildException("only single argument resource collections" + " are supported"); } src = a.iterator().next(); }
public boolean eval() throws BuildException { if (resources == null) { throw new BuildException( "You must specify one or more nested resource collections"); } if (resources.size() > 1) { Iterator i = resources.iterator(); Resource r1 = (Re...
public boolean eval() throws BuildException { if (resources == null) { throw new BuildException( "You must specify one or more nested resource collections"); } if (resources.size() > 1) { Iterator<Resource> i = resources.iterator(); Resourc...
public void setSrc(Resource src) { this.src = src; FileProvider fp = (FileProvider) src.as(FileProvider.class); if (fp != null) { srcFile = fp.getFile(); } }
public void setSrc(Resource src) { this.src = src; FileProvider fp = src.as(FileProvider.class); if (fp != null) { srcFile = fp.getFile(); } }
protected void fillMapsFromArchive(Resource src, String encoding, Map fileEntries, Map matchFileEntries, Map dirEntries, Map matchDirEntries) { ZipEntry entry = null; ZipFile zf = null; File srcFile = null; ...
protected void fillMapsFromArchive(Resource src, String encoding, Map fileEntries, Map matchFileEntries, Map dirEntries, Map matchDirEntries) { ZipEntry entry = null; ZipFile zf = null; File srcFile = null; ...
public File getZipfile() { FileProvider fp = (FileProvider) getArchive().as(FileProvider.class); return fp.getFile(); }
public File getZipfile() { FileProvider fp = getArchive().as(FileProvider.class); return fp.getFile(); }
public boolean isSelected(Resource r) { FileProvider fp = (FileProvider) r.as(FileProvider.class); if (fp != null) { return isSelected(null, null, fp.getFile()); } return false; }
public boolean isSelected(Resource r) { FileProvider fp = r.as(FileProvider.class); if (fp != null) { return isSelected(null, null, fp.getFile()); } return false; }
public IMarkupFragment getMarkup() { return Markup.get("<html xmlns:wicket><body>" // + "<span wicket:id='myLabel'>mein Label</span>" // + "<span wicket:id='test'>body</span>" // + "<span wicket:id='myPanel'>panel</span>" // + "<span wicket:id='myBorder'>border</span>" // + "</body></html>"); }
public IMarkupFragment getMarkup() { return Markup.of("<html xmlns:wicket><body>" // + "<span wicket:id='myLabel'>mein Label</span>" // + "<span wicket:id='test'>body</span>" // + "<span wicket:id='myPanel'>panel</span>" // + "<span wicket:id='myBorder'>border</span>" // + "</body></html>"); }
public IMarkupFragment getMarkup() { return Markup.get("<wicket:panel><span wicket:id='label'></span></wicket:panel>"); }
public IMarkupFragment getMarkup() { return Markup.of("<wicket:panel><span wicket:id='label'></span></wicket:panel>"); }