buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public Page4(PageParameters parameters) { add(new BookmarkablePageLink("homeLink", Home.class)); }
public Page4(PageParameters parameters) { add(new BookmarkablePageLink(this,"homeLink", Home.class)); }
public DataGridPage() { ICellPopulator[] columns = new ICellPopulator[5]; columns[0] = new PropertyPopulator("id"); columns[1] = new PropertyPopulator("firstName"); columns[2] = new PropertyPopulator("lastName"); columns[3] = new PropertyPopulator("homePhone"); columns[4] = new PropertyPopulator("cellPho...
public DataGridPage() { ICellPopulator[] columns = new ICellPopulator[5]; columns[0] = new PropertyPopulator("id"); columns[1] = new PropertyPopulator("firstName"); columns[2] = new PropertyPopulator("lastName"); columns[3] = new PropertyPopulator("homePhone"); columns[4] = new PropertyPopulator("cellPho...
public void populateItem(Item cellItem, String componentId, IModel rowModel) { cellItem.add(new Label(componentId, new PropertyModel(rowModel, property))); }
public void populateItem(Item cellItem, String componentId, IModel rowModel) { cellItem.add(new Label(cellItem,componentId, new PropertyModel(rowModel, property))); }
public void populateItem(Item item, String componentId, IModel model) { item.add(new Label(componentId, createLabelModel(model))); }
public void populateItem(Item item, String componentId, IModel model) { item.add(new Label(item,componentId, createLabelModel(model))); }
public BasePage() { add(new BookmarkablePageLink("home-link", HomePage.class)); }
public BasePage() { add(new BookmarkablePageLink(this,"home-link", HomePage.class)); }
public ContactsDisplayPage() { IColumn[] cols = new IColumn[4]; cols[0] = new PropertyColumn(new Model("first name"), "firstName", "firstName"); cols[1] = new PropertyColumn(new Model("last name"), "lastName", "lastName"); cols[2] = new PropertyColumn(new Model("home phone"), "homePhone"); cols[3] = ...
public ContactsDisplayPage() { IColumn[] cols = new IColumn[4]; cols[0] = new PropertyColumn(new Model("first name"), "firstName", "firstName"); cols[1] = new PropertyColumn(new Model("last name"), "lastName", "lastName"); cols[2] = new PropertyColumn(new Model("home phone"), "homePhone"); cols[3] = ...
private void merge(final Markup markup, final Markup baseMarkup, int extendIndex) { // True if either <wicket:head> or <head> has been processed boolean wicketHeadProcessed = false; // Add all elements from the base markup to the new list // until <wicket:child/> is found. Convert <wicket:child/> // into <...
private void merge(final Markup markup, final Markup baseMarkup, int extendIndex) { // True if either <wicket:head> or <head> has been processed boolean wicketHeadProcessed = false; // Add all elements from the base markup to the new list // until <wicket:child/> is found. Convert <wicket:child/> // into <...
public SimpleTestPage() { SimpleTestPanel panel = new SimpleTestPanel("testPanel"); add(panel); }
public SimpleTestPage() { SimpleTestPanel panel = new SimpleTestPanel(this,"testPanel"); add(panel); }
public ComponentCreateTag_3() { // <wicket:component> are treated as anonymous because they not // accessible nor available right now. Thus you do not add // the label contained in <wicket:component> to that specific // component. You rather add it to its parent, which in this // case is the...
public ComponentCreateTag_3() { // <wicket:component> are treated as anonymous because they not // accessible nor available right now. Thus you do not add // the label contained in <wicket:component> to that specific // component. You rather add it to its parent, which in this // case is the...
public MarkupInheritanceExtension_10() { super(); add(new Label("label3", "extension label")); }
public MarkupInheritanceExtension_10() { super(); add(new Label(this,"label3", "extension label")); }
public MarkupInheritanceExtension_11() { super(); add(new Label("label5", "extension label")); }
public MarkupInheritanceExtension_11() { super(); add(new Label(this,"label5", "extension label")); }
public MarkupInheritanceExtension_12() { add(new Label("label3", "extension label")); }
public MarkupInheritanceExtension_12() { add(new Label(this,"label3", "extension label")); }
public MarkupInheritanceExtension_2() { super(); add(new Label("label3", "extension label")); }
public MarkupInheritanceExtension_2() { super(); add(new Label(this,"label3", "extension label")); }
public MarkupInheritanceExtension_4() { add(new Label("label3", "extension label")); }
public MarkupInheritanceExtension_4() { add(new Label(this,"label3", "extension label")); }
public MarkupInheritanceExtension_5() { add(new Label("label3", "extension label")); }
public MarkupInheritanceExtension_5() { add(new Label(this,"label3", "extension label")); }
public MarkupInheritancePage_6() { add(new MarkupInheritanceExtensionPanel_6("panel")); }
public MarkupInheritancePage_6() { add(new MarkupInheritanceExtensionPanel_6(this,"panel")); }
public MarkupInheritancePage_9() { add(new MarkupInheritanceExtensionPanel_9("panel")); }
public MarkupInheritancePage_9() { add(new MarkupInheritanceExtensionPanel_9(this,"panel")); }
public WicketNamespace_1() { add(new Label("label", "my label test")); }
public WicketNamespace_1() { add(new Label(this,"label", "my label test")); }
public WicketNamespace_2() { add(new Label("label", "my label test")); }
public WicketNamespace_2() { add(new Label(this,"label", "my label test")); }
public WicketNamespace_3() { add(new Label("label", "my label test")); }
public WicketNamespace_3() { add(new Label(this,"label", "my label test")); }
public WicketNamespace_4() { add(new Label("label", "my label test")); }
public WicketNamespace_4() { add(new Label(this,"label", "my label test")); }
public WicketNamespace_5() { add(new Label("label", "my label test")); }
public WicketNamespace_5() { add(new Label(this,"label", "my label test")); }
public WicketNamespace_6() { add(new Label("label", "my label test")); }
public WicketNamespace_6() { add(new Label(this,"label", "my label test")); }
public LabelWithEscapeMarkupPage() { Label label = new Label("label", "test:'\""); label.setEscapeModelStrings(true); add(label); }
public LabelWithEscapeMarkupPage() { Label label = new Label(this,"label", "test:'\""); label.setEscapeModelStrings(true); add(label); }
public LabelWithoutEscapeMarkupPage() { Label label = new Label("label", "test:'\""); label.setEscapeModelStrings(false); add(label); }
public LabelWithoutEscapeMarkupPage() { Label label = new Label(this,"label", "test:'\""); label.setEscapeModelStrings(false); add(label); }
public SimplePage_10() { add(new SimplePanel("myPanel").setVisible(false)); }
public SimplePage_10() { add(new SimplePanel(this,"myPanel").setVisible(false)); }
public SimplePage_6() { Panel panel = new SimplePanel_6("myPanel"); add(panel); }
public SimplePage_6() { Panel panel = new SimplePanel_6(this,"myPanel"); add(panel); }
public SimplePage_7() { add(new Label("message", "here it goes")); }
public SimplePage_7() { add(new Label(this,"message", "here it goes")); }
public SimplePage_8() { // One Label, but two <span> tag in the html with the same id => Not allowed. add(new Label("myLabel", "test-1")); }
public SimplePage_8() { // One Label, but two <span> tag in the html with the same id => Not allowed. add(new Label(this,"myLabel", "test-1")); }
public BoxBorderTestPage_5() { add(new MyApplicationBorder("border")); }
public BoxBorderTestPage_5() { add(new MyApplicationBorder(this,"border")); }
public ConcretePage() { add(new MyPanel("panel")); }
public ConcretePage() { add(new MyPanel(this,"panel")); }
public ConcretePage2() { add(new MyPanel2("panel")); }
public ConcretePage2() { add(new MyPanel2(this,"panel")); }
public TestPage() { add(new TestExtendedPanel()); }
public TestPage() { add(new TestExtendedPanel(this)); }
public AbstractMeldingPage() { add(new Label("foo", "FooBar")); }
public AbstractMeldingPage() { add(new Label(this,"foo", "FooBar")); }
public AbstractSecurePage() { add(new Label("username", "Pietje Puk")); }
public AbstractSecurePage() { add(new Label(this,"username", "Pietje Puk")); }
public AutolinkPage_1() { add(new Label("myLabel", "Home")); getSession().setStyle("myStyle"); getSession().setLocale(Locale.GERMANY); }
public AutolinkPage_1() { add(new Label(this,"myLabel", "Home")); getSession().setStyle("myStyle"); getSession().setLocale(Locale.GERMANY); }
public AutolinkPage_2() { add(new Label("myLabel", "Home")); getSession().setStyle("myStyle"); getSession().setLocale(Locale.GERMANY); }
public AutolinkPage_2() { add(new Label(this,"myLabel", "Home")); getSession().setStyle("myStyle"); getSession().setLocale(Locale.GERMANY); }
public InlinePanelPage_4() { add(new InlinePanel_4("myPanel")); }
public InlinePanelPage_4() { add(new InlinePanel_4(this,"myPanel")); }
public PanelPage_1() { Panel panel = new SimplePanel_1("myPanel"); add(panel); }
public PanelPage_1() { Panel panel = new SimplePanel_1(this,"myPanel"); add(panel); }
public PanelPage_2() { Panel panel = new SimplePanel_2("myPanel"); add(panel); }
public PanelPage_2() { Panel panel = new SimplePanel_2(this,"myPanel"); add(panel); }
public PanelWithAttributeModifierPage() { Panel panel = new PanelWithAttributeModifier("myPanel"); add(panel); }
public PanelWithAttributeModifierPage() { Panel panel = new PanelWithAttributeModifier(this,"myPanel"); add(panel); }
public AbstractTreePage() { // create a list with sublists List l1 = new ArrayList(); l1.add("test 1.1"); l1.add("test 1.2"); List l2 = new ArrayList(); l2.add("test 2.1"); l2.add("test 2.2"); l2.add("test 2.3"); List l3 = new ArrayList(); l3.add("test 3.1"); l2.add(l3); l2.add("test 2.4"); ...
public AbstractTreePage() { // create a list with sublists List l1 = new ArrayList(); l1.add("test 1.1"); l1.add("test 1.2"); List l2 = new ArrayList(); l2.add("test 2.1"); l2.add("test 2.2"); l2.add("test 2.3"); List l3 = new ArrayList(); l3.add("test 3.1"); l2.add(l3); l2.add("test 2.4"); ...
public BorderedPage() { border = new PageBorder("border"); border.setTransparentResolver(true); super.add(border); }
public BorderedPage() { border = new PageBorder(this,"border"); border.setTransparentResolver(true); super.add(border); }
public TreePageWithBorder() { // create a list with sublists List l1 = new ArrayList(); l1.add("test 1.1"); l1.add("test 1.2"); List l2 = new ArrayList(); l2.add("test 2.1"); l2.add("test 2.2"); l2.add("test 2.3"); List l3 = new ArrayList(); l3.add("test 3.1"); l2.add(l3); l2.add("test 2.4"); ...
public TreePageWithBorder() { // create a list with sublists List l1 = new ArrayList(); l1.add("test 1.1"); l1.add("test 1.2"); List l2 = new ArrayList(); l2.add("test 2.1"); l2.add("test 2.2"); l2.add("test 2.3"); List l3 = new ArrayList(); l3.add("test 3.1"); l2.add(l3); l2.add("test 2.4"); ...
public AbstractTest14WebPage() { // Create border and add it to the page border = new HeaderSectionBorder_2("border"); border.setTransparentResolver(true); super.add(border); }
public AbstractTest14WebPage() { // Create border and add it to the page border = new HeaderSectionBorder_2(this,"border"); border.setTransparentResolver(true); super.add(border); }
public HeaderSectionBasePage_12() { // Create border and add it to the page border = new HeaderSectionBorder("border"); border.setTransparentResolver(true); super.add(border); }
public HeaderSectionBasePage_12() { // Create border and add it to the page border = new HeaderSectionBorder(this,"border"); border.setTransparentResolver(true); super.add(border); }
public HeaderSectionPage_10() { add(new HeaderSectionPanel_3("panel")); }
public HeaderSectionPage_10() { add(new HeaderSectionPanel_3(this,"panel")); }
public HeaderSectionPage_11() { add(new HeaderSectionMyLabel2("label", "mein Label")); }
public HeaderSectionPage_11() { add(new HeaderSectionMyLabel2(this,"label", "mein Label")); }
public HeaderSectionPage_13() { add(new HeaderSectionPanel_4("panel")); }
public HeaderSectionPage_13() { add(new HeaderSectionPanel_4(this,"panel")); }
public HeaderSectionPage_15() { add(new HeaderSectionPanel_5("myPanel")); }
public HeaderSectionPage_15() { add(new HeaderSectionPanel_5(this,"myPanel")); }
public HeaderSectionPage_16() { add(new Label("label", "my label text")); }
public HeaderSectionPage_16() { add(new Label(this,"label", "my label text")); }
public HeaderSectionPage_17() { // for the test: the panel must the same id as the panels header contribution add(new HeaderSectionPanel_17("foo")); }
public HeaderSectionPage_17() { // for the test: the panel must the same id as the panels header contribution add(new HeaderSectionPanel_17(this,"foo")); }
public HeaderSectionPage_19() { // for the test: the panel must the same id as the panels header contribution add(new HeaderSectionPanel_19("foo")); }
public HeaderSectionPage_19() { // for the test: the panel must the same id as the panels header contribution add(new HeaderSectionPanel_19(this,"foo")); }
public HeaderSectionPage_4() { add(new HeaderSectionPanel("panel")); }
public HeaderSectionPage_4() { add(new HeaderSectionPanel(this,"panel")); }
public HeaderSectionPage_5() { add(new HeaderSectionBorder("border")); }
public HeaderSectionPage_5() { add(new HeaderSectionBorder(this,"border")); }
public HeaderSectionPage_7() { add(new HeaderSectionMyLabel("label", "mein Label")); }
public HeaderSectionPage_7() { add(new HeaderSectionMyLabel(this,"label", "mein Label")); }
public HeaderSectionPage_9() { add(new HeaderSectionPanel_2("panel")); }
public HeaderSectionPage_9() { add(new HeaderSectionPanel_2(this,"panel")); }
public HeaderSectionPage_9a() { add(new HeaderSectionPanel_2("panel")); ((MarkupContainer)get("panel")).get("cssHref").setVisible(false); }
public HeaderSectionPage_9a() { add(new HeaderSectionPanel_2(this,"panel")); ((MarkupContainer)get("panel")).get("cssHref").setVisible(false); }
public WicketPanelPage() { add(new WicketPanel("myPanel")); }
public WicketPanelPage() { add(new WicketPanel(this,"myPanel")); }
private void setAction(IAction action, IResource resource) { if (isConnected(resource) != null) { action.setText(DISCONNECT_PROJECT_MENU_TEXT); connected = true; } else { action.setText(CONNECT_PROJECT_MENU_TEXT); connected = false; } action.setEnabled(resource.isAccessible()); }
private void setAction(IAction action, IResource resource) { if (isConnected(resource) != null) { action.setText(DISCONNECT_PROJECT_MENU_TEXT); connected = true; } else { action.setText(CONNECT_PROJECT_MENU_TEXT); connected = false; } action.setEnabled(resource == null ? false : resource.isAccessib...
public void characters(XMLString text, Augmentations augs) throws XNIException { boolean callNextCharacters = true; // REVISIT: [Q] Is there a more efficient way of doing this? // Perhaps if the scanner told us so we don't have to // look at the characters again. ...
public void characters(XMLString text, Augmentations augs) throws XNIException { boolean callNextCharacters = true; // REVISIT: [Q] Is there a more efficient way of doing this? // Perhaps if the scanner told us so we don't have to // look at the characters again. ...
public String[] getNodeNames() { IVEXNode[] nodes = this.getNodes(); String[] names = new String[nodes.length]; for (int i = 0; i < nodes.length; i++) { if (nodes[i] instanceof Text) { names[i] = Validator.PCDATA; } else { names[i] = ((IVEXElement) nodes[i]).getName(); } } return names; }...
public String[] getNodeNames() { IVEXNode[] nodes = this.getNodes(); String[] names = new String[nodes.length]; for (int i = 0; i < nodes.length; i++) { if (nodes[i] instanceof Text) { names[i] = IValidator.PCDATA; } else { names[i] = ((IVEXElement) nodes[i]).getName(); } } return names; ...
{ /* * $Id$ * $Revision$ $Date$ * * ==================================================================== Licensed * under the Apache License, Version 2.0 (the "License"); you may not use this * file except in compliance with the License. You may obtain a copy of the * License at * * http://www.apache.org/li...
{ /* * $Id$ * $Revision$ $Date$ * * ==================================================================== Licensed * under the Apache License, Version 2.0 (the "License"); you may not use this * file except in compliance with the License. You may obtain a copy of the * License at * * http://www.apache.org/li...
public boolean dragDetect (MouseEvent event) { checkWidget (); if (event == null) error (SWT.ERROR_NULL_ARGUMENT); return dragDetect (event.button, event.count, event.stateMask, event.x, event.y); } boolean dragDetect (int button, int count, int stateMask, int x, int y) { if (button != 1 || count != 1) return fals...
public boolean dragDetect (MouseEvent event) { checkWidget (); if (event == null) error (SWT.ERROR_NULL_ARGUMENT); return dragDetect (event.button, event.count, event.stateMask, event.x, event.y); } boolean dragDetect (int button, int count, int stateMask, int x, int y) { if (button != 1 || count != 1) return fals...
private StringType () { super ("String"); register (new BuiltinProperty (this, StringType.INSTANCE, "length", ReflectionHelper.getKnownMethod (CharSequence.class, "length"), null)); }
private StringType () { super ("String"); register (new BuiltinProperty (this, this, "length", ReflectionHelper.getKnownMethod (CharSequence.class, "length"), null)); }
public void render(TreeNode node, Response response) { String content = getNodeValue(node); // escape if necessary if (isEscapeContent()) { content = Strings.escapeMarkup(content).toString(); } response.write("<span class=\"text\""); if (isContentAsTooltip()) { response...
public void render(TreeNode node, Response response) { String content = getNodeValue(node); // escape if necessary if (isEscapeContent()) { content = Strings.escapeMarkup(content).toString(); } response.write("<span"); if (isContentAsTooltip()) { response.write(" title=...
protected Map<Expression<?>, Value> evalOrdering(QueryExpressions exps, ExpressionFactory factory, CriteriaQueryImpl<?> q) { List<Order> orders = q.getOrderList(); MetamodelImpl model = q.getMetamodel(); int ordercount = (orders == null) ? 0 : orders.size(); Map<Expression<...
protected Map<Expression<?>, Value> evalOrdering(QueryExpressions exps, ExpressionFactory factory, CriteriaQueryImpl<?> q) { List<Order> orders = q.getOrderList(); MetamodelImpl model = q.getMetamodel(); int ordercount = (orders == null) ? 0 : orders.size(); Map<Expression<...
public void map(boolean adapt) { if (field.getTypeCode() != JavaTypes.PC || field.isEmbeddedPC()) throw new MetaDataException(_loc.get("not-relation", field)); field.getKeyMapping().getValueInfo().assertNoSchemaComponents (field.getKey(), !adapt); field.getElementMap...
public void map(boolean adapt) { if (field.getTypeCode() != JavaTypes.PC || field.isEmbeddedPC()) throw new MetaDataException(_loc.get("not-relation", field)); field.getKeyMapping().getValueInfo().assertNoSchemaComponents (field.getKey(), !adapt); field.getElementMap...
public void map(boolean adapt) { field.getValueInfo().assertNoSchemaComponents(field, !adapt); field.getKeyMapping().getValueInfo().assertNoSchemaComponents (field.getKey(), !adapt); ValueMapping elem = field.getElementMapping(); if (elem.getTypeCode() != JavaTypes.PC ||...
public void map(boolean adapt) { field.getValueInfo().assertNoSchemaComponents(field, !adapt); field.getKeyMapping().getValueInfo().assertNoSchemaComponents (field.getKey(), !adapt); ValueMapping elem = field.getElementMapping(); if (elem.getTypeCode() != JavaTypes.PC ||...
public void testNoCacheHttpClient() throws Exception{ this.cacheManager.setUseExpires(true); this.cacheManager.testIterationStart(null); assertNull("Should not find entry",getThreadCacheEntry(LOCAL_HOST)); assertFalse("Should not find valid entry",this.cacheManager.inCache(url)); ...
public void testNoCacheHttpClient() throws Exception{ this.cacheManager.setUseExpires(true); this.cacheManager.testIterationStart(null); assertNull("Should not find entry",getThreadCacheEntry(LOCAL_HOST)); assertFalse("Should not find valid entry",this.cacheManager.inCache(url)); ...
public MarkupComponentBorderTestPage() { add(new Label("label",new Model("label")).setComponentBorder(BeforeAndAfterBorder.INSTANCE)); }
public MarkupComponentBorderTestPage() { add(new Label("label",new Model("label")).setComponentBorder(new BeforeAndAfterBorder())); }
private void execute(File file, File directory) throws BuildException { if (!file.exists() || file.isDirectory() || !file.canRead()) { String msg = "Invalid file: " + file; if (failOnError) { throw new BuildException(msg); } log...
private void execute(File file, File directory) throws BuildException { if (!file.exists() || file.isDirectory() || !file.canRead()) { String msg = "Invalid file: " + file; if (failOnError) { throw new BuildException(msg); } log...
public void handleEvent(Event event) { Menu menu = control.getMenu(); if (menu != null && samplePopup) { menu.dispose(); menu = null; } if (menu == null && popupMenuButton.getSelection()) { menu = new Menu(shell, SWT.POP_UP); ...
public void handleEvent(Event event) { Menu menu = control.getMenu(); if (menu != null && samplePopup) { menu.dispose(); menu = null; } if (menu == null && popupMenuButton.getSelection()) { menu = new Menu(shell, SWT.POP_UP | (control.g...
private List<MemberValuePair> getMemberValuePairs(AST ast, Class<? extends Annotation> annotationClass) { List<MemberValuePair> memberValuePairs = new ArrayList<MemberValuePair>(); Method[] declaredMethods = annotationClass.getDeclaredMethods(); for (Method method : decl...
private List<MemberValuePair> getMemberValuePairs(AST ast, Class<? extends Annotation> annotationClass) { List<MemberValuePair> memberValuePairs = new ArrayList<MemberValuePair>(); Method[] declaredMethods = annotationClass.getDeclaredMethods(); for (Method method : decl...
public String getErrorMessage() { return JAXWSCoreMessages.ONEWAY_NO_CHECKED_EXCEPTIONS_ERROR_MESSAGE; }
public String getErrorMessage() { return JAXWSCoreMessages.ONEWAY_NO_CHECKED_EXCEPTIONS; }
public String getErrorMessage() { return JAXWSCoreMessages.ONEWAY_NO_RETURN_VALUE_ERROR_MESSAGE; }
public String getErrorMessage() { return JAXWSCoreMessages.ONEWAY_NO_RETURN_VALUE; }
public String getErrorMessage() { return JAXWSCoreMessages.WEBMETHOD_NO_FINAL_MODIFIER_ALLOWED_MESSAGE; }
public String getErrorMessage() { return JAXWSCoreMessages.WEBMETHOD_NO_FINAL_MODIFIER_ALLOWED; }
public String getErrorMessage() { return JAXWSCoreMessages.WEBMETHOD_ONLY_ON_PUBLIC_METHODS_MESSAGE; }
public String getErrorMessage() { return JAXWSCoreMessages.WEBMETHOD_ONLY_ON_PUBLIC_METHODS; }
public String getErrorMessage() { return JAXWSCoreMessages.WEBMETHOD_NO_STATIC_MODIFIER_ALLOWED_MESSAGE; }
public String getErrorMessage() { return JAXWSCoreMessages.WEBMETHOD_NO_STATIC_MODIFIER_ALLOWED; }
protected void addItems(Iterator items) { if (items.hasNext()) { final int cols = getColumns(); int row = 0; do { // Build a row Item rowItem = newRowItem(newChildId(), row); RepeatingView rowView = new RepeatingView(rowItem, "cols"); // Populate the row for (int index = 0; inde...
protected void addItems(Iterator items) { if (items.hasNext()) { final int cols = getColumns(); int row = 0; do { // Build a row Item rowItem = newRowItem(newChildId(), row); new RepeatingView(rowItem, "cols"); // Populate the row for (int index = 0; index < cols; index++) {...
private void localRegisterService(RemoteServiceRegistrationImpl registration) { final Object localServiceRegistrationValue = registration.getProperty(org.eclipse.ecf.remoteservice.Constants.AUTOREGISTER_REMOTE_PROXY); if (localServiceRegistrationValue != null) { final BundleContext context = Activator.getDefaul...
private void localRegisterService(RemoteServiceRegistrationImpl registration) { final Object localServiceRegistrationValue = registration.getProperty(org.eclipse.ecf.remoteservice.Constants.AUTOREGISTER_REMOTE_PROXY); if (localServiceRegistrationValue != null) { final BundleContext context = Activator.getDefaul...
package org.apache.ant.antcore.modelparser; /* * The Apache Software License, Version 1.1 * * Copyright (c) 2002 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 conditions * ...
package org.apache.ant.antcore.modelparser; /* * The Apache Software License, Version 1.1 * * Copyright (c) 2002 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 conditions * ...
public BuildEvent(Task task) { super(task, MESSAGE); }
public BuildEvent(Task task) { super(task.getContext().getModelElement(), MESSAGE); }
public void run() { for (int i = 0; i < 10; i++) { String text = fDocument.get(); String newText = ">"; text = text.concat(newText); fDocument.set(text); IModelChange change = new DocumentChangeMessage(i + 150, 1, newText); IModelChangeMessage[] changes = initiator.registerLocalChange(change); ...
public void run() { for (int i = 0; i < 10; i++) { String text = fDocument.get(); String newText = ">"; text = text.concat(newText); fDocument.set(text); IModelChange change = new DocumentChangeMessage(i + 150, newText.length(), newText); IModelChangeMessage[] changes = initiator.registerLocalCha...
public void execute() throws TaskException { getContext().log( m_level, m_message ); }
public void execute() throws TaskException { LogLevel.log( getContext(), m_level, m_message ); }
public int getSpacing () { checkWidget (); return OS.gtk_container_get_border_width (handle); } void relayout () { ExpandItem [] items = getItems (); int yScroll = 0; if (scrolledHandle != 0) { int adjustmentHandle = OS.gtk_scrolled_window_get_vadjustment (scrolledHandle); GtkAdjustment adjustment = new GtkAd...
public int getSpacing () { checkWidget (); return OS.gtk_container_get_border_width (handle); } void relayout () { ExpandItem [] items = getItems (); int yScroll = 0; if (scrolledHandle != 0) { int /*long*/ adjustmentHandle = OS.gtk_scrolled_window_get_vadjustment (scrolledHandle); GtkAdjustment adjustment = ...
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); } int /*long*/ rendererGetSizeProc (int /*long*/ ...
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); } int /*long*/ rendererGetSizeProc (int /*long*/ ...
public void removeTreeListener(TreeListener listener) { checkWidget (); if (listener == null) error (SWT.ERROR_NULL_ARGUMENT); if (eventTable == null) return; eventTable.unhook (SWT.Expand, listener); eventTable.unhook (SWT.Collapse, listener); } int /*long*/ rendererGetSizeProc (int /*long*/ cell, int /*long*/ w...
public void removeTreeListener(TreeListener listener) { checkWidget (); if (listener == null) error (SWT.ERROR_NULL_ARGUMENT); if (eventTable == null) return; eventTable.unhook (SWT.Expand, listener); eventTable.unhook (SWT.Collapse, listener); } int /*long*/ rendererGetSizeProc (int /*long*/ cell, int /*long*/ w...
* become public and the original method above can be deprecated. */ static Program[] getPrograms(Display display) { int desktop = getDesktop(display); Hashtable mimeInfo = null; switch (desktop) { case DESKTOP_GIO: return gio_getPrograms(display); case DESKTOP_GNOME_24: break; case DESKTOP_GNOME: mimeI...
* become public and the original method above can be deprecated. */ static Program[] getPrograms(Display display) { int desktop = getDesktop(display); Hashtable mimeInfo = null; switch (desktop) { case DESKTOP_GIO: return gio_getPrograms(display); case DESKTOP_GNOME_24: break; case DESKTOP_GNOME: mimeI...
public void testFileResourceWithFilter() { executeTarget("testFileResourceWithFilter"); File file1 = new File(getProjectDir(), getProject().getProperty("to.dir")+"/fileNR.txt"); assertTrue(file1.exists()); try { String file1Content = FILE_UTILS.readFully(new FileReader(fi...
public void testFileResourceWithFilter() { executeTarget("testFileResourceWithFilter"); File file1 = new File(getProjectDir(), getProject().getProperty("to.dir")+"/fileNR.txt"); assertTrue(file1.exists()); try { String file1Content = FileUtils.readFully(new FileReader(fil...
public void testNonPageComponent() { Component c = new DummyComponent("hello", application) { }; IStringResourceLoader loader = new ComponentStringResourceLoader(); try { loader.loadStringResource(c, "test.string", Locale.getDefault(), null); Assert.fail("InvalidResourceSpecificationException should...
public void testNonPageComponent() { Component c = new DummyComponent("hello", application) { }; IStringResourceLoader loader = new ComponentStringResourceLoader(); try { loader.loadStringResource(c, "test.string", Locale.getDefault(), null); Assert.fail("IllegalStateException should be thrown"); ...
private void binaryCat(ResourceCollection c) { log("Binary concatenation of " + c.size() + " resources to " + destinationFile); FileOutputStream out = null; InputStream in = null; try { try { out = new FileOutputStream(destinationFile); ...
private void binaryCat(ResourceCollection c) { log("Binary concatenation of " + c.size() + " resources to " + destinationFile); FileOutputStream out = null; InputStream in = null; try { try { out = new FileOutputStream(destinationFile, append);...
public void handleEvent(IContainerEvent event) { Activator activator = Activator.getDefault(); if (activator == null) return; final IContainerManager containerManager = activator.getContainerManager(); if (containerManager == null) return; IContainer container = containerManager.getContainer(ev...
public void handleEvent(IContainerEvent event) { Activator activator = Activator.getDefault(); if (activator == null) return; final IContainerManager containerManager = activator.getContainerManager(); if (containerManager == null) return; IContainer container = containerManager.getContainer(ev...
public static Logger getLoggerForClass() { String className = (new Exception()).getStackTrace()[1].getClassName(); return Hierarchy.getDefaultHierarchy().getLoggerFor(removePrefix(className)); }
public static Logger getLoggerForClass() { String className = new Exception().getStackTrace()[1].getClassName(); return Hierarchy.getDefaultHierarchy().getLoggerFor(removePrefix(className)); }
protected // L26 void goo() // L28 { System.out.println(i); } } class NoStaticInitBlock { // L35 } aspect CheckLineNumbers { // L39 declare warning : execution(* TestSourceLines.*(..)) : "method execution"; declare warning : execution(TestSourceLines.new(..)) : "cons execution"; declare w...
protected // L26 void goo() // L28 { System.out.println(i); } } class NoStaticInitBlock { // L35 } aspect CheckLineNumbers { // L39 declare warning : execution(* TestSourceLines.*(..)) : "method execution"; declare warning : execution(TestSourceLines.new(..)) : "cons execution"; declare w...
public Transfer[] getTransfer() { return transferAgents; } void onDispose () { if (control == null) return; COM.RevokeDragDrop(control.handle); if (controlListener != null) control.removeListener(SWT.Dispose, controlListener); controlListener = null; control.setData(DROPTARGETID, null); transferAgents = n...
public Transfer[] getTransfer() { return transferAgents; } void onDispose () { if (control == null) return; COM.RevokeDragDrop(control.handle); if (controlListener != null) control.removeListener(SWT.Dispose, controlListener); controlListener = null; control.setData(DROPTARGETID, null); transferAgents = n...
protected void handleStartElement(QName element, XMLAttributes attributes, boolean isEmpty) throws XNIException { // add new namespace context fNamespaceSupport.pushContext(); // search for new namespace bindings int length = attributes.getLeng...
protected void handleStartElement(QName element, XMLAttributes attributes, boolean isEmpty) throws XNIException { // add new namespace context fNamespaceSupport.pushContext(); // search for new namespace bindings int length = attributes.getLeng...
private final void respond(final Response response) { try { final OutputStream out = response.getOutputStream(); try { Streams.copy(resourceStream.getInputStream(), out); } finally { resourceStream.close(); out.flush(); } } catch(SocketException se) { String message = se....
private final void respond(final Response response) { try { final OutputStream out = response.getOutputStream(); try { Streams.copy(resourceStream.getInputStream(), out); } finally { resourceStream.close(); out.flush(); } } catch(SocketException se) { String message = se....
public void beforeWriteAndClose(FileHandle impl) { String fn = impl.getTargetFile().getAbsolutePath(); boolean isXML = isXmlFile(fn); URI u = URI.createFileURI(fn); if (log.isInfoEnabled()) { if (isXML) log.info(Msg.create("Beautifying ").uri(u)); else log.info(Msg.create("Ignoring ").uri(u).txt...
public void beforeWriteAndClose(FileHandle impl) { String fn = impl.getAbsolutePath(); boolean isXML = isXmlFile(fn); URI u = URI.createFileURI(fn); if (log.isInfoEnabled()) { if (isXML) log.info(Msg.create("Beautifying ").uri(u)); else log.info(Msg.create("Ignoring ").uri(u).txt( " since ...
public int getRowCount () { checkWidget(); /* On GTK, toolbars cannot wrap */ return 1; } int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ eventPtr) { if (!hasFocus ()) return 0; int /*long*/ result = super.gtk_key_press_event (widget, eventPtr); if (result != 0) return result; ToolItem [] i...
public int getRowCount () { checkWidget(); /* On GTK, toolbars cannot wrap */ return 1; } int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ eventPtr) { if (!hasFocus ()) return 0; int /*long*/ result = super.gtk_key_press_event (widget, eventPtr); if (result != 0) return result; ToolItem [] i...