rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
for (Iterator i = floats.iterator(); i.hasNext(); ) { BoxOffset boxOffset = (BoxOffset)i.next();
for (Iterator i = floats.iterator(); i.hasNext();) { BoxOffset boxOffset = (BoxOffset) i.next();
private void update(int tx, int ty, List floats) { int startX = tx; int startY = ty; for (Iterator i = floats.iterator(); i.hasNext(); ) { BoxOffset boxOffset = (BoxOffset)i.next(); Box box = boxOffset.getBox(); box.absX = startX - boxOffset....
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e3cac2c461a550620d3eeb2bb2de9ef766f83a59/FloatManager.java/buggy/src/java/org/xhtmlrenderer/layout/FloatManager.java
private void update(int tx, int ty, List floats) { int startX = tx; int startY = ty; for (Iterator i = floats.iterator(); i.hasNext(); ) { BoxOffset boxOffset = (BoxOffset)i.next(); Box box = boxOffset.getBox(); box.absX = startX - boxOffset....
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e3cac2c461a550620d3eeb2bb2de9ef766f83a59/FloatManager.java/buggy/src/java/org/xhtmlrenderer/layout/FloatManager.java
box.getPersistentBFC().getFloatManager().updateAbsoluteLocations( box.absX + box.x,
box.getPersistentBFC().getFloatManager().updateAbsoluteLocations(box.absX + box.x,
private void update(int tx, int ty, List floats) { int startX = tx; int startY = ty; for (Iterator i = floats.iterator(); i.hasNext(); ) { BoxOffset boxOffset = (BoxOffset)i.next(); Box box = boxOffset.getBox(); box.absX = startX - boxOffset....
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e3cac2c461a550620d3eeb2bb2de9ef766f83a59/FloatManager.java/buggy/src/java/org/xhtmlrenderer/layout/FloatManager.java
System.out.println("img started as = " + img); img = img.getScaledInstance(100, 100, Image.SCALE_FAST); System.out.println("img now = " + img);
img = GraphicsUtil.cleanImage(img);
public Image getImage(String uri) { java.io.InputStream is = null; Image img = null; uri = resolveURI(uri); if (imageCache != null) { SoftReference ref = (SoftReference) imageCache.get(uri); if (ref != null) { img = (Image) ref.get(); } ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/80cc2692a845c0f2174e63bf6a973c279ba11598/NaiveUserAgent.java/clean/src/java/org/xhtmlrenderer/swing/NaiveUserAgent.java
System.out.println("generated image = " + img);
public Image getImage(String uri) { java.io.InputStream is = null; Image img = null; uri = resolveURI(uri); if (imageCache != null) { SoftReference ref = (SoftReference) imageCache.get(uri); if (ref != null) { img = (Image) ref.get(); } ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/80cc2692a845c0f2174e63bf6a973c279ba11598/NaiveUserAgent.java/clean/src/java/org/xhtmlrenderer/swing/NaiveUserAgent.java
decorator.crashDisable();
public void handleException(Throwable exception) { IStatus status = StatusUtil.newStatus(IStatus.ERROR,exception.getMessage(),exception); WorkbenchPlugin.log("Exception in Decorator",status); //$NON-NLS-1$ }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/37e3aa2d1992899ef1944d4167565eee95ea0fcd/LightweightDecoratorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/LightweightDecoratorManager.java
subMenu.add(new Separator()); subMenu.add(maximizePartAction);
private void addKeyboardShortcuts(MenuManager menu) { MenuManager subMenu = new MenuManager(WorkbenchMessages.getString("Workbench.shortcuts")); //$NON-NLS-1$ menu.add(subMenu); subMenu.add(showPartPaneMenuAction); subMenu.add(showViewMenuAction); subMenu.add(new Separator()); subMenu.add(activateEditorAction); ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/dc733380e0fa1d593f1250c243aee6341fab4d9e/WorkbenchActionBuilder.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchActionBuilder.java
maximizePartAction = new MaximizePartAction(window); maximizePartAction.setActionDefinitionId(maximizePartActionDefId); getWindow().registerGlobalAction(maximizePartAction);
private void makeActions() { // The actions in jface do not have menu vs. enable, vs. disable vs. color // There are actions in here being passed the workbench - problem // Get services for notification. IPartService partService = getWindow().getPartService(); // Many actions need the workbench. IWorkbench work...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/dc733380e0fa1d593f1250c243aee6341fab4d9e/WorkbenchActionBuilder.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchActionBuilder.java
} else { if (desc.isOpenExternal() && path != null) { return PlatformUI.getWorkbench().getEditorRegistry()
} if (desc.isOpenExternal() && path != null) { return PlatformUI.getWorkbench().getEditorRegistry()
ImageDescriptor findImage(EditorDescriptor desc, IPath path) { if (desc == null) { // @issue what should be the default image? return ImageDescriptor.getMissingImageDescriptor(); } else { if (desc.isOpenExternal() && path != null) { return PlatformUI.get...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/36630bf97edd2a70ee72775c0c55c17d0dbad1c8/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
} else { return desc.getImageDescriptor(); }
ImageDescriptor findImage(EditorDescriptor desc, IPath path) { if (desc == null) { // @issue what should be the default image? return ImageDescriptor.getMissingImageDescriptor(); } else { if (desc.isOpenExternal() && path != null) { return PlatformUI.get...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/36630bf97edd2a70ee72775c0c55c17d0dbad1c8/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
return desc.getImageDescriptor();
ImageDescriptor findImage(EditorDescriptor desc, IPath path) { if (desc == null) { // @issue what should be the default image? return ImageDescriptor.getMissingImageDescriptor(); } else { if (desc.isOpenExternal() && path != null) { return PlatformUI.get...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/36630bf97edd2a70ee72775c0c55c17d0dbad1c8/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
final ArrayList errorWorkbooks = new ArrayList(1);
public IStatus restoreState(IMemento memento) { // Restore the editor area workbooks layout/relationship final MultiStatus result = new MultiStatus( PlatformUI.PLUGIN_ID, IStatus.OK, WorkbenchMessages.EditorManager_problemsRestoringEditors, null); f...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/36630bf97edd2a70ee72775c0c55c17d0dbad1c8/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
_log.debug("Shutting down JCR");
public void run() { // Disconnect AIM try { AIMConnector.disconnect(); } catch (Exception e) { } // Disconnect ICQ try { ICQConnector.disconnect(); } catch (Exception e) { } // Disconnect MSN try { MSNConnector.disconnect(); } catch (Exception e) { } // Disconnect YM try { YMConnector.disconne...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/4b690db9863241b8d8f7fda7559a0e68b4034255/ShutdownHook.java/clean/portal-ejb/src/com/liferay/portal/events/ShutdownHook.java
public void handleListChange(IObservableList source, ListDiff diff) {
public void handleListChange(ListChangeEvent event) {
public void handleListChange(IObservableList source, ListDiff diff) { if (!updating) { fireListChange(diff); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/DetailObservableList.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/masterdetail/DetailObservableList.java
fireListChange(diff);
fireListChange(event.diff);
public void handleListChange(IObservableList source, ListDiff diff) { if (!updating) { fireListChange(diff); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/DetailObservableList.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/masterdetail/DetailObservableList.java
public void handleValueChange(IObservableValue source, ValueDiff diff) {
public void handleValueChange(ValueChangeEvent event) {
public void handleValueChange(IObservableValue source, ValueDiff diff) { List oldList = new ArrayList(wrappedList); updateInnerObservableValue(outerObservableValue); fireListChange(Diffs.computeListDiff(oldList, wrappedList)); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/DetailObservableList.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/masterdetail/DetailObservableList.java
public void reIndex() { if (_log.isInfoEnabled()) { _log.info("Re-indexing Lucene started"); } if (ServerDetector.isOrion()) { // Wait 30 seconds because Orion 2.0.7 initiates LuceneServlet // before it initiates MainServlet. try { Thread.sleep(Time.SECOND * 30); } catch (InterruptedException ie) { ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/fa825e278fff56c5878f6bf4ebfe8e8c47fa5e6f/LuceneIndexer.java/clean/portal-ejb/src/com/liferay/portal/lucene/LuceneIndexer.java
Thread.sleep(Time.SECOND * 30);
Thread.sleep(Time.SECOND * 10);
public void reIndex() { if (_log.isInfoEnabled()) { _log.info("Re-indexing Lucene started"); } if (ServerDetector.isOrion()) { // Wait 30 seconds because Orion 2.0.7 initiates LuceneServlet // before it initiates MainServlet. try { Thread.sleep(Time.SECOND * 30); } catch (InterruptedException ie) { ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/fa825e278fff56c5878f6bf4ebfe8e8c47fa5e6f/LuceneIndexer.java/clean/portal-ejb/src/com/liferay/portal/lucene/LuceneIndexer.java
long start = System.currentTimeMillis();
long start1 = System.currentTimeMillis();
public void reIndex() { if (_log.isInfoEnabled()) { _log.info("Re-indexing Lucene started"); } if (ServerDetector.isOrion()) { // Wait 30 seconds because Orion 2.0.7 initiates LuceneServlet // before it initiates MainServlet. try { Thread.sleep(Time.SECOND * 30); } catch (InterruptedException ie) { ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/fa825e278fff56c5878f6bf4ebfe8e8c47fa5e6f/LuceneIndexer.java/clean/portal-ejb/src/com/liferay/portal/lucene/LuceneIndexer.java
"Re-indexing with " + className + " completed");
"Re-indexing with " + className + " completed in " + ((end2 - start2) / Time.SECOND) + " seconds");
public void reIndex() { if (_log.isInfoEnabled()) { _log.info("Re-indexing Lucene started"); } if (ServerDetector.isOrion()) { // Wait 30 seconds because Orion 2.0.7 initiates LuceneServlet // before it initiates MainServlet. try { Thread.sleep(Time.SECOND * 30); } catch (InterruptedException ie) { ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/fa825e278fff56c5878f6bf4ebfe8e8c47fa5e6f/LuceneIndexer.java/clean/portal-ejb/src/com/liferay/portal/lucene/LuceneIndexer.java
long end = System.currentTimeMillis();
long end1 = System.currentTimeMillis();
public void reIndex() { if (_log.isInfoEnabled()) { _log.info("Re-indexing Lucene started"); } if (ServerDetector.isOrion()) { // Wait 30 seconds because Orion 2.0.7 initiates LuceneServlet // before it initiates MainServlet. try { Thread.sleep(Time.SECOND * 30); } catch (InterruptedException ie) { ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/fa825e278fff56c5878f6bf4ebfe8e8c47fa5e6f/LuceneIndexer.java/clean/portal-ejb/src/com/liferay/portal/lucene/LuceneIndexer.java
((end - start) / Time.SECOND) + " seconds");
((end1 - start1) / Time.SECOND) + " seconds");
public void reIndex() { if (_log.isInfoEnabled()) { _log.info("Re-indexing Lucene started"); } if (ServerDetector.isOrion()) { // Wait 30 seconds because Orion 2.0.7 initiates LuceneServlet // before it initiates MainServlet. try { Thread.sleep(Time.SECOND * 30); } catch (InterruptedException ie) { ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/fa825e278fff56c5878f6bf4ebfe8e8c47fa5e6f/LuceneIndexer.java/clean/portal-ejb/src/com/liferay/portal/lucene/LuceneIndexer.java
this.layer = null;
public void detach() { detachChildren(); if (this.layer != null) { this.layer.detach(); } if (getParent() != null) { getParent().removeChild(this); } setParent(null); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/365d5c0efcf4a646ee68af110b7ac1ac42b7efa4/Box.java/clean/src/java/org/xhtmlrenderer/render/Box.java
java.lang.String groupId, java.lang.String userId, java.lang.String name, java.lang.String primKey, boolean portletActions, boolean addCommunityPermissions, boolean addGuestPermissions)
java.lang.String groupId, java.lang.String name, boolean portletActions)
public void addResources(java.lang.String companyId, java.lang.String groupId, java.lang.String userId, java.lang.String name, java.lang.String primKey, boolean portletActions, boolean addCommunityPermissions, boolean addGuestPermissions) throws com.liferay.portal.PortalException, com.liferay.portal.SystemExce...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/e1cab037a8cdaa75dc717f74b6f3b5d95492c7f6/ResourceLocalServiceEJBImpl.java/buggy/portal-ejb/src/com/liferay/portal/service/ejb/ResourceLocalServiceEJBImpl.java
getService().addResources(companyId, groupId, userId, name, primKey, portletActions, addCommunityPermissions, addGuestPermissions);
getService().addResources(companyId, groupId, name, portletActions);
public void addResources(java.lang.String companyId, java.lang.String groupId, java.lang.String userId, java.lang.String name, java.lang.String primKey, boolean portletActions, boolean addCommunityPermissions, boolean addGuestPermissions) throws com.liferay.portal.PortalException, com.liferay.portal.SystemExce...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/e1cab037a8cdaa75dc717f74b6f3b5d95492c7f6/ResourceLocalServiceEJBImpl.java/buggy/portal-ejb/src/com/liferay/portal/service/ejb/ResourceLocalServiceEJBImpl.java
public CompiledReflectionCallback(Ruby runtime, String className, String methodName, int arity) {
public CompiledReflectionCallback(Ruby runtime, String className, String methodName, int arity, ClassLoader classLoader) {
public CompiledReflectionCallback(Ruby runtime, String className, String methodName, int arity) { this.runtime = runtime; this.className = className; this.methodName = methodName; this.arity = arity; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/af1920a5c29079063127d9968487d5e5fbf75031/CompiledReflectionCallback.java/buggy/src/org/jruby/runtime/CompiledReflectionCallback.java
this.classLoader = classLoader;
public CompiledReflectionCallback(Ruby runtime, String className, String methodName, int arity) { this.runtime = runtime; this.className = className; this.methodName = methodName; this.arity = arity; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/af1920a5c29079063127d9968487d5e5fbf75031/CompiledReflectionCallback.java/buggy/src/org/jruby/runtime/CompiledReflectionCallback.java
if (Validator.isNotNull(_servletMapping) && strutsAction.startsWith(_servletMapping)) { strutsAction = strutsAction.substring( _servletMapping.length() - 1, strutsAction.length());
if (strutsAction.startsWith("c/")) { strutsAction = strutsAction.substring(1);
public String encodeURL(String path) { if (_log.isDebugEnabled()) { _log.debug("Path " + path); _log.debug("Context path " + _contextPath); _log.debug("Servlet mapping " + _servletMapping); } String encodedURL = path; if (path.startsWith("//") || path.startsWith(_contextPath + _servletMapping)) { // Stru...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/ffb4f8f71442985f502f826179645384f0603a6e/StrutsURLEncoder.java/buggy/portal-ejb/src/com/liferay/portal/struts/StrutsURLEncoder.java
else if (strutsAction.startsWith("/c/")) { strutsAction = strutsAction.substring(2); }
public String encodeURL(String path) { if (_log.isDebugEnabled()) { _log.debug("Path " + path); _log.debug("Context path " + _contextPath); _log.debug("Servlet mapping " + _servletMapping); } String encodedURL = path; if (path.startsWith("//") || path.startsWith(_contextPath + _servletMapping)) { // Stru...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/ffb4f8f71442985f502f826179645384f0603a6e/StrutsURLEncoder.java/buggy/portal-ejb/src/com/liferay/portal/struts/StrutsURLEncoder.java
public void handleChange(IObservable source) {
public void handleChange(ChangeEvent event) {
public void handleChange(IObservable source) { count++; this.source = source; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableTest.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/provisional/observable/AbstractObservableTest.java
this.source = source;
this.source = event.getObservable();
public void handleChange(IObservable source) { count++; this.source = source; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableTest.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/provisional/observable/AbstractObservableTest.java
public void handleStale(IObservable source) {
public void handleStale(StaleEvent event) {
public void handleStale(IObservable source) { count++; this.source = source; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableTest.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/provisional/observable/AbstractObservableTest.java
this.source = source;
this.source = event.getObservable();
public void handleStale(IObservable source) { count++; this.source = source; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableTest.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/provisional/observable/AbstractObservableTest.java
tabItem.setToolTipText(getLabelToolTipText(part));
String toolTipText = part.getTitleToolTip(); if (!toolTipText.equals(Util.ZERO_LENGTH_STRING)) { tabItem.setToolTipText(toolTipText); }
protected void initTab(CTabItem tabItem, IPresentablePart part) { tabItem.setText(getLabelText(part, true, (getTabFolder().getStyle() & SWT.MULTI) == 0)); tabItem.setImage(getLabelImage(part)); tabItem.setToolTipText(getLabelToolTipText(part)); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/77b02fd9f4d4de72edc72a194457f51bf2d82659/EditorPresentation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/EditorPresentation.java
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e49477e83a2d13760047b03599a9af2f7d7f4b7b/BoxRendering.java/buggy/src/java/org/xhtmlrenderer/render/BoxRendering.java
yoff += block.top;
CalculatedStyle style = c.getCurrentStyle(); int tp = (int) style.getFloatPropertyProportionalHeight(CSSName.TOP, c.getBlockFormattingContext().getHeight(), c.getCtx()); yoff += tp;
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e49477e83a2d13760047b03599a9af2f7d7f4b7b/BoxRendering.java/buggy/src/java/org/xhtmlrenderer/render/BoxRendering.java
public void handleEvent(final Event e) { // If focus is leaving an important widget or the field's // shell is deactivating if (e.type == SWT.FocusOut) { scrollbarClicked = false; /* * Ignore this event if it's only happening because focus is * moving between the popup shells, their contro...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
public void run() { if (isValid()) { if (scrollbarClicked || hasFocus() || (infoPopup != null && infoPopup .hasFocus())) { return; } // Workaround a problem on X and Mac, whereby at this // point, the focus control is not known. This can happ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
public void handleEvent(Event e) { if (!isValid()) { return; } // Traverse events will be blocked when the popup is open, but // we will interpret their characters as navigation within the // popup. if (e.type == SWT.Traverse) { e.detail = SWT.TRAVERSE_NONE; e.doit = true; } else { ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
ContentProposalPopup(String infoText) { // IMPORTANT: Use of SWT.ON_TOP is critical here for ensuring // that the target control retains focus on Mac and Linux. Without // it, the focus will disappear, keystrokes will not go to the popup, // and the popup closer will wrongly close the popup. // On platfo...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
super(control.getShell(), SWT.RESIZE | SWT.ON_TOP, false, false, false, false, null, infoText);
super(control.getShell(), SWT.RESIZE | SWT.ON_TOP, false, false, false, false, null, infoText);
ContentProposalPopup(String infoText) { // IMPORTANT: Use of SWT.ON_TOP is critical here for ensuring // that the target control retains focus on Mac and Linux. Without // it, the focus will disappear, keystrokes will not go to the popup, // and the popup closer will wrongly close the popup. // On platfo...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
proposalAccepted(getSelectedProposal());
IContentProposal proposal = getSelectedProposal();
private void acceptCurrentProposal() { proposalAccepted(getSelectedProposal()); close(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
proposalAccepted(proposal);
private void acceptCurrentProposal() { proposalAccepted(getSelectedProposal()); close(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
recordCursorPosition();
private void asyncRecomputeProposals(final String filterText) { if (isValid()) { control.getDisplay().asyncExec(new Runnable() { public void run() { recomputeProposals(filterText); } }); } else { recomputeProposals(filterText); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
recordCursorPosition();
public void run() { recomputeProposals(filterText); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
if (proposalProvider == null) {
if (proposalProvider == null || !isValid()) {
private IContentProposal[] getProposals(String filterString) { if (proposalProvider == null) { return null; } int position = getControlContentAdapter().getCursorPosition( getControl()); String contents = getControlContentAdapter().getControlContents( getControl()); IContentProposal[] proposals = ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
int position = getControlContentAdapter().getCursorPosition( getControl());
int position = insertionPos; if (position == -1) { position = getControlContentAdapter().getCursorPosition( getControl()); }
private IContentProposal[] getProposals(String filterString) { if (proposalProvider == null) { return null; } int position = getControlContentAdapter().getCursorPosition( getControl()); String contents = getControlContentAdapter().getControlContents( getControl()); IContentProposal[] proposals = ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
private void addControlListener(Control control) { if (DEBUG) { System.out .println("ContentProposalListener#installControlListener()"); //$NON-NLS-1$ } if (controlListener != null) { return; } controlListener = new Listener() { public void handleEvent(Event e) { if (!isEnabled) { return; } ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
if (autoActivationDelay > 0) { Runnable runnable = new Runnable() { public void run() { try { Thread .sleep(autoActivationDelay); } catch (InterruptedException e) {
if (autoActivationDelay > 0) { Runnable runnable = new Runnable() { public void run() { try { Thread.sleep(autoActivationDelay); } catch (InterruptedException e) { } if (!isValid()) { return; } getControl().getDisplay().syncExec( new Runnable() { public void run() { openProposalPopup(); } }); } }; Thread t = new Threa...
private void addControlListener(Control control) { if (DEBUG) { System.out .println("ContentProposalListener#installControlListener()"); //$NON-NLS-1$ } if (controlListener != null) { return; } controlListener = new Listener() { public void handleEvent(Event e) { if (!isEnabled) { return; } ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
if (!isValid()) { return; } getControl().getDisplay().syncExec( new Runnable() { public void run() { openProposalPopup(); } }); } }; Thread t = new Thread(runnable); t.start(); } else { openProposalPopup(); }
}); }
private void addControlListener(Control control) { if (DEBUG) { System.out .println("ContentProposalListener#installControlListener()"); //$NON-NLS-1$ } if (controlListener != null) { return; } controlListener = new Listener() { public void handleEvent(Event e) { if (!isEnabled) { return; } ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
public void handleEvent(Event e) { if (!isEnabled) { return; } switch (e.type) { case SWT.Traverse: case SWT.KeyDown: if (DEBUG) { dump("Traverse and KeyDown received by adapter", e); //$NON-NLS-1$ } // If the popup is open, it gets first shot at the // keystroke and should se...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
if (autoActivationDelay > 0) { Runnable runnable = new Runnable() { public void run() { try { Thread .sleep(autoActivationDelay); } catch (InterruptedException e) {
if (autoActivationDelay > 0) { Runnable runnable = new Runnable() { public void run() { try { Thread.sleep(autoActivationDelay); } catch (InterruptedException e) { } if (!isValid()) { return; } getControl().getDisplay().syncExec( new Runnable() { public void run() { openProposalPopup(); } }); } }; Thread t = new Threa...
public void handleEvent(Event e) { if (!isEnabled) { return; } switch (e.type) { case SWT.Traverse: case SWT.KeyDown: if (DEBUG) { dump("Traverse and KeyDown received by adapter", e); //$NON-NLS-1$ } // If the popup is open, it gets first shot at the // keystroke and should se...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
if (!isValid()) { return; } getControl().getDisplay().syncExec( new Runnable() { public void run() { openProposalPopup(); } }); } }; Thread t = new Thread(runnable); t.start(); } else { openProposalPopup(); }
}); }
public void handleEvent(Event e) { if (!isEnabled) { return; } switch (e.type) { case SWT.Traverse: case SWT.KeyDown: if (DEBUG) { dump("Traverse and KeyDown received by adapter", e); //$NON-NLS-1$ } // If the popup is open, it gets first shot at the // keystroke and should se...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
try { Thread .sleep(autoActivationDelay); } catch (InterruptedException e) { } if (!isValid()) { return; } getControl().getDisplay().syncExec( new Runnable() { public void run() { openProposalPopup(); } });
try { Thread.sleep(autoActivationDelay); } catch (InterruptedException e) {
public void run() { try { Thread .sleep(autoActivationDelay); } catch (InterruptedException e) { } if (!isValid()) { return; } getControl().getDisplay().syncExec( new Runnable() { public voi...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
if (!isValid()) { return; } getControl().getDisplay().syncExec( new Runnable() { public void run() { openProposalPopup(); } }); }
public void run() { try { Thread .sleep(autoActivationDelay); } catch (InterruptedException e) { } if (!isValid()) { return; } getControl().getDisplay().syncExec( new Runnable() { public voi...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
openProposalPopup(); }
openProposalPopup(); }
public void run() { openProposalPopup(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
if (insertionPos != -1) { controlContentAdapter.setCursorPosition(control, insertionPos); }
private void insertControlContent(String text, int cursorPosition) { if (isValid()) { controlContentAdapter.insertControlContents(control, text, cursorPosition); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
if (popup == null) { popup = new ContentProposalPopup(null); popup.open(); popup.getShell().addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent event) { popup = null; } });
if (isValid()) { if (popup == null) { recordCursorPosition(); popup = new ContentProposalPopup(null); popup.open(); popup.getShell().addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent event) { popup = null; } }); }
protected void openProposalPopup() { if (popup == null) { popup = new ContentProposalPopup(null); popup.open(); popup.getShell().addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent event) { popup = null; } }); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
EntityColumn tempCol = tempEntity.getColumnByMappingTable(col.getMappingTable());
private void _createPersistence(Entity entity) throws IOException { List pkList = entity.getPKList(); List columnList = entity.getColumnList(); List finderList = entity.getFinderList(); String pkClassName = entity.getPKClassName(); String pkVarName = entity.getPKVarName(); StringBuffer sb = new StringBuffer(); ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/5131f2a6018784d83d566a6e657e02bb5cd77488/ServiceBuilder.java/clean/portal-ejb/src/com/liferay/portal/tools/ServiceBuilder.java
private void _createPersistenceUtil(Entity entity) throws IOException { XClass xClass = _getXClass(_outputPath + "/service/persistence/" + entity.getName() + "Persistence.java"); List methods = xClass.getMethods(); StringBuffer sb = new StringBuffer(); // Package sb.append("package " + _packagePath + ".service.pe...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/5131f2a6018784d83d566a6e657e02bb5cd77488/ServiceBuilder.java/clean/portal-ejb/src/com/liferay/portal/tools/ServiceBuilder.java
if (!AdminUtil.getEmailUserAddedEnabled(user.getCompanyId())) {
if (!PrefsPropsUtil.getBoolean( user.getCompanyId(), PropsUtil.ADMIN_EMAIL_USER_ADDED_ENABLED)) {
protected void sendEmail(User user, String password) throws PortalException, SystemException { if (!AdminUtil.getEmailUserAddedEnabled(user.getCompanyId())) { return; } try { String companyId = user.getCompanyId(); Company company = CompanyUtil.findByPrimaryKey(companyId); String fromName = AdminUtil.getEm...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/UserLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portal/service/impl/UserLocalServiceImpl.java
String fromName = AdminUtil.getEmailFromName(companyId); String fromAddress = AdminUtil.getEmailFromAddress(companyId);
String fromName = PrefsPropsUtil.getString( companyId, PropsUtil.ADMIN_EMAIL_FROM_NAME); String fromAddress = PrefsPropsUtil.getString( companyId, PropsUtil.ADMIN_EMAIL_FROM_ADDRESS);
protected void sendEmail(User user, String password) throws PortalException, SystemException { if (!AdminUtil.getEmailUserAddedEnabled(user.getCompanyId())) { return; } try { String companyId = user.getCompanyId(); Company company = CompanyUtil.findByPrimaryKey(companyId); String fromName = AdminUtil.getEm...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/UserLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portal/service/impl/UserLocalServiceImpl.java
String subject = AdminUtil.getEmailUserAddedSubject(companyId); String body = AdminUtil.getEmailUserAddedBody(companyId);
String subject = PrefsPropsUtil.getString( companyId, PropsUtil.ADMIN_EMAIL_USER_ADDED_SUBJECT); String body = PrefsPropsUtil.getString( companyId, PropsUtil.ADMIN_EMAIL_USER_ADDED_BODY);
protected void sendEmail(User user, String password) throws PortalException, SystemException { if (!AdminUtil.getEmailUserAddedEnabled(user.getCompanyId())) { return; } try { String companyId = user.getCompanyId(); Company company = CompanyUtil.findByPrimaryKey(companyId); String fromName = AdminUtil.getEm...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/UserLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portal/service/impl/UserLocalServiceImpl.java
if (!AdminUtil.getEmailPasswordSentEnabled(companyId)) {
if (!PrefsPropsUtil.getBoolean( companyId, PropsUtil.ADMIN_EMAIL_PASSWORD_SENT_ENABLED)) {
public void sendPassword( String companyId, String emailAddress, String remoteAddr, String remoteHost, String userAgent) throws PortalException, SystemException { if (!AdminUtil.getEmailPasswordSentEnabled(companyId)) { return; } emailAddress = emailAddress.trim().toLowerCase(); if (!Validator.isEmailAddres...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/UserLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portal/service/impl/UserLocalServiceImpl.java
String fromName = AdminUtil.getEmailFromName(companyId); String fromAddress = AdminUtil.getEmailFromAddress(companyId);
String fromName = PrefsPropsUtil.getString( companyId, PropsUtil.ADMIN_EMAIL_FROM_NAME); String fromAddress = PrefsPropsUtil.getString( companyId, PropsUtil.ADMIN_EMAIL_FROM_ADDRESS);
public void sendPassword( String companyId, String emailAddress, String remoteAddr, String remoteHost, String userAgent) throws PortalException, SystemException { if (!AdminUtil.getEmailPasswordSentEnabled(companyId)) { return; } emailAddress = emailAddress.trim().toLowerCase(); if (!Validator.isEmailAddres...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/UserLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portal/service/impl/UserLocalServiceImpl.java
String subject = AdminUtil.getEmailPasswordSentSubject(companyId); String body = AdminUtil.getEmailPasswordSentBody(companyId);
String subject = PrefsPropsUtil.getString( companyId, PropsUtil.ADMIN_EMAIL_PASSWORD_SENT_SUBJECT); String body = PrefsPropsUtil.getString( companyId, PropsUtil.ADMIN_EMAIL_PASSWORD_SENT_BODY);
public void sendPassword( String companyId, String emailAddress, String remoteAddr, String remoteHost, String userAgent) throws PortalException, SystemException { if (!AdminUtil.getEmailPasswordSentEnabled(companyId)) { return; } emailAddress = emailAddress.trim().toLowerCase(); if (!Validator.isEmailAddres...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/UserLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portal/service/impl/UserLocalServiceImpl.java
String[] reservedEmailAddresses = AdminUtil.getReservedEmailAddresses(user.getCompanyId());
String[] reservedEmailAddresses = PrefsPropsUtil.getStringArray( user.getCompanyId(), PropsUtil.ADMIN_RESERVED_EMAIL_ADDRESSES);
protected void validate( String userId, String emailAddress, String firstName, String lastName, String smsSn) throws PortalException, SystemException { User user = UserUtil.findByPrimaryKey(userId); if (!Validator.isEmailAddress(emailAddress)) { throw new UserEmailAddressException(); } else if (!User.isDefa...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/UserLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portal/service/impl/UserLocalServiceImpl.java
public void updateLabel(ViewerLabel label, TreePath elementPath) { ILabelProvider[] labelProviders = contentService.findRelevantLabelProviders(elementPath.getLastSegment()); for (int i = 0; i < labelProviders.length && (!label.hasNewText() && label.getText() != null); i++) { ILabelProvider labelProvider = labelProvider...
public void updateLabel(ViewerLabel label, TreePath elementPath) { Set contentExtensions = contentService.findContentExtensionsWithPossibleChild(elementPath.getLastSegment()); for (Iterator itr = contentExtensions.iterator(); itr.hasNext() && (!label.hasNewText() && label.getText() != null); ) { findUpdateLabel((Navi...
public void updateLabel(ViewerLabel label, TreePath elementPath) { ILabelProvider[] labelProviders = contentService.findRelevantLabelProviders(elementPath.getLastSegment()); for (int i = 0; i < labelProviders.length && (!label.hasNewText() && label.getText() != null); i++) { ILabelProvider labelProvider = labelPro...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/760f9bf6c2e4d21502cb533a888c5fe64e58bdf8/NavigatorContentServiceLabelProvider.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentServiceLabelProvider.java
folder.requestMissingFilesForAutodownload();
getController().getFolderRepository().getFileRequestor() .requestMissingFilesForAutodownload(folder);
public void actionPerformed(ActionEvent e) { if (e.getSource() == doNotAutoDownloadJCheckBoxMenuItem) { boolean add = doNotAutoDownloadJCheckBoxMenuItem.isSelected(); Object target = getUIController().getInformationQuarter() .getDisplayTarget(); ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/6ffb3bbd4a8353a779a19a63f49334a547200d27/DirectoryPanel.java/clean/src/main/de/dal33t/powerfolder/ui/folder/DirectoryPanel.java
folder.requestMissingFilesForAutodownload();
getController().getFolderRepository().getFileRequestor() .requestMissingFilesForAutodownload(folder);
public void actionPerformed(ActionEvent e) { if (e.getSource() == doNotAutoDownloadJCheckBoxMenuItem) { boolean add = doNotAutoDownloadJCheckBoxMenuItem.isSelected(); Object target = getUIController().getInformationQuarter() .getDisplayTarget(); ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/6ffb3bbd4a8353a779a19a63f49334a547200d27/DirectoryPanel.java/clean/src/main/de/dal33t/powerfolder/ui/folder/DirectoryPanel.java
url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) {
url = this.getClass().getClassLoader().getResource("images/process-stop.png"); stop = new AbstractAction("Stop", new ImageIcon(url)) {
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9a4ed9a276ff3906598aa1c6aa55aeb8a2745a6e/BrowserActions.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserActions.java
try { FileDialog fd = new FileDialog(root.frame, "Open a local file", FileDialog.LOAD); fd.show(); if (fd.getFile() != null) { String url = new File(fd.getDirectory(), fd.getFile()).toURI().toURL().toString(); root.panel.loadPage(url); } } catch (Exception ex) { logger.info("error:" + ex); }
openAndShowFile();
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9a4ed9a276ff3906598aa1c6aa55aeb8a2745a6e/BrowserActions.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserActions.java
url = this.getClass().getClassLoader().getResource("images/StepBack24.gif"); backward = new AbstractAction("", new ImageIcon(url)) {
url = this.getClass().getClassLoader().getResource("images/go-previous.png"); backward = new EmptyAction("Back", "Go back one page", new ImageIcon(url)) {
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9a4ed9a276ff3906598aa1c6aa55aeb8a2745a6e/BrowserActions.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserActions.java
url = this.getClass().getClassLoader().getResource("images/StepForward24.gif"); forward = new AbstractAction("", new ImageIcon(url)) {
url = this.getClass().getClassLoader().getResource("images/go-next.png"); forward = new EmptyAction("Forward", "Go forward one page", new ImageIcon(url)) {
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9a4ed9a276ff3906598aa1c6aa55aeb8a2745a6e/BrowserActions.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserActions.java
url = this.getClass().getClassLoader().getResource("images/Refresh24.gif"); refresh = new EmptyAction("", new ImageIcon(url)) {
url = this.getClass().getClassLoader().getResource("images/view-refresh.png"); refresh = new EmptyAction("Refresh", "Refresh page", new ImageIcon(url)) {
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9a4ed9a276ff3906598aa1c6aa55aeb8a2745a6e/BrowserActions.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserActions.java
url = this.getClass().getClassLoader().getResource("images/Refresh24.gif"); reload = new EmptyAction("", new ImageIcon(url)) {
url = this.getClass().getClassLoader().getResource("images/view-refresh.png"); reload = new EmptyAction("Reload", "Reload page", new ImageIcon(url)) {
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9a4ed9a276ff3906598aa1c6aa55aeb8a2745a6e/BrowserActions.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserActions.java
print_preview = new EmptyAction("Print Preview") { public void actionPerformed(ActionEvent evt) { try { SharedContext sharedContext = root.panel.view.getSharedContext(); if (sharedContext.isPrint()) { sharedContext.setPrint(false); sharedContext.setInteractive(true); } else { sharedContext.setPrint(true); sharedContext...
url = this.getClass().getClassLoader().getResource("images/document-print-preview.png"); print_preview = new EmptyAction("Print Preview", "Print preview", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { togglePrintPreview();
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9a4ed9a276ff3906598aa1c6aa55aeb8a2745a6e/BrowserActions.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserActions.java
} catch (Exception ex) { Uu.p(ex); } } }; url = this.getClass().getClassLoader().getResource("images/media-playback-start_16x16.png"); goToPage = new EmptyAction("Go", "Go to URL in address bar", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { try { String url_text = root.panel.url.getText(); root...
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9a4ed9a276ff3906598aa1c6aa55aeb8a2745a6e/BrowserActions.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserActions.java
try { FileDialog fd = new FileDialog(root.frame, "Open a local file", FileDialog.LOAD); fd.show(); if (fd.getFile() != null) { String url = new File(fd.getDirectory(), fd.getFile()).toURI().toURL().toString(); root.panel.loadPage(url); } } catch (Exception ex) { logger.info("error:" + ex); }
openAndShowFile();
public void actionPerformed(ActionEvent evt) { try { FileDialog fd = new FileDialog(root.frame, "Open a local file", FileDialog.LOAD); fd.show(); if (fd.getFile() != null) { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9a4ed9a276ff3906598aa1c6aa55aeb8a2745a6e/BrowserActions.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserActions.java
try { SharedContext sharedContext = root.panel.view.getSharedContext(); if (sharedContext.isPrint()) { sharedContext.setPrint(false); sharedContext.setInteractive(true); } else { sharedContext.setPrint(true); sharedContext.setInteractive(false); } print_preview.putValue(Action.NAME, ! sharedContext.isPrint() ? "Print P...
togglePrintPreview();
public void actionPerformed(ActionEvent evt) { try { SharedContext sharedContext = root.panel.view.getSharedContext(); if (sharedContext.isPrint()) { sharedContext.setPrint(false); sharedContext.setInteractive...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9a4ed9a276ff3906598aa1c6aa55aeb8a2745a6e/BrowserActions.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserActions.java
if (ServerDetector.isJBoss()) {
if (ServerDetector.isGeronimo()) { sd._serverId = "geronimo"; } else if (ServerDetector.isJBoss()) {
public static String getServerId() { ServerDetector sd = _instance; if (sd._serverId == null) { if (ServerDetector.isJBoss()) { sd._serverId = "jboss"; } else if (ServerDetector.isJOnAS()) { sd._serverId = "jonas"; } else if (ServerDetector.isOC4J()) { sd._serverId = "oc4j"; } else if (ServerD...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/77ad56c2d203d37cc9380442fd698d4668b7b93d/ServerDetector.java/clean/portal-shared/src/com/liferay/portal/shared/util/ServerDetector.java
protected Font resolveFont(Context c, String font, float size, String weight, String style) { // normalize the font name if(font.equals("serif")) { font = "Serif"; } if(font.equals("sans-serif")) { font = "SansSerif"; } if(font.equals("monospace")) { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/fe5c934825d93c8c5454289e3527c5eaf7245a2e/FontResolverTest.java/clean/src/java/org/joshy/html/css/FontResolverTest.java
public static IRubyObject[] setupArgs(ThreadContext context, EvaluateVisitor visitor, INode node) {
public static IRubyObject[] setupArgs(Ruby runtime, ThreadContext context, EvaluateVisitor visitor, INode node) {
public static IRubyObject[] setupArgs(ThreadContext context, EvaluateVisitor visitor, INode node) { if (node == null) { return IRubyObject.NULL_ARRAY; } final ISourcePosition position = context.getPosition(); if (node instanceof ArrayNode) { final int size = ((Array...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/ArgsUtil.java/buggy/src/org/jruby/ast/util/ArgsUtil.java
if (next instanceof ExpandArrayNode) {
if (next instanceof SplatNode) {
public static IRubyObject[] setupArgs(ThreadContext context, EvaluateVisitor visitor, INode node) { if (node == null) { return IRubyObject.NULL_ARRAY; } final ISourcePosition position = context.getPosition(); if (node instanceof ArrayNode) { final int size = ((Array...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/ArgsUtil.java/buggy/src/org/jruby/ast/util/ArgsUtil.java
IRubyObject args = visitor.eval(node);
public static IRubyObject[] setupArgs(ThreadContext context, EvaluateVisitor visitor, INode node) { if (node == null) { return IRubyObject.NULL_ARRAY; } final ISourcePosition position = context.getPosition(); if (node instanceof ArrayNode) { final int size = ((Array...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/ArgsUtil.java/buggy/src/org/jruby/ast/util/ArgsUtil.java
if (args instanceof RubyArray) { return ((RubyArray) args).toJavaArray(); } else { return new IRubyObject[] { args }; }
return arrayify(runtime, visitor.eval(node));
public static IRubyObject[] setupArgs(ThreadContext context, EvaluateVisitor visitor, INode node) { if (node == null) { return IRubyObject.NULL_ARRAY; } final ISourcePosition position = context.getPosition(); if (node instanceof ArrayNode) { final int size = ((Array...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/ArgsUtil.java/buggy/src/org/jruby/ast/util/ArgsUtil.java
return Util.equals(this.fExpressions, that.fExpressions);
return equals(this.fExpressions, that.fExpressions);
public final boolean equals(final Object object) { if (object instanceof AndExpression) { final AndExpression that = (AndExpression) object; return Util.equals(this.fExpressions, that.fExpressions); } return false; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ba8772da3d063410cc9112f7f53da28a447f2704/AndExpression.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/expressions/AndExpression.java
protected void infectBy(IRubyObject obj) {
protected IRubyObject infectBy(IRubyObject obj) {
protected void infectBy(IRubyObject obj) { setTaint(isTaint() || obj.isTaint()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c3988bcedc9973ff7f8c24ac6423ecb89f3ada35/RubyObject.java/clean/src/org/jruby/RubyObject.java
return this;
protected void infectBy(IRubyObject obj) { setTaint(isTaint() || obj.isTaint()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c3988bcedc9973ff7f8c24ac6423ecb89f3ada35/RubyObject.java/clean/src/org/jruby/RubyObject.java
return getMetaClass().instance_methods(new IRubyObject[] { getRuntime().getTrue()});
return getMetaClass().public_instance_methods(new IRubyObject[] { getRuntime().getTrue()});
public IRubyObject methods() { return getMetaClass().instance_methods(new IRubyObject[] { getRuntime().getTrue()}); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c3988bcedc9973ff7f8c24ac6423ecb89f3ada35/RubyObject.java/clean/src/org/jruby/RubyObject.java
};
}
public void resetPropertyValue(Object property) { if (P_ID_POSTALCODE.equals(property)) { setPostalCode(POSTALCODE_DEFAULT); return; } if (P_ID_CITY.equals(property)) { setCity(CITY_DEFAULT); return; } if (P_ID_PROVINCE.equals(property)) { setProvince(PROVINCE_DEFAULT); return; }; if (P_ID_STREET.equals(property)...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6ff0f3ba3ba56da6a696db1ab393a687c1918ea7/Address.java/clean/examples/org.eclipse.ui.examples.propertysheet/Eclipse UI Examples PropertySheet/org/eclipse/ui/examples/propertysheet/Address.java
if (e.getNodeName().equalsIgnoreCase("a") && !e.getAttribute("href").equals("")) {
if (e.getNodeName().equalsIgnoreCase("a") && e.hasAttribute("href")) {
public String getLinkUri(org.w3c.dom.Element e) { String href = null; if (e.getNodeName().equalsIgnoreCase("a") && !e.getAttribute("href").equals("")) { href = e.getAttribute("href"); } return href; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/XhtmlNamespaceHandler.java/clean/src/java/org/xhtmlrenderer/simple/extend/XhtmlNamespaceHandler.java
if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.background_color == null) { CalculatedStyle style = box.getContent().getStyle(); if (style.isIdentifier(CSSName.BACKGROUND_COLOR)) { String value = style.getStringProperty("background-color"); if (value.equals("transparent")) { box.background_color = new Colo...
if (box.background_color == null) { CalculatedStyle style = c.getCurrentStyle(); if (style.isIdentifier(CSSName.BACKGROUND_COLOR)) { String value = style.getStringProperty("background-color"); if (value.equals("transparent")) { box.background_color = new Color(0, 0, 0, 0); return box.background_color;
public static Color getBackgroundColor(Context c, Box box) { if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.background_color == null) { CalculatedStyle style = box.getContent().getStyle(); if (style.isIdentifier(CSSName.BACKGROUND_COLOR)) { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e65470765b9501b251ba6faf1734b383bb9b1578/DefaultLayout.java/clean/src/java/org/xhtmlrenderer/layout/DefaultLayout.java
box.background_color = style.getBackgroundColor();
public static Color getBackgroundColor(Context c, Box box) { if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.background_color == null) { CalculatedStyle style = box.getContent().getStyle(); if (style.isIdentifier(CSSName.BACKGROUND_COLOR)) { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e65470765b9501b251ba6faf1734b383bb9b1578/DefaultLayout.java/clean/src/java/org/xhtmlrenderer/layout/DefaultLayout.java
public static Color getBackgroundColor(Context c, Box box) { if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.background_color == null) { CalculatedStyle style = box.getContent().getStyle(); if (style.isIdentifier(CSSName.BACKGROUND_COLOR)) { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e65470765b9501b251ba6faf1734b383bb9b1578/DefaultLayout.java/clean/src/java/org/xhtmlrenderer/layout/DefaultLayout.java
if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.margin == null) { box.margin = box.getContent().getStyle().getMarginWidth(); }
if (box.margin == null) { box.margin = c.getCurrentStyle().getMarginWidth();
public static Border getMargin(Context c, Box box) { if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.margin == null) { box.margin = box.getContent().getStyle().getMarginWidth(); } } return box.margin; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e65470765b9501b251ba6faf1734b383bb9b1578/DefaultLayout.java/clean/src/java/org/xhtmlrenderer/layout/DefaultLayout.java
public static Border getMargin(Context c, Box box) { if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.margin == null) { box.margin = box.getContent().getStyle().getMarginWidth(); } } return box.margin; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e65470765b9501b251ba6faf1734b383bb9b1578/DefaultLayout.java/clean/src/java/org/xhtmlrenderer/layout/DefaultLayout.java
if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.padding == null) { box.padding = box.getContent().getStyle().getPaddingWidth(); }
if (box.padding == null) { box.padding = c.getCurrentStyle().getPaddingWidth();
public static Border getPadding(Context c, Box box) { if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.padding == null) { box.padding = box.getContent().getStyle().getPaddingWidth(); } } return box.padding; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e65470765b9501b251ba6faf1734b383bb9b1578/DefaultLayout.java/clean/src/java/org/xhtmlrenderer/layout/DefaultLayout.java
public static Border getPadding(Context c, Box box) { if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.padding == null) { box.padding = box.getContent().getStyle().getPaddingWidth(); } } return box.padding; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e65470765b9501b251ba6faf1734b383bb9b1578/DefaultLayout.java/clean/src/java/org/xhtmlrenderer/layout/DefaultLayout.java
box.setBorderColor(ctx.css.getStyle(box.getRealElement()).getBorderColor());
box.border_color = ctx.css.getStyle(box.getRealElement()).getBorderColor();
public void restyle(Context ctx, Box box) { box.color = ctx.css.getStyle(box.getRealElement()).getColor(); box.setBorderColor(ctx.css.getStyle(box.getRealElement()).getBorderColor()); box.border_style = ctx.css.getStyle(box.getRealElement()).getStringProperty("border-top-style"); box.bac...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e65470765b9501b251ba6faf1734b383bb9b1578/DefaultLayout.java/clean/src/java/org/xhtmlrenderer/layout/DefaultLayout.java