buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public final synchronized Page getPage(final String pageMapName, final String path, final int versionNumber) { if (log.isDebugEnabled()) { log.debug("Getting page [path = " + path + ", versionNumber = " + versionNumber + "]"); } // Get page map by name, creating the default page map automatically Pag...
public final synchronized Page getPage(final String pageMapName, final String path, final int versionNumber) { if (log.isDebugEnabled()) { log.debug("Getting page [path = " + path + ", versionNumber = " + versionNumber + "]"); } // Get page map by name, creating the default page map automatically Pag...
public void setRequestToComponent(final Component component) { final IPageMap pageMap = component.getPage().getPageMap(); final String pageMapName = pageMap.isDefault() ? "" : pageMap.getName(); if (component instanceof BookmarkablePageLink) { final Class<? extends Page> clazz = ((BookmarkablePageLink)comp...
public void setRequestToComponent(final Component component) { final IPageMap pageMap = component.getPage().getPageMap(); final String pageMapName = pageMap.isDefault() ? "" : pageMap.getName(); if (component instanceof BookmarkablePageLink) { final Class<? extends Page> clazz = ((BookmarkablePageLink<?>)c...
protected HTTPSampleResult errorResult(Throwable e, HTTPSampleResult res) { res.setSampleLabel("Error"); res.setDataType(SampleResult.TEXT); ByteArrayOutputStream text = new ByteArrayOutputStream(200); e.printStackTrace(new PrintStream(text)); res.setResponseData(text.toByteA...
protected HTTPSampleResult errorResult(Throwable e, HTTPSampleResult res) { res.setSampleLabel("Error: " + res.getSampleLabel()); res.setDataType(SampleResult.TEXT); ByteArrayOutputStream text = new ByteArrayOutputStream(200); e.printStackTrace(new PrintStream(text)); res.set...
public void onComponentTag(Component component, ComponentTag tag) { // get the path final String path = contextRelativePath.getObject(); // generate prefix that will make path context relative final String prefix = component.getRequest().getRelativePathPrefixToContextRoot(); // join the two path pieces ...
public void onComponentTag(Component component, ComponentTag tag) { // get the path final String path = contextRelativePath.getObject(); // generate prefix that will make path context relative final String prefix = component.getRequest().getRelativePathPrefixToContextRoot(); // join the two path pieces ...
public PrinterData open() { PrinterData data = null; NSPrintPanel panel = NSPrintPanel.printPanel(); NSPrintInfo printInfo = new NSPrintInfo(NSPrintInfo.sharedPrintInfo().copy()); printInfo.setOrientation(printerData.orientation == PrinterData.LANDSCAPE ? OS.NSLandscapeOrientation : OS.NSPortraitOrientation); NSMu...
public PrinterData open() { PrinterData data = null; NSPrintPanel panel = NSPrintPanel.printPanel(); NSPrintInfo printInfo = new NSPrintInfo(NSPrintInfo.sharedPrintInfo().copy()); printInfo.setOrientation(printerData.orientation == PrinterData.LANDSCAPE ? OS.NSLandscapeOrientation : OS.NSPortraitOrientation); NSMu...
public SystemMapper(final Application application) { this.application = application; add(RestartResponseAtInterceptPageException.MAPPER); add(new PageInstanceMapper()); add(new BookmarkableMapper()); add(new HomePageMapper(new HomePageProvider(application))); add(new ResourceReferenceMapper(new PageParame...
public SystemMapper(final Application application) { this.application = application; add(RestartResponseAtInterceptPageException.MAPPER); add(new PageInstanceMapper()); add(new BookmarkableMapper()); add(new HomePageMapper(new HomePageProvider<Page>(application))); add(new ResourceReferenceMapper(new Page...
private Manifest createManifest() throws BuildException { try { Manifest finalManifest = Manifest.getDefaultManifest(); if (manifest == null) { if (manifestFile != null) { // if we haven't got the manifest yet, attempt to ...
private Manifest createManifest() throws BuildException { try { Manifest finalManifest = Manifest.getDefaultManifest(); if (manifest == null) { if (manifestFile != null) { // if we haven't got the manifest yet, attempt to ...
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 ...
private void sslManager() { SSLManager.reset(); keyStoreChooser = new JFileChooser(JMeterUtils.getJMeterProperties().getProperty("user.dir")); //$NON-NLS-1$ keyStoreChooser.addChoosableFileFilter(new AcceptPKCS12FileFilter()); keyStoreChooser.setFileSelectionMode(JFileChooser.FILES_...
private void sslManager() { SSLManager.reset(); keyStoreChooser = new JFileChooser(System.getProperty("user.dir")); //$NON-NLS-1$ keyStoreChooser.addChoosableFileFilter(new AcceptPKCS12FileFilter()); keyStoreChooser.setFileSelectionMode(JFileChooser.FILES_ONLY); int retVal =...
public void actionPerformed(ActionEvent e) { if (e.getSource() == clear) { this.clearFiles(); } else if (e.getActionCommand().equals(ACTION_BROWSE)) { JFileChooser chooser = new JFileChooser(); String start = JMeterUtils.getPropDefault("user.dir", ""); // $NON-NLS...
public void actionPerformed(ActionEvent e) { if (e.getSource() == clear) { this.clearFiles(); } else if (e.getActionCommand().equals(ACTION_BROWSE)) { JFileChooser chooser = new JFileChooser(); String start = System.getProperty("user.dir", ""); // $NON-NLS-1$ // $...
private static final String binaryDirectory = JMeterUtils.getPropDefault("proxy.binary.directory",// $NON-NLS-1$ JMeterUtils.getProperty("user.dir")); // $NON-NLS-1$ proxy.binary.filetype=binary
private static final String binaryDirectory = JMeterUtils.getPropDefault("proxy.binary.directory",// $NON-NLS-1$ System.getProperty("user.dir")); // $NON-NLS-1$ proxy.binary.filetype=binary
public static JFileChooser promptToOpenFile() { if (lastJFCDirectory == null) { String start = JMeterUtils.getPropDefault("user.dir", ""); if (!start.equals("")) { jfc.setCurrentDirectory(new File(start)); } } jfc.setFileSelectionMode(JFi...
public static JFileChooser promptToOpenFile() { if (lastJFCDirectory == null) { String start = System.getProperty("user.dir", ""); if (!start.equals("")) { jfc.setCurrentDirectory(new File(start)); } } jfc.setFileSelectionMode(JFileChoose...
public NSSize paperSize() { NSSize result = new NSSize(); OS.objc_msgSend_stret(result, this.id, OS.sel_paperSize); return result; }
public NSSize paperSize() { NSSize result = new NSSize(); OS.objc_msgSend_struct(result, this.id, OS.sel_paperSize); return result; }
public BcelObjectType addSourceObjectType(JavaClass jc) { BcelObjectType ret = null; String signature = UnresolvedType.forName(jc.getClassName()).getSignature(); Object fromTheMap = typeMap.get(signature); if (fromTheMap!=null && !(fromTheMap instanceof ReferenceType)) { // what on earth is it then? S...
public BcelObjectType addSourceObjectType(JavaClass jc) { BcelObjectType ret = null; String signature = UnresolvedType.forName(jc.getClassName()).getSignature(); Object fromTheMap = typeMap.get(signature); if (fromTheMap!=null && !(fromTheMap instanceof ReferenceType)) { // what on earth is it then? S...
public void makeGraph() { String wstr = graphWidth.getText(); String hstr = graphHeight.getText(); if (wstr.length() == 0) { wstr = "450"; } if (hstr.length() == 0) { hstr = "250"; } int width = Integer.parseInt(wstr); int heigh...
public void makeGraph() { String wstr = graphWidth.getText(); String hstr = graphHeight.getText(); if (wstr.length() == 0) { wstr = "450"; } if (hstr.length() == 0) { hstr = "250"; } int width = Integer.parseInt(wstr); int heigh...
protected boolean supportsDeferredForeignKeyConstraints() { return supportsUniqueConstraints; }
protected boolean supportsDeferredForeignKeyConstraints() { return supportsDeferredConstraints; }
public interface IPageClassRequestTarget extends IRequestTarget, ISessionSynchronizable, IAccessCheckingTarget /* * $Id$ * $Revision$ $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this...
public interface IPageClassRequestTarget extends IRequestTarget, ISessionSynchronizable, IAccessCheckingTarget /* * $Id$ * $Revision$ $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this...
public Type[] getGenericParameterTypes() { if (this.genericParameterTypes == null) { Type[] genTypes = adviceMethod.getGenericParameterTypes(); int syntheticCount = 0; for (Type t : genTypes) { if (t instanceof Class) { if (((Class)t).getPackage().getName().equals(AJC_INTERNAL)) syntheticCount++; ...
public Type[] getGenericParameterTypes() { if (this.genericParameterTypes == null) { Type[] genTypes = adviceMethod.getGenericParameterTypes(); int syntheticCount = 0; for (Type t : genTypes) { if (t instanceof Class) { if (((Class)t).getPackage().getName().equals(AJC_INTERNAL)) syntheticCount++; ...
public static <T> AjType<T> getAjType(Class<T> fromClass) { if (ajTypes.containsKey(fromClass)) { WeakReference<AjType> weakRefToAjType = ajTypes.get(fromClass); AjType<T> theAjType = weakRefToAjType.get(); if (theAjType != null) { return theAjType; } else { theAjType = new AjTypeImpl<T>(...
public static <T> AjType<T> getAjType(Class<T> fromClass) { if (ajTypes.containsKey(fromClass)) { WeakReference<AjType<T>> weakRefToAjType = (WeakReference<AjType<T>>) ajTypes.get(fromClass); AjType<T> theAjType = weakRefToAjType.get(); if (theAjType != null) { return theAjType; } else { ...
public void testGetSupertype() { Class stringSuper = String.class.getSuperclass(); AjType ajSuper = stringType.getSupertype(); assertEquals(AjTypeSystem.getAjType(stringSuper),ajSuper); }
public void testGetSupertype() { Class<?> stringSuper = String.class.getSuperclass(); AjType ajSuper = stringType.getSupertype(); assertEquals(AjTypeSystem.getAjType(stringSuper),ajSuper); }
protected void appendPageParameters(StringBuffer url, PageParameters parameters) { if (parameters != null) { Iterator entries = parameters.entrySet().iterator(); while (entries.hasNext()) { Map.Entry entry = (Entry)entries.next(); String escapedValue=(String)entry.getValue(); try { e...
protected void appendPageParameters(StringBuffer url, PageParameters parameters) { if (parameters != null) { Iterator entries = parameters.entrySet().iterator(); while (entries.hasNext()) { Map.Entry entry = (Entry)entries.next(); String escapedValue=(String)entry.getValue().toString(); try ...
public Class getPageIdentity() { return BookDetails.class; } })); // Image map link example add(new ImageMap("imageMap").addRectangleLink(0, 0, 100, 100, new BookmarkablePageLink("page1", Page1.class)).addCircleLink(160, 50, 35, new BookmarkablePageLink("page2", Page2.class)).addPolygonLink(...
public Class getPageIdentity() { return BookDetails.class; } })); // Image map link example add(new ImageMap("imageMap").addRectangleLink(0, 0, 100, 100, new BookmarkablePageLink("page1", Page1.class)).addCircleLink(160, 50, 35, new BookmarkablePageLink("page2", Page2.class)).addPolygonLink(...
public void setTargetType(String targetType) throws BuildException { targetType = targetType.toLowerCase(); if (targetType.equals("exe") || targetType.equals("library")) { targetType = targetType; } else { throw new BuildException("targetType " + targetTy...
public void setTargetType(String targetType) throws BuildException { this.targetType = targetType.toLowerCase(); if (targetType.equals("exe") || targetType.equals("library")) { targetType = targetType; } else { throw new BuildException("targetType " + tar...
public Pointcut parseAnnotationPointcut() { int start = tokenSource.getIndex(); IToken t = tokenSource.peek(); String kind = parseIdentifier(); tokenSource.setIndex(start); if (kind.equals("annotation")) { return parseAtAnnotationPointcut(); } else if (kind.equals("args")) { return parseArgsAnnotat...
public Pointcut parseAnnotationPointcut() { int start = tokenSource.getIndex(); IToken t = tokenSource.peek(); String kind = parseIdentifier(); tokenSource.setIndex(start); if (kind.equals("annotation")) { return parseAtAnnotationPointcut(); } else if (kind.equals("args")) { return parseArgsAnnotat...
public static final int LIMIT; /* * These values can be different on different platforms. * Therefore they are not initialized in the declaration * to stop the compiler from inlining. */ static { LIMIT = OS.IsWinNT ? 0x7FFFFFFF : 0x7FFF; } /* * These are the undocumented control id's for the child...
public static final int LIMIT; /* * These values can be different on different platforms. * Therefore they are not initialized in the declaration * to stop the compiler from inlining. */ static { LIMIT = OS.IsWinNT ? 0x7FFFFFFF : 0x7FFF; } /* * These are the undocumented control id's for the child...
protected void doReplace(File f, int options) throws IOException { File temp = FILE_UTILS.createTempFile("replace", ".txt", null, true, true); Reader r = null; Writer w = null; try { if (encoding == null) { r = new FileReader(f); ...
protected void doReplace(File f, int options) throws IOException { File temp = FILE_UTILS.createTempFile("replace", ".txt", null, true, true); Reader r = null; Writer w = null; try { if (encoding == null) { r = new FileReader(f); ...
public void create (Composite parent, int style) { String className = "SWTWebViewDelegate"; //$NON-NLS-1$ if (OS.objc_lookUpClass(className) == 0) { Class safariClass = this.getClass(); Callback3 = new Callback(safariClass, "browserProc", 3); //$NON-NLS-1$ int /*long*/ proc3 = Callback3.getAddress(); if (proc...
public void create (Composite parent, int style) { String className = "SWTWebViewDelegate"; //$NON-NLS-1$ if (OS.objc_lookUpClass(className) == 0) { Class safariClass = this.getClass(); Callback3 = new Callback(safariClass, "browserProc", 3); //$NON-NLS-1$ int /*long*/ proc3 = Callback3.getAddress(); if (proc...
public void run() { try { p.waitFor(); } catch (InterruptedException e) { //ignore } FILE_UTILS.delete(f); } }.start(); ...
public void run() { try { p.waitFor(); } catch (InterruptedException e) { //ignore } FileUtils.delete(f); } }.start(); }...
public void setHints(Hashtable hints) { this.hints = hints; boolean tryHarder = hints != null && hints.containsKey(DecodeHintType.TRY_HARDER); Vector formats = hints == null ? null : (Vector) hints.get(DecodeHintType.POSSIBLE_FORMATS); readers = new Vector(); if (formats != null) { boolean ...
public void setHints(Hashtable hints) { this.hints = hints; boolean tryHarder = hints != null && hints.containsKey(DecodeHintType.TRY_HARDER); Vector formats = hints == null ? null : (Vector) hints.get(DecodeHintType.POSSIBLE_FORMATS); readers = new Vector(); if (formats != null) { boolean ...
public DataMatrixBlackBox1TestCase() { // TODO use MultiFormatReader here once Data Matrix decoder is done super("test/data/blackbox/datamatrix-1", new DataMatrixReader(), BarcodeFormat.DATAMATRIX); addTest(7, 7, 0.0f); addTest(7, 7, 90.0f); addTest(6, 6, 180.0f); addTest(4, 4, 270.0f); }
public DataMatrixBlackBox1TestCase() { // TODO use MultiFormatReader here once Data Matrix decoder is done super("test/data/blackbox/datamatrix-1", new DataMatrixReader(), BarcodeFormat.DATA_MATRIX); addTest(7, 7, 0.0f); addTest(7, 7, 90.0f); addTest(6, 6, 180.0f); addTest(4, 4, 270.0f); }
public DataMatrixBlackBox2TestCase() { // TODO use MultiFormatReader here once Data Matrix decoder is done super("test/data/blackbox/datamatrix-2", new DataMatrixReader(), BarcodeFormat.DATAMATRIX); addTest(4, 4, 0.0f); addTest(1, 1, 90.0f); addTest(3, 3, 180.0f); addTest(1, 1, 270.0f); }
public DataMatrixBlackBox2TestCase() { // TODO use MultiFormatReader here once Data Matrix decoder is done super("test/data/blackbox/datamatrix-2", new DataMatrixReader(), BarcodeFormat.DATA_MATRIX); addTest(4, 4, 0.0f); addTest(1, 1, 90.0f); addTest(3, 3, 180.0f); addTest(1, 1, 270.0f); }
private static Hashtable<DecodeHintType, Object> buildHints(boolean tryHarder, boolean pureBarcode, boolean productsOnly) { Hashtable<DecodeHintType, Object> hints = new Hashtable<DecodeHint...
private static Hashtable<DecodeHintType, Object> buildHints(boolean tryHarder, boolean pureBarcode, boolean productsOnly) { Hashtable<DecodeHintType, Object> hints = new Hashtable<DecodeHint...
private static final int MAX_PIXELS = 1 << 21; private static final Logger log = Logger.getLogger(DecodeServlet.class.getName()); static final Hashtable<DecodeHintType, Object> HINTS; static final Hashtable<DecodeHintType, Object> HINTS_PURE; static { HINTS = new Hashtable<DecodeHintType, Object>(5); ...
private static final int MAX_PIXELS = 1 << 21; private static final Logger log = Logger.getLogger(DecodeServlet.class.getName()); static final Hashtable<DecodeHintType, Object> HINTS; static final Hashtable<DecodeHintType, Object> HINTS_PURE; static { HINTS = new Hashtable<DecodeHintType, Object>(5); ...
protected final void addAntiCacheParameter(final ComponentTag tag) { String url = tag.getAttributes().getString("src"); url = url + ((url.indexOf("?") >= 0) ? "&amp;" : "?"); url = url + "wicket:antiCache=" + System.currentTimeMillis(); tag.put("src", url); }
protected final void addAntiCacheParameter(final ComponentTag tag) { String url = tag.getAttributes().getString("src"); url = url + (url.contains("?") ? "&amp;" : "?"); url = url + "wicket:antiCache=" + System.currentTimeMillis(); tag.put("src", url); }
private final boolean checkRef(String ref) { return (ref != null) && (ref.indexOf(":") == -1); }
private final boolean checkRef(String ref) { return (ref != null) && (!ref.contains(":")); }
public final void respond(final Attributes attributes) { // Get a "new" ResourceResponse to write a response ResourceResponse data = newResourceResponse(attributes); WebRequest request = (WebRequest)attributes.getRequest(); WebResponse response = (WebResponse)attributes.getResponse(); // 1. Last Modified ...
public final void respond(final Attributes attributes) { // Get a "new" ResourceResponse to write a response ResourceResponse data = newResourceResponse(attributes); WebRequest request = (WebRequest)attributes.getRequest(); WebResponse response = (WebResponse)attributes.getResponse(); // 1. Last Modified ...
public boolean getAttributeContains(String attribute, String partialValue) { boolean contains = false; if (partialValue != null) { String value = getAttribute(attribute); if (value != null) { if (value.indexOf(partialValue) > -1) { contains = true; } } } return contains; }
public boolean getAttributeContains(String attribute, String partialValue) { boolean contains = false; if (partialValue != null) { String value = getAttribute(attribute); if (value != null) { if (value.contains(partialValue)) { contains = true; } } } return contains; }
public void testToStringThrowable() { NullPointerException np = new NullPointerException("null test"); WicketRuntimeException wre = new WicketRuntimeException("null test", np); String exceptionString = Strings.toString(wre); assertTrue(exceptionString.length() > 1); assertTrue(exceptionString.indexOf("Wicke...
public void testToStringThrowable() { NullPointerException np = new NullPointerException("null test"); WicketRuntimeException wre = new WicketRuntimeException("null test", np); String exceptionString = Strings.toString(wre); assertTrue(exceptionString.length() > 1); assertTrue(exceptionString.contains("Wick...
public void renderHead(IHeaderResponse response) { // example of things that may be shared for all your applications across your company, // two CSS resources in the same group. header.css is rendered first because has lower // "order" number response.renderCSSReference(new GroupedAndOrderedResourceReference...
public void renderHead(IHeaderResponse response) { // example of things that may be shared for all your applications across your company, // two CSS resources in the same group. header.css is rendered first because has lower // "order" number response.renderCSSReference(new GroupedAndOrderedResourceReference...
public Object run() throws Exception { File file = new File(getPathWithoutEscapes(url.getPath())); if (!file.exists()) { File parent = file.getParentFile(); if (parent != null && !parent.exists())...
public Object run() throws Exception { File file = new File(getPathWithoutEscapes(url.getPath())); if (!file.exists()) { File parent = file.getParentFile(); if (parent != null && !parent.exists())...
private void startGui(String testFile) { PluginManager.install(this, true); JMeterTreeModel treeModel = new JMeterTreeModel(); JMeterTreeListener treeLis = new JMeterTreeListener(treeModel); treeLis.setActionHandler(ActionRouter.getInstance()); // NOTUSED: GuiPackage guiPack...
private void startGui(String testFile) { PluginManager.install(this, true); JMeterTreeModel treeModel = new JMeterTreeModel(); JMeterTreeListener treeLis = new JMeterTreeListener(treeModel); treeLis.setActionHandler(ActionRouter.getInstance()); // NOTUSED: GuiPackage guiPack...
public void actionPerformed(ActionEvent event) { if (infinite.isSelected()) { loops.setText(""); // $NON-NLS-1$ loops.setEnabled(false); } else { loops.setEnabled(true); new FocusRequester(loops); } }
public void actionPerformed(ActionEvent event) { if (infinite.isSelected()) { loops.setText(""); // $NON-NLS-1$ loops.setEnabled(false); } else { loops.setEnabled(true); FocusRequester.requestFocus(loops); } }
public void doAction(ActionEvent e) { performAction(e); } /** * Helper routine to allow action to be shared by LOAD. * * @param e event * @return true if Close was not cancelled */ static boolean performAction(ActionEvent e){ ActionRouter.getInstance().doActionN...
public void doAction(ActionEvent e) { performAction(e); } /** * Helper routine to allow action to be shared by LOAD. * * @param e event * @return true if Close was not cancelled */ static boolean performAction(ActionEvent e){ ActionRouter.getInstance().doActionN...
public static boolean insertLoadedTree(int id, HashTree tree, boolean merging) throws IllegalUserActionException { // convertTree(tree); if (tree == null) { throw new IllegalUserActionException("Empty TestPlan - see log file"); } boolean isTestPlan = tree.getArray()[0] in...
public static boolean insertLoadedTree(int id, HashTree tree, boolean merging) throws IllegalUserActionException { // convertTree(tree); if (tree == null) { throw new IllegalUserActionException("Empty TestPlan - see log file"); } boolean isTestPlan = tree.getArray()[0] in...
public void focusLost(FocusEvent e) { Component source = (Component) e.getSource(); String text = ""; if (source instanceof JTextComponent) { text = ((JTextComponent) source).getText(); } else if (source instanceof TextComponent) { text = ((TextComponent) sour...
public void focusLost(FocusEvent e) { Component source = (Component) e.getSource(); String text = ""; if (source instanceof JTextComponent) { text = ((JTextComponent) source).getText(); } else if (source instanceof TextComponent) { text = ((TextComponent) sour...
reader.read(cb);// return deliberately ignored /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache L...
reader.read(cb);// return deliberately ignored /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache L...
public void run() { try { // Call get to get the remoteReferences from the IFuture // instance // This will block, but since we're in our own thread we're // OK IRemoteServiceReference[] remoteReferences = (IRemoteServiceReference[]) futureRemoteReferences .get(sed.getFutureTimeou...
public void run() { try { // Call get to get the remoteReferences from the IFuture // instance // This will block, but since we're in our own thread we're // OK IRemoteServiceReference[] remoteReferences = (IRemoteServiceReference[]) futureRemoteReferences .get(sed.getLookupTimeou...
package org.eclipse.ecf.core.comm; package org.eclipse.ecf.internal.comm; public interface ISynchAsynchConnection extends IAsynchConnection, ISynchConnection { }
package org.eclipse.ecf.core.comm; package org.eclipse.ecf.core.comm; public interface ISynchAsynchConnection extends IAsynchConnection, ISynchConnection { }
public static ResolvedType resolve(World world, Class aClass) { // classes that represent arrays return a class name that is the signature of the array type, ho-hum... String className = aClass.getName(); if (aClass.isArray()) { return world.resolve(UnresolvedType.forSignature(className)); } else{ retu...
public static ResolvedType resolve(World world, Class aClass) { // classes that represent arrays return a class name that is the signature of the array type, ho-hum... String className = aClass.getName(); if (aClass.isArray()) { return world.resolve(UnresolvedType.forSignature(className.replace('.','/'))); ...
public boolean isOpen(final String componentName) { return isOpen() && componentName.equals(componentName); }
public boolean isOpen(final String componentName) { return isOpen() && name.equals(componentName); }
public void test_Constructor() { LocationAdapter adapter = new LocationAdapter() {}; }
public void test_Constructor() { new LocationAdapter() {}; }
public void test_Constructor() { ProgressAdapter adapter = new ProgressAdapter() {}; }
public void test_Constructor() { new ProgressAdapter() {}; }
public void lineGetSegments(BidiSegmentEvent event) { assertEquals(" incorrect BidiSegmentEvent", 0, event.lineOffset); assertEquals(" incorrect BidiSegmentEvent", line, event.lineText); event.segments = segments; listenerCalled = true; } }; listenerCalled = false; try { text.addBidiSegment...
public void lineGetSegments(BidiSegmentEvent event) { assertEquals(" incorrect BidiSegmentEvent", 0, event.lineOffset); assertEquals(" incorrect BidiSegmentEvent", line, event.lineText); event.segments = segments; listenerCalled = true; } }; listenerCalled = false; try { text.addBidiSegment...
protected void tearDown() { Enumeration elements = colors.keys(); while (elements.hasMoreElements()) { Color color = (Color)colors.get((RGB)elements.nextElement()); color.dispose(); } }
protected void tearDown() { Enumeration elements = colors.keys(); while (elements.hasMoreElements()) { Color color = (Color)colors.get(elements.nextElement()); color.dispose(); } }
public void test_ConstructorLorg_eclipse_swt_widgets_Shell() { DirectoryDialog dd = new DirectoryDialog(shell); try { new DirectoryDialog(null); fail("No exception thrown for null parent"); } catch (IllegalArgumentException e) { } }
public void test_ConstructorLorg_eclipse_swt_widgets_Shell() { new DirectoryDialog(shell); try { new DirectoryDialog(null); fail("No exception thrown for null parent"); } catch (IllegalArgumentException e) { } }
public void test_ConstructorLorg_eclipse_swt_widgets_Shell() { // Test FileDialog(Shell) FileDialog fd = new FileDialog(shell); try { new FileDialog(null); fail("No exception thrown for parent == null"); } catch (IllegalArgumentException e) { } }
public void test_ConstructorLorg_eclipse_swt_widgets_Shell() { // Test FileDialog(Shell) new FileDialog(shell); try { new FileDialog(null); fail("No exception thrown for parent == null"); } catch (IllegalArgumentException e) { } }
public void test_ConstructorLorg_eclipse_swt_widgets_Shell() { FontDialog fd = new FontDialog(shell); try { new FontDialog(null); fail("No exception thrown for parent == null"); } catch (IllegalArgumentException e) { } }
public void test_ConstructorLorg_eclipse_swt_widgets_Shell() { new FontDialog(shell); try { new FontDialog(null); fail("No exception thrown for parent == null"); } catch (IllegalArgumentException e) { } }
public void test_setTextLjava_lang_String() { String[] cases = {"", "some text", "ldkashdoehufweovcnhslvhregojebckreavbkuhxbiufvcyhbifuyewvbiureyd.,cmnesljliewjfchvbwoifivbeworixuieurvbiuvbohflksjeahfcliureafgyciabelitvyrwtlicuyrtliureybcliuyreuceyvbliureybct"}; for (int i = 0; i < cases.length; i++) { group.setTex...
public void test_setTextLjava_lang_String() { String[] cases = {"", "some text", "ldkashdoehufweovcnhslvhregojebckreavbkuhxbiufvcyhbifuyewvbiureyd.,cmnesljliewjfchvbwoifivbeworixuieurvbiuvbohflksjeahfcliureafgyciabelitvyrwtlicuyrtliureybcliuyreuceyvbliureybct"}; for (int i = 0; i < cases.length; i++) { group.setTex...
public void test_ConstructorLorg_eclipse_swt_widgets_Shell(){ MessageBox mb = new MessageBox(shell); try { new MessageBox(null); fail("No exception thrown for parent == null"); } catch (IllegalArgumentException e) { } }
public void test_ConstructorLorg_eclipse_swt_widgets_Shell(){ new MessageBox(shell); try { new MessageBox(null); fail("No exception thrown for parent == null"); } catch (IllegalArgumentException e) { } }
public boolean getVisible () { checkWidget (); return visible; } void releaseHandle () { super.releaseHandle (); parent = null; handle = 0; } void releaseWidget () { int statusBar = Cocoa.objc_msgSend (Cocoa.C_NSStatusBar, Cocoa.S_systemStatusBar); Cocoa.objc_msgSend (statusBar, Cocoa.S_removeStatusItem, handl...
public boolean getVisible () { checkWidget (); return visible; } void releaseHandle () { super.releaseHandle (); parent = null; handle = 0; } void releaseWidget () { int statusBar = Cocoa.objc_msgSend (Cocoa.C_NSStatusBar, Cocoa.S_systemStatusBar); Cocoa.objc_msgSend (statusBar, Cocoa.S_removeStatusItem, handl...
public void testNoCacheHttpClient() throws Exception{ this.cacheManager.setUseExpires(true); this.cacheManager.testIterationStart(null); assertNull("Should not find entry",getThreadCacheEntry(LOCAL_HOST)); assertFalse("Should not find valid entry",this.cacheManager.inCache(url)); ...
public void testNoCacheHttpClient() throws Exception{ this.cacheManager.setUseExpires(true); this.cacheManager.testIterationStart(null); assertNull("Should not find entry",getThreadCacheEntry(LOCAL_HOST)); assertFalse("Should not find valid entry",this.cacheManager.inCache(url)); ...
protected URI createURI(EndpointDescription endpointDescription, IDiscoveryAdvertiser advertiser, IServiceTypeID serviceTypeID, String serviceName) throws URISyntaxException { String path = "/" + serviceName; String str = endpointDescription.getID().getName(); URI uri = null; while (true) { try { ...
protected URI createURI(EndpointDescription endpointDescription, IDiscoveryAdvertiser advertiser, IServiceTypeID serviceTypeID, String serviceName) throws URISyntaxException { String path = "/" + serviceName; String str = endpointDescription.getContainerID().getName(); URI uri = null; while (true) { t...
public void drawPolygon(int[] pointArray) { if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); if (pointArray == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); checkGC(DRAW); drawPolyLineSegment(pointArray, true, true); } void drawPolyLineSegment(int[] pointArray, boolean closed, boolean stroked) { if (pointArray...
public void drawPolygon(int[] pointArray) { if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); if (pointArray == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); checkGC(DRAW); drawPolyLineSegment(pointArray, true, true); } void drawPolyLineSegment(int[] pointArray, boolean closed, boolean stroked) { if (pointArray...
protected void doGet(HttpClient client, String url) throws Exception { GetMethod method = new GetMethod(url); method.setFollowRedirects(true); try { int code = client.executeMethod(method); if (code != 200) { log.error("ERROR! code: " + code); //log.error(method.getResponseBodyAsString()); // ...
protected void doGet(HttpClient client, String url) throws Exception { GetMethod method = new GetMethod(url); method.setFollowRedirects(true); try { int code = client.executeMethod(method); if (code != 200) { log.error("ERROR! code: " + code); log.error(method.getResponseBodyAsString()); // TO...
public long getRemainingMilliseconds() { int percentageComplete = getPercentageComplete(); long totalTime = ((getElapsedSeconds() * 100) / percentageComplete); long remainingTime = (totalTime - getElapsedSeconds()); long remainingTimeInMillis = remainingTime * 1000; return remainingTimeInMillis; }
public long getRemainingMilliseconds() { int percentageComplete = getPercentageComplete(); long totalTime = ((getElapsedSeconds() * 100) / Math.max(percentageComplete, 1)); long remainingTime = (totalTime - getElapsedSeconds()); long remainingTimeInMillis = remainingTime * 1000; return remainingTimeInMil...
private XMLMetaData parseXMLClassAnnotations() { // check immediately whether the class has JAXB XML annotations if (!_cls.isAnnotationPresent(xmlTypeClass)) return null; // find / create metadata XMLMetaData meta = getXMLMetaData(); return meta; }
private XMLMetaData parseXMLClassAnnotations() { // check immediately whether the class has JAXB XML annotations if (_cls == null || !_cls.isAnnotationPresent(xmlTypeClass)) return null; // find / create metadata XMLMetaData meta = getXMLMetaData(); retu...
public void startElement(QName element, XMLAttributes attributes){ if (DEBUG_METHODS2) { System.out.println(toString()+"#startElement("+ "element={"+element+"},"+ "attributes=..."+attributes+ ")"); ...
public void startElement(QName element, XMLAttributes attributes){ if (DEBUG_METHODS2) { System.out.println(toString()+"#startElement("+ "element={"+element+"},"+ "attributes=..."+attributes+ ")"); ...
public TreeItem (TreeItem parentItem, int style, int index) { this (checkNull (parentItem).parent, parentItem, style, checkIndex (index), true); } TreeItem (Tree parent, TreeItem parentItem, int style, int index, boolean create) { super (parent, style); this.parent = parent; this.parentItem = parentItem; if (crea...
public TreeItem (TreeItem parentItem, int style, int index) { this (checkNull (parentItem).parent, parentItem, style, checkIndex (index), true); } TreeItem (Tree parent, TreeItem parentItem, int style, int index, boolean create) { super (parent, style); this.parent = parent; this.parentItem = parentItem; if (crea...
protected final void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "checkbox"); final String value = getValue(); if (value != null) { try { if (Strings.isTrue(value)) { tag.put("checked", "checked"); } else {...
protected final void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "checkbox"); final String value = getValue(); if (value != null) { try { if (Strings.isTrue(value)) { tag.put("checked", "checked"); } else {...
public static int DEFAULT_INITIAL_CAPACITY = 32;
public static final int DEFAULT_INITIAL_CAPACITY = 32;
public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); CustomControlExample instance = new CustomControlExample(shell); shell.setText(getResourceString("custom.window.title")); setShellSize(shell); shell.open(); whi...
public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); CustomControlExample instance = new CustomControlExample(shell); shell.setText(getResourceString("custom.window.title")); setShellSize(instance, shell); shell.ope...
public void threadStarted() { logThreadStart(); Context context = null; thrown = null; try { context = getInitialContext(); Object obj = context.lookup(getQueueConnectionFactory()); if (!(obj instanceof QueueConnectionFactory)) { S...
public void threadStarted() { logThreadStart(); Context context = null; thrown = null; try { context = getInitialContext(); Object obj = context.lookup(getQueueConnectionFactory()); if (!(obj instanceof QueueConnectionFactory)) { S...
public XSDUniqueOrKeyTraverser (XSDHandler handler, XSAttributeChecker gAttrCheck) { super(handler, gAttrCheck); } void traverse(Element uElem, XSElementDecl element, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // General Attribute Chec...
public XSDUniqueOrKeyTraverser (XSDHandler handler, XSAttributeChecker gAttrCheck) { super(handler, gAttrCheck); } void traverse(Element uElem, XSElementDecl element, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // General Attribute Chec...
reportSchemaError("s4s-elt-must-match", new Object[]{"wildcard", "(annotation?)"}, elmNode); /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2001, 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification...
reportSchemaError("s4s-elt-must-match", new Object[]{"wildcard", "(annotation?)"}, elmNode); /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2001, 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification...
public void reset(XMLErrorReporter errorReporter, XMLEntityResolver entityResolver, SymbolTable symbolTable, XMLGrammarPool grammarPool) { fErrorReporter = errorReporter; fEntityResolver = entityResolver; fSymbolTable = symbo...
public void reset(XMLErrorReporter errorReporter, XMLEntityResolver entityResolver, SymbolTable symbolTable, XMLGrammarPool grammarPool) { fErrorReporter = errorReporter; fEntityResolver = entityResolver; fSymbolTable = symbo...
protected HTTPSampleResult sample(URL url, String method, boolean areFollowingRedirect, int frameDepth) { HttpURLConnection conn = null; String urlStr = url.toString(); log.debug("Start : sample " + urlStr); HTTPSampleResult res = new HTTPSampleResult(); res.setMonitor(isMonitor()); res.setSampl...
protected HTTPSampleResult sample(URL url, String method, boolean areFollowingRedirect, int frameDepth) { HttpURLConnection conn = null; String urlStr = url.toString(); log.debug("Start : sample " + urlStr); HTTPSampleResult res = new HTTPSampleResult(); res.setMonitor(isMonitor()); res.setSampl...
public StatVisualizer() { super(); model = new ObjectTableModel(COLUMNS, new Functor[] { new Functor("getLabel"), new Functor("getCount"), new Functor("getMean"), new Functor("getMedian"), new Functor("getPercentPoint", new Object[] { new Float(.900)}), ...
public StatVisualizer() { super(); model = new ObjectTableModel(COLUMNS, new Functor[] { new Functor("getLabel"), new Functor("getCount"), new Functor("getMeanAsNumber"), new Functor("getMedian"), new Functor("getPercentPoint", new Object[] { new Float(.900)}), ...
protected void debug(String msg) { Trace.trace(ProviderPlugin.PLUGIN_ID, ECFProviderDebugOptions.DEBUG, msg + ":" + container.getID()); //$NON-NLS-1$ }
protected void debug(String msg) { Trace.trace(ProviderPlugin.PLUGIN_ID, ECFProviderDebugOptions.DEBUG, "SOWrapper:oID=" + sharedObjectID + ":" + msg + ":cID=" + container.getID()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ }
package org.apache.ant.runtime; /* * 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 org.apache.ant; /** * I...
package org.apache.ant.runtime; /* * 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 org.apache.ant.runtime; ...
package org.apache.ant.runtime; /* * 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 org.apache.ant; import j...
package org.apache.ant.runtime; /* * 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 org.apache.ant.runtime; ...
protected void appendDefaultButtonField(final MarkupStream markupStream, final ComponentTag openTag) { String nameAndId = getHiddenFieldId(); AppendingStringBuffer buffer = new AppendingStringBuffer(); // get the value, first seeing whether the value attribute is set // by a model String value = defaultB...
protected void appendDefaultButtonField(final MarkupStream markupStream, final ComponentTag openTag) { String nameAndId = getHiddenFieldId(); AppendingStringBuffer buffer = new AppendingStringBuffer(); // get the value, first seeing whether the value attribute is set // by a model String value = defaultB...
public void deselect (TreeItem item) { checkWidget (); if (item == null) error (SWT.ERROR_NULL_ARGUMENT); if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); ignoreSelect = true; /* * Bug in the Macintosh. When the DataBroswer selection flags includes * both kDataBrowserNeverEmptySelectionSet and kDataB...
public void deselect (TreeItem item) { checkWidget (); if (item == null) error (SWT.ERROR_NULL_ARGUMENT); if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); ignoreSelect = true; /* * Bug in the Macintosh. When the DataBroswer selection flags includes * both kDataBrowserNeverEmptySelectionSet and kDataB...
package wicket.validation; /* * $Id: org.eclipse.jdt.ui.prefs 5004 2006-03-17 20:47:08 -0800 (Fri, 17 Mar * 2006) eelco12 $ $Revision: 5004 $ $Date: 2006-03-17 20:47:08 -0800 (Fri, 17 * Mar 2006) $ * * ============================================================================== * Licensed under the Apache Lic...
package wicket.validation; /* * $Id: org.eclipse.jdt.ui.prefs 5004 2006-03-17 20:47:08 -0800 (Fri, 17 Mar * 2006) eelco12 $ $Revision: 5004 $ $Date: 2006-03-17 20:47:08 -0800 (Fri, 17 * Mar 2006) $ * * ============================================================================== * Licensed under the Apache Lic...
package wicket.validation; /* * $Id: org.eclipse.jdt.ui.prefs 5004 2006-03-17 20:47:08 -0800 (Fri, 17 Mar * 2006) eelco12 $ $Revision: 5004 $ $Date: 2006-03-17 20:47:08 -0800 (Fri, 17 * Mar 2006) $ * * ============================================================================== * Licensed under the Apache Lic...
package wicket.validation; /* * $Id: org.eclipse.jdt.ui.prefs 5004 2006-03-17 20:47:08 -0800 (Fri, 17 Mar * 2006) eelco12 $ $Revision: 5004 $ $Date: 2006-03-17 20:47:08 -0800 (Fri, 17 * Mar 2006) $ * * ============================================================================== * Licensed under the Apache Lic...
package wicket.validation; /* * $Id: org.eclipse.jdt.ui.prefs 5004 2006-03-17 20:47:08 -0800 (Fri, 17 Mar * 2006) eelco12 $ $Revision: 5004 $ $Date: 2006-03-17 20:47:08 -0800 (Fri, 17 * Mar 2006) $ * * ============================================================================== * Licensed under the Apache Lic...
package wicket.validation; /* * $Id: org.eclipse.jdt.ui.prefs 5004 2006-03-17 20:47:08 -0800 (Fri, 17 Mar * 2006) eelco12 $ $Revision: 5004 $ $Date: 2006-03-17 20:47:08 -0800 (Fri, 17 * Mar 2006) $ * * ============================================================================== * Licensed under the Apache Lic...
private void renderJoins(StringBuilder buffer, Collection<Join<?,?>> joins) { if (joins == null) return; for (Join j : joins) { buffer.append(((ExpressionImpl<?>)j).asVariable(this)).append(" "); renderJoins(buffer, j.getJoins()); renderFetches(buffer, j.getFetche...
private void renderJoins(StringBuilder buffer, Collection<Join<?,?>> joins) { if (joins == null) return; for (Join j : joins) { buffer.append(((CriteriaExpression)j).asVariable(this)).append(" "); renderJoins(buffer, j.getJoins()); renderFetches(buffer, j.getFetch...
public int getBatchUpdateCount(PreparedStatement ps) throws SQLException { int updateSuccessCnt = 0; if (batchLimit > 0 && ps != null) { updateSuccessCnt = ps.getUpdateCount(); if (log.isTraceEnabled()) log.trace(_loc.get("batch_update_success_count", ...
public int getBatchUpdateCount(PreparedStatement ps) throws SQLException { int updateSuccessCnt = 0; if (batchLimit > 0 && ps != null) { updateSuccessCnt = ps.getUpdateCount(); if (log.isTraceEnabled()) log.trace(_loc.get("batch-update-success-count", ...
public String renderNode(TreeNode node) { return AbstractTreeColumn.this.renderNode(node); } }); }
public String renderNode(TreeNode node) { return AbstractTreeColumn.this.renderNode(node); } }, getTreeTable()); }
protected final String encode(RequestCycle requestCycle, IListenerInterfaceRequestTarget requestTarget) { final StringBuffer url = new StringBuffer(urlPrefix(requestCycle)); url.append("?path="); Component component = requestTarget.getComponent(); url.append(component.getPath()); Page currentPage = compo...
protected final String encode(RequestCycle requestCycle, IListenerInterfaceRequestTarget requestTarget) { final StringBuffer url = new StringBuffer(urlPrefix(requestCycle)); url.append("?path="); Component component = requestTarget.getTarget(); url.append(component.getPath()); Page currentPage = componen...
public final void processEvents(final RequestCycle requestCycle) { invokeInterface(getComponent(), getListenerMethod(), getPage()); }
public final void processEvents(final RequestCycle requestCycle) { invokeInterface(getTarget(), getListenerMethod(), getPage()); }
public interface IAccessCheck /* * $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 Lice...
public interface IAccessCheck /* * $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 Lice...
public void execute() throws BuildException { checkAttributes(); for (Iterator iter = sources.iterator(); iter.hasNext(); ) { Resource r = (Resource) iter.next(); URLProvider up = (URLProvider) r.as(URLProvider.class); URL source = up.getURL(); File ...
public void execute() throws BuildException { checkAttributes(); for (Iterator iter = sources.iterator(); iter.hasNext(); ) { Resource r = (Resource) iter.next(); URLProvider up = (URLProvider) r.as(URLProvider.class); URL source = up.getURL(); File ...
protected String getClientContainerName() { return Generic.CLIENT_CONTAINER_NAME; }
protected String getClientContainerName() { return Generic.CONSUMER_CONTAINER_TYPE; }
public Object getContents(Transfer transfer, int clipboards) { checkWidget(); if (transfer == null) DND.error(SWT.ERROR_NULL_ARGUMENT); int /*long*/ selection_data = 0; int[] typeIds = transfer.getTypeIds(); for (int i = 0; i < typeIds.length; i++) { if ((clipboards & DND.CLIPBOARD) != 0) { selection_data = g...
public Object getContents(Transfer transfer, int clipboards) { checkWidget(); if (transfer == null) DND.error(SWT.ERROR_NULL_ARGUMENT); int /*long*/ selection_data = 0; int[] typeIds = transfer.getTypeIds(); for (int i = 0; i < typeIds.length; i++) { if ((clipboards & DND.CLIPBOARD) != 0) { selection_data = g...
protected void onClick(AjaxRequestTarget target) { setSelectedTab(index); if (target!=null) { target.addComponent(AjaxTabbedPanel.this); } } }; } }
public void onClick(AjaxRequestTarget target) { setSelectedTab(index); if (target!=null) { target.addComponent(AjaxTabbedPanel.this); } } }; } }
protected static boolean isData(char octect) { return (base64Alphabet[octect] != -1); }
protected static boolean isData(char octect) { return (octect < BASELENGTH && base64Alphabet[octect] != -1); }
public TreeItem (Tree parent, int style, int hParent, int hInsertAfter, int hItem) { super (parent, style); this.parent = parent; parent.createItem (this, hParent, hInsertAfter, hItem); }
public TreeItem (TreeItem parentItem, int style, int index) { this (checkNull (parentItem).parent, style, parentItem.handle, findPrevious (parentItem, index), 0); } TreeItem (Tree parent, int style, int hParent, int hInsertAfter, int hItem) { super (parent, style); this.parent = parent; parent.createItem (this, hP...
public String substitute(String input, String argument, int options) throws BuildException { // translate \1 to $(1) so that the Matcher will work StringBuffer subst = new StringBuffer(); for (int i=0; i<argument.length(); i++) { char c = argument.charAt(i); ...
public String substitute(String input, String argument, int options) throws BuildException { // translate \1 to $(1) so that the Matcher will work StringBuffer subst = new StringBuffer(); for (int i=0; i<argument.length(); i++) { char c = argument.charAt(i); ...
public boolean afterSpecificationSet(Configuration c) { if (!(c instanceof JDBCConfigurationImpl)) return false; JDBCConfigurationImpl conf = (JDBCConfigurationImpl) c; Specification jpa = PersistenceProductDerivation.SPEC_JPA; if (!jpa.equals(conf.getSpecificationInstanc...
public boolean afterSpecificationSet(Configuration c) { if (!(c instanceof JDBCConfigurationImpl)) return false; JDBCConfigurationImpl conf = (JDBCConfigurationImpl) c; Specification jpa = PersistenceProductDerivation.SPEC_JPA; if (!jpa.getName().equals(conf.getSpecificat...