buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public JavaExtensionStatement createJavaExtension(Identifier name, Identifier type, List<DeclaredParameter> params, Identifier javaType, Identifier javaMethod, List<Identifier> javaParamTypes, Identifier cached, Identifier priv) { return (JavaExtensionStatement) handle(new PluginJavaExtensionStatemen...
public JavaExtensionStatement createJavaExtension(Identifier name, Identifier type, List<DeclaredParameter> params, Identifier javaType, Identifier javaMethod, List<Identifier> javaParamTypes, Identifier cached, Identifier priv) { return handle(new PluginJavaExtensionStatement(jp, nam...
private void assertNoReferencesToSchemaFromFeature(EObject obj, XSDSchema schema) { if (obj == schema) fail2(Msg.create("Supplied object is forbidden schema")); for (EReference ref : obj.eClass().getEAllReferences()) { Object o = obj.eGet(ref); if (o instanceof Collection) for (Object p : (Collecti...
private void assertNoReferencesToSchemaFromFeature(EObject obj, XSDSchema schema) { if (obj == schema) fail2(Msg.create("Supplied object is forbidden schema")); for (EReference ref : obj.eClass().getEAllReferences()) { Object o = obj.eGet(ref); if (o instanceof Collection<?>) for (Object p : (Colle...
protected OpenJPAEntityManagerFactorySPI createNamedEMF(Class<?>... types) { Map<Object, Object> map = new HashMap<Object, Object>(); map.put("openjpa.jdbc.SynchronizeMappings", "buildSchema(ForeignKeys=true," + "SchemaAction='add')"); map.put("openjpa.jdbc.QuerySQLCache", "false"); ...
protected OpenJPAEntityManagerFactorySPI createNamedEMF(Class<?>... types) { Map<Object, Object> map = new HashMap<Object, Object>(); map.put("openjpa.jdbc.SynchronizeMappings", "buildSchema(ForeignKeys=true," + "SchemaAction='add')"); map.put("openjpa.jdbc.QuerySQLCache", "false"); ...
protected IRemoteService registerAndGetRemoteService() { final IRemoteServiceContainerAdapter[] adapters = getRemoteServiceAdapters(); return registerAndGetRemoteService(adapters[0], adapters[1], getClient(0).getConnectedID(), IConcatService.class.getName(), customizeProperties(null), 0); }
protected IRemoteService registerAndGetRemoteService() { final IRemoteServiceContainerAdapter[] adapters = getRemoteServiceAdapters(); return registerAndGetRemoteService(adapters[0], adapters[1], getClient(0).getConnectedID(), IConcatService.class.getName(), customizeProperties(null), 5000); }
package org.eclipse.ecf.tests.provider.xmpp; /**************************************************************************** * Copyright (c) 2008 Composent, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * wh...
package org.eclipse.ecf.tests.provider.xmpp; /**************************************************************************** * Copyright (c) 2008 Composent, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * wh...
package org.eclipse.ecf.tests.provider.xmpp; /**************************************************************************** * Copyright (c) 2008 Composent, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * wh...
package org.eclipse.ecf.tests.provider.xmpp; /**************************************************************************** * Copyright (c) 2008 Composent, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * wh...
private ClassStreamHandler(Class cls) throws WicketSerializeableException { this.classId = classCounter++; this.clz = cls; if (cls.isPrimitive()) { fields = null; cons = null; writeObjectMethods = null; readObjectMethods = null; writeReplaceMethod = null; readResolveMethod = null; ...
private ClassStreamHandler(Class cls) throws WicketSerializeableException { this.classId = classCounter++; this.clz = cls; if (cls.isPrimitive()) { fields = null; cons = null; writeObjectMethods = null; readObjectMethods = null; writeReplaceMethod = null; readResolveMethod = null; ...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget (); if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0; if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0; int width, height; int layoutWidth = layout.getWidth (); //TEMPORARY CODE if (wHint == 0) { layout.setWidth (1); Rectangle rec...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget (); if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0; if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0; int width, height; int layoutWidth = layout.getWidth (); //TEMPORARY CODE if (wHint == 0) { layout.setWidth (1); Rectangle rec...
package org.apache.aut.nativelib.impl.launchers; /* * 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.txt file. */ package org...
package org.apache.aut.nativelib.impl.launchers; /* * 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.txt file. */ package org...
public Object component(Component component) { int levels = 0; for (Component current = component; current != null; current = current.getParent()) { levels++; } buffer.append(StringValue.repeat(levels, " ") + component.getPageRelativePath() + ":" + Classes.name(component.getClass())...
public Object component(Component component) { int levels = 0; for (Component current = component; current != null; current = current.getParent()) { levels++; } buffer.append(StringValue.repeat(levels, " ") + component.getPageRelativePath() + ":" + Classes.simpleName(component.getCl...
public RequestListenerInterface(final Class listenerInterfaceClass, boolean recordsPageVersion) { // Ensure that i extends IRequestListener if (!IRequestListener.class.isAssignableFrom(listenerInterfaceClass)) { throw new IllegalArgumentException("Class " + listenerInterfaceClass + " must extend IReques...
public RequestListenerInterface(final Class listenerInterfaceClass, boolean recordsPageVersion) { // Ensure that i extends IRequestListener if (!IRequestListener.class.isAssignableFrom(listenerInterfaceClass)) { throw new IllegalArgumentException("Class " + listenerInterfaceClass + " must extend IReques...
private final HeaderPartContainer getHeaderPart() { // Gracefully getAssociateMarkupStream. Throws no exception in case // markup is not found final MarkupStream associatedMarkupStream = getApplication().getMarkupCache() .getMarkupStream(this, false); // No associated markup => no header section if (as...
private final HeaderPartContainer getHeaderPart() { // Gracefully getAssociateMarkupStream. Throws no exception in case // markup is not found final MarkupStream associatedMarkupStream = getApplication().getMarkupCache() .getMarkupStream(this, false); // No associated markup => no header section if (as...
public void error(final FormComponent formComponent, final String resourceKey, final IModel resourceModel) { // Return formatted error message Localizer localizer = formComponent.getLocalizer(); // Get the property value associated with the key. // Note: It is important that the default value of "" is ...
public void error(final FormComponent formComponent, final String resourceKey, final IModel resourceModel) { // Return formatted error message Localizer localizer = formComponent.getLocalizer(); // Get the property value associated with the key. // Note: It is important that the default value of "" is ...
public String newKey(IValidator validator, FormComponent formComponent) { return formComponent.getId() + "." + Classes.name(validator.getClass()); }
public String newKey(IValidator validator, FormComponent formComponent) { return formComponent.getId() + "." + Classes.simpleName(validator.getClass()); }
protected Map messageModel(FormComponent formComponent, final ConversionException e) { final Map model = super.messageModel(formComponent); model.put("type", Classes.name(type)); final Locale locale = e.getLocale(); if (locale != null) { model.put("locale", locale); } model.put("exception", e); For...
protected Map messageModel(FormComponent formComponent, final ConversionException e) { final Map model = super.messageModel(formComponent); model.put("type", Classes.simpleName(type)); final Locale locale = e.getLocale(); if (locale != null) { model.put("locale", locale); } model.put("exception", e);...
public void setRequestToComponent(final Component component) { final PageMap pageMap = component.getPage().getPageMap(); final String pageMapName = pageMap.isDefault() ? "" : pageMap.getName(); if (component instanceof BookmarkablePageLink) { final Class clazz = ((BookmarkablePageLink)component).getPageCla...
public void setRequestToComponent(final Component component) { final PageMap pageMap = component.getPage().getPageMap(); final String pageMapName = pageMap.isDefault() ? "" : pageMap.getName(); if (component instanceof BookmarkablePageLink) { final Class clazz = ((BookmarkablePageLink)component).getPageCla...
public final String encode(IRequestTarget requestTarget) { if (!(requestTarget instanceof IBookmarkablePageRequestTarget)) { throw new IllegalArgumentException("this encoder can only be used with instances of " + IBookmarkablePageRequestTarget.class.getName()); } StringBuffer url = new StringBuffer();...
public final String encode(IRequestTarget requestTarget) { if (!(requestTarget instanceof IBookmarkablePageRequestTarget)) { throw new IllegalArgumentException("this encoder can only be used with instances of " + IBookmarkablePageRequestTarget.class.getName()); } StringBuffer url = new StringBuffer();...
private IModel originalModel; /** * Construct. * * @param component * subject of the change */ ModelChange(final Component component) { if (component == null) { throw new IllegalArgumentException("argument component must be not null"); } // Save component this.component = compon...
private IModel originalModel; /** * Construct. * * @param component * subject of the change */ ModelChange(final Component component) { if (component == null) { throw new IllegalArgumentException("argument component must be not null"); } // Save component this.component = compon...
Item newItem(int index, IModel model); /* * $Id: IItemFactory.java 3393 2005-12-08 07:50:37 +0000 (Thu, 08 Dec 2005) * ivaynberg $ $Revision$ $Date: 2005-12-08 07:50:37 +0000 (Thu, 08 Dec * 2005) $ * * ==================================================================== Licensed * under the Apache License, Vers...
Item newItem(int index, IModel model); /* * $Id: IItemFactory.java 3393 2005-12-08 07:50:37 +0000 (Thu, 08 Dec 2005) * ivaynberg $ $Revision$ $Date: 2005-12-08 07:50:37 +0000 (Thu, 08 Dec * 2005) $ * * ==================================================================== Licensed * under the Apache License, Vers...
public static void log(String message) { getDefault().log( new Status(IStatus.OK, getDefault().PLUGIN_ID, IStatus.OK, message, null)); }
public static void log(String message) { getDefault().log( new Status(IStatus.OK, PLUGIN_ID, IStatus.OK, message, null)); }
public String getString(final String key, final Component component, final IModel model, final Locale locale, final String style, final String defaultValue) throws MissingResourceException { String string = null; final ApplicationSettings settings = application.getSettings(); if (settings == null) { ...
public String getString(final String key, final Component component, final IModel model, final Locale locale, final String style, final String defaultValue) throws MissingResourceException { String string = null; final ApplicationSettings settings = application.getSettings(); if (settings == null) { ...
public final CharSequence encode(final RequestCycle requestCycle, final IRequestTarget requestTarget) { // First check to see whether the target is mounted CharSequence url = pathForTarget(requestTarget); RequestContext requestContext = RequestContext.get(); boolean portletRequest = requestContext.isPortle...
public final CharSequence encode(final RequestCycle requestCycle, final IRequestTarget requestTarget) { // First check to see whether the target is mounted CharSequence url = pathForTarget(requestTarget); RequestContext requestContext = RequestContext.get(); boolean portletRequest = requestContext.isPortle...
public void testDouble(){ long time = nextInt(); try { Thread.sleep(time); } catch (InterruptedException e){ fail(e.getMessage()); } }
public void testDouble(){ long time = 250; try { Thread.sleep(time); } catch (InterruptedException e){ fail(e.getMessage()); } }
public String getLabelResource() { return "test_plan"; }
public String getLabelResource() { return "report_plan"; }
protected OutputStream getOutputStream() throws IOException { if (caller.FRAMES.equals(caller.format)){ // dummy output for the framed report // it's all done by extension... return new ByteArrayOutputStream(); } else { return new FileOutputStream(new ...
protected OutputStream getOutputStream() throws IOException { if (caller.FRAMES.equals(caller.format)){ // dummy output for the framed report // it's all done by extension... return new ByteArrayOutputStream(); } else { return new FileOutputStream(new ...
private void processFile(String file) throws BuildException { File srcFile = new File(srcDir, file); long lastModified = srcFile.lastModified(); File destD = destDir == null ? srcDir : destDir; if (fcv == null) { FilterChain fc = new FilterChain(); fc.add(fil...
private void processFile(String file) throws BuildException { File srcFile = new File(srcDir, file); long lastModified = srcFile.lastModified(); File destD = destDir == null ? srcDir : destDir; if (fcv == null) { FilterChain fc = new FilterChain(); fc.add(fil...
private void processFile(File src) throws BuildException { if (!src.exists()) { throw new BuildException("Replace: source file " + src.getPath() + " doesn't exist", getLocation()); } File temp = null; FileInput in = null; File...
private void processFile(File src) throws BuildException { if (!src.exists()) { throw new BuildException("Replace: source file " + src.getPath() + " doesn't exist", getLocation()); } File temp = null; FileInput in = null; File...
private void setExecutableCommandLine() { String[] commands = commandLine.getCommandline(); //always trigger file mode if commands are big enough if (automaticResponseFileThreshold > 0 && commands.length > automaticResponseFileThreshold) { useResponseFile = true; ...
private void setExecutableCommandLine() { String[] commands = commandLine.getCommandline(); //always trigger file mode if commands are big enough if (automaticResponseFileThreshold > 0 && commands.length > automaticResponseFileThreshold) { useResponseFile = true; ...
private File createTempPropertiesFile(String prefix) { File propsFile = FILE_UTILS.createTempFile(prefix, ".properties", tmpDir != null ? tmpDir : getProject().getBaseDir(), true); return propsFile; }
private File createTempPropertiesFile(String prefix) { File propsFile = FILE_UTILS.createTempFile(prefix, ".properties", tmpDir != null ? tmpDir : getProject().getBaseDir(), true, true); return propsFile; }
public boolean isSelected(Resource resource) { if (resource.isFilesystemOnly()) { // We have a 'resourced' file, so reconvert it and use // the 'old' implementation. FileResource fileResource = (FileResource) resource; File file = fileResource.getFile(); ...
public boolean isSelected(Resource resource) { if (resource.isFilesystemOnly()) { // We have a 'resourced' file, so reconvert it and use // the 'old' implementation. FileResource fileResource = (FileResource) resource; File file = fileResource.getFile(); ...
public static File createVmsJavaOptionFile(String[] cmd) throws IOException { File script = FILE_UTILS.createTempFile("ANT", ".JAVA_OPTS", null); PrintWriter out = null; try { out = new PrintWriter(new BufferedWriter(new FileWriter(script))); for (int i = ...
public static File createVmsJavaOptionFile(String[] cmd) throws IOException { File script = FILE_UTILS.createTempFile("ANT", ".JAVA_OPTS", null, false, true); PrintWriter out = null; try { out = new PrintWriter(new BufferedWriter(new FileWriter(script))); ...
public void testspawn() { project.executeTarget("init"); if (project.getProperty("test.can.run") == null) { return; } myBuild = new MonitoredBuild(new File(System.getProperty("root"), BUILD_FILE), "spawn"); logFile = FILE_UTILS.createTempFileName("spawn","log", pr...
public void testspawn() { project.executeTarget("init"); if (project.getProperty("test.can.run") == null) { return; } myBuild = new MonitoredBuild(new File(System.getProperty("root"), BUILD_FILE), "spawn"); logFile = FILE_UTILS.createTempFile("spawn","log", projec...
public void testSpawn() { File logFile = FILE_UTILS.createTempFileName("spawn","log", project.getBaseDir(), false); // this is guaranteed by FileUtils#createTempFile assertTrue("log file not existing", !logFile.exists()); project.setProperty("logFile", logFile.getAbsolutePath()); ...
public void testSpawn() { File logFile = FILE_UTILS.createTempFile("spawn","log", project.getBaseDir(), false, false); // this is guaranteed by FileUtils#createTempFile assertTrue("log file not existing", !logFile.exists()); project.setProperty("logFile", logFile.getAbsolutePath()); ...
public void testCreatePropertiesCacheViaCustomSelector() { File cachefile = FILE_UTILS.createTempFileName("tmp-cache-", ".properties", null, false); try { // initialize test environment (called "bed") makeBed(); // Configure the selector ExtendSelect...
public void testCreatePropertiesCacheViaCustomSelector() { File cachefile = FILE_UTILS.createTempFile("tmp-cache-", ".properties", null, false, false); try { // initialize test environment (called "bed") makeBed(); // Configure the selector ExtendSel...
public boolean setParent (Composite parent) { checkWidget (); if (parent == null) error (SWT.ERROR_NULL_ARGUMENT); if (parent.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT); if (this.parent == parent) return true; if (!isReparentable ()) return false; releaseChild (); Shell newShell = parent.getShell (), ol...
public boolean setParent (Composite parent) { checkWidget (); if (parent == null) error (SWT.ERROR_NULL_ARGUMENT); if (parent.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT); if (this.parent == parent) return true; if (!isReparentable ()) return false; releaseChild (); Shell newShell = parent.getShell (), ol...
public boolean open () { checkWidget (); if (rectangles == null) return false; cancelled = false; tracking = true; /* * If exactly one of UP/DOWN is specified as a style then set the cursor * orientation accordingly (the same is done for LEFT/RIGHT styles below). */ int vStyle = style & (SWT.UP | SWT.DOWN); ...
public boolean open () { checkWidget (); if (rectangles == null) return false; cancelled = false; tracking = true; /* * If exactly one of UP/DOWN is specified as a style then set the cursor * orientation accordingly (the same is done for LEFT/RIGHT styles below). */ int vStyle = style & (SWT.UP | SWT.DOWN); ...
public String toString () { String string = "*Disposed*"; //$NON-NLS-1$ if (!isDisposed ()) { string = "*Wrong Thread*"; //$NON-NLS-1$ if (isValidThread ()) string = getNameText (); } return getName () + " {" + string + "}"; //$NON-NLS-1$ //$NON-NLS-2$ } LRESULT wmChar (int hwnd, int wParam, int lParam) { /* ...
public String toString () { String string = "*Disposed*"; //$NON-NLS-1$ if (!isDisposed ()) { string = "*Wrong Thread*"; //$NON-NLS-1$ if (isValidThread ()) string = getNameText (); } return getName () + " {" + string + "}"; //$NON-NLS-1$ //$NON-NLS-2$ } LRESULT wmChar (int hwnd, int wParam, int lParam) { /* ...
public void create (Composite parent, int style) { String className = "SWTWebViewDelegate"; if (OS.objc_lookUpClass(className) == 0) { Class safaryClass = this.getClass(); Callback2 = new Callback(safaryClass, "browserProc", 2); int proc2 = Callback2.getAddress(); if (proc2 == 0) SWT.error (SWT.ERROR_NO_MOR...
public void create (Composite parent, int style) { String className = "SWTWebViewDelegate"; if (OS.objc_lookUpClass(className) == 0) { Class safaryClass = this.getClass(); Callback2 = new Callback(safaryClass, "browserProc", 2); int proc2 = Callback2.getAddress(); if (proc2 == 0) SWT.error (SWT.ERROR_NO_MOR...
protected final void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "checkbox"); final String value = getValue(); if (value != null) { try { if (Strings.isTrue(value)) { tag.put("checked", "checked"); } else {...
protected final void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "checkbox"); final String value = getValue(); if (value != null) { try { if (Strings.isTrue(value)) { tag.put("checked", "checked"); } else {...
protected void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, "select"); // Should a roundtrip be made (have onSelectionChanged called) when the selection changed? if (wantOnSelectionChangedNotifications()) { // url that points to this components IOnChangeListener method final String...
protected void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, "select"); // Should a roundtrip be made (have onSelectionChanged called) when the selection changed? if (wantOnSelectionChangedNotifications()) { // url that points to this components IOnChangeListener method final String...
public Object component(final Component component) { // Get button final Button button = (Button)component; // Check for button-name or button-name.x request string if (!Strings.isEmpty(button.getInput()) || !Strings.isEmpty(getRequest().getParameter(button.getPath() + ".x"))) { re...
public Object component(final Component component) { // Get button final Button button = (Button)component; // Check for button-name or button-name.x request string if (!Strings.isEmpty(button.getInput()) || !Strings.isEmpty(getRequest().getParameter(button.getInputName() + ".x"))) { ...
protected final void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { // Buffer to hold generated body final StringBuffer buffer = new StringBuffer(); // Iterate through choices final List choices = getChoices(); // Loop through choices for(int index=0;index<cho...
protected final void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { // Buffer to hold generated body final StringBuffer buffer = new StringBuffer(); // Iterate through choices final List choices = getChoices(); // Loop through choices for(int index=0;index<cho...
public FileUpload getFileUpload() { // Get request final Request request = getRequest(); // If we successfully installed a multipart request if (request instanceof MultipartWebRequest) { // Get the item for the path final FileItem item = ((MultipartWebRequest)request).getFile(getPath()); // Onl...
public FileUpload getFileUpload() { // Get request final Request request = getRequest(); // If we successfully installed a multipart request if (request instanceof MultipartWebRequest) { // Get the item for the path final FileItem item = ((MultipartWebRequest)request).getFile(getInputName()); /...
public Object component(final Component component) { if (component instanceof FormComponent) { String value = (String)values.get(component); if (value != null) { parameters.put(component.getPath(), values.get(component)); } } return CONTINUE_TRAVERSAL; } }); }
public Object component(final Component component) { if (component instanceof FormComponent) { String value = (String)values.get(component); if (value != null) { parameters.put(((FormComponent)component).getInputName(), values.get(component)); } } return CONTINUE_TRAVERSA...
void requestFailed(Throwable t); /** * Copyright (c) 2006 Ecliptical Software Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse....
void requestFailed(Throwable t); /** * Copyright (c) 2006 Ecliptical Software Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse....
private DataCachePCData newPCData(OpenJPAStateManager sm) { ClassMetaData meta = sm.getMetaData(); if (_gen != null) return (DataCachePCData) _gen.generatePCData (sm.getObjectId(), meta); return new DataCachePCDataImpl(sm.getObjectId(), meta); }
private DataCachePCData newPCData(OpenJPAStateManager sm) { ClassMetaData meta = sm.getMetaData(); if (_gen != null) return (DataCachePCData) _gen.generatePCData (sm.getObjectId(), meta); return new DataCachePCDataImpl(sm.fetchObjectId(), meta); }
public static Configuration getConfiguration( SampleResult result, SampleSaveConfiguration saveConfig) { DefaultConfiguration config = new DefaultConfiguration( SAMPLE_RESULT_TAG_NAME, "JMeter Save Service"); if (saveConfig.saveTime())...
public static Configuration getConfiguration( SampleResult result, SampleSaveConfiguration saveConfig) { DefaultConfiguration config = new DefaultConfiguration( SAMPLE_RESULT_TAG_NAME, "JMeter Save Service"); if (saveConfig.saveTime())...
public final void testTypeLiteral2() { final Expression e = parse("String.getOperation('length',(List[oaw::Type]){})"); assertEquals(ec.getOperationType(), e.analyze(ec, new HashSet<AnalysationIssue>())); }
public final void testTypeLiteral2() { final Expression e = parse("String.getOperation('length',(List[xpand2::Type]){})"); assertEquals(ec.getOperationType(), e.analyze(ec, new HashSet<AnalysationIssue>())); }
public final void testTypeLiterals() { final Expression e = parse("{" + " Object,\n" + " String,\n" + "Collection,\n" + " Set,\n" + " List,\n" + " oaw::Type,\n" + " oaw::Feature,\n" + " oaw::Property\n}"); assertNotNull(e); }
public final void testTypeLiterals() { final Expression e = parse("{" + " Object,\n" + " String,\n" + "Collection,\n" + " Set,\n" + " List,\n" + " xpand2::Type,\n" + " xpand2::Feature,\n" + " xpand2::Property\n}"); assertNotNull(e); }
public static Broker toBroker(EntityManager em) { if (em == null) return null; if (!(em instanceof EntityManagerImpl)) { Class c = em.getClass(); try { // either cast here may fail em = (EntityManagerImpl) ((OpenJPAEntityManager) em...
public static Broker toBroker(EntityManager em) { if (em == null) return null; if (!(em instanceof EntityManagerImpl)) { Class c = em.getClass(); try { // either cast here may fail em = (EntityManagerImpl) ((OpenJPAEntityManager) em...
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 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 void showSelection () { checkWidget(); int index = getSelectionIndex (); if (index >= 0) showIndex (index); } void tableViewSelectionDidChange (int /*long*/ id, int /*long*/ sel, int /*long*/ aNotification) { if (ignoreSelect) return; postEvent (SWT.Selection); } boolean tableView_shouldEditTableColumn_ro...
public void showSelection () { checkWidget(); int index = getSelectionIndex (); if (index >= 0) showIndex (index); } void tableViewSelectionDidChange (int /*long*/ id, int /*long*/ sel, int /*long*/ aNotification) { if (ignoreSelect) return; postEvent (SWT.Selection); } boolean tableView_shouldEditTableColumn_ro...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget (); float /*double*/ width = 0, height = 0; String string = Double.toString (buttonView.maxValue ()); Font font = Font.cocoa_new(display, textView.font ()); NSAttributedString str = parent.createString(string, font, null, 0, false); NS...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget (); float /*double*/ width = 0, height = 0; String string = Double.toString (buttonView.maxValue ()); Font font = Font.cocoa_new(display, textView.font ()); NSAttributedString str = parent.createString(string, font, null, 0, true, false...
public TableItem (Table parent, int style, int index) { this (parent, style, index, true); } TableItem (Table parent, int style, int index, boolean create) { super (parent, style); this.parent = parent; if (create) parent.createItem (this, index); } static Table checkNull (Table control) { if (control == null) S...
public TableItem (Table parent, int style, int index) { this (parent, style, index, true); } TableItem (Table parent, int style, int index, boolean create) { super (parent, style); this.parent = parent; if (create) parent.createItem (this, index); } static Table checkNull (Table control) { if (control == null) S...
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...
public TreeItem (TreeItem parentItem, int style, int index) { this (checkNull (parentItem).parent, parentItem, style, checkIndex (index), true); } TreeItem (Tree parent, TreeItem parentItem, int style, int index, boolean create) { super (parent, style); this.parent = parent; this.parentItem = parentItem; if (crea...
public TreeItem (TreeItem parentItem, int style, int index) { this (checkNull (parentItem).parent, parentItem, style, checkIndex (index), true); } TreeItem (Tree parent, TreeItem parentItem, int style, int index, boolean create) { super (parent, style); this.parent = parent; this.parentItem = parentItem; if (crea...
protected void removeSharedObjectExtensions(IConfigurationElement[] members) { for (int m = 0; m < members.length; m++) { IConfigurationElement member = members[m]; String name = null; try { name = member.getAttribute(NAME_ATTRIBUTE); if (name == null) { name = member.getAttribute(CLASS_ATTRIBU...
protected void removeSharedObjectExtensions(IConfigurationElement[] members) { for (int m = 0; m < members.length; m++) { IConfigurationElement member = members[m]; String name = null; try { name = member.getAttribute(NAME_ATTRIBUTE); if (name == null) { name = member.getAttribute(CLASS_ATTRIBU...
public void addTreeListener(TreeListener listener) { checkWidget (); if (listener == null) error (SWT.ERROR_NULL_ARGUMENT); TypedListener typedListener = new TypedListener (listener); addListener (SWT.Expand, typedListener); addListener (SWT.Collapse, typedListener); } int borderHandle () { return hwndParent !=...
public void addTreeListener(TreeListener listener) { checkWidget (); if (listener == null) error (SWT.ERROR_NULL_ARGUMENT); TypedListener typedListener = new TypedListener (listener); addListener (SWT.Expand, typedListener); addListener (SWT.Collapse, typedListener); } int borderHandle () { return hwndParent !=...
public void onAjax(); }
public void onAjaxRequest(); }
public void onRequestHandlerScheduled(RequestCycle cycle, IRequestHandler handler) { Conversation conversation = container.getCurrentConversation(cycle); if (conversation == null || conversation.isTransient()) { return; } // propagate a converastion across non-bookmarkable page instances Page page =...
public void onRequestHandlerScheduled(RequestCycle cycle, IRequestHandler handler) { Conversation conversation = container.getCurrentConversation(cycle); if (conversation == null || conversation.isTransient()) { return; } // propagate a converastion across non-bookmarkable page instances Page page =...
public boolean isVisible () { checkWidget(); return getVisible () && parent.isVisible (); } Decorations menuShell () { return parent.menuShell (); } int kEventAccessibleGetChildAtPoint (int nextHandler, int theEvent, int userData) { if (accessible != null) { return accessible.internal_kEventAccessibleGetChildAt...
public boolean isVisible () { checkWidget(); return getVisible () && parent.isVisible (); } Decorations menuShell () { return parent.menuShell (); } int kEventAccessibleGetChildAtPoint (int nextHandler, int theEvent, int userData) { if (accessible != null) { return accessible.internal_kEventAccessibleGetChildAt...
public Class<HomePage> getHomePage() { return HomePage.class; } }
public Class getHomePage() { return HomePage.class; } }
public BasePage() { new BookmarkablePageLink(this,"home-link", HomePage.class); }
public BasePage() { add(new BookmarkablePageLink("home-link", HomePage.class)); }
public static ResolvedMember createHandlerMember(Class exceptionType, Class inType,World inWorld) { return new ResolvedMemberImpl( org.aspectj.weaver.Member.HANDLER, inWorld.resolve(inType.getName()), Modifier.STATIC, "<catch>", "(" + inWorld.resolve(exceptionType.getName()).getSignature() + ")V"...
public static ResolvedMember createHandlerMember(Class exceptionType, Class inType,World inWorld) { return new ResolvedMemberImpl( org.aspectj.weaver.Member.HANDLER, inWorld.resolve(inType.getName()), Modifier.STATIC, "<catch>", "(" + inWorld.resolve(exceptionType.getName()).getSignature() + ")V"...
public void drawFocus(int x, int y, int width, int height) { if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); /* * Feature in GTK. The function gtk_widget_get_default_style() * can't be used here because gtk_paint_focus() uses GCs, which * are not valid in the default style. The fix is to use a style * f...
public void drawFocus(int x, int y, int width, int height) { if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); /* * Feature in GTK. The function gtk_widget_get_default_style() * can't be used here because gtk_paint_focus() uses GCs, which * are not valid in the default style. The fix is to use a style * f...
public void run(IAction action) { if (file == null) { return; } IProject project = getProjectForResource(file); ClientEntry entry = isConnected(project); if (entry == null) { MessageDialog .openInformation( getWorkbench().getDisplay().getActiveShell(), "Project Not Connected to Co...
public void run(IAction action) { if (file == null) { return; } IProject project = getProjectForResource(file); ClientEntry entry = isConnected(project); if (entry == null) { MessageDialog .openInformation( getWorkbench().getDisplay().getActiveShell(), "Project Not Connected to Co...
public void run(IAction action) { if (editor == null) return; ISelection s = editor.getSelectionProvider().getSelection(); ITextSelection textSelection = null; if (s instanceof ITextSelection) { textSelection = (ITextSelection) s; } if (textSelection == null) return; IFile file = getFileForPart(...
public void run(IAction action) { if (editor == null) return; ISelection s = editor.getSelectionProvider().getSelection(); ITextSelection textSelection = null; if (s instanceof ITextSelection) { textSelection = (ITextSelection) s; } if (textSelection == null) return; IFile file = getFileForPart(...
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 testSingletonAspectBindings() { //Note AV: uncomment setReporting to get it in modules/tests folder org.aspectj.asm.AsmManager.setReporting("debug.txt",true,true,true,true); runTest("singletonAspectBindings"); // same stuff with AJ //org.aspectj.asm.AsmManager.set...
public void testSingletonAspectBindings() { //Note AV: uncomment setReporting to get it in modules/tests folder // org.aspectj.asm.AsmManager.setReporting("debug.txt",true,true,true,true); runTest("singletonAspectBindings"); // same stuff with AJ //org.aspectj.asm.AsmManager....
public void run(String[] args, IMessageHolder holder) { if (LangUtil.isEmpty(args)) { args = new String[] { "-help" }; } else if (controller.running()) { fail(holder, "already running with controller: " + controller, null); return; } args = contr...
public void run(String[] args, IMessageHolder holder) { if (LangUtil.isEmpty(args)) { args = new String[] { "-?" }; } else if (controller.running()) { fail(holder, "already running with controller: " + controller, null); return; } args = controll...
private final IMarkup loadMarkup(final MarkupContainer container, final MarkupResourceStream markupResourceStream) { try { // read and parse the markup IMarkup markup = application.getMarkupSettings().getMarkupParserFactory() .newMarkupParser().readAndParse(markupResourceStream); // Check for ma...
private final IMarkup loadMarkup(final MarkupContainer container, final MarkupResourceStream markupResourceStream) { try { // read and parse the markup IMarkup markup = application.getMarkupSettings().getMarkupParserFactory() .newMarkupParser(markupResourceStream).readAndParse(); // Check for ma...
public void redraw (int x, int y, int width, int height, boolean all) { checkWidget(); boolean isFocus = caret != null && caret.isFocusCaret (); if (isFocus) caret.killFocus (); super.redraw (x, y, width, height, all); if (isFocus) caret.setFocus (); } void releaseChildren (boolean destroy) { if (caret != null) ...
public void redraw (int x, int y, int width, int height, boolean all) { checkWidget(); boolean isFocus = caret != null && caret.isFocusCaret (); if (isFocus) caret.killFocus (); super.redraw (x, y, width, height, all); if (isFocus) caret.setFocus (); } void releaseChildren (boolean destroy) { if (caret != null) ...
public void layout (Control [] changed) { checkWidget (); if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT); for (int i=0; i<changed.length; i++) { Control control = changed [i]; if (control == null) error (SWT.ERROR_INVALID_ARGUMENT); if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); bool...
public void layout (Control [] changed) { checkWidget (); if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT); for (int i=0; i<changed.length; i++) { Control control = changed [i]; if (control == null) error (SWT.ERROR_INVALID_ARGUMENT); if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); bool...
public boolean isVisible () { checkWidget(); return getVisible (); } int Pt_CB_REALIZED (int widget, int info) { if ((style & SWT.BAR) == 0) { Shell shell = getShell (); shell.activeMenu = this; } return OS.Pt_CONTINUE; } int Pt_CB_UNREALIZED (int widget, int info) { if (cascade != null) { OS.PtSetResourc...
public boolean isVisible () { checkWidget(); return getVisible (); } int Pt_CB_REALIZED (int widget, int info) { if ((style & SWT.BAR) == 0) { Shell shell = getShell (); shell.activeMenu = this; } return OS.Pt_CONTINUE; } int Pt_CB_UNREALIZED (int widget, int info) { if (cascade != null) { OS.PtSetResourc...
public boolean isEnabled () { return getEnabled () && parent.isEnabled (); } int Pt_CB_ACTIVATE (int widget, int info) { if ((style & SWT.CASCADE) != 0 && menu != null) { return OS.Pt_CONTINUE; } Event event = new Event (); if (info != 0) { PtCallbackInfo_t cbinfo = new PtCallbackInfo_t (); OS.memmove (cbin...
public boolean isEnabled () { return getEnabled () && parent.isEnabled (); } int Pt_CB_ACTIVATE (int widget, int info) { if ((style & SWT.CASCADE) != 0 && menu != null) { return OS.Pt_CONTINUE; } Event event = new Event (); if (info != 0) { PtCallbackInfo_t cbinfo = new PtCallbackInfo_t (); OS.memmove (cbin...
public void open () { checkWidget(); setVisible (true); if (isDisposed ()) return; traverseGroup (true); } int Pt_CB_RESIZE (int widget, int info) { if (info == 0) return OS.Pt_CONTINUE; PtCallbackInfo_t cbinfo = new PtCallbackInfo_t (); OS.memmove (cbinfo, info, PtCallbackInfo_t.sizeof); if (cbinfo.cbdata == ...
public void open () { checkWidget(); setVisible (true); if (isDisposed ()) return; traverseGroup (true); } int Pt_CB_RESIZE (int widget, int info) { if (info == 0) return OS.Pt_CONTINUE; PtCallbackInfo_t cbinfo = new PtCallbackInfo_t (); OS.memmove (cbinfo, info, PtCallbackInfo_t.sizeof); if (cbinfo.cbdata == ...
public int indexOf (TabItem item) { checkWidget(); if (item == null) error (SWT.ERROR_NULL_ARGUMENT); for (int i=0; i<itemCount; i++) { if (items [i] == item) return i; } return -1; } Point minimumSize (int wHint, int hHint, boolean flushCache) { Control [] children = _getChildren (); int width = 0, height = ...
public int indexOf (TabItem item) { checkWidget(); if (item == null) error (SWT.ERROR_NULL_ARGUMENT); for (int i=0; i<itemCount; i++) { if (items [i] == item) return i; } return -1; } Point minimumSize (int wHint, int hHint, boolean flushCache) { Control [] children = _getChildren (); int width = 0, height = ...
public int indexOf (ToolItem item) { checkWidget(); if (item == null) error (SWT.ERROR_NULL_ARGUMENT); if (item.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT); for (int i=0; i<itemCount; i++) { if (items [i] == item) return i; } return -1; } void moveToBack (int child) { OS.PtWidgetInsert (child, handle, 0);...
public int indexOf (ToolItem item) { checkWidget(); if (item == null) error (SWT.ERROR_NULL_ARGUMENT); if (item.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT); for (int i=0; i<itemCount; i++) { if (items [i] == item) return i; } return -1; } void moveToBack (int child) { OS.PtWidgetInsert (child, handle, 0);...
package org.apache.wicket.authorization.strategies.role; /* * 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 th...
package org.apache.wicket.authorization.strategies.role; /* * 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 th...
public Path createSrc() { if (src != null) { src = new Path(project); } return src; }
public Path createSrc() { if (src == null) { src = new Path(project); } return src; }
public Object getProxy() throws ECFException { try { // Get clazz from reference final String[] clazzes = getInterfaceClassNames(); List classes = new ArrayList(); for (int i = 0; i < clazzes.length; i++) { Class c = loadInterfaceClass(clazzes[i]); classes.add(c); // check to see if async rem...
public Object getProxy() throws ECFException { try { // Get clazz from reference final String[] clazzes = getInterfaceClassNames(); List classes = new ArrayList(); for (int i = 0; i < clazzes.length; i++) { Class c = loadInterfaceClass(clazzes[i]); classes.add(c); // check to see if async rem...
public DerbyDictionary() { platform = "Apache Derby"; validationSQL = "VALUES(1)"; stringLengthFunction = "LENGTH({0})"; substringFunctionName = "SUBSTR"; toUpperCaseFunction = "UPPER(CAST({0} AS VARCHAR(" + varcharCastLength + ")))"; toLowerCaseFunction = "LOWER(CAST...
public DerbyDictionary() { platform = "Apache Derby"; validationSQL = "VALUES(1)"; stringLengthFunction = "LENGTH({0})"; substringFunctionName = "SUBSTR"; toUpperCaseFunction = "UPPER(CAST({0} AS VARCHAR(" + varcharCastLength + ")))"; toLowerCaseFunction = "LOWER(CAST...
public boolean getFeature(String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { try { // // SAX2 Features // if (featureId.startsWith(Constants.SAX_FEATURE_PREFIX)) { final int suffixLength = featureId.length(...
public boolean getFeature(String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { try { // // SAX2 Features // if (featureId.startsWith(Constants.SAX_FEATURE_PREFIX)) { final int suffixLength = featureId.length(...
public XMLContentModel getElementContentModel(int elementDeclIndex, SubstitutionGroupComparator comparator) throws CMException { // if the content model is already there, no UPA checking is necessary if (existElementContentModel(elementDeclIndex)) return super.getElementContentModel(elem...
public XMLContentModel getElementContentModel(int elementDeclIndex, SubstitutionGroupComparator comparator) throws CMException { // if the content model is already there, no UPA checking is necessary if (existElementContentModel(elementDeclIndex)) return super.getElementContentModel(elem...
public static void main(String[] args) { Server server = new Server(); SelectChannelConnector connector = new SelectChannelConnector(); connector.setPort(8080); server.setConnectors(new Connector[] { connector }); WebAppContext web = new WebAppContext(); web.setContextPath("/org.apache.wicket-auth-roles-e...
public static void main(String[] args) { Server server = new Server(); SelectChannelConnector connector = new SelectChannelConnector(); connector.setPort(8080); server.setConnectors(new Connector[] { connector }); WebAppContext web = new WebAppContext(); web.setContextPath("/wicket-auth-roles-examples"); ...
protected Object evaluateInternal(ExecutionContext ctx) { final List<Object> params = new ArrayList<Object> (); for (ExpressionBase expr: _params) params.add (expr.evaluate(ctx)); // this is for "method-style" invocations: if the first parameter (i.e. the one "before the do...
protected Object evaluateInternal(ExecutionContext ctx) { final List<Object> params = new ArrayList<Object> (); for (ExpressionBase expr: _params) params.add (expr.evaluate(ctx)); // this is for "method-style" invocations: if the first parameter (i.e. the one "before the do...
public void setInitialization(Expression initialization) { this.initialization = initialization; } public EclipseTypeMunger build(ClassScope classScope) { EclipseFactory world = EclipseFactory.fromScopeLookupEnvironment(classScope); resolveOnType(classScope); if (ignoreFurtherInvestigation) return null...
public void setInitialization(Expression initialization) { this.initialization = initialization; } public EclipseTypeMunger build(ClassScope classScope) { EclipseFactory world = EclipseFactory.fromScopeLookupEnvironment(classScope); resolveOnType(classScope); if (ignoreFurtherInvestigation) return null...
public void exposeType(UnresolvedType typeToExpose) { if (typeToExpose == ResolvedType.MISSING) return; if (typeToExpose.isParameterizedType() || typeToExpose.isRawType()) { if (typeToExpose instanceof ResolvedType) { typeToExpose = ((ResolvedType)typeToExpose).getGenericType(); } else { typeToExpose...
public void exposeType(UnresolvedType typeToExpose) { if (typeToExpose == ResolvedType.MISSING) return; if (typeToExpose.isParameterizedType() || typeToExpose.isRawType()) { if (typeToExpose instanceof ResolvedType) { typeToExpose = ((ResolvedType)typeToExpose).getGenericType(); } else { typeToExpose...
public static ResolvedTypeMunger readField(VersionedDataInputStream s, ISourceContext context) throws IOException { ResolvedTypeMunger munger = new NewFieldTypeMunger( ResolvedMember.readResolvedMember(s, context), readSuperMethodsCalled(s)); if (ResolvedTypeMunger.persistSourceLocation) munger.setSourceLoca...
public static ResolvedTypeMunger readField(VersionedDataInputStream s, ISourceContext context) throws IOException { ResolvedTypeMunger munger = new NewFieldTypeMunger( ResolvedMemberImpl.readResolvedMember(s, context), readSuperMethodsCalled(s)); if (ResolvedTypeMunger.persistSourceLocation) munger.setSource...
public static ResolvedTypeMunger readMethod(VersionedDataInputStream s, ISourceContext context) throws IOException { ResolvedTypeMunger munger = new NewMethodTypeMunger( ResolvedMember.readResolvedMember(s, context), readSuperMethodsCalled(s)); if (ResolvedTypeMunger.persistSourceLocation) munger.setSource...
public static ResolvedTypeMunger readMethod(VersionedDataInputStream s, ISourceContext context) throws IOException { ResolvedTypeMunger munger = new NewMethodTypeMunger( ResolvedMemberImpl.readResolvedMember(s, context), readSuperMethodsCalled(s)); if (ResolvedTypeMunger.persistSourceLocation) munger.setSo...
protected static Set readSuperMethodsCalled(VersionedDataInputStream s) throws IOException { Set ret = new HashSet(); int n = s.readInt(); for (int i=0; i < n; i++) { ret.add(ResolvedMember.readResolvedMember(s, null)); } return ret; }
protected static Set readSuperMethodsCalled(VersionedDataInputStream s) throws IOException { Set ret = new HashSet(); int n = s.readInt(); for (int i=0; i < n; i++) { ret.add(ResolvedMemberImpl.readResolvedMember(s, null)); } return ret; }
private Advice makeConcreteAdvice(AdviceKind kind, UnresolvedType declaringAspect, UnresolvedType concreteAspect, int lexicalPosition) { Advice a1 = new BcelAdvice(kind, makeResolvedPointcut("this(*)"), Member.method(declaringAspect, 0, "foo", "()V"), 0, lexicalPosition, lexicalPosition, null, null);...
private Advice makeConcreteAdvice(AdviceKind kind, UnresolvedType declaringAspect, UnresolvedType concreteAspect, int lexicalPosition) { Advice a1 = new BcelAdvice(kind, makeResolvedPointcut("this(*)"), MemberImpl.method(declaringAspect, 0, "foo", "()V"), 0, lexicalPosition, lexicalPosition, null, nu...
public void setVisible (boolean visible) { checkWidget(); if (window == null) { super.setVisible(visible); } else { setWindowVisible (visible, false); } } void setWindowVisible (boolean visible, boolean key) { if (visible) { if ((state & HIDDEN) == 0) return; state &= ~HIDDEN; } else { if ((state & HID...
public void setVisible (boolean visible) { checkWidget(); if (window == null) { super.setVisible(visible); } else { setWindowVisible (visible, false); } } void setWindowVisible (boolean visible, boolean key) { if (visible) { if ((state & HIDDEN) == 0) return; state &= ~HIDDEN; } else { if ((state & HID...
public TableItem (Table parent, int style, int index) { this (parent, style, index, true); } TableItem (Table parent, int style, int index, boolean create) { super (parent, style); this.parent = parent; if (create) parent.createItem (this, index); } static Table checkNull (Table control) { if (control == null) S...
public TableItem (Table parent, int style, int index) { this (parent, style, index, true); } TableItem (Table parent, int style, int index, boolean create) { super (parent, style); this.parent = parent; if (create) parent.createItem (this, index); } static Table checkNull (Table control) { if (control == null) S...
public Point getCaretLocation () { checkWidget (); if ((style & SWT.SINGLE) != 0) { //TODO - caret location for unicode text return new Point (0, 0); } // NSText NSRange range = ((NSTextView)view).selectedRange(); return null; }
public Point getCaretLocation () { checkWidget (); if ((style & SWT.SINGLE) != 0) { //TODO - caret location for unicode text return new Point (0, 0); } // NSText // NSRange range = ((NSTextView)view).selectedRange(); return null; }
public TreeItem (TreeItem parentItem, int style, int index) { this (checkNull (parentItem).parent, parentItem, style, checkIndex (index), true); } TreeItem (Tree parent, TreeItem parentItem, int style, int index, boolean create) { super (parent, style); this.parent = parent; this.parentItem = parentItem; if (crea...
public TreeItem (TreeItem parentItem, int style, int index) { this (checkNull (parentItem).parent, parentItem, style, checkIndex (index), true); } TreeItem (Tree parent, TreeItem parentItem, int style, int index, boolean create) { super (parent, style); this.parent = parent; this.parentItem = parentItem; if (crea...
public void setHeaderVisible (boolean show) { checkWidget (); int style = 0; if (!show) { style = OS.gcnew_Style (); int dp = OS.UIElement_VisibilityProperty (); int setter = OS.gcnew_Setter (dp, OS.Visibility_Collapsed); int collection = OS.Style_Setters (style); OS.SetterBaseCollection_Add (collection, s...
public void setHeaderVisible (boolean show) { checkWidget (); int style = 0; if (!show) { style = OS.gcnew_Style (); int dp = OS.UIElement_VisibilityProperty (); int setter = OS.gcnew_SetterVisibility (dp, OS.Visibility_Collapsed); int collection = OS.Style_Setters (style); OS.SetterBaseCollection_Add (col...
public org.apache.commons.httpclient.Cookie[] getCookiesForUrl(URL url){ CollectionProperty jar=getCookies(); org.apache.commons.httpclient.Cookie cookies[]= new org.apache.commons.httpclient.Cookie[jar.size()]; int i=0; for (PropertyIterator iter = getCookies().iterator(...
private org.apache.commons.httpclient.Cookie makeCookie(Cookie jmc){ long exp = jmc.getExpiresMillis(); org.apache.commons.httpclient.Cookie ret= new org.apache.commons.httpclient.Cookie( jmc.getDomain(), jmc.getName(), jmc.getValue(), ...
public void clearGui(){ super.clearGui(); useProperties.setSelected(false); jndiICF.setText(""); // $NON-NLS-1$ urlField.setText(""); // $NON-NLS-1$ jndiConnFac.setText(""); // $NON-NLS-1$ jmsDestination.setText(""); // $NON-NLS-1$ jmsUser.setText(""); // $NON...
public void clearGui(){ super.clearGui(); useProperties.setSelected(false); jndiICF.setText(""); // $NON-NLS-1$ urlField.setText(""); // $NON-NLS-1$ jndiConnFac.setText(""); // $NON-NLS-1$ jmsDestination.setText(""); // $NON-NLS-1$ jmsUser.setText(""); // $NON...