buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public static Test suite() { TestSuite suite = new TestSuite("Tests for org.eclipse.xtend.typesystem.xsd.tests.AllTests"); suite.addTestSuite(org.eclipse.xtend.typesystem.xsd.tests.compositetypes.CompositeTypesTest.class); suite.addTestSuite(org.eclipse.xtend.typesystem.xsd.tests.ecorebuilder.Ecore...
public static Test suite() { TestSuite suite = new TestSuite("Tests for org.eclipse.xtend.typesystem.xsd.tests"); suite.addTestSuite(org.eclipse.xtend.typesystem.xsd.tests.compositetypes.CompositeTypesTest.class); suite.addTestSuite(org.eclipse.xtend.typesystem.xsd.tests.ecorebuilder.EcoreBuilderTe...
public void onSubmit() { onClearSubmit(this); } }; clear.setDefaultFormProcessing(false); add(clear); }
public void onSubmit() { onClearSubmit(this); } }; clear.setDefaultFormProcessing(true); add(clear); }
public static InputStream newInflaterInputStream(InputStream stream) throws IOException { return new InflaterInputStream(stream); }
public static InputStream newInflaterInputStream(InputStream stream) throws IOException { return new BufferedInputStream(new InflaterInputStream(stream)); }
public final int getCurrentPage() { int page = currentPage; /* * trim current page if its out of bounds this can happen if items are * added/deleted between requests */ if (page >= getPageCount()) { page = Math.max(page - 1, 0); setCurrentPage(page); return page; } return page; }
public final int getCurrentPage() { int page = currentPage; /* * trim current page if its out of bounds this can happen if items are * added/deleted between requests */ if (page >= getPageCount()) { page = Math.max(getPageCount() - 1, 0); setCurrentPage(page); return page; } return pa...
public Grammar parseGrammar(String type, XMLInputSource is) throws XNIException, IOException { // REVISIT: for now, don't know what to do with DTD's... if(!type.equals(XMLGrammarDescription.XML_SCHEMA)) return null; if (fSchemaHandler == null) { fXSGramma...
public Grammar parseGrammar(String type, XMLInputSource is) throws XNIException, IOException { // REVISIT: for now, don't know what to do with DTD's... if(!type.equals(XMLGrammarDescription.XML_SCHEMA)) return null; if (fSchemaHandler == null) { fXSGramma...
public void setLayoutDeferred (boolean defer) { if (!defer) { if (--layoutCount == 0) { if ((state & LAYOUT_CHILD) != 0 || (state & LAYOUT_NEEDED) != 0) { updateLayout (true); } } } else { layoutCount++; } } boolean setScrollBarVisible (ScrollBar bar, boolean visible) { boolean changed = super.set...
public void setLayoutDeferred (boolean defer) { if (!defer) { if (--layoutCount == 0) { if ((state & LAYOUT_CHILD) != 0 || (state & LAYOUT_NEEDED) != 0) { updateLayout (true); } } } else { layoutCount++; } } boolean setScrollBarVisible (ScrollBar bar, boolean visible) { boolean changed = super.set...
public void setXPath(String xpath) { this.xpath.setText(xpath); }
public void setXPath(String xpath) { this.xpath.setInitialText(xpath); }
public SampleResult sample(Entry e) { DBKey key = getKey(); long start; long end; long time; time = start = end = 0; SampleResult res = new SampleResult(); Connection con = null; ResultSet rs = null; Statement stmt = null; Data data...
public SampleResult sample(Entry e) { DBKey key = getKey(); long start; long end; long time; time = start = end = 0; SampleResult res = new SampleResult(); Connection con = null; ResultSet rs = null; Statement stmt = null; Data data...
public ShadowMunger concretize(ResolvedType fromType, World world, PerClause clause) { // assert !fromType.isAbstract(); Pointcut p = pointcut.concretize(fromType, signature.getArity(), this); if (clause != null) { Pointcut oldP = p; p = new AndPointcut(clause, p); p....
public ShadowMunger concretize(ResolvedType fromType, World world, PerClause clause) { // assert !fromType.isAbstract(); Pointcut p = pointcut.concretize(fromType, getDeclaringType(), signature.getArity(), this); if (clause != null) { Pointcut oldP = p; p = new AndPointcut(cla...
public ShadowMunger concretize(ResolvedType fromType, World world, PerClause clause) { pointcut = pointcut.concretize(fromType, 0, this); return this; }
public ShadowMunger concretize(ResolvedType fromType, World world, PerClause clause) { pointcut = pointcut.concretize(fromType, getDeclaringType(), 0, this); return this; }
public Object component(final Component component) { if (!component.getPath().startsWith(PageView.this.getPath())) { final ComponentData object = new ComponentData(); // anonymous class? Get the parent's class name String name = component.getClass().getName(); if (name.indexOf(...
public Object component(final Component component) { if (!component.getPath().startsWith(PageView.this.getPath())) { final ComponentData object = new ComponentData(); // anonymous class? Get the parent's class name String name = component.getClass().getName(); if (name.indexOf(...
public String getInputName() { String id = getId(); final StringBuffer inputName = new StringBuffer(id.length()); Component c = this; while (true) { inputName.insert(0, id); c = c.getParent(); if (c == null || c instanceof Form || c instanceof Page) { break; } inputName.insert(0, ':');...
public String getInputName() { String id = getId(); final StringBuffer inputName = new StringBuffer(id.length()); Component c = this; while (true) { inputName.insert(0, id); c = c.getParent(); if (c == null || c instanceof Form || c instanceof Page) { break; } inputName.insert(0, Compo...
protected IRequestTarget resolveListenerInterfaceTarget(RequestCycle requestCycle, final Page page, final String componentPath, final String interfaceName) { if (interfaceName.equals("IRedirectListener")) { return new RedirectPageRequestTarget(page); } else { Method listenerMethod = requestCycle.ge...
protected IRequestTarget resolveListenerInterfaceTarget(RequestCycle requestCycle, final Page page, final String componentPath, final String interfaceName) { if (interfaceName.equals("IRedirectListener")) { return new RedirectPageRequestTarget(page); } else { Method listenerMethod = requestCycle.ge...
public Object component(final Component component) { final ComponentData object = new ComponentData(); // anonymous class? Get the parent's class name String name = component.getClass().getName(); if (name.indexOf("$") > 0) { name = component.getClass().getSuperclass().getName(); } ...
public Object component(final Component component) { final ComponentData object = new ComponentData(); // anonymous class? Get the parent's class name String name = component.getClass().getName(); if (name.indexOf("$") > 0) { name = component.getClass().getSuperclass().getName(); } ...
public AssertionResult getResult(SampleResult response) { AssertionResult result = new AssertionResult(); if (bshInterpreter == null) { result.setFailure(true); result.setError(true); result.setFailureMessage("BeanShell Interpreter not found"); return result; } try { String request = getScript(...
public AssertionResult getResult(SampleResult response) { AssertionResult result = new AssertionResult(getName()); if (bshInterpreter == null) { result.setFailure(true); result.setError(true); result.setFailureMessage("BeanShell Interpreter not found"); return result; } try { String request = g...
public AssertionResult getResult(SampleResult response) { AssertionResult result = new AssertionResult(); result.setFailure(false); long duration=getAllowedDuration(); if (duration > 0) { long responseTime=response.getTime(); // has the Sample lasted too long? if ( responseTime > duration) { result...
public AssertionResult getResult(SampleResult response) { AssertionResult result = new AssertionResult(getName()); result.setFailure(false); long duration=getAllowedDuration(); if (duration > 0) { long responseTime=response.getTime(); // has the Sample lasted too long? if ( responseTime > duration) { ...
public AssertionResult getResult(SampleResult inResponse) { log.debug("HTMLAssertions.getResult() called"); // no error as default AssertionResult result = new AssertionResult(); if (inResponse.getResponseData().length == 0) { return result.setResultForNull(); } result.setFailure(false); // create...
public AssertionResult getResult(SampleResult inResponse) { log.debug("HTMLAssertions.getResult() called"); // no error as default AssertionResult result = new AssertionResult(getName()); if (inResponse.getResponseData().length == 0) { return result.setResultForNull(); } result.setFailure(false); ...
public AssertionResult getResult(SampleResult response) { AssertionResult result = new AssertionResult(); result.setFailure(false); byte[] resultData = response.getResponseData(); if (resultData.length == 0) { result.setError(false); result.setFailure(true); result.setFailureMessage("Response was nu...
public AssertionResult getResult(SampleResult response) { AssertionResult result = new AssertionResult(getName()); result.setFailure(false); byte[] resultData = response.getResponseData(); if (resultData.length == 0) { result.setError(false); result.setFailure(true); result.setFailureMessage("Respon...
public void setAssumeSuccess(boolean b) { setProperty(ASSUME_SUCCESS, JOrphanUtils.booleanToString(b)); } /** * Make sure the response satisfies the specified assertion requirements. * * @param response * an instance of SampleResult * @return an instance of AssertionResult */ AssertionRes...
public void setAssumeSuccess(boolean b) { setProperty(ASSUME_SUCCESS, JOrphanUtils.booleanToString(b)); } /** * Make sure the response satisfies the specified assertion requirements. * * @param response * an instance of SampleResult * @return an instance of AssertionResult */ AssertionRes...
public AssertionResult getResult(SampleResult response) { AssertionResult result = new AssertionResult(); result.setFailure(false); resultData = response.getResponseData(); long resultSize = resultData.length; if (resultSize==0) { return result.setResultForNull(); } // is the Sample the correct size? ...
public AssertionResult getResult(SampleResult response) { AssertionResult result = new AssertionResult(getName()); result.setFailure(false); resultData = response.getResponseData(); long resultSize = resultData.length; if (resultSize==0) { return result.setResultForNull(); } // is the Sample the corre...
public AssertionResult getResult(SampleResult response) { // no error as default AssertionResult result = new AssertionResult(); byte[] responseData = response.getResponseData(); if (responseData.length == 0) { return result.setResultForNull(); } result.setFailure(false); // the result data String ...
public AssertionResult getResult(SampleResult response) { // no error as default AssertionResult result = new AssertionResult(getName()); byte[] responseData = response.getResponseData(); if (responseData.length == 0) { return result.setResultForNull(); } result.setFailure(false); // the result data ...
public AssertionResult getResult(SampleResult response) { AssertionResult result = new AssertionResult(); // Note: initialised with error = failure = false byte data[] = response.getResponseData(); if (data.length == 0) { return result.setResultForNull(); } String resultData = new String(getResultBody(...
public AssertionResult getResult(SampleResult response) { AssertionResult result = new AssertionResult(getName()); // Note: initialised with error = failure = false byte data[] = response.getResponseData(); if (data.length == 0) { return result.setResultForNull(); } String resultData = new String(getRe...
public AssertionResult getResult(SampleResult response) { // no error as default AssertionResult result = new AssertionResult(); byte[] responseData = response.getResponseData(); if (responseData.length == 0) { return result.setResultForNull(); } result.setFailure(false); result.setFailureMessage("");...
public AssertionResult getResult(SampleResult response) { // no error as default AssertionResult result = new AssertionResult(getName()); byte[] responseData = response.getResponseData(); if (responseData.length == 0) { return result.setResultForNull(); } result.setFailure(false); result.setFailureMes...
protected void internalOnBeginRequest() { // Get number of items to be displayed final int size = getViewSize(); if (size > 0) { if (optimizeItemRemoval) { // Remove all ListItems no longer required final int maxIndex = firstIndex + size; for (final Iterator iterator = iterator(); iterator.h...
protected void internalOnBeginRequest() { // Get number of items to be displayed final int size = getViewSize(); if (size > 0) { if (getOptimizeItemRemoval()) { // Remove all ListItems no longer required final int maxIndex = firstIndex + size; for (final Iterator iterator = iterator(); itera...
public Home() { WizardConfiguration prefWiz = ((WizardApplication)getApplication()).newPreferencesWizard(); FeedbackPanel feedbackPanel = new FeedbackPanel("feedback"); add(feedbackPanel); add(new WizardPanel("wizardPanel", prefWiz, feedbackPanel)); }
public Home() { WizardConfiguration prefWiz = ((WizardApplication)getApplication()).newPreferencesWizard(); FeedbackPanel feedbackPanel = new FeedbackPanel("feedback"); add(feedbackPanel); add(new WizardPanel("wizardPanel", prefWiz)); }
protected void encodeIDArray(IServiceProperties result, ID[] idFilter) { // First, for every id, setup prop name with index suffix for (int i = 0; i < idFilter.length; i++) { encodeString(result, RemoteConstants.ENDPOINT_IDFILTER_IDARRAY_NAME_ + i, idFilter[i].toExternalForm()); result.setPropertyS...
protected void encodeIDArray(IServiceProperties result, ID[] idFilter) { // First, for every id, setup prop name with index suffix for (int i = 0; i < idFilter.length; i++) { encodeString(result, RemoteConstants.ENDPOINT_IDFILTER_IDARRAY_NAME_ + i, idFilter[i].getName()); result.setPropertyString( ...
public static Object hintToGetter(Object target, String hintKey) { if (target == null || hintKey == null) return null; Method getter = ImplHelper.getGetter(target.getClass(), hintKey); try { return getter.invoke(target, (Object[]) null); } catch (Exce...
public static Object hintToGetter(Object target, String hintKey) { if (target == null || hintKey == null) return null; Method getter = ImplHelper.getGetter(target.getClass(), hintKey); try { return getter.invoke(target, (Object[]) null); } catch (Exce...
public ICrypt newCrypt() { try { ICrypt crypt = (ICrypt)(cryptClass.get()).newInstance(); log.info("using encryption/decryption object " + crypt); crypt.setKey(encryptionKey); return crypt; } catch (Throwable e) { log.warn("************************** WARNING **************************"); l...
public ICrypt newCrypt() { try { ICrypt crypt = (ICrypt)(cryptClass.get()).newInstance(); log.info("using encryption/decryption object " + crypt); crypt.setKey(encryptionKey); return crypt; } catch (Exception e) { log.warn("************************** WARNING **************************"); l...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); if ((style & SWT.ARROW) != 0) { // TODO use some OS metric instead of hardcoded values int width = wHint != SWT.DEFAULT ? wHint : 14; int height = hHint != SWT.DEFAULT ? hHint : 14; return new Point (width, height); } NSSize s...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); if ((style & SWT.ARROW) != 0) { // TODO use some OS metric instead of hardcoded values int width = wHint != SWT.DEFAULT ? wHint : 14; int height = hHint != SWT.DEFAULT ? hHint : 14; return new Point (width, height); } NSSize s...
public String open () { String fullPath = null; fileNames = new String [0]; int /*long*/ method = 0; int /*long*/ methodImpl = 0; Callback callback = null; if ((style & SWT.SAVE) != 0) { NSSavePanel savePanel = NSSavePanel.savePanel(); panel = savePanel; if (!overwrite) { callback = new Callback(this, "_...
public String open () { String fullPath = null; fileNames = new String [0]; int /*long*/ method = 0; int /*long*/ methodImpl = 0; Callback callback = null; if ((style & SWT.SAVE) != 0) { NSSavePanel savePanel = NSSavePanel.savePanel(); panel = savePanel; if (!overwrite) { callback = new Callback(this, "_...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); int width = DEFAULT_WIDTH; int height = DEFAULT_HEIGHT; if ((style & SWT.SEPARATOR) != 0) { float /*double*/ lineWidth = ((NSBox)view).borderWidth (); if ((style & SWT.HORIZONTAL) != 0) { height = (int)Math.ceil (lineWidth * 2)...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); int width = DEFAULT_WIDTH; int height = DEFAULT_HEIGHT; if ((style & SWT.SEPARATOR) != 0) { float /*double*/ lineWidth = ((NSBox)view).borderWidth (); if ((style & SWT.HORIZONTAL) != 0) { height = (int)Math.ceil (lineWidth * 2)...
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); Rectangle trim = super.computeTrim(x, y, width, height); NSRect rect = new NSRect (); rect.x = trim.x; rect.y = trim.y; rect.width = trim.width; rect.height = trim.height; if (window != null) { if (!fixResize()) { rect = wi...
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); Rectangle trim = super.computeTrim(x, y, width, height); NSRect rect = new NSRect (); rect.x = trim.x; rect.y = trim.y; rect.width = trim.width; rect.height = trim.height; if (window != null) { if (!fixResize()) { rect = wi...
protected void synchronizeData() { // no need to sync in the future needsSyncData(false); // fluff data DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl) ownerDocument(); int attrQName = ownerDocument.getNodeName(fNodeIndex); StringPool pool = ownerDo...
protected void synchronizeData() { // no need to sync in the future needsSyncData(false); // fluff data DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl) ownerDocument(); int attrQName = ownerDocument.getNodeName(fNodeIndex); StringPool pool = ownerDo...
protected void synchronizeChildren() { // no need to synchronize again needsSyncChildren(false); // get children DocumentType doctype = ownerDocument.getDoctype(); boolean found = false; if (doctype != null) { // we don't want to generate any event for ...
protected void synchronizeChildren() { // no need to synchronize again needsSyncChildren(false); // get children DocumentType doctype = ownerDocument.getDoctype(); boolean found = false; if (doctype != null) { // we don't want to generate any event for ...
public int getNextOffset (int offset, int movement) { return _getOffset(offset, movement, true); } int _getOffset (int offset, int movement, boolean forward) { checkLayout(); computeRuns(); int length = text.length(); if (!(0 <= offset && offset <= length)) SWT.error(SWT.ERROR_INVALID_RANGE); if (length == 0) re...
public int getNextOffset (int offset, int movement) { return _getOffset(offset, movement, true); } int _getOffset (int offset, int movement, boolean forward) { checkLayout(); computeRuns(); int length = text.length(); if (!(0 <= offset && offset <= length)) SWT.error(SWT.ERROR_INVALID_RANGE); if (length == 0) re...
public Component getLazyLoadComponent(final String markupId) { return new Label(markupId, "lazy panel test").setRenderBodyOnly(true); } }; } }); tester.startPage(dummyPanelPage); tester.assertLabel( "panel:content", "<img alt=\"Loading...\" src=\"./resource/org.apache.wicket.aja...
public Component getLazyLoadComponent(final String markupId) { return new Label(markupId, "lazy panel test").setRenderBodyOnly(true); } }; } }); tester.startPage(dummyPanelPage); tester.assertLabel( "panel:content", "<img alt=\"Loading...\" src=\"resource/org.apache.wicket.ajax....
public Enumeration collectTests() { return Enumerations.fromArray(new String[]{name}); }
public Enumeration collectTests() { return new ArrayEnumeration(new String[]{name}); }
package org.apache.wicket.spring.injection.annot; /* * 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 Apach...
package org.apache.wicket.spring.injection.annot; /* * 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 Apach...
package org.apache.wicket.spring.injection.util; /* * 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...
package org.apache.wicket.spring.injection.util; /* * 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...
package org.apache.wicket.spring.injection.util; /* * 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...
package org.apache.wicket.spring.injection.util; /* * 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...
public final static void replaceExpectedResultFile(final String document, final Class clazz, final String file) throws IOException { String filename = clazz.getPackage().getName(); filename = filename.replace('.', '/'); filename += "/" + file; final URL url = clazz.getClassLoader().getResource(filename); ...
public final static void replaceExpectedResultFile(final String document, final Class clazz, final String file) throws IOException { String filename = clazz.getPackage().getName(); filename = filename.replace('.', '/'); filename += "/" + file; final URL url = clazz.getClassLoader().getResource(filename); ...
protected void setUp() throws Exception { postWriter = new PostWriter(); connection = new StubURLConnection("http://fake_url/test"); sampler = new HTTPSampler(); // create a temporary file to make sure we always have a file to give to the PostWriter // Whereever we ...
protected void setUp() throws Exception { postWriter = new PostWriter(); connection = new StubURLConnection("http://fake_url/test"); sampler = new HTTPSampler();// This must be the original (Java) HTTP sampler // create a temporary file to make sure we always have a file to ...
public boolean replaceWith(CrosscuttingMembers other,boolean careAboutShadowMungers) { boolean changed = false; if (perClause == null || !perClause.equals(other.perClause)) { changed = true; perClause = other.perClause; } //XXX all of the below should be set equality rather than list equality //S...
public boolean replaceWith(CrosscuttingMembers other,boolean careAboutShadowMungers) { boolean changed = false; if (perClause == null || !perClause.equals(other.perClause)) { changed = true; perClause = other.perClause; } //XXX all of the below should be set equality rather than list equality //S...
import org.apache.tools.ant.gui.core.AppContext; /* * The Apache Software License, Version 1.1 * * Copyright (c) 1999, 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following con...
import org.apache.tools.ant.gui.core.AppContext; /* * The Apache Software License, Version 1.1 * * Copyright (c) 1999, 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following con...
public static Map<String, Boolean> getAnnotationMap(Java2WSDataModel model) { Map<String, Boolean> annotationdMap = new HashMap<String, Boolean>(); annotationdMap.put(AnnotationUtils.WEB_METHOD, model.isGenerateWebMethodAnnotation()); annotationdMap.put(AnnotationUtils.WEB_PARAM, model.isGen...
public static Map<String, Boolean> getAnnotationMap(Java2WSDataModel model) { Map<String, Boolean> annotationdMap = new HashMap<String, Boolean>(); annotationdMap.put(AnnotationUtils.WEB_METHOD, model.isGenerateWebMethodAnnotation()); annotationdMap.put(AnnotationUtils.WEB_PARAM, model.isGen...
public String open () { int dialog; if ((style & SWT.SAVE) != 0) { dialog = OS.gcnew_SaveFileDialog (); } else { dialog = OS.gcnew_OpenFileDialog (); if ((style & SWT.MULTI) != 0) OS.OpenFileDialog_Multiselect (dialog, true); } int titlePtr = parent.createDotNetString (title, false); OS.FileDialog_Title (di...
public String open () { int dialog; if ((style & SWT.SAVE) != 0) { dialog = OS.gcnew_SaveFileDialog (); } else { dialog = OS.gcnew_OpenFileDialog (); if ((style & SWT.MULTI) != 0) OS.OpenFileDialog_Multiselect (dialog, true); } int titlePtr = parent.createDotNetString (title, false); OS.FileDialog_Title (di...
public void testEMGetProperties() { Map<String, Object> emProperties = em.getProperties(); // First, check a default property String autoClear = (String) emProperties.get("openjpa.AutoClear"); assertEquals(String.valueOf(AutoClear.CLEAR_DATASTORE), autoClear); // Ne...
public void testEMGetProperties() { Map<String, Object> emProperties = em.getProperties(); // First, check a default property String autoClear = (String) emProperties.get("openjpa.AutoClear"); assertEquals(String.valueOf(AutoClear.CLEAR_DATASTORE), autoClear); // Ne...
String asString(); /* ******************************************************************* * Copyright (c) 2005 Contributors. * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 * which accompanies this distribution and is ...
String asString(); /* ******************************************************************* * Copyright (c) 2005 Contributors. * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 * which accompanies this distribution and is ...
private void readFiles(Project p) { if (includesFileList.size() > 0) { Enumeration e = includesFileList.elements(); while (e.hasMoreElements()) { NameEntry ne = (NameEntry)e.nextElement(); String fileName = ne.evalName(p); if (fileName ...
private void readFiles(Project p) { if (includesFileList.size() > 0) { Enumeration e = includesFileList.elements(); while (e.hasMoreElements()) { NameEntry ne = (NameEntry)e.nextElement(); String fileName = ne.evalName(p); if (fileName ...
pointcut define() : call(public void Target.run()); }
pointcut define() : call(public void Runnable.run()); }
private void openDump () { if (print != null) return; Date now = new Date(); fileName = FILENAME_PREFIX + "." + new SimpleDateFormat("yyyyMMdd").format(now) + "." + new SimpleDateFormat("HHmmss.SSS").format(now) + "." + FILENAME_SUFFIX; try { print = new PrintStream(new FileOutputStream(fileName...
private void openDump () { if (print != null) return; Date now = new Date(); fileName = FILENAME_PREFIX + "." + new SimpleDateFormat("yyyyMMdd").format(now) + "." + new SimpleDateFormat("HHmmss.SSS").format(now) + "." + FILENAME_SUFFIX; try { print = new PrintStream(new FileOutputStream(fileName...
protected final void runExecute( Execute exe ) throws IOException { int err = -1;// assume the worst err = exe.execute(); //test for and handle a forced process death if( exe.killedProcess() ) { log( "Timeout: killed the sub-process", Project.MSG_WARN...
protected final void runExecute( Execute exe ) throws IOException, TaskException { int err = -1;// assume the worst err = exe.execute(); //test for and handle a forced process death if( exe.killedProcess() ) { log( "Timeout: killed the sub-process", P...
public PersistenceException(Throwable cause) { this.cause = cause; } } class Root { Root(String s) throws IOException { } }
public PersistenceException(Throwable cause) { this.cause = cause; } } class Root { Root(String s) /*throws IOException*/ { } }
private void newImage(final String value) { // Parse value final ImageValueParser valueParser = new ImageValueParser(value); // Does value match parser? if (valueParser.matches()) { final String imageReferenceName = valueParser.getImageReferenceName(); final String specification = valueParser.getSpec...
private void newImage(final String value) { // Parse value final ImageValueParser valueParser = new ImageValueParser(value); // Does value match parser? if (valueParser.matches()) { final String imageReferenceName = valueParser.getImageReferenceName(); final String specification = Strings.replaceHtml...
public boolean isActive() { return (registration == null); }
public boolean isActive() { return (registration != null); }
public String getText () { checkWidget (); return text; } float getThemeAlpha () { return (background != null ? 1 : 0.25f) * parent.getThemeAlpha (); } void register () { super.register (); display.addWidget (contentView, this); SWTBox box = (SWTBox)view; display.addWidget (box.titleCell(), this); } void rele...
public String getText () { checkWidget (); return text; } float getThemeAlpha () { return (background != null ? 1 : 0.25f) * parent.getThemeAlpha (); } void register () { super.register (); display.addWidget (contentView, this); SWTBox box = (SWTBox)view; display.addWidget (box.titleCell(), this); } void rele...
public void removeSelectionListener (SelectionListener listener) { checkWidget (); if (listener == null) error (SWT.ERROR_NULL_ARGUMENT); if (eventTable == null) return; eventTable.unhook (SWT.Selection, listener); eventTable.unhook (SWT.DefaultSelection, listener); } String parse (String string) { int length =...
public void removeSelectionListener (SelectionListener listener) { checkWidget (); if (listener == null) error (SWT.ERROR_NULL_ARGUMENT); if (eventTable == null) return; eventTable.unhook (SWT.Selection, listener); eventTable.unhook (SWT.DefaultSelection, listener); } String parse (String string) { int length =...
public void test_1() throws Exception { WicketTester tester = new WicketTester(new LibraryApplication()); tester.startPage(SignIn.class); tester.assertContains("Wicket Examples - library"); tester.assertContains("Username and password are both"); FormTester formTester = tester.newFormTester("signInPanel:si...
public void test_1() throws Exception { WicketTester tester = new WicketTester(new LibraryApplication()); tester.startPage(SignIn.class); tester.assertContains("Wicket Examples - library"); tester.assertContains("Username and password are both"); FormTester formTester = tester.newFormTester("signInPanel:si...
public synchronized void iterationStart(LoopIterationEvent event) { JMeterVariables variables = JMeterContextService.getContext().getVariables(); int start=getStart(),end=getEnd(),increment=getIncrement(); if(!isPerUser()) { if (globalCounter==-1 || globalCounter>end) { globalCounter=start; } ...
public synchronized void iterationStart(LoopIterationEvent event) { JMeterVariables variables = JMeterContextService.getContext().getVariables(); int start=getStart(),end=getEnd(),increment=getIncrement(); if(!isPerUser()) { if (globalCounter==-1 || globalCounter>end) { globalCounter=start; } ...
public String toString(){ return sb.toString(); } } StringQuoter text = new StringQuoter(delimiter.charAt(0)); SampleResult sample = event.getResult(); SampleSaveConfiguration saveConfig = sample.getSaveConfig(); if (saveConfig.saveTimestamp()) { if (sa...
public String toString(){ return sb.toString(); } } StringQuoter text = new StringQuoter(delimiter.charAt(0)); SampleResult sample = event.getResult(); SampleSaveConfiguration saveConfig = sample.getSaveConfig(); if (saveConfig.saveTimestamp()) { if (sa...
public MarkupContainer(MarkupContainer parent, final String id, IModel<T> model) { super(parent, id, model); } /** * Adds a child component to this container. * <p> * Be careful when overriding this method, if not implemented properly it * may lead to a java component hierarchy which no longer matches th...
public MarkupContainer(MarkupContainer parent, final String id, IModel<T> model) { super(parent, id, model); } /** * Adds a child component to this container. * <p> * Be careful when overriding this method, if not implemented properly it * may lead to a java component hierarchy which no longer matches th...
public static int compareWithConversion(Object v1, Object v2) { int result; if (v1 == v2) { result = 0; } else { int t1 = getNumericType(v1), t2 = getNumericType(v2), type = getNumericType(t1, t2, true); switch (type) { case BIGINT : result = bigIntValue(v1).compareTo(bigIntVal...
public static int compareWithConversion(Object v1, Object v2) { int result; if (v1 == v2) { result = 0; } else { int t1 = getNumericType(v1), t2 = getNumericType(v2), type = getNumericType(t1, t2, true); switch (type) { case BIGINT : result = bigIntValue(v1).compareTo(bigIntVal...
protected void output( final String data ) { if( null != m_targetName ) { output( m_targetName + ":\n" ); m_targetName = null; } if( null != getPrefix() ) System.out.println( "\t[" + getPrefix() + "] " + data ); else System.out.println( data ); ...
protected void output( final String data ) { if( null != m_targetName ) { System.out.println( m_targetName + ":\n" ); m_targetName = null; } if( null != getPrefix() ) System.out.println( "\t[" + getPrefix() + "] " + data ); else System.out.println...
public Form<?> getRootForm() { Form<?> form; Form<?> parent = this; do { form = parent; parent = (Form<?>)form.findParent(Form.class); } while (parent != null); return form; }
public Form<?> getRootForm() { Form<?> form; Form<?> parent = this; do { form = parent; parent = form.findParent(Form.class); } while (parent != null); return form; }
public String getValidatorKeyPrefix() { Form form = (Form)findParent(Form.class); if (form != null) { return getForm().getValidatorKeyPrefix(); } return null; }
public String getValidatorKeyPrefix() { Form form = findParent(Form.class); if (form != null) { return getForm().getValidatorKeyPrefix(); } return null; }
public DOMParser(SymbolTable symbolTable, XMLGrammarPool grammarPool) { super((XMLParserConfiguration)ObjectFactory.createObject( "org.apache.xerces.xni.parser.XMLParserConfiguration", "org.apache.xerces.parsers.StandardParserConfiguration" )); // set properties ...
public DOMParser(SymbolTable symbolTable, XMLGrammarPool grammarPool) { super((XMLParserConfiguration)ObjectFactory.createObject( "org.apache.xerces.xni.parser.XMLParserConfiguration", "org.apache.xerces.parsers.IntegratedParserConfiguration" )); // set propertie...
public SAXParser(SymbolTable symbolTable, XMLGrammarPool grammarPool) { super((XMLParserConfiguration)ObjectFactory.createObject( "org.apache.xerces.xni.parser.XMLParserConfiguration", "org.apache.xerces.parsers.StandardParserConfiguration" )); // set features ...
public SAXParser(SymbolTable symbolTable, XMLGrammarPool grammarPool) { super((XMLParserConfiguration)ObjectFactory.createObject( "org.apache.xerces.xni.parser.XMLParserConfiguration", "org.apache.xerces.parsers.IntegratedParserConfiguration" )); // set features ...
public void handleEvent(Event event) { switch(event.type) { case SWT.MeasureItem: { if (event.index == 1 || event.index == 2) { event.width = extent.x/2; event.height = Math.max(event.height, extent.y + 2); } break; } case SWT.PaintItem: { if (event.index == 1 || event...
public void handleEvent(Event event) { switch(event.type) { case SWT.MeasureItem: { if (event.index == 1 || event.index == 2) { event.width = extent.x/2; event.height = Math.max(event.height, extent.y + 2); } break; } case SWT.PaintItem: { if (event.index == 1 || event...
public void handleEvent(Event event) { switch(event.type) { case SWT.MeasureItem: { if (event.index == 1 || event.index == 2) { event.width = extent.x/2; event.height = Math.max(event.height, extent.y + 2); } break; } case SWT.PaintItem: { if (event.index == 1 || event...
public void handleEvent(Event event) { switch(event.type) { case SWT.MeasureItem: { if (event.index == 1 || event.index == 2) { event.width = extent.x/2; event.height = Math.max(event.height, extent.y + 2); } break; } case SWT.PaintItem: { if (event.index == 1 || event...
public VEXNode[] getNodes(); }
public List<VEXNode> getNodes(); }
public final String getValue() { if (NO_RAW_INPUT.equals(rawInput)) { return getModelValue(); }
public final String getValue() { if (NO_RAW_INPUT == rawInput) { return getModelValue(); }
private Pointcut parseWithinCodeAnnotationPointcut() { String kind = parseIdentifier(); eat("("); if (maybeEat(")")) { throw new ParserException("expecting @AnnotationName or parameter, but found ')'", tokenSource.peek()); } AnnotationTypePattern type = parseAnnotationNameOrVarTypePattern(); eat(")"); ...
private Pointcut parseWithinCodeAnnotationPointcut() { String kind = parseIdentifier(); eat("("); if (maybeEat(")")) { throw new ParserException("expecting @AnnotationName or parameter, but found ')'", tokenSource.peek()); } ExactAnnotationTypePattern type = parseAnnotationNameOrVarTypePattern(); eat(")...
public void setBasedir(String baseD) throws BuildException { try { setBaseDir(new File(new File(baseD).getCanonicalPath())); } catch (IOException ioe) { String msg = "Can't set basedir " + baseDir + " due to " + ioe.getMessage(); throw new BuildExc...
public void setBasedir(String baseD) throws BuildException { try { setBaseDir(new File(new File(baseD).getCanonicalPath())); } catch (IOException ioe) { String msg = "Can't set basedir " + baseD + " due to " + ioe.getMessage(); throw new BuildExcep...
private void loadFile (File file) throws BuildException { Properties props = new Properties(); log("Loading " + name, Project.MSG_VERBOSE); try { if (file.exists()) { props.load(new FileInputStream(file)); addProperties(props); } else {...
private void loadFile (File file) throws BuildException { Properties props = new Properties(); log("Loading " + file.getAbsolutePath(), Project.MSG_VERBOSE); try { if (file.exists()) { props.load(new FileInputStream(file)); addProperties(props); ...
public void respond(RequestCycle requestCycle) { Url currentUrl = requestCycle.getRequest().getUrl(); Url targetUrl = requestCycle.urlFor(getRenderPageRequestHandler()); // // the code below is little hairy but we have to handle 3 redirect policies // and 3 rendering strategies // // try to get an alr...
public void respond(RequestCycle requestCycle) { Url currentUrl = requestCycle.getRequest().getUrl(); Url targetUrl = requestCycle.urlFor(getRenderPageRequestHandler()); // // the code below is little hairy but we have to handle 3 redirect policies // and 3 rendering strategies // // try to get an alr...
public int getNextOffset (int offset, int movement) { checkLayout(); return _getOffset (offset, movement, true); } int _getOffset(int offset, int movement, boolean forward) { computeRuns(); int length = text.length(); if (!(0 <= offset && offset <= length)) SWT.error(SWT.ERROR_INVALID_RANGE); if (forward && offs...
public int getNextOffset (int offset, int movement) { checkLayout(); return _getOffset (offset, movement, true); } int _getOffset(int offset, int movement, boolean forward) { computeRuns(); int length = text.length(); if (!(0 <= offset && offset <= length)) SWT.error(SWT.ERROR_INVALID_RANGE); if (forward && offs...
public void setImage (int index, Image image) { checkWidget (); if (image != null && image.isDisposed ()) { error(SWT.ERROR_INVALID_ARGUMENT); } if (image != null && image.type == SWT.ICON) { if (image.equals (_getImage (index))) return; } int count = Math.max (1, parent.getColumnCount ()); if (0 > index || ...
public void setImage (int index, Image image) { checkWidget (); if (image != null && image.isDisposed ()) { error(SWT.ERROR_INVALID_ARGUMENT); } if (image != null && image.type == SWT.ICON) { if (image.equals (_getImage (index))) return; } int count = Math.max (1, parent.getColumnCount ()); if (0 > index || ...
public void setImage (int index, Image image) { checkWidget (); if (image != null && image.isDisposed()) { error(SWT.ERROR_INVALID_ARGUMENT); } if (image != null && image.type == SWT.ICON) { if (image.equals (_getImage (index))) return; } int count = Math.max (1, parent.getColumnCount ()); if (0 > index || i...
public void setImage (int index, Image image) { checkWidget (); if (image != null && image.isDisposed()) { error(SWT.ERROR_INVALID_ARGUMENT); } if (image != null && image.type == SWT.ICON) { if (image.equals (_getImage (index))) return; } int count = Math.max (1, parent.getColumnCount ()); if (0 > index || i...
public void manageSyntheticAccessIfNecessary(BlockScope currentScope){ if (binding.alwaysNeedsAccessMethod()) { syntheticAccessor = binding.getAccessMethod(); return; } if (binding.isPrivate()){ // depth is set for both implicit and explicit access (see MethodBinding#canBeSeenBy) if (currentScope.enclos...
public void manageSyntheticAccessIfNecessary(BlockScope currentScope){ if (binding.alwaysNeedsAccessMethod()) { syntheticAccessor = binding.getAccessMethod(isSuperAccess()); return; } if (binding.isPrivate()){ // depth is set for both implicit and explicit access (see MethodBinding#canBeSeenBy) if (curr...
List<IBreadCrumbParticipant> allBreadCrumbParticipants(); /* * $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) $ * * ============================================================================== ...
List<IBreadCrumbParticipant> allBreadCrumbParticipants(); /* * $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) $ * * ============================================================================== ...
private static Set commands = new HashSet(); static { commands.add(JMeterUtils.getResString("edit")); }
private static Set commands = new HashSet(); static { commands.add("edit"); }
private static Set commands = new HashSet(); static { commands.add(JMeterUtils.getResString("open")); }
private static Set commands = new HashSet(); static { commands.add("open"); }
public void doAction(ActionEvent e) { ActionRouter.getInstance().actionPerformed(new ActionEvent(e.getSource(), e.getID(),CheckDirty.REMOVE)); GuiPackage guiPackage = GuiPackage.getInstance(); JMeterTreeNode[] nodes = guiPackage.getTreeListener().getSelectedNodes(); guiPackage.getTreeListener().removedSel...
public void doAction(ActionEvent e) { ActionRouter.getInstance().actionPerformed(new ActionEvent(e.getSource(), e.getID(),CheckDirty.REMOVE)); GuiPackage guiPackage = GuiPackage.getInstance(); JMeterTreeNode[] nodes = guiPackage.getTreeListener().getSelectedNodes(); guiPackage.getTreeListener().removedSel...
public void valueChanged(TreeSelectionEvent e) { currentPath = e.getNewLeadSelectionPath(); actionHandler.actionPerformed(new ActionEvent(this, 3333, JMeterUtils.getResString("edit"))); }
public void valueChanged(TreeSelectionEvent e) { currentPath = e.getNewLeadSelectionPath(); actionHandler.actionPerformed(new ActionEvent(this, 3333, "edit")); }
public void run() { if (autoScrollDirection == ST.COLUMN_PREVIOUS) { doVisualPrevious(); setMouseWordSelectionAnchor(); doMouseSelection(); display.timerExec(TIMER_INTERVAL, this); } } }; } if (timer != null) { autoScrollDirection = direction; display.timerExec(TIMER_INTERVAL...
public void run() { if (autoScrollDirection == ST.COLUMN_PREVIOUS) { doVisualPrevious(); setMouseWordSelectionAnchor(); doMouseSelection(); display.timerExec(TIMER_INTERVAL, this); } } }; } if (timer != null) { autoScrollDirection = direction; display.timerExec(TIMER_INTERVAL...
protected void setUp() { if (isBidi()) XINSET = 3; else XINSET = 0;
protected void setUp() { if (isBidi()) XINSET = 2; else XINSET = 0;
public void testPageParameters() { String expectedEncrypted = "ywKWg-Qpk7YQBiYCmj9MaAJSIV1gtssNinjiALijtet62VMQc2-sMK_RchttkidUpYM_cplXKeZSfGxBkvWzH_E_zWv4Ii7MNSm5nXKno7o/ywK6c/MK_c0/nji3c/Qpk1b/XKnba/c2-cd?namedKey1=namedValue1&namedKey2=namedValue2"; PageParameters expectedParameters = new PageParameters(); ...
public void testPageParameters() { String expectedEncrypted = "ywKWg-Qpk7YQBiYCmj9MaAJSIV1gtssNinjiALijtet62VMQc2-sMK_RchttkidUpYM_cplXKeZSfGxBkvWzH_E_zWv4Ii7MNSm5nXKno7o/ywK6c/MK_c0/nji3c/Qpk1b/XKnba/c2-cd"; PageParameters expectedParameters = new PageParameters(); expectedParameters.add("namedKey1", "namedVa...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget (); int width = 0, height = 0; int border = getBorderWidth (); int newWidth = wHint == SWT.DEFAULT ? 0x3FFF : wHint + (border * 2); int newHeight = hHint == SWT.DEFAULT ? 0x3FFF : hHint + (border * 2); int count = OS.SendMessage (handl...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget (); int width = 0, height = 0; int border = getBorderWidth (); int newWidth = wHint == SWT.DEFAULT ? 0x3FFF : wHint + (border * 2); int newHeight = hHint == SWT.DEFAULT ? 0x3FFF : hHint + (border * 2); int count = OS.SendMessage (handl...
public static final boolean DEBUG_SEMANTIC_CHECK = Boolean.valueOf( Platform.getDebugOption(PLUGIN_ID + "/debug/debug/semanticCheck")).booleanValue();
public static final boolean DEBUG_SEMANTIC_CHECK = Boolean.valueOf( Platform.getDebugOption(PLUGIN_ID + "/debug/semanticCheck")).booleanValue();
public static final String ATTR_XQDT_SET_CLEAR_COLLECTIONS = "xqdt_set_cear_collections"; //$NON-NLS-1$ }
public static final String ATTR_XQDT_SET_CLEAR_COLLECTIONS = "xqdt_set_clear_collections"; //$NON-NLS-1$ }
public IInterpreterRunner createRunner(IInterpreterInstall install) { return new SETDebuggerRunner(install); }
public IInterpreterRunner createRunner(IInterpreterInstall install) { return new CoreSdkDebuggerRunner(install); }
private void addFolderToBuildpath(String name, IProgressMonitor monitor) throws CoreException { IScriptProject project = getProject(); monitor.beginTask("Configuring project buildpath", 1000); checkMonitor(monitor); // check if the directory is in the source path try { ...
private void addFolderToBuildpath(String name, IProgressMonitor monitor) throws CoreException { IScriptProject project = getProject(); monitor.beginTask("Configuring project buildpath", 1000); checkMonitor(monitor); // check if the directory is in the source path try { ...
public static final Node importNode(Node parent, Node child) { Node copy = null; final Document doc = parent.getOwnerDocument(); switch (child.getNodeType()) { case Node.CDATA_SECTION_NODE: copy = doc.createCDATASection(((CDATASection) child).getData()); brea...
public static Node importNode(Node parent, Node child) { Node copy = null; final Document doc = parent.getOwnerDocument(); switch (child.getNodeType()) { case Node.CDATA_SECTION_NODE: copy = doc.createCDATASection(((CDATASection) child).getData()); break; ...
private void runBuild(String[] args) { BuildHelper mainBuild = new BuildHelper(); mainBuild.setProperty("dist.dir", "bootstrap"); MutantBuilder mutantBuilder = new MutantBuilder(); mutantBuilder._init(mainBuild); mutantBuilder.buildsetup(mainBuild); mutantBuilder.init...
private void runBuild(String[] args) { BuildHelper mainBuild = new BuildHelper(); mainBuild.setProperty("dist.dir", "bootstrap"); MutantBuilder mutantBuilder = new MutantBuilder(); mutantBuilder._init(mainBuild); mutantBuilder.buildsetup(mainBuild); mutantBuilder.init...
private static ResourceReference getYuiLoader() { if (YUILOADER == null) { StringBuffer sb = new StringBuffer(); sb.append("yuiloader"); if (Application.DEPLOYMENT.equals(Application.get().getConfigurationType())) { sb.append("-min"); } sb.append(".js"); YUILOADER = new CompressedResource...
private static ResourceReference getYuiLoader() { if (YUILOADER == null) { StringBuffer sb = new StringBuffer(); sb.append("yuiloader"); if (Application.get().usesDeploymentConfig()) { sb.append("-min"); } sb.append(".js"); YUILOADER = new CompressedResourceReference(YuiLib.class, sb.toSt...
protected void onBeforeRender() { onPopulate(); if (Application.get().getConfigurationType().equals(Application.DEVELOPMENT)) { Iterator<? extends Component> i = iterator(); while (i.hasNext()) { Component c = i.next(); Matcher matcher = SAFE_CHILD_ID_PATTERN.matcher(c.getId()); if (!match...
protected void onBeforeRender() { onPopulate(); if (getApplication().usesDevelopmentConfig()) { Iterator<? extends Component> i = iterator(); while (i.hasNext()) { Component c = i.next(); Matcher matcher = SAFE_CHILD_ID_PATTERN.matcher(c.getId()); if (!matcher.matches()) { log.war...
public void cleanupFeedbackMessages() { // remove all component feedback messages if we are either using one // pass or render to buffer render strategy (in which case we can remove // without further delay) or in case the redirect to render strategy is // used, when we're doing the render request (isRedirect...
public void cleanupFeedbackMessages() { // remove all component feedback messages if we are either using one // pass or render to buffer render strategy (in which case we can remove // without further delay) or in case the redirect to render strategy is // used, when we're doing the render request (isRedirect...
public void setUp() throws Exception { setUp(CLEAR_TABLES, Order.class, Item.class, Shop.class, Producer.class, "openjpa.DynamicEnhancerAgent", "false"); populate(); }
public void setUp() throws Exception { setUp(CLEAR_TABLES, Order.class, Item.class, Shop.class, Producer.class, "openjpa.DynamicEnhancementAgent", "false"); populate(); }
public boolean isSelected (int index) { checkWidget (); if (!(0 <= index && index < itemCount)) return false; return ((NSTableView)view).isRowSelected(index); } boolean isTrim (NSView view) { if (super.isTrim (view)) return true; return view.id == headerView.id; } void keyDown (int /*long*/ id, int /*long*/ sel,...
public boolean isSelected (int index) { checkWidget (); if (!(0 <= index && index < itemCount)) return false; return ((NSTableView)view).isRowSelected(index); } boolean isTrim (NSView view) { if (super.isTrim (view)) return true; return view.id == headerView.id; } void keyDown (int /*long*/ id, int /*long*/ sel,...
public int indexOf (TreeItem item) { checkWidget (); if (item == null) error (SWT.ERROR_NULL_ARGUMENT); if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); if (item.parentItem != null) return -1; for (int i = 0; i < itemCount; i++) { if (item == items[i]) return i; } return -1; } boolean isTrim (NSVie...
public int indexOf (TreeItem item) { checkWidget (); if (item == null) error (SWT.ERROR_NULL_ARGUMENT); if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); if (item.parentItem != null) return -1; for (int i = 0; i < itemCount; i++) { if (item == items[i]) return i; } return -1; } boolean isTrim (NSVie...