buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public Composite (Composite parent, int style) { super (parent, style); } Control [] _getChildren () { NSArray views = contentView().subviews(); int count = (int)/*64*/views.count(); Control [] children = new Control [count]; if (count == 0) return children; int j = 0; for (int i=0; i<count; i++){ Widget widg...
public Composite (Composite parent, int style) { super (parent, style); } Control [] _getChildren () { NSArray views = contentView().subviews(); int count = (int)/*64*/views.count(); Control [] children = new Control [count]; if (count == 0) return children; int j = 0; for (int i=0; i<count; i++){ Widget widg...
private int run(String[] args) throws LaunchException, MalformedURLException { String antHomeProperty = System.getProperty(ANTHOME_PROPERTY); File antHome = null; File sourceJar = Locator.getClassSource(getClass()); File jarDir = sourceJar.getParentFile(); String...
private int run(String[] args) throws LaunchException, MalformedURLException { String antHomeProperty = System.getProperty(ANTHOME_PROPERTY); File antHome = null; File sourceJar = Locator.getClassSource(getClass()); File jarDir = sourceJar.getParentFile(); String...
public void handleEvent(Event event) { GC gc = event.gc; gc.setLineAttributes(new LineAttributes(10, SWT.CAP_FLAT, SWT.JOIN_MITER, SWT.LINE_SOLID, null, 0, 10)); gc.drawPolyline(new int[]{50, 100, 50, 20, 60, 30, 50, 45}); gc.setLineAttributes(new LineAttributes(1/2f, SWT.CAP_FLAT, SWT.JOIN...
public void handleEvent(Event event) { GC gc = event.gc; gc.setLineAttributes(new LineAttributes(10, SWT.CAP_FLAT, SWT.JOIN_MITER, SWT.LINE_SOLID, null, 0, 10)); gc.drawPolyline(new int[]{50, 100, 50, 20, 60, 30, 50, 45}); gc.setLineAttributes(new LineAttributes(1/2f, SWT.CAP_FLAT, SWT.JOIN...
public Time lastModifiedTime() { return Time.milliseconds(lastModified()); }
public Time lastModifiedTime() { return Time.valueOf(lastModified()); }
public static Time getLastModified(final URL url) throws IOException { URLConnection connection = url.openConnection(); final long milliseconds; try { if (connection instanceof JarURLConnection) { JarURLConnection jarUrlConnection = (JarURLConnection)connection; URL jarFileUrl = jarUrlConnec...
public static Time getLastModified(final URL url) throws IOException { URLConnection connection = url.openConnection(); final long milliseconds; try { if (connection instanceof JarURLConnection) { JarURLConnection jarUrlConnection = (JarURLConnection)connection; URL jarFileUrl = jarUrlConnec...
public static Time getLastModified(File file) { // in case the file has been removed by now if (file.exists() == false) { return null; } // get file modification timestamp long millis = file.lastModified(); // zero indicates the timestamp could not be retrieved if (millis == 0) { return null...
public static Time getLastModified(File file) { // in case the file has been removed by now if (file.exists() == false) { return null; } // get file modification timestamp long millis = file.lastModified(); // zero indicates the timestamp could not be retrieved if (millis == 0) { return null...
protected int executeExternalCompile( String[] args, int firstFileName ) throws TaskException { String[] commandArray = null; File tmpFile = null; try { /* * Many system have been reported to get into trouble with * long command line...
protected int executeExternalCompile( String[] args, int firstFileName ) throws TaskException { String[] commandArray = null; File tmpFile = null; try { /* * Many system have been reported to get into trouble with * long command line...
public static final List KINDS = Collections.unmodifiableList( Arrays.asList( new Kind[] { INFO, DEBUG, WARNING, ERROR, FAIL, ABORT })); /** @return non-null String with simple message */ String getMessage(); /** @return the kind of this message */ Kind getKind(); /** @return true if this is an error ...
public static final List KINDS = Collections.unmodifiableList( Arrays.asList( new Kind[] { INFO, DEBUG, WARNING, ERROR, FAIL, ABORT })); /** @return non-null String with simple message */ String getMessage(); /** @return the kind of this message */ Kind getKind(); /** @return true if this is an error ...
protected void roundTripCheck(IMessage message, String input, IMessage.Kind kind, Throwable thrown, ISourceLocation sourceLocation) { IMessage m = message; assertTrue("not null", null != m); assertTrue(""+input, equals(input, m.getMessage())); assertTrue(""+ki...
protected void roundTripCheck(IMessage message, String input, IMessage.Kind kind, Throwable thrown, ISourceLocation sourceLocation) { IMessage m = message; assertTrue("not null", null != m); assertTrue(""+input, equals(input, m.getMessage())); assertTrue(""+ki...
public static ICommand runCompiler(List args, int[] expectedErrors) { ICommand command = new AjdtCommand(); MessageHandler myHandler = new MessageHandler(); myHandler.setInterceptor(org.aspectj.tools.ajc.Main.MessagePrinter.TERSE); boolean result = command.runCommand((String[])args.toArray(new String[args.s...
public static ICommand runCompiler(List args, int[] expectedErrors) { ICommand command = new AjdtCommand(); MessageHandler myHandler = new MessageHandler(); myHandler.setInterceptor(org.aspectj.tools.ajc.Main.MessagePrinter.TERSE); boolean result = command.runCommand((String[])args.toArray(new String[args.s...
protected File makeDir( File parent, String name, IMessageHandler handler) { // XXX util File result = new File(parent, name); if (!result.exists()) { result.mkdirs(); if (!result.exists()) { fail(handler, "unable to create " + result); return null; } } return result; } // ...
protected File makeDir( File parent, String name, IMessageHandler handler) { // XXX util File result = new File(parent, name); if (!result.exists()) { result.mkdirs(); if (!result.exists()) { fail(handler, "unable to create " + result); return null; } } return result; } // ...
public static void sameMessage(IMessage lhs, IMessage rhs, Assert a) { if ((null == lhs) && (null == rhs)) { return; } assertTrue(lhs != null); assertTrue(rhs != null); assertTrue(lhs.getKind() == rhs.getKind()); same(lhs.getMessage(), rhs.getMessage(), a)...
public static void sameMessage(IMessage lhs, IMessage rhs, Assert a) { if ((null == lhs) && (null == rhs)) { return; } assertTrue(lhs != null); assertTrue(rhs != null); assertTrue(lhs.getKind() == rhs.getKind()); same(lhs.getMessage(), rhs.getMessage(), a)...
private TreeNodeWrapper() { };
private TreeNodeWrapper() { }
public long delay() { String ret="0"; final BeanShellInterpreter bshInterpreter = getBeanShellInterpreter(); if (bshInterpreter == null) { log.error("BeanShell not found"); return 0; } JMeterContext jmctx = JMeterContextService.getContext(); JMeterVariables v...
public long delay() { String ret="0"; final BeanShellInterpreter bshInterpreter = getBeanShellInterpreter(); if (bshInterpreter == null) { log.error("BeanShell not found"); return 0; } JMeterContext jmctx = JMeterContextService.getContext(); JMeterVariables v...
public void setMyStringProperty(String s) { myStringProperty=s; };
public void setMyStringProperty(String s) { myStringProperty=s; }
public void updateControl() { if (text != null) { String string = getFormattedString(style); ignoreVerify = true; text.setText(string); ignoreVerify = false; } redraw(); }
public void setYear (int year) { checkWidget (); if (!isValidDate(year, getMonth(), getDay())) return; if ((style & SWT.CALENDAR) != 0) { this.year = year; OS.gtk_calendar_select_month(handle, month, year); } else { calendar.set(Calendar.YEAR, year); updateControl(); } } int unformattedIntValue(int fieldN...
private DatatypeValidatorFactoryImpl() { initializeRegistry(); } /** * Initializes registry with primitive and derived * Simple types. */ void initializeRegistry() { DatatypeValidator v = null; //Register Primitive Datatypes try { fRegistry...
private DatatypeValidatorFactoryImpl() { initializeRegistry(); } /** * Initializes registry with primitive and derived * Simple types. */ void initializeRegistry() { DatatypeValidator v = null; //Register Primitive Datatypes try { fRegistry...
protected void onRender(final MarkupStream markupStream) { // Get mutable copy of next tag final ComponentTag tag = markupStream.getTag().mutable(); // Must be an img tag checkComponentTag(tag, "img"); // Set map name to path tag.put("usemap", "#" + getPath()); // Write out the tag renderComponentT...
protected void onRender(final MarkupStream markupStream) { // Get mutable copy of next tag final ComponentTag tag = markupStream.getTag().mutable(); // Must be an img tag checkComponentTag(tag, "img"); // Set map name to path tag.put("usemap", "#" + getPath()); // Write out the tag renderComponentT...
public UrlResourceStream(final URL url) { // Save URL this.url = url; URLConnection connection = null; try { connection = url.openConnection(); contentLength = connection.getContentLength(); contentType = connection.getContentType(); lastModified = connection.getLastModified(); try { f...
public UrlResourceStream(final URL url) { // Save URL this.url = url; URLConnection connection = null; try { connection = url.openConnection(); contentLength = connection.getContentLength(); contentType = connection.getContentType(); lastModified = connection.getLastModified(); try { f...
protected synchronized void formatError(String type, Test test, Throwable error) { if (test != null) { endTest(test); } try { resultWriter.write(formatTest(test) + type); resultWriter.newLine(); resu...
protected synchronized void formatError(String type, Test test, Throwable error) { if (test != null) { endTest(test); } try { resultWriter.write(formatTest(test) + type); resultWriter.newLine(); resu...
private void formatError(String type, Test test, Throwable t) { synchronized (wri) { if (test != null) { endTest(test); failed.put(test, Boolean.TRUE); } try { wri.write(type); wri.newLine(); ...
private void formatError(String type, Test test, Throwable t) { synchronized (wri) { if (test != null) { endTest(test); failed.put(test, Boolean.TRUE); } try { wri.write(type); wri.newLine(); ...
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); int border = 0; int [] outMetric = new int [1]; OS.GetThemeMetric (OS.kThemeMetricFocusRectOutset, outMetric); border += outMetric [0]; OS.GetThemeMetric (OS.kThemeMetricEditTextFrameOutset, outMetric); border += outMetric [0]; ...
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); int border = 0; int [] outMetric = new int [1]; OS.GetThemeMetric (OS.kThemeMetricFocusRectOutset, outMetric); border += outMetric [0]; OS.GetThemeMetric (OS.kThemeMetricEditTextFrameOutset, outMetric); border += outMetric [0]; ...
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); int border = 0; int [] outMetric = new int [1]; OS.GetThemeMetric (OS.kThemeMetricFocusRectOutset, outMetric); border += outMetric [0]; OS.GetThemeMetric (OS.kThemeMetricEditTextFrameOutset, outMetric); border += outMetric [0]; ...
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); int border = 0; int [] outMetric = new int [1]; OS.GetThemeMetric (OS.kThemeMetricFocusRectOutset, outMetric); border += outMetric [0]; OS.GetThemeMetric (OS.kThemeMetricEditTextFrameOutset, outMetric); border += outMetric [0]; ...
public static int /*long*/ polyToRgn(int[] poly, int length) { int /*long*/ polyRgn = OS.NewRgn(); int minY = poly[1], maxY = poly[1]; for (int y = 3; y < length; y += 2) { if (poly[y] < minY) minY = poly[y]; if (poly[y] > maxY) maxY = poly[y]; } int[] inter = new int[length + 1]; for (int y = minY; y <= maxY...
public static int /*long*/ polyToRgn(int[] poly, int length) { int /*long*/ polyRgn = OS.NewRgn(); int minY = poly[1], maxY = poly[1]; for (int y = 3; y < length; y += 2) { if (poly[y] < minY) minY = poly[y]; if (poly[y] > maxY) maxY = poly[y]; } int[] inter = new int[length + 1]; for (int y = minY; y <= maxY...
public void SampleOccurred(SampleEvent e) { synchronized (sampleStore) { sampleStore.add(e); if (numSamplesThreshold != -1) { if (sampleStore.size() >= numSamplesThreshold) { try { log.debug("Firing sample"); ...
public void sampleOccurred(SampleEvent e) { synchronized (sampleStore) { sampleStore.add(e); if (numSamplesThreshold != -1) { if (sampleStore.size() >= numSamplesThreshold) { try { log.debug("Firing sample"); ...
public void SampleOccurred(SampleEvent e) { log.debug("Sample occurred"); synchronized (sampleStore) { sampleStore.add(e); } } }
public void sampleOccurred(SampleEvent e) { log.debug("Sample occurred"); synchronized (sampleStore) { sampleStore.add(e); } } }
public void SampleOccurred(SampleEvent e) { log.debug("Sample occurred"); try { listener.sampleOccurred(e); } catch (RemoteException err) { if (err.getCause() instanceof java.net.ConnectException){ throw new JMeterError("Could not return sample",err); ...
public void sampleOccurred(SampleEvent e) { log.debug("Sample occurred"); try { listener.sampleOccurred(e); } catch (RemoteException err) { if (err.getCause() instanceof java.net.ConnectException){ throw new JMeterError("Could not return sample",err); ...
private static final ICommandEditor COMMAND_EDITOR; static { // many now deprecated: reweavable* String[] xs = new String[] { "serializableAspects", "incrementalFile", "lazyTjp", "reweavable", "reweavable:compress", "notReweavable", "noInline", ...
private static final ICommandEditor COMMAND_EDITOR; static { // many now deprecated: reweavable* String[] xs = new String[] { "serializableAspects", "incrementalFile", "lazyTjp", "reweavable", "reweavable:compress", "notReweavable", "noInline", ...
public void execute() throws TaskException { // load command line with optional attributes Enumeration iter = optionalAttrs.keys(); while( iter.hasMoreElements() ) { String name = (String)iter.nextElement(); Object value = optionalAttrs.get( name ...
public void execute() throws TaskException { // load command line with optional attributes Enumeration iter = optionalAttrs.keys(); while( iter.hasMoreElements() ) { String name = (String)iter.nextElement(); Object value = optionalAttrs.get( name ...
public void getLocalpathCommand( Commandline cmd ) throws TaskException { if( m_LocalPath == null ) { return; } else { // make sure m_LocalDir exists, create it if it doesn't File dir = resolveFile( m_LocalPath ); if...
public void getLocalpathCommand( Commandline cmd ) throws TaskException { if( m_LocalPath == null ) { return; } else { // make sure m_LocalDir exists, create it if it doesn't File dir = resolveFile( m_LocalPath ); if...
public void getLocalpathCommand( Commandline cmd ) throws TaskException { if( m_LocalPath == null ) { return; } else { // make sure m_LocalDir exists, create it if it doesn't File dir = resolveFile( m_LocalPath ); if...
public void getLocalpathCommand( Commandline cmd ) throws TaskException { if( m_LocalPath == null ) { return; } else { // make sure m_LocalDir exists, create it if it doesn't File dir = resolveFile( m_LocalPath ); if...
public static void main(String[] args) { // 1) compile-time error here without // {unneeded} subaspect declare-parent // Tag as INode<Tag, Tag> from PC extends NodeImpl<Tag, Tag> ((TaggedTexts.Tag) null).getParent(); } } class TaggedTexts { public static class Te...
public static void main(String[] args) { // 1) compile-time error here without // {unneeded} subaspect declare-parent // Tag as INode<Tag, Tag> from PC extends NodeImpl<Tag, Tag> ((TaggedTexts.Tag) null).getParent(); } } class TaggedTexts { public static class Te...
public void redraw () { checkWidget(); redrawWidget (handle, false); } void redraw (boolean children) { // checkWidget(); redrawWidget (handle, true); }
public void redraw () { checkWidget(); redrawWidget (handle, false); } void redraw (boolean children) { // checkWidget(); redrawWidget (handle, children); }
private Extractor getExtractorImpl() { if (extractor == null) { boolean useDefaultExtractor = DEFAULT_EXTRACTOR.equals(getExtractor()); if (useDefaultExtractor || EXTRACTOR_JSOUP.equals(getExtractor())) { extractor = new JSoupExtractor(); } else if (EXTRAC...
private Extractor getExtractorImpl() { if (extractor == null) { boolean useDefaultExtractor = DEFAULT_EXTRACTOR.equals(getExtractor()); if (useDefaultExtractor || EXTRACTOR_JSOUP.equals(getExtractor())) { extractor = new JSoupExtractor(); } else if (EXTRAC...
public void setEnterExitMacro(boolean enterExitMacro) { this.enterExitMacro = enterExitMacro; } void generateExcludes(JNIMethod[] methods) { HashSet excludes = new HashSet(); for (int i = 0; i < methods.length; i++) { JNIMethod method = methods[i]; if ((method.getModifiers() & Modifier.NATIVE) == 0) continue; ...
public void setEnterExitMacro(boolean enterExitMacro) { this.enterExitMacro = enterExitMacro; } void generateExcludes(JNIMethod[] methods) { HashSet excludes = new HashSet(); for (int i = 0; i < methods.length; i++) { JNIMethod method = methods[i]; if ((method.getModifiers() & Modifier.NATIVE) == 0) continue; ...
protected void onComponentTag(final ComponentTag tag) { // Default handling for tag super.onComponentTag(tag); // Set href to link to this link's linkClicked method CharSequence url = getURL(); // append any anchor url = appendAnchor(tag, url); // If we're disabled if (!isEnabled()) { disableL...
protected void onComponentTag(final ComponentTag tag) { // Default handling for tag super.onComponentTag(tag); // Set href to link to this link's linkClicked method CharSequence url = getURL(); // append any anchor url = appendAnchor(tag, url); // If we're disabled if (!isLinkEnabled()) { disa...
public void setState (int state) { checkWidget (); if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (6, 0)) { switch (state) { case SWT.NORMAL: OS.SendMessage (handle, OS.PBM_SETSTATE, OS.PBST_NORMAL, 0); break; case SWT.ERROR: OS.SendMessage (handle, OS.PBM_SETSTATE, OS.PBST_ERROR, 0); break...
public void setState (int state) { checkWidget (); if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (6, 0)) { switch (state) { case SWT.NORMAL: OS.SendMessage (handle, OS.PBM_SETSTATE, OS.PBST_NORMAL, 0); break; case SWT.ERROR: OS.SendMessage (handle, OS.PBM_SETSTATE, OS.PBST_ERROR, 0); break...
public static void main(String[] argList) { String[] expected = new String[] { "none after-String-constructor-execution after-initialization after-any-constructor-call", "hello after-String-constructor-execution after-initialization after-any-constructor-call", "none aft...
public static void main(String[] argList) { String[] expected = new String[] { "none after-String-constructor-execution after-initialization after-any-constructor-call", "hello after-String-constructor-execution after-initialization after-any-constructor-call", "none aft...
package org.apache.myrmidon.components.configurer; /* * 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.ap...
package org.apache.myrmidon.components.configurer; /* * 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.ap...
public static ITextFormatProvider forDatePattern(String id, String datePattern) { return forDateStyle(id, null, datePattern); }
public static ITextFormatProvider forDatePattern(String id, String datePattern) { return forDatePattern(id, null, datePattern); }
public int changeX(int x) { this.x = x; return x; } void doIt() { try { File f = new File("."); f.getCanonicalPath(); } catch (IOException ioe) { System.err.println("!"); } setX(10); new Point(); } } class SubPoint extends Point { } class Line { } aspect AdvisesRelationCoverage { ...
public int changeX(int x) { this.x = x; return x; } void doIt() { try { File f = new File("."); f.getCanonicalPath(); } catch (IOException ioe) { System.err.println("!"); } setX(10); new Point(); } } class SubPoint extends Point { } class Line { } aspect AdvisesRelationCoverage { ...
public void displayStatusInformation(String message) { System.out.println("> NullIdeUIAdapter status : " + message); }
public void displayStatusInformation(String message) { System.out.println("NullIde> " + message); }
public char[] getFileName() { return null; } }; LocalTypeDeclaration local = new LocalTypeDeclaration(new CompilationResult(cu, 0, 0, 0)); local.name = new char[2]; BlockScope scope = null; try { new AsmBuilder(new CompilationResult(cu, 0, 0, 0)).visit(local, scope); } catch (Exception...
public char[] getFileName() { return null; } }; LocalTypeDeclaration local = new LocalTypeDeclaration(new CompilationResult(cu, 0, 0, 0)); local.name = new char[2]; BlockScope scope = null; try { new AsmHierarchyBuilder(new CompilationResult(cu, 0, 0, 0)).visit(local, scope); } catch (...
public boolean isListening() throws DebugException { // IProcess process = getProcess(); // if (process == null) { // return false; // } // // check is the (batch/bash) process is already terminated // // and report an exception if it is so // try { // ...
public boolean isListening() throws DebugException { // IProcess process = getProcess(); // if (process == null) { // return false; // } // // check is the (batch/bash) process is already terminated // // and report an exception if it is so // try { // ...
private String findInstalledCoreSDK() { String os = Platform.getOS(); Path possiblePath = null; if (os.equals(Platform.OS_WIN32)) { possiblePath = new Path("C:\\Program Files\\Sausalito CoreSDK 1.0.0"); } else { possiblePath = new Path("/opt/sausalito"); ...
private String findInstalledCoreSDK() { String os = Platform.getOS(); Path possiblePath = null; if (os.equals(Platform.OS_WIN32)) { possiblePath = new Path("C:\\Program Files\\Sausalito CoreSDK 1.0.12"); } else { possiblePath = new Path("/opt/sausalito"); ...
public void interpreterAdded(IInterpreterInstall interpreter) { if (interpreter instanceof CoreSDKInstall) { IFileHandle handle = interpreter.getInstallLocation(); if (!handle.exists()) { Path path = new Path(handle.toOSString()); StringBuffer pathSB =...
public void interpreterAdded(IInterpreterInstall interpreter) { if (interpreter instanceof CoreSDKInstall) { IFileHandle handle = interpreter.getInstallLocation(); if (!handle.exists()) { Path path = new Path(handle.toOSString()); StringBuffer pathSB =...
public void handleEvent(Event event) { handleHorizontalScroll(event); } }); } } void internalRedrawRange(int start, int length) { if (length <= 0) return; int end = start + length; int startLine = content.getLineAtOffset(start); int endLine = content.getLineAtOffset(end); int partialBottomIndex = getP...
public void handleEvent(Event event) { handleHorizontalScroll(event); } }); } } void internalRedrawRange(int start, int length) { if (length <= 0) return; int end = start + length; int startLine = content.getLineAtOffset(start); int endLine = content.getLineAtOffset(end); int partialBottomIndex = getP...
protected String getParamFileArgument() { return (!isJProbe4 ? "-jp_" : "") + "paramfile="; }
protected String getParamFileArgument() { return "-" + (!isJProbe4 ? "jp_" : "") + "paramfile="; }
public void addCookieFromHeader(CookieManager cookieManager, boolean checkCookies,String cookieHeader, URL url){ boolean debugEnabled = log.isDebugEnabled(); if (debugEnabled) { log.debug("Received Cookie: " + cookieHeader + " From: " + url.toExternalForm()); } String ...
public void addCookieFromHeader(CookieManager cookieManager, boolean checkCookies,String cookieHeader, URL url){ boolean debugEnabled = log.isDebugEnabled(); if (debugEnabled) { log.debug("Received Cookie: " + cookieHeader + " From: " + url.toExternalForm()); } String ...
protected void onComponentTag(final ComponentTag tag) { // Default handling for component tag super.onComponentTag(tag); // must be attached to <input type="checkbox" .../> tag checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "checkbox"); CheckGroup<?> group = getGroup(); fina...
protected void onComponentTag(final ComponentTag tag) { // Default handling for component tag super.onComponentTag(tag); // must be attached to <input type="checkbox" .../> tag checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "checkbox"); CheckGroup<?> group = getGroup(); fina...
protected void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "checkbox"); final String value = getValue(); final IConverter<Boolean> converter = getConverter(Boolean.class); final Boolean checked = converter.convertToObject(value, getLocal...
protected void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "checkbox"); final String value = getValue(); final IConverter<Boolean> converter = getConverter(Boolean.class); final Boolean checked = converter.convertToObject(value, getLocal...
protected void onComponentTag(final ComponentTag tag) { // Default handling for component tag super.onComponentTag(tag); // must be attached to <input type="radio" .../> tag checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "radio"); final String value = getValue(); RadioGroup<...
protected void onComponentTag(final ComponentTag tag) { // Default handling for component tag super.onComponentTag(tag); // must be attached to <input type="radio" .../> tag checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "radio"); final String value = getValue(); RadioGroup<...
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); }
protected final void addAntiCacheParameter(final ComponentTag tag) { String url = tag.getAttributes().getString("src"); url = url + (url.contains("?") ? "&" : "?"); url = url + "wicket:antiCache=" + System.currentTimeMillis(); tag.put("src", url); }
protected final void onComponentTag(final ComponentTag tag) { // Default handling for tag super.onComponentTag(tag); // only set the href attribute when the resource exists if (resourceReference != null) { // Set href to link to this link's linkClicked method ResourceReferenceRequestHandler...
protected final void onComponentTag(final ComponentTag tag) { // Default handling for tag super.onComponentTag(tag); // only set the href attribute when the resource exists if (resourceReference != null) { // Set href to link to this link's linkClicked method ResourceReferenceRequestHandler...
public ScrollBar getVerticalBar () { checkWidget (); return verticalBar; } void releaseChildren (boolean destroy) { if (horizontalBar != null) { horizontalBar.release (false); horizontalBar = null; } if (verticalBar != null) { verticalBar.release (false); verticalBar = null; } super.releaseChildren (des...
public ScrollBar getVerticalBar () { checkWidget (); return verticalBar; } void releaseChildren (boolean destroy) { if (horizontalBar != null) { horizontalBar.release (false); horizontalBar = null; } if (verticalBar != null) { verticalBar.release (false); verticalBar = null; } super.releaseChildren (des...
protected void executeJava() throws TaskException { try { getLogger().info( "mode : java" ); org.apache.tools.ant.taskdefs.Java execTask = null; execTask = (Java)getProject().createTask( "java" ); execTask.setDir( new File( "." ) ); ...
protected void executeJava() throws TaskException { try { getLogger().info( "mode : java" ); org.apache.tools.ant.taskdefs.Java execTask = null; execTask = null;//(Java)getProject().createTask( "java" ); execTask.setDir( new File( "." ) )...
public void testRefreshTxReqExceptions() { Object[][] threadMainTxReqTest = { {Act.CreateEm}, {Act.Find}, {Act.SaveVersion}, {Act.TestEmployee, 1, Default_FirstName}, {Act.RefreshWithLock, 1, LockModeType.NONE }, {Act.TestE...
public void testRefreshTxReqExceptions() { Object[][] threadMainTxReqTest = { {Act.CreateEm}, {Act.Find}, {Act.SaveVersion}, {Act.TestEmployee, 1, Default_FirstName}, {Act.RefreshWithLock, 1, LockModeType.NONE }, {Act.TestE...
public boolean element2Locator(Element e, SimpleLocator l) { if (l == null) return false; if (e instanceof ElementImpl) { ElementImpl ele = (ElementImpl)e; // get system id from document object Document doc = ele.getOwnerDocument(); String ...
public boolean element2Locator(Element e, SimpleLocator l) { if (l == null) return false; if (e instanceof ElementImpl) { ElementImpl ele = (ElementImpl)e; // get system id from document object Document doc = ele.getOwnerDocument(); String ...
Button singleButton, multiButton, horizontalButton, verticalButton; /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the E...
Button singleButton, multiButton, horizontalButton, verticalButton; /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the E...
public static MongoDB getMongoDB(String source) { Object mongoSource = JMeterContextService.getContext().getVariables().getObject(source); if(mongoSource == null) { throw new IllegalStateException("mongoSource is null"); } else { if(mongoSource instanceof Mo...
public static MongoDB getMongoDB(String source) { Object mongoSource = JMeterContextService.getContext().getVariables().getObject(source); if(mongoSource == null) { throw new IllegalStateException("mongoSource is null"); } else { if(mongoSource instanceof Mo...
public void run() { // Check which HTTPSampler class we should use String httpSamplerName = HTTPSamplerFactory.DEFAULT_CLASSNAME; if(target.getSamplerTypeName() == ProxyControl.SAMPLER_TYPE_HTTP_SAMPLER) { httpSamplerName = HTTPSamplerFactory.HTTP_SAMPLER_JAVA; } ...
public void run() { // Check which HTTPSampler class we should use String httpSamplerName = HTTPSamplerFactory.DEFAULT_CLASSNAME; if(target.getSamplerTypeName() == ProxyControl.SAMPLER_TYPE_HTTP_SAMPLER) { httpSamplerName = HTTPSamplerFactory.HTTP_SAMPLER_JAVA; } ...
public void serviceChanged(DiscoveredServiceNotification notification) { Trace.trace(Activator.BUNDLE_NAME, "DiscoveredServiceTrackerImpl.serviceChanged("+notification+")"); } } protected Properties createServicePublicationProperties(List interfaces) { Properties props = new Properties(); props.put(IS...
public void serviceChanged(DiscoveredServiceNotification notification) { Trace.trace(Activator.BUNDLE_NAME, "DiscoveredServiceTrackerImpl.serviceChanged("+notification+")"); } } protected Properties createServicePublicationProperties(List interfaces) { Properties props = new Properties(); props.put(IS...
public Object getObject(Component component) { String url = getPage().urlFor(resourceReference); return url; }; }; add(new AttributeModifier("src", true, srcReplacement)); } }
public Object getObject(Component component) { String url = urlFor(resourceReference); return url; }; }; add(new AttributeModifier("src", true, srcReplacement)); } }
public Object getObject(Component component) { String url = getPage().urlFor(javascript); return url; }; }; WebMarkupContainer javascript = new WebMarkupContainer("javascript"); javascript.add(new AttributeModifier("src", true, srcReplacement)); add(javascript); }
public Object getObject(Component component) { String url = urlFor(javascript); return url; }; }; WebMarkupContainer javascript = new WebMarkupContainer("javascript"); javascript.add(new AttributeModifier("src", true, srcReplacement)); add(javascript); }
private void addJavascriptReference(final HtmlHeaderContainer container, final PackageResourceReference ref) { write(container, "\t<script language='JavaScript' type='text/javascript' " + "src='" + container.getPage().urlFor(ref.getPath()) + "'></script>\n"); }
private void addJavascriptReference(final HtmlHeaderContainer container, final PackageResourceReference ref) { write(container, "\t<script language='JavaScript' type='text/javascript' " + "src='" + container.urlFor(ref.getPath()) + "'></script>\n"); }
private void addCssReference(final HtmlHeaderContainer container, final Class clazz, final String name) { PackageResourceReference ref = new PackageResourceReference(Application.get(), clazz, name); write(container, "\t<link rel='stylesheet' type='text/css' href='" + getPage().urlFor(ref.getPath()) + "'/>\n"); }...
private void addCssReference(final HtmlHeaderContainer container, final Class clazz, final String name) { PackageResourceReference ref = new PackageResourceReference(Application.get(), clazz, name); write(container, "\t<link rel='stylesheet' type='text/css' href='" + urlFor(ref.getPath()) + "'/>\n"); }
public void renderHead(HtmlHeaderContainer container) { super.renderHead(container); PageParameters parameters = new PageParameters(); parameters.put("fieldName", this.getId()); String url = this.getPage().urlFor(null, page, parameters); write(container, "<script type='text/javascript'>\n"); write(conta...
public void renderHead(HtmlHeaderContainer container) { super.renderHead(container); PageParameters parameters = new PageParameters(); parameters.put("fieldName", this.getId()); String url = this.urlFor(null, page, parameters); write(container, "<script type='text/javascript'>\n"); write(container, "var...
public Object getObject(Component component) { Object o = resourceReference.getObject(component); if (o == null) { throw new IllegalArgumentException( "The model must provide a non-null object (component == " + component + ")"); } if (!(o instanceof ResourceReference)) ...
public Object getObject(Component component) { Object o = resourceReference.getObject(component); if (o == null) { throw new IllegalArgumentException( "The model must provide a non-null object (component == " + component + ")"); } if (!(o instanceof ResourceReference)) ...
return new String[] {"Selection", "State", "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 Eclipse Pu...
return new String[] {"Selection", "State", "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 Eclipse Pu...
public static void main(String[] args) throws Exception { List<String> gets = Arrays.asList(new String[] { "/app1?wicket:bookmarkablePage=one:org.apache.wicket.threadtest.apps.app1.Home" }); SimpleGetCommand getCmd = new SimpleGetCommand(gets, 5); // getCmd.setPrintResponse(true); Tester tester = new Teste...
public static void main(String[] args) throws Exception { List<String> gets = Arrays.asList(new String[] { "/app1/wicket/bookmarkable/org.apache.wicket.threadtest.apps.app1.Home" }); SimpleGetCommand getCmd = new SimpleGetCommand(gets, 5); // getCmd.setPrintResponse(true); Tester tester = new Tester(getCmd...
public static void main(String[] args) throws Exception { List<String> gets = Arrays.asList(new String[] { "/app2?wicket:bookmarkablePage=one:org.apache.wicket.threadtest.apps.app2.Home" }); SimpleGetCommand getCmd = new SimpleGetCommand(gets, 5); // getCmd.setPrintResponse(true); // AS OF OCTOBER 9 2006,...
public static void main(String[] args) throws Exception { List<String> gets = Arrays.asList(new String[] { "/app2/wicket/bookmarkable/org.apache.wicket.threadtest.apps.app2.Home" }); SimpleGetCommand getCmd = new SimpleGetCommand(gets, 5); // getCmd.setPrintResponse(true); // AS OF OCTOBER 9 2006, THIS TY...
public CharSequence encodeURL(CharSequence url) { return currentResponse.encodeURL(url); }; }; redirectResponse.setCharacterEncoding(currentResponse.getCharacterEncoding()); // redirect the response to the buffer setResponse(redirectResponse); // render the page into the buffe...
public CharSequence encodeURL(CharSequence url) { return currentResponse.encodeURL(url); } }; redirectResponse.setCharacterEncoding(currentResponse.getCharacterEncoding()); // redirect the response to the buffer setResponse(redirectResponse); // render the page into the buffer...
public boolean matches(IRequestTarget requestTarget) { if (requestTarget instanceof ISharedResourceRequestTarget) { SharedResourceRequestTarget target = (SharedResourceRequestTarget)requestTarget; return target.getRequestParameters().getResourceKey().equals(resourceKey); } else return false; }
public boolean matches(IRequestTarget requestTarget) { if (requestTarget instanceof ISharedResourceRequestTarget) { ISharedResourceRequestTarget target = (ISharedResourceRequestTarget)requestTarget; return target.getRequestParameters().getResourceKey().equals(resourceKey); } else return false; }
public synchronized Object clone() { try { ConcurrentReaderHashMap t = (ConcurrentReaderHashMap)super.clone(); t.keySet = null; t.entrySet = null; t.values = null; Entry[] tab = table; t.table = new Entry[tab.length]; Entry[] ttab = t.table; for (int i = 0; i < tab.length; ++i) { ...
public synchronized Object clone() throws CloneNotSupportedException { try { ConcurrentReaderHashMap t = (ConcurrentReaderHashMap)super.clone(); t.keySet = null; t.entrySet = null; t.values = null; Entry[] tab = table; t.table = new Entry[tab.length]; Entry[] ttab = t.table; for (int i ...
public SchemaGrammar parseSchema(XMLInputSource is, XSDDescription desc, Hashtable locationPairs) throws IOException { fLocationPairs = locationPairs; fSchemaParser.resetNodePool(); SchemaGrammar grammar = null; String schemaNamespace = null; short referTy...
public SchemaGrammar parseSchema(XMLInputSource is, XSDDescription desc, Hashtable locationPairs) throws IOException { fLocationPairs = locationPairs; fSchemaParser.resetNodePool(); SchemaGrammar grammar = null; String schemaNamespace = null; short referTy...
public int Show(int aLauncher, int aContext, int aForced) { /* * The interface for nsIHelperAppLauncher changed as of mozilla 1.8. Query the received * nsIHelperAppLauncher for the new interface, and if it is not found then fall back to * the old interface. */ nsISupports supports = new nsISupports(aLaunche...
public int Show(int aLauncher, int aContext, int aReason) { /* * The interface for nsIHelperAppLauncher changed as of mozilla 1.8. Query the received * nsIHelperAppLauncher for the new interface, and if it is not found then fall back to * the old interface. */ nsISupports supports = new nsISupports(aLaunche...
protected void layout(Composite composite, boolean flushCache) { CBanner banner = (CBanner)composite; Control left = banner.left; Control right = banner.right; Control bottom = banner.bottom; Point size = banner.getSize(); boolean showCurve = left != null && right != null; int width = size.x; int height = siz...
protected void layout(Composite composite, boolean flushCache) { CBanner banner = (CBanner)composite; Control left = banner.left; Control right = banner.right; Control bottom = banner.bottom; Point size = banner.getSize(); boolean showCurve = left != null && right != null; int width = size.x; int height = siz...
protected ScriptEngine getScriptEngine() throws ScriptException { final String lang = getScriptLanguage(); ScriptEngine scriptEngine = getInstance().getEngineByName(lang); if (scriptEngine == null) { throw new ScriptException("Cannot find engine named: "+lang); }
protected ScriptEngine getScriptEngine() throws ScriptException { final String lang = getScriptLanguage(); ScriptEngine scriptEngine = getInstance().getEngineByName(lang); if (scriptEngine == null) { throw new ScriptException("Cannot find engine named: '"+lang+"', ensure you set...
protected void onComponentTag(final ComponentTag tag) { // must be attached to <option .../> tag checkComponentTag(tag, "option"); Select select = (Select)findParent(Select.class); if (select == null) { throw new WicketRuntimeException( "SelectOption component [" + getPath() + "] cann...
protected void onComponentTag(final ComponentTag tag) { // must be attached to <option .../> tag checkComponentTag(tag, "option"); Select select = findParent(Select.class); if (select == null) { throw new WicketRuntimeException( "SelectOption component [" + getPath() + "] cannot find ...
public void previous() { IWizardStep step = (IWizardStep)history.pop(); setActiveStep(step);
public void previous() { IWizardStep step = history.pop(); setActiveStep(step);
protected ElementNSImpl(DocumentImpl ownerDocument, String namespaceURI, String qualifiedName) throws DOMException { this.ownerDocument = ownerDocument; this.namespaceURI = namespaceURI; this.name = qualifiedName; int index = qualifiedName.indexOf(':'); i...
protected ElementNSImpl(DocumentImpl ownerDocument, String namespaceURI, String qualifiedName) throws DOMException { this.ownerDocument = ownerDocument; this.namespaceURI = namespaceURI; this.name = qualifiedName; int index = qualifiedName.indexOf(':'); i...
public String getText (int columnIndex) { checkWidget (); int validColumnCount = Math.max (1, parent.getColumnCount ()); if (!(0 <= columnIndex && columnIndex < validColumnCount)) return ""; if (texts [columnIndex] == null) return ""; return texts [columnIndex]; } /* * Returns the full width required for painting...
public String getText (int columnIndex) { checkWidget (); int validColumnCount = Math.max (1, parent.getColumnCount ()); if (!(0 <= columnIndex && columnIndex < validColumnCount)) return ""; if (texts [columnIndex] == null) return ""; return texts [columnIndex]; } /* * Returns the full width required for painting...
public String toString() { StringBuffer buf = new StringBuffer(); buf.append("poincut "); buf.append(getDeclaringType().getName()); buf.append("."); buf.append(getName()); buf.append("("); for (int i=0; i < getParameterTypes().length; i++) { if (i > 0) buf.append(", "); buf.append(getParameterTypes...
public String toString() { StringBuffer buf = new StringBuffer(); buf.append("pointcut "); buf.append(getDeclaringType().getName()); buf.append("."); buf.append(getName()); buf.append("("); for (int i=0; i < getParameterTypes().length; i++) { if (i > 0) buf.append(", "); buf.append(getParameterType...
public int open () { NSAlert alert = (NSAlert) new NSAlert().alloc().init(); int alertType = OS.NSInformationalAlertStyle; if ((style & SWT.ICON_ERROR) != 0) alertType = OS.NSCriticalAlertStyle; if ((style & SWT.ICON_INFORMATION) != 0) alertType = OS.NSInformationalAlertStyle; if ((style & SWT.ICON_QUESTION) != 0)...
public int open () { NSAlert alert = (NSAlert) new NSAlert().alloc().init(); int alertType = OS.NSInformationalAlertStyle; if ((style & SWT.ICON_ERROR) != 0) alertType = OS.NSCriticalAlertStyle; if ((style & SWT.ICON_INFORMATION) != 0) alertType = OS.NSInformationalAlertStyle; if ((style & SWT.ICON_QUESTION) != 0)...
public Type typeForName(String name, AbstractTypeReference... typeArguments) { DeclaredType dt = contr.typeForName(name); if (dt == null) { //TODO CACHING Type t = FACTORY.createType(); t.setDeclaredType(dt); t.getActualTypeArguments().addAll(Arrays.asList(typeArguments)); return t; } return nul...
public Type typeForName(String name, AbstractTypeReference... typeArguments) { DeclaredType dt = contr.typeForName(name); if (dt != null) { //TODO CACHING Type t = FACTORY.createType(); t.setDeclaredType(dt); t.getActualTypeArguments().addAll(Arrays.asList(typeArguments)); return t; } return nul...
private void checkIdRefs(Hashtable IDList, Hashtable IDREFList) throws InvalidDatatypeValueException { Enumeration en = IDREFList.keys(); while ( en.hasMoreElements() ) { String key = (String)en.nextElement(); if ( !IDList.containsKey(key) ) { InvalidDatatype...
public static void checkIdRefs(Hashtable IDList, Hashtable IDREFList) throws InvalidDatatypeValueException { Enumeration en = IDREFList.keys(); while ( en.hasMoreElements() ) { String key = (String)en.nextElement(); if ( !IDList.containsKey(key) ) { InvalidDa...
public synchronized void connect() throws ECFException { fireInitBot(); try { Namespace namespace = null; if (container == null) { container = ContainerFactory.getDefault().createContainer( bot.getContainerFactoryName()); namespace = container.getConnectNamespace(); } else throw new C...
public synchronized void connect() throws ECFException { fireInitBot(); try { Namespace namespace = null; if (container == null) { container = ContainerFactory.getDefault().createContainer( bot.getContainerFactoryName()); namespace = container.getConnectNamespace(); } else throw new C...
public void detach(IRequestCycle requestCycle) { detachedFlag1 = true; } }; stack.executeRequestHandler(handler1); assertEquals(stack.getResponse(), originalResponse); stack.detach(); assertTrue(testFlag1); assertFalse(testFlag2); assertFalse(testFlag3); assertTrue(detachedFlag1); as...
public void detach(IRequestCycle requestCycle) { detachedFlag1 = true; } }; stack.executeRequestHandler(handler1); assertEquals(stack.getResponse(), originalResponse); stack.detach(); assertFalse(testFlag1); assertFalse(testFlag2); assertFalse(testFlag3); assertTrue(detachedFlag1); a...
public Object visit(final MarkupElement element, final MarkupFragment parent) { final MarkupFragment frag = (MarkupFragment)element; final ComponentTag tag = frag.getTag(); // if <wicket:head>, than if (tag.isWicketHeadTag()) { if (foundBody == true) { throwMarkupException(fra...
public Object visit(final MarkupElement element, final MarkupFragment parent) { final MarkupFragment frag = (MarkupFragment)element; final ComponentTag tag = frag.getTag(); // if <wicket:head>, than if (tag.isWicketHeadTag()) { if (foundBody == true) { throwMarkupException(fra...
private void initialize(URI p_base, String p_uriSpec) throws MalformedURIException { String uriSpec = (p_uriSpec != null) ? p_uriSpec.trim() : null; int uriSpecLen = (uriSpec != null) ? uriSpec.length() : 0;
private void initialize(URI p_base, String p_uriSpec) throws MalformedURIException { String uriSpec = p_uriSpec; int uriSpecLen = (uriSpec != null) ? uriSpec.length() : 0;
protected ReferenceTypeDelegate resolveIfBootstrapDelegate(ReferenceType ty) { // first check for anything available in the bootstrap loader: these types are just defined from that without allowing nondelegation String name = ty.getName(); Reference bootRef = (Reference)bootstrapTypes.get(name)...
protected ReferenceTypeDelegate resolveIfBootstrapDelegate(ReferenceType ty) { // first check for anything available in the bootstrap loader: these types are just defined from that without allowing nondelegation String name = ty.getName(); Reference bootRef = (Reference)bootstrapTypes.get(name)...
public List getNodePath() { JMeterProperty prop = getProperty(NODE_PATH); if (!(prop instanceof NullProperty)) { return (List) ((CollectionProperty) prop).getObjectValue(); } return null; }
public List getNodePath() { JMeterProperty prop = getProperty(NODE_PATH); if (!(prop instanceof NullProperty)) { return (List<?>) ((CollectionProperty) prop).getObjectValue(); } return null; }
private boolean setEventData(int theDrag, DNDEvent event) { if (theDrag == 0) return false; // get allowed operations int style = getStyle(); int[] outActions = new int[1]; OS.GetDragAllowableActions(theDrag, outActions); int operations = osOpToOp(outActions[0]) & style; if (operations == DND.DROP_NONE) return...
private boolean setEventData(int theDrag, DNDEvent event) { if (theDrag == 0) return false; // get allowed operations int style = getStyle(); int[] outActions = new int[1]; OS.GetDragAllowableActions(theDrag, outActions); int operations = osOpToOp(outActions[0]) & style; if (operations == DND.DROP_NONE) return...
public String toString() { //Thread.currentThread().dumpStack(); return "BindingTypePattern(" + type.toString() + ", " + formalIndex + ")"; }
public String toString() { //Thread.currentThread().dumpStack(); return "BindingTypePattern(" + super.toString() + ", " + formalIndex + ")"; }
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 (int st...
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 (int st...
private static final File NULL_FILE_PLACEHOLDER = new File("/NULL_FILE");
private FileNameMapper getMapper() { FileNameMapper mapper = null; if (mapperElement != null) { mapper = mapperElement.getImplementation(); } else if (flatten) { mapper = new FlatFileNameMapper(); } else { mapper = new IdentityMapper(); } ...
public void init(String [] args) throws Exception { serverName = TCPServerSOContainer.getDefaultServerURL(); if (args.length > 0) { if (!args[0].equals("-")) serverName = args[0]; } if (args.length > 1) { sharedObjectClassNames = new String[args.length - 1]; for (int i = 0; i < args.length - 1; i++) {...
public void init(String [] args) throws Exception { serverName = TCPServerSOContainer.getDefaultServerURL(); if (args.length > 0) { if (!args[0].equals("-")) serverName = args[0]; } if (args.length > 1) { sharedObjectClassNames = new String[args.length - 1]; for (int i = 0; i < args.length - 1; i++) {...
public ISharedObjectContainer createSharedObjectContainer( ContainerTypeDescription desc, String[] argTypes, Object[] args) throws ContainerCreateException { trace("createSharedObjectContainer(" + desc + "," + Trace.getArgumentsString(argTypes) + "," + Trace.getArgumentsString(args) + ")"); if (desc ...
public ISharedObjectContainer createSharedObjectContainer( ContainerTypeDescription desc, String[] argTypes, Object[] args) throws ContainerCreateException { trace("createSharedObjectContainer(" + desc + "," + Trace.getArgumentsString(argTypes) + "," + Trace.getArgumentsString(args) + ")"); if (desc ...
public IContainer createInstance(ContainerTypeDescription description, Class[] argTypes, Object[] args) throws ContainerCreateException { throw new ContainerCreateException("can't create an instance of dummy"); }
public IContainer createInstance(ContainerTypeDescription description, Object[] args) throws ContainerCreateException { throw new ContainerCreateException("can't create an instance of dummy"); }
public IContainer createInstance(ContainerTypeDescription description, Class[] argTypes, Object[] args) throws ContainerCreateException { try { return new IRCRootContainer(IDFactory.getDefault().createGUID()); //return new IRCContainer(IDFactory.getDefault().createGUID()); } catch (IDCreateException e)...
public IContainer createInstance(ContainerTypeDescription description, Object[] args) throws ContainerCreateException { try { return new IRCRootContainer(IDFactory.getDefault().createGUID()); //return new IRCContainer(IDFactory.getDefault().createGUID()); } catch (IDCreateException e) { throw new Co...