issue_id
int64
2.04k
425k
title
stringlengths
9
251
body
stringlengths
4
32.8k
status
stringclasses
6 values
after_fix_sha
stringlengths
7
7
project_name
stringclasses
6 values
repo_url
stringclasses
6 values
repo_name
stringclasses
6 values
language
stringclasses
1 value
issue_url
null
before_fix_sha
null
pull_url
null
commit_datetime
timestamp[us, tz=UTC]
report_datetime
timestamp[us, tz=UTC]
updated_file
stringlengths
23
187
chunk_content
stringlengths
1
22k
13,507
Bug 13507 LinkedPositionUI has a reference to SWT.COLOR_RED
LinkedPositionUI(ITextViewer, LinkedPositionManager) - org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI has a reference to SWT.COLOR_RED which will be unreadble if the user sets their background colour to Red. We will be adding a getErrorText colour to JFaceColours in build >20020411. You may want to use that.
resolved fixed
0ceae1a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T12:28:28Z
2002-04-11T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
leave(UNINSTALL | COMMIT); } /* * @see PaintListener#paintControl(PaintEvent) */ public void paintControl(PaintEvent event) { if (fFramePosition == null) return; IRegion region= fViewer.getVisibleRegion(); if (!includes(region, fFramePosition)) { leave(UNINSTALL | COMMIT | DOCUMENT_CHANGED); return; } int offset= fFramePosition.getOffset() - region.getOffset(); int length= fFramePosition.getLength(); StyledText text= fViewer.getTextWidget(); Point minLocation= getMinimumLocation(text, offset, length); Point maxLocation= getMaximumLocation(text, offset, length); int x1= minLocation.x; int x2= minLocation.x + maxLocation.x - minLocation.x - 1; int y= minLocation.y + text.getLineHeight() - 1; GC gc= event.gc; gc.setForeground(fFrameColor);
13,507
Bug 13507 LinkedPositionUI has a reference to SWT.COLOR_RED
LinkedPositionUI(ITextViewer, LinkedPositionManager) - org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI has a reference to SWT.COLOR_RED which will be unreadble if the user sets their background colour to Red. We will be adding a getErrorText colour to JFaceColours in build >20020411. You may want to use that.
resolved fixed
0ceae1a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T12:28:28Z
2002-04-11T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
gc.drawLine(x1, y, x2, y); } private static Point getMinimumLocation(StyledText text, int offset, int length) { Point minLocation= new Point(Integer.MAX_VALUE, Integer.MAX_VALUE); for (int i= 0; i <= length; i++) { Point location= text.getLocationAtOffset(offset + i); if (location.x < minLocation.x) minLocation.x= location.x; if (location.y < minLocation.y) minLocation.y= location.y; } return minLocation; } private static Point getMaximumLocation(StyledText text, int offset, int length) { Point maxLocation= new Point(Integer.MIN_VALUE, Integer.MIN_VALUE); for (int i= 0; i <= length; i++) { Point location= text.getLocationAtOffset(offset + i); if (location.x > maxLocation.x) maxLocation.x= location.x; if (location.y > maxLocation.y) maxLocation.y= location.y; } return maxLocation; } private void redrawRegion() { IRegion region= fViewer.getVisibleRegion();
13,507
Bug 13507 LinkedPositionUI has a reference to SWT.COLOR_RED
LinkedPositionUI(ITextViewer, LinkedPositionManager) - org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI has a reference to SWT.COLOR_RED which will be unreadble if the user sets their background colour to Red. We will be adding a getErrorText colour to JFaceColours in build >20020411. You may want to use that.
resolved fixed
0ceae1a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T12:28:28Z
2002-04-11T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
if (!includes(region, fFramePosition)) { leave(UNINSTALL | COMMIT | DOCUMENT_CHANGED); return; } int offset= fFramePosition.getOffset() - region.getOffset(); int length= fFramePosition.getLength(); fViewer.getTextWidget().redrawRange(offset, length, true); } private void selectRegion() { IRegion region= fViewer.getVisibleRegion(); if (!includes(region, fFramePosition)) { leave(UNINSTALL | COMMIT | DOCUMENT_CHANGED); return; } int start= fFramePosition.getOffset() - region.getOffset(); int end= fFramePosition.getLength() + start; fViewer.getTextWidget().setSelection(start, end); } private void updateCaret() { IRegion region= fViewer.getVisibleRegion(); if (!includes(region, fFramePosition)) { leave(UNINSTALL | COMMIT | DOCUMENT_CHANGED); return; } int offset= fFramePosition.getOffset() + fCaretOffset - region.getOffset(); if ((offset >= 0) && (offset <= region.getLength())) fViewer.getTextWidget().setCaretOffset(offset); }
13,507
Bug 13507 LinkedPositionUI has a reference to SWT.COLOR_RED
LinkedPositionUI(ITextViewer, LinkedPositionManager) - org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI has a reference to SWT.COLOR_RED which will be unreadble if the user sets their background colour to Red. We will be adding a getErrorText colour to JFaceColours in build >20020411. You may want to use that.
resolved fixed
0ceae1a
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T12:28:28Z
2002-04-11T13:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
/* * @see ModifyListener#modifyText(ModifyEvent) */ public void modifyText(ModifyEvent e) { redrawRegion(); updateCaret(); } private static void openErrorDialog(Shell shell, Exception e) { MessageDialog.openError(shell, LinkedPositionMessages.getString("LinkedPositionUI.error.title"), e.getMessage()); } /* * @see ITextInputListener#inputDocumentAboutToBeChanged(IDocument, IDocument) */ public void inputDocumentAboutToBeChanged(IDocument oldInput, IDocument newInput) { int flags= UNINSTALL | COMMIT | (oldInput.equals(newInput) ? 0 : DOCUMENT_CHANGED); leave(flags); } /* * @see ITextInputListener#inputDocumentChanged(IDocument, IDocument) */ public void inputDocumentChanged(IDocument oldInput, IDocument newInput) { } private static boolean includes(IRegion region, Position position) { return position.getOffset() >= region.getOffset() && position.getOffset() + position.getLength() <= region.getOffset() + region.getLength(); } }
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dnd/DelegatingDragAdapter.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.dnd; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.eclipse.swt.dnd.DragSource; import org.eclipse.swt.dnd.DragSourceEvent; import org.eclipse.swt.dnd.DragSourceListener; import org.eclipse.swt.dnd.Transfer; import org.eclipse.swt.dnd.TransferData; import org.eclipse.jface.util.Assert; /** * A delegating drag adapter negotiates between a set of <code>TransferDragSourceListener</code>s * On <code>dragStart</code> the adapter determines the listener to be used for any further * <code>drag*</code> callback. */ public class DelegatingDragAdapter implements DragSourceListener {
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dnd/DelegatingDragAdapter.java
private TransferDragSourceListener[] fPossibleListeners; private List fActiveListeners; private TransferDragSourceListener fFinishListener; public DelegatingDragAdapter(TransferDragSourceListener[] listeners) { Assert.isNotNull(listeners); fPossibleListeners= listeners; } /* non Java-doc * @see DragSourceListener */ public void dragStart(DragSourceEvent event) {
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dnd/DelegatingDragAdapter.java
fFinishListener= null; boolean saveDoit= event.doit; Object saveData= event.data; boolean doIt= false; List transfers= new ArrayList(fPossibleListeners.length); fActiveListeners= new ArrayList(fPossibleListeners.length); for (int i= 0; i < fPossibleListeners.length; i++) { TransferDragSourceListener listener= fPossibleListeners[i]; event.doit= saveDoit; listener.dragStart(event); if (event.doit) { transfers.add(listener.getTransfer()); fActiveListeners.add(listener); } doIt= doIt || event.doit; } if (doIt) { ((DragSource)event.widget).setTransfer((Transfer[])transfers.toArray(new Transfer[transfers.size()])); } event.data= saveData; event.doit= doIt; } /* non Java-doc * @see DragSourceListener */ public void dragSetData(DragSourceEvent event) { fFinishListener= getListener(event.dataType); if (fFinishListener != null) fFinishListener.dragSetData(event);
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dnd/DelegatingDragAdapter.java
} /* non Java-doc * @see DragSourceListener */ public void dragFinished(DragSourceEvent event) { if (fFinishListener != null) { fFinishListener.dragFinished(event); } else { fFinishListener= getListener(event.dataType); if (fFinishListener != null) fFinishListener.dragFinished(event); } } private TransferDragSourceListener getListener(TransferData type) { if (type == null) return null; for (Iterator iter= fActiveListeners.iterator(); iter.hasNext();) { TransferDragSourceListener listener= (TransferDragSourceListener)iter.next(); if (listener.getTransfer().isSupportedType(type)) { return listener; } } return null; } }
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
/******************************************************************************* * Copyright (c) 2000, 2002 International Business Machines Corp. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v0.5 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v05.html * * Contributors: * IBM Corporation - initial implementation ******************************************************************************/ package org.eclipse.jdt.internal.ui.packageview; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.eclipse.swt.SWT; import org.eclipse.swt.dnd.DND; import org.eclipse.swt.dnd.DragSource; import org.eclipse.swt.dnd.FileTransfer; import org.eclipse.swt.dnd.Transfer; import org.eclipse.swt.events.DisposeEvent; import org.eclipse.swt.events.DisposeListener; import org.eclipse.swt.events.KeyAdapter;
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
import org.eclipse.swt.events.KeyEvent; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Menu; import org.eclipse.swt.widgets.ScrollBar; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Tree; import org.eclipse.jface.action.IMenuListener; import org.eclipse.jface.action.IMenuManager; import org.eclipse.jface.action.IStatusLineManager; import org.eclipse.jface.action.MenuManager; import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.jface.util.IPropertyChangeListener; import org.eclipse.jface.util.PropertyChangeEvent; import org.eclipse.jface.viewers.DecoratingLabelProvider; import org.eclipse.jface.viewers.DoubleClickEvent; import org.eclipse.jface.viewers.IDoubleClickListener; import org.eclipse.jface.viewers.ILabelDecorator; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.ISelectionChangedListener; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.ITreeViewerListener; import org.eclipse.jface.viewers.SelectionChangedEvent; import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.jface.viewers.TreeExpansionEvent; import org.eclipse.jface.viewers.TreeViewer; import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IResource;
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
import org.eclipse.core.resources.IWorkspace; import org.eclipse.core.runtime.IPath; import org.eclipse.ui.IActionBars; import org.eclipse.ui.IEditorInput; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.IFileEditorInput; import org.eclipse.ui.IMemento; import org.eclipse.ui.IPartListener; import org.eclipse.ui.IViewPart; import org.eclipse.ui.IViewSite; import org.eclipse.ui.IWorkbenchPage; import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.IWorkbenchPartSite; import org.eclipse.ui.IWorkingSet; import org.eclipse.ui.PartInitException; import org.eclipse.ui.PlatformUI; import org.eclipse.ui.ResourceWorkingSetFilter; import org.eclipse.ui.actions.ActionContext; import org.eclipse.ui.part.ISetSelectionTarget; import org.eclipse.ui.part.ResourceTransfer; import org.eclipse.ui.part.ViewPart; import org.eclipse.jdt.core.IClassFile; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IJavaModel; import org.eclipse.jdt.core.IMember; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.IWorkingCopy; import org.eclipse.jdt.core.JavaCore; import org.eclipse.jdt.core.JavaModelException;
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
import org.eclipse.jdt.internal.corext.util.JavaModelUtil; import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.dnd.DelegatingDragAdapter; import org.eclipse.jdt.internal.ui.dnd.DelegatingDropAdapter; import org.eclipse.jdt.internal.ui.dnd.LocalSelectionTransfer; import org.eclipse.jdt.internal.ui.dnd.ResourceTransferDragAdapter; import org.eclipse.jdt.internal.ui.dnd.TransferDragSourceListener; import org.eclipse.jdt.internal.ui.dnd.TransferDropTargetListener; import org.eclipse.jdt.internal.ui.javaeditor.EditorUtility; import org.eclipse.jdt.internal.ui.javaeditor.IClassFileEditorInput; import org.eclipse.jdt.internal.ui.javaeditor.JarEntryEditorInput; import org.eclipse.jdt.internal.ui.preferences.JavaBasePreferencePage; import org.eclipse.jdt.internal.ui.util.JavaUIHelp; import org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProvider; import org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabels; import org.eclipse.jdt.internal.ui.viewsupport.ProblemTreeViewer; import org.eclipse.jdt.internal.ui.viewsupport.StandardJavaUILabelProvider; import org.eclipse.jdt.internal.ui.viewsupport.StatusBarUpdater; import org.eclipse.jdt.ui.IPackagesViewPart; import org.eclipse.jdt.ui.JavaElementContentProvider; import org.eclipse.jdt.ui.JavaElementSorter; import org.eclipse.jdt.ui.JavaUI; /** * The ViewPart for the ProjectExplorer. It listens to part activation events. * When selection linking with the editor is enabled the view selection tracks * the active editor page. Similarly when a resource is selected in the packages * view the corresponding editor is activated. */ public class PackageExplorerPart extends ViewPart implements ISetSelectionTarget, IMenuListener, IPackagesViewPart, IPropertyChangeListener {
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
public final static String VIEW_ID= JavaUI.ID_PACKAGES; static final String TAG_SELECTION= "selection"; static final String TAG_EXPANDED= "expanded"; static final String TAG_ELEMENT= "element"; static final String TAG_PATH= "path"; static final String TAG_VERTICAL_POSITION= "verticalPosition"; static final String TAG_HORIZONTAL_POSITION= "horizontalPosition"; static final String TAG_FILTERS = "filters"; static final String TAG_FILTER = "filter"; static final String TAG_SHOWLIBRARIES = "showLibraries"; static final String TAG_SHOWBINARIES = "showBinaries"; private JavaElementPatternFilter fPatternFilter= new JavaElementPatternFilter(); private LibraryFilter fLibraryFilter= new LibraryFilter(); private ResourceWorkingSetFilter fWorkingSetFilter; private PackageExplorerActionGroup fActionSet; private ProblemTreeViewer fViewer; private StandardJavaUILabelProvider fJavaElementLabelProvider;
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
private Menu fContextMenu; private IMemento fMemento; private ISelectionChangedListener fSelectionListener; private IPartListener fPartListener= new IPartListener() { public void partActivated(IWorkbenchPart part) { if (part instanceof IEditorPart) editorActivated((IEditorPart) part); } public void partBroughtToTop(IWorkbenchPart part) { } public void partClosed(IWorkbenchPart part) { } public void partDeactivated(IWorkbenchPart part) { } public void partOpened(IWorkbenchPart part) { } }; private ITreeViewerListener fExpansionListener= new ITreeViewerListener() { public void treeCollapsed(TreeExpansionEvent event) { } public void treeExpanded(TreeExpansionEvent event) { Object element= event.getElement(); if (element instanceof ICompilationUnit || element instanceof IClassFile) expandMainType(element);
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
} }; public PackageExplorerPart() { } /* (non-Javadoc) * Method declared on IViewPart. */ public void init(IViewSite site, IMemento memento) throws PartInitException { super.init(site, memento); fMemento= memento; } /** * Initializes the default preferences */ public static void initDefaults(IPreferenceStore store) { store.setDefault(TAG_SHOWLIBRARIES, true); store.setDefault(TAG_SHOWBINARIES, true); } /** * Returns the package explorer part of the active perspective. If * there isn't any package explorer part <code>null</code> is returned. */ public static PackageExplorerPart getFromActivePerspective() { IViewPart view= JavaPlugin.getActivePage().findView(VIEW_ID); if (view instanceof PackageExplorerPart) return (PackageExplorerPart)view; return null; }
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
/** * Makes the package explorer part visible in the active perspective. If there * isn't a package explorer part registered <code>null</code> is returned. * Otherwise the opened view part is returned. */ public static PackageExplorerPart openInActivePerspective() { try { return (PackageExplorerPart)JavaPlugin.getActivePage().showView(VIEW_ID); } catch(PartInitException pe) { return null; } } public void dispose() { if (fViewer != null) JavaPlugin.getDefault().getProblemMarkerManager().removeListener(fViewer); if (fContextMenu != null && !fContextMenu.isDisposed()) fContextMenu.dispose(); getSite().getPage().removePartListener(fPartListener); JavaPlugin.getDefault().getPreferenceStore().removePropertyChangeListener(this); if (fViewer != null) fViewer.removeTreeListener(fExpansionListener); super.dispose(); } /** * Implementation of IWorkbenchPart.createPartControl(Composite) */ public void createPartControl(Composite parent) { fViewer= new ProblemTreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
boolean showCUChildren= JavaBasePreferencePage.showCompilationUnitChildren(); fViewer.setContentProvider(new JavaElementContentProvider(showCUChildren, false)); JavaPlugin.getDefault().getProblemMarkerManager().addListener(fViewer); JavaPlugin.getDefault().getPreferenceStore().addPropertyChangeListener(this); fJavaElementLabelProvider= new StandardJavaUILabelProvider( StandardJavaUILabelProvider.DEFAULT_TEXTFLAGS | JavaElementLabels.P_COMPRESSED, StandardJavaUILabelProvider.DEFAULT_IMAGEFLAGS | JavaElementImageProvider.SMALL_ICONS, StandardJavaUILabelProvider.getAdornmentProviders(true, null) ); fViewer.setLabelProvider(new DecoratingLabelProvider( fJavaElementLabelProvider, PlatformUI.getWorkbench().getDecoratorManager()) ); fViewer.setSorter(new JavaElementSorter()); fViewer.addFilter(new EmptyInnerPackageFilter()); fViewer.setUseHashlookup(true); fViewer.addFilter(fPatternFilter); fViewer.addFilter(fLibraryFilter); addWorkingSetChangeSupport(); IWorkingSet workingSet= getSite().getPage().getWorkingSet(); if (workingSet != null) { fWorkingSetFilter= new ResourceWorkingSetFilter(); fWorkingSetFilter.setWorkingSet(workingSet); fViewer.addFilter(fWorkingSetFilter); }
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
MenuManager menuMgr= new MenuManager("#PopupMenu"); menuMgr.setRemoveAllWhenShown(true); menuMgr.addMenuListener(this); fContextMenu= menuMgr.createContextMenu(fViewer.getTree()); fViewer.getTree().setMenu(fContextMenu); IWorkbenchPartSite site= getSite(); site.registerContextMenu(menuMgr, fViewer); site.setSelectionProvider(fViewer); site.getPage().addPartListener(fPartListener); if(fMemento != null) restoreFilters(); else initFilterFromPreferences(); makeActions(); fViewer.setInput(findInputElement()); initDragAndDrop(); initKeyListener(); updateTitle(); fSelectionListener= new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) {
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
handleSelectionChanged(event); } }; fViewer.addSelectionChangedListener(fSelectionListener); fViewer.addDoubleClickListener(new IDoubleClickListener() { public void doubleClick(DoubleClickEvent event) { handleDoubleClick(event); } }); IStatusLineManager slManager= getViewSite().getActionBars().getStatusLineManager(); fViewer.addSelectionChangedListener(new StatusBarUpdater(slManager)); fViewer.addTreeListener(fExpansionListener); if (fMemento != null) restoreState(fMemento); fMemento= null; JavaUIHelp.setHelp(fViewer, IJavaHelpContextIds.PACKAGES_VIEW); fillActionBars(); } private void fillActionBars() { IActionBars actionBars= getViewSite().getActionBars(); fActionSet.fillActionBars(actionBars); } private Object findInputElement() { Object input= getSite().getPage().getInput(); if (input instanceof IWorkspace) {
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
return JavaCore.create(((IWorkspace)input).getRoot()); } else if (input instanceof IContainer) { return JavaCore.create((IContainer)input); } return JavaCore.create(JavaPlugin.getWorkspace().getRoot()); } /** * Answer the property defined by key. */ public Object getAdapter(Class key) { if (key.equals(ISelectionProvider.class)) return fViewer; return super.getAdapter(key); } /** * Returns the tool tip text for the given element. */ String getToolTipText(Object element) { String result; if (!(element instanceof IResource)) { result= JavaElementLabels.getTextLabel(element, StandardJavaUILabelProvider.DEFAULT_TEXTFLAGS); } else { IPath path= ((IResource) element).getFullPath(); if (path.isRoot()) { result= PackagesMessages.getString("PackageExplorer.title"); } else {
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
result= path.makeRelative().toString(); } } IWorkingSet ws= fWorkingSetFilter.getWorkingSet(); if (ws == null) return result; String wsstr= PackagesMessages.getFormattedString("PackageExplorer.toolTip", new String[] { ws.getName() }); if (result.length() == 0) return wsstr; return PackagesMessages.getFormattedString("PackageExplorer.toolTip2", new String[] { result, ws.getName() }); } public String getTitleToolTip() { if (fViewer == null) return super.getTitleToolTip(); return getToolTipText(fViewer.getInput()); } /** * @see IWorkbenchPart#setFocus() */ public void setFocus() { fViewer.getTree().setFocus(); } /** * Returns the shell to use for opening dialogs. * Used in this class, and in the actions. */ private Shell getShell() {
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
return fViewer.getTree().getShell(); } /** * Returns the selection provider. */ private ISelectionProvider getSelectionProvider() { return fViewer; } /** * Returns the current selection. */ private ISelection getSelection() { return fViewer.getSelection(); } /** * Called when the context menu is about to open. Override * to add your own context dependent menu contributions. */ public void menuAboutToShow(IMenuManager menu) { JavaPlugin.createStandardGroups(menu); fActionSet.setContext(new ActionContext(getSelection())); fActionSet.fillContextMenu(menu); } private void makeActions() { fActionSet= new PackageExplorerActionGroup(this);
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
} private boolean isSelectionOfType(ISelection s, Class clazz, boolean considerUnderlyingResource) { if (! (s instanceof IStructuredSelection) || s.isEmpty()) return false; IStructuredSelection selection= (IStructuredSelection)s; Iterator iter= selection.iterator(); while (iter.hasNext()) { Object o= iter.next(); if (clazz.isInstance(o)) return true; if (considerUnderlyingResource) { if (! (o instanceof IJavaElement)) return false; IJavaElement element= (IJavaElement)o; Object resource= element.getAdapter(IResource.class); if (! clazz.isInstance(resource)) return false; } } return true; } private void initDragAndDrop() { int ops= DND.DROP_COPY | DND.DROP_MOVE; final LocalSelectionTransfer lt= LocalSelectionTransfer.getInstance(); Transfer[] transfers= new Transfer[] {
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
lt, ResourceTransfer.getInstance(), FileTransfer.getInstance()}; TransferDropTargetListener[] dropListeners= new TransferDropTargetListener[] { new SelectionTransferDropAdapter(fViewer), new FileTransferDropAdapter(fViewer) }; fViewer.addDropSupport(ops, transfers, new DelegatingDropAdapter(dropListeners)); Control control= fViewer.getControl(); TransferDragSourceListener[] dragListeners= new TransferDragSourceListener[] { new SelectionTransferDragAdapter(fViewer), new ResourceTransferDragAdapter(fViewer), new FileTransferDragAdapter(fViewer) }; DragSource source= new DragSource(control, ops); source.addDragListener(new DelegatingDragAdapter(dragListeners)); } /** * Handles double clicks in viewer. * Opens editor if file double-clicked. */ private void handleDoubleClick(DoubleClickEvent event) { fActionSet.handleDoubleClick(event); } /**
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
* Handles selection changed in viewer. * Updates global actions. * Links to editor (if option enabled) */ private void handleSelectionChanged(SelectionChangedEvent event) { IStructuredSelection selection= (IStructuredSelection) event.getSelection(); fActionSet.handleSelectionChanged(event); linkToEditor(selection); } public void selectReveal(ISelection selection) { ISelection javaSelection= convertSelection(selection); fViewer.setSelection(javaSelection, true); } private ISelection convertSelection(ISelection s) { List converted= new ArrayList(); if (s instanceof StructuredSelection) { Object[] elements= ((StructuredSelection)s).toArray(); for (int i= 0; i < elements.length; i++) { Object e= elements[i]; if (e instanceof IJavaElement) converted.add(e); else if (e instanceof IResource) { IJavaElement element= JavaCore.create((IResource)e); if (element != null) converted.add(element); else converted.add(e); } } }
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
return new StructuredSelection(converted.toArray()); } public void selectAndReveal(Object element) { selectReveal(new StructuredSelection(element)); } /** * Returns whether the preference to link selection to active editor is enabled. */ boolean isLinkingEnabled() { return JavaBasePreferencePage.linkPackageSelectionToEditor(); } /** * Links to editor (if option enabled) */ private void linkToEditor(IStructuredSelection selection) { Object obj= selection.getFirstElement(); Object element= null; if (selection.size() == 1) { if (obj instanceof IJavaElement) { IJavaElement cu= JavaModelUtil.findElementOfKind((IJavaElement)obj, IJavaElement.COMPILATION_UNIT); if (cu != null) element= getResourceFor(cu); if (element == null) element= JavaModelUtil.findElementOfKind((IJavaElement)obj, IJavaElement.CLASS_FILE); }
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
else if (obj instanceof IFile) element= obj; if (element == null) return; IWorkbenchPage page= getSite().getPage(); IEditorPart editorArray[]= page.getEditors(); for (int i= 0; i < editorArray.length; ++i) { IEditorPart editor= editorArray[i]; Object input= getElementOfInput(editor.getEditorInput()); if (input != null && input.equals(element)) { page.bringToTop(editor); if (obj instanceof IJavaElement) EditorUtility.revealInEditor(editor, (IJavaElement) obj); return; } } } } private IResource getResourceFor(Object element) { if (element instanceof IJavaElement) { if (element instanceof IWorkingCopy) { IWorkingCopy wc= (IWorkingCopy)element; IJavaElement original= wc.getOriginalElement(); if (original != null) element= original; } try { element= ((IJavaElement)element).getUnderlyingResource(); } catch (JavaModelException e) {
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
return null; } } if (!(element instanceof IResource) || ((IResource)element).isPhantom()) { return null; } return (IResource)element; } public void saveState(IMemento memento) { if (fViewer == null) { if (fMemento != null) memento.putMemento(fMemento); return; } saveExpansionState(memento); saveSelectionState(memento); saveScrollState(memento, fViewer.getTree()); savePatternFilterState(memento); saveFilterState(memento); fActionSet.saveState(memento); } protected void saveFilterState(IMemento memento) { boolean showLibraries= getLibraryFilter().getShowLibraries(); String show= "true"; if (!showLibraries) show= "false"; memento.putString(TAG_SHOWLIBRARIES, show); }
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
protected void savePatternFilterState(IMemento memento) { String filters[] = getPatternFilter().getPatterns(); if(filters.length > 0) { IMemento filtersMem = memento.createChild(TAG_FILTERS); for (int i = 0; i < filters.length; i++){ IMemento child = filtersMem.createChild(TAG_FILTER); child.putString(TAG_ELEMENT,filters[i]); } } } protected void saveScrollState(IMemento memento, Tree tree) { ScrollBar bar= tree.getVerticalBar(); int position= bar != null ? bar.getSelection() : 0; memento.putString(TAG_VERTICAL_POSITION, String.valueOf(position)); bar= tree.getHorizontalBar(); position= bar != null ? bar.getSelection() : 0; memento.putString(TAG_HORIZONTAL_POSITION, String.valueOf(position)); } protected void saveSelectionState(IMemento memento) { Object elements[]= ((IStructuredSelection) fViewer.getSelection()).toArray(); if (elements.length > 0) { IMemento selectionMem= memento.createChild(TAG_SELECTION); for (int i= 0; i < elements.length; i++) { IMemento elementMem= selectionMem.createChild(TAG_ELEMENT); Object o= elements[i]; if (o instanceof IJavaElement) elementMem.putString(TAG_PATH, ((IJavaElement) elements[i]).getHandleIdentifier()); }
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
} } protected void saveExpansionState(IMemento memento) { Object expandedElements[]= fViewer.getExpandedElements(); if (expandedElements.length > 0) { IMemento expandedMem= memento.createChild(TAG_EXPANDED); for (int i= 0; i < expandedElements.length; i++) { IMemento elementMem= expandedMem.createChild(TAG_ELEMENT); Object o= expandedElements[i]; if (o instanceof IJavaElement) elementMem.putString(TAG_PATH, ((IJavaElement) expandedElements[i]).getHandleIdentifier()); } } } void restoreState(IMemento memento) { restoreExpansionState(memento); restoreSelectionState(memento); restoreScrollState(memento, fViewer.getTree()); fActionSet.restoreState(memento); } protected void restoreScrollState(IMemento memento, Tree tree) { ScrollBar bar= tree.getVerticalBar(); if (bar != null) { try { String posStr= memento.getString(TAG_VERTICAL_POSITION); int position; position= new Integer(posStr).intValue(); bar.setSelection(position); } catch (NumberFormatException e) {
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
} } bar= tree.getHorizontalBar(); if (bar != null) { try { String posStr= memento.getString(TAG_HORIZONTAL_POSITION); int position; position= new Integer(posStr).intValue(); bar.setSelection(position); } catch (NumberFormatException e) { } } } protected void restoreSelectionState(IMemento memento) { IMemento childMem; childMem= memento.getChild(TAG_SELECTION); if (childMem != null) { ArrayList list= new ArrayList(); IMemento[] elementMem= childMem.getChildren(TAG_ELEMENT); for (int i= 0; i < elementMem.length; i++) { Object element= JavaCore.create(elementMem[i].getString(TAG_PATH)); list.add(element); } fViewer.setSelection(new StructuredSelection(list)); } } protected void restoreExpansionState(IMemento memento) { IMemento childMem= memento.getChild(TAG_EXPANDED);
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
if (childMem != null) { ArrayList elements= new ArrayList(); IMemento[] elementMem= childMem.getChildren(TAG_ELEMENT); for (int i= 0; i < elementMem.length; i++) { Object element= JavaCore.create(elementMem[i].getString(TAG_PATH)); elements.add(element); } fViewer.setExpandedElements(elements.toArray()); } } /** * Create the KeyListener for doing the refresh on the viewer. */ private void initKeyListener() { fViewer.getControl().addKeyListener(new KeyAdapter() { public void keyReleased(KeyEvent event) { fActionSet.handleKeyEvent(event); } }); } /** * An editor has been activated. Set the selection in this Packages Viewer * to be the editor's input, if linking is enabled. */ void editorActivated(IEditorPart editor) { if (!isLinkingEnabled()) return; Object input= getElementOfInput(editor.getEditorInput()); Object element= null;
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
if (input instanceof IFile) element= JavaCore.create((IFile)input); if (element == null) element= input; if (element != null) { IStructuredSelection oldSelection= (IStructuredSelection)getSelection(); if (oldSelection.size() == 1) { Object o= oldSelection.getFirstElement(); if (o instanceof IMember) { IMember m= (IMember)o; if (element.equals(m.getCompilationUnit())) return; if (element.equals(m.getClassFile())) return; } } ISelection newSelection= new StructuredSelection(element); if (!fViewer.getSelection().equals(newSelection)) { try { fViewer.removeSelectionChangedListener(fSelectionListener); fViewer.setSelection(newSelection); } finally { fViewer.addSelectionChangedListener(fSelectionListener); } }
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
} } /** * A compilation unit or class was expanded, expand * the main type. */ void expandMainType(Object element) { try { IType type= null; if (element instanceof ICompilationUnit) { ICompilationUnit cu= (ICompilationUnit)element; IType[] types= cu.getTypes(); if (types.length > 0) type= types[0]; } else if (element instanceof IClassFile) { IClassFile cf= (IClassFile)element; type= cf.getType(); } if (type != null) { final IType type2= type; Control ctrl= fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()) { ctrl.getDisplay().asyncExec(new Runnable() { public void run() { Control ctrl= fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()) fViewer.expandToLevel(type2, 1); }
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
}); } } } catch(JavaModelException e) { } } /** * Returns the element contained in the EditorInput */ Object getElementOfInput(IEditorInput input) { if (input instanceof IClassFileEditorInput) return ((IClassFileEditorInput)input).getClassFile(); else if (input instanceof IFileEditorInput) return ((IFileEditorInput)input).getFile(); else if (input instanceof JarEntryEditorInput) return ((JarEntryEditorInput)input).getStorage(); return null; } /** * Returns the Viewer. */ TreeViewer getViewer() { return fViewer; } /** * Returns the pattern filter for this view.
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
* @return the pattern filter */ JavaElementPatternFilter getPatternFilter() { return fPatternFilter; } /** * Returns the library filter for this view. * @return the library filter */ LibraryFilter getLibraryFilter() { return fLibraryFilter; } void restoreFilters() { IMemento filtersMem= fMemento.getChild(TAG_FILTERS); if(filtersMem != null) { IMemento children[]= filtersMem.getChildren(TAG_FILTER); String filters[]= new String[children.length]; for (int i = 0; i < children.length; i++) { filters[i]= children[i].getString(TAG_ELEMENT); } getPatternFilter().setPatterns(filters); } else { getPatternFilter().setPatterns(new String[0]); } String show= fMemento.getString(TAG_SHOWLIBRARIES); if (show != null) getLibraryFilter().setShowLibraries(show.equals("true")); else
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
initLibraryFilterFromPreferences(); } void initFilterFromPreferences() { initLibraryFilterFromPreferences(); } void initLibraryFilterFromPreferences() { JavaPlugin plugin= JavaPlugin.getDefault(); boolean show= plugin.getPreferenceStore().getBoolean(TAG_SHOWLIBRARIES); getLibraryFilter().setShowLibraries(show); } boolean isExpandable(Object element) { if (fViewer == null) return false; return fViewer.isExpandable(element); } /** * Updates the title text and title tool tip. * Called whenever the input of the viewer changes. */ void updateTitle() { Object input= fViewer.getInput(); String viewName= getConfigurationElement().getAttribute("name"); if (input == null || (input instanceof IJavaModel)) { setTitle(viewName); setTitleToolTip(""); } else {
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
String inputText= JavaElementLabels.getTextLabel(input, StandardJavaUILabelProvider.DEFAULT_TEXTFLAGS); String title= PackagesMessages.getFormattedString("PackageExplorer.argTitle", new String[] { viewName, inputText }); setTitle(title); setTitleToolTip(getToolTipText(input)); } } /** * Sets the decorator for the package explorer. * * @param decorator a label decorator or <code>null</code> for no decorations. * @deprecated To be removed */ public void setLabelDecorator(ILabelDecorator decorator) { if (decorator == null) fViewer.setLabelProvider(fJavaElementLabelProvider); else fViewer.setLabelProvider(new DecoratingLabelProvider(fJavaElementLabelProvider, decorator)); } /* * @see IPropertyChangeListener#propertyChange(PropertyChangeEvent) */ public void propertyChange(PropertyChangeEvent event) { if (fViewer == null) return; boolean refreshViewer= false; if (event.getProperty() == JavaBasePreferencePage.SHOW_CU_CHILDREN) {
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
IActionBars actionBars= getViewSite().getActionBars(); fActionSet.fillToolBar(actionBars.getToolBarManager()); actionBars.updateActionBars(); boolean showCUChildren= JavaBasePreferencePage.showCompilationUnitChildren(); ((JavaElementContentProvider)fViewer.getContentProvider()).setProvideMembers(showCUChildren); refreshViewer= true; } if (refreshViewer) fViewer.refresh(); } private IPropertyChangeListener addWorkingSetChangeSupport() { final IPropertyChangeListener propertyChangeListener= createWorkingSetChangeListener(); final IWorkbenchPage page= getSite().getPage(); fWorkingSetFilter= new ResourceWorkingSetFilter(); fViewer.addFilter(fWorkingSetFilter); if (page.getWorkingSet() != null) page.getWorkingSet().addPropertyChangeListener(propertyChangeListener); page.addPropertyChangeListener(propertyChangeListener); fViewer.getControl().addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { if (page!= null) page.removePropertyChangeListener(propertyChangeListener); }
12,585
Bug 12585 Packages view should not provide file and resource transfer if Java element below CU is selected
null
resolved fixed
ef87943
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-17T15:03:24Z
2002-04-02T09:33:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
}); return propertyChangeListener; } private IPropertyChangeListener createWorkingSetChangeListener() { return new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { String property= event.getProperty(); if (IWorkbenchPage.CHANGE_WORKING_SET_REPLACE.equals(property)) { IWorkingSet newWorkingSet= (IWorkingSet) event.getNewValue(); if (fWorkingSetFilter.getWorkingSet() != null) fWorkingSetFilter.getWorkingSet().removePropertyChangeListener(this); fWorkingSetFilter.setWorkingSet(newWorkingSet); if (newWorkingSet != null) newWorkingSet.addPropertyChangeListener(this); fViewer.getControl().setRedraw(false); fViewer.refresh(); updateTitle(); fViewer.getControl().setRedraw(true); } else if (IWorkingSet.CHANGE_WORKING_SET_NAME_CHANGE.equals(property)) updateTitle(); else if (IWorkingSet.CHANGE_WORKING_SET_CONTENT_CHANGE.equals(property)) fViewer.refresh(); } }; } }
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPVariableElement.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.wizards.buildpaths; import org.eclipse.core.runtime.IPath; public class CPVariableElement { private String fName; private IPath fPath; private boolean fIsReserved; public CPVariableElement(String name, IPath path, boolean reserved) { fName= name; fPath= path; fIsReserved= reserved; } /** * Gets the path
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPVariableElement.java
* @return Returns a IPath */ public IPath getPath() { return fPath; } /** * Sets the path * @param path The path to set */ public void setPath(IPath path) { fPath= path; } /** * Gets the name * @return Returns a String */ public String getName() { return fName; } /** * Sets the name * @param name The name to set */ public void setName(String name) { fName= name; } /* * @see Object#equals() */
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPVariableElement.java
public boolean equals(Object other) { if (other.getClass().equals(getClass())) { CPVariableElement elem= (CPVariableElement)other; return fName.equals(elem.fName); } return false; } /* * @see Object#hashCode() */ public int hashCode() { return fName.hashCode(); } /** * Returns true if variable is reserved * @return Returns a boolean */ public boolean isReserved() { return fIsReserved; } /** * Sets the isReserved * @param isReserved The state to set */ public void setReserved(boolean isReserved) { fIsReserved= isReserved; } }
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableBlock.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.wizards.buildpaths; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.SubProgressMonitor; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.dialogs.ProgressMonitorDialog; import org.eclipse.jface.operation.IRunnableWithProgress; import org.eclipse.jface.viewers.IDoubleClickListener; import org.eclipse.jface.viewers.ISelection;
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableBlock.java
import org.eclipse.jface.viewers.ISelectionChangedListener; import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.ViewerSorter; import org.eclipse.jdt.core.JavaCore; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.launching.JavaRuntime; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.util.ExceptionHandler; import org.eclipse.jdt.internal.ui.util.PixelConverter; import org.eclipse.jdt.internal.ui.wizards.NewWizardMessages; import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; import org.eclipse.jdt.internal.ui.wizards.dialogfields.IListAdapter; import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; import org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField; public class VariableBlock { private ListDialogField fVariablesList; private Control fControl; /** * Constructor for VariableBlock */ public VariableBlock(boolean inPreferencePage, String initSelection) { String[] buttonLabels= new String[] { NewWizardMessages.getString("VariableBlock.vars.add.button"), NewWizardMessages.getString("VariableBlock.vars.edit.button"), null,
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableBlock.java
NewWizardMessages.getString("VariableBlock.vars.remove.button") }; VariablesAdapter adapter= new VariablesAdapter(); CPVariableElementLabelProvider labelProvider= new CPVariableElementLabelProvider(!inPreferencePage); fVariablesList= new ListDialogField(adapter, buttonLabels, labelProvider); fVariablesList.setDialogFieldListener(adapter); fVariablesList.setLabelText(NewWizardMessages.getString("VariableBlock.vars.label")); fVariablesList.setRemoveButtonIndex(3); fVariablesList.enableButton(1, false); fVariablesList.setViewerSorter(new ViewerSorter() { public int compare(Viewer viewer, Object e1, Object e2) { if (e1 instanceof CPVariableElement && e2 instanceof CPVariableElement) { return ((CPVariableElement)e1).getName().compareTo(((CPVariableElement)e2).getName()); } return super.compare(viewer, e1, e2); } }); CPVariableElement initSelectedElement= null; String[] reservedName= getReservedVariableNames(); ArrayList reserved= new ArrayList(reservedName.length); addAll(reservedName, reserved);
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableBlock.java
String[] entries= JavaCore.getClasspathVariableNames(); ArrayList elements= new ArrayList(entries.length); for (int i= 0; i < entries.length; i++) { String name= entries[i]; CPVariableElement elem; IPath entryPath= JavaCore.getClasspathVariable(name); elem= new CPVariableElement(name, entryPath, reserved.contains(name)); elements.add(elem); if (name.equals(initSelection)) { initSelectedElement= elem; } } fVariablesList.setElements(elements); if (initSelectedElement != null) { ISelection sel= new StructuredSelection(initSelectedElement); fVariablesList.selectElements(sel); } else { fVariablesList.selectFirstElement(); } } private String[] getReservedVariableNames() { return new String[] { JavaRuntime.JRELIB_VARIABLE, JavaRuntime.JRESRC_VARIABLE, JavaRuntime.JRESRCROOT_VARIABLE, };
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableBlock.java
} public Control createContents(Composite parent) { PixelConverter converter= new PixelConverter(parent); Composite composite= new Composite(parent, SWT.NONE); LayoutUtil.doDefaultLayout(composite, new DialogField[] { fVariablesList }, true, 0, 0); LayoutUtil.setHorizontalGrabbing(fVariablesList.getListControl(null)); fControl= composite; return composite; } public void addDoubleClickListener(IDoubleClickListener listener) { fVariablesList.getTableViewer().addDoubleClickListener(listener); } public void addSelectionChangedListener(ISelectionChangedListener listener) { fVariablesList.getTableViewer().addSelectionChangedListener(listener); } private Shell getShell() { if (fControl != null) { return fControl.getShell(); } return JavaPlugin.getActiveWorkbenchShell(); } private class VariablesAdapter implements IDialogFieldListener, IListAdapter {
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableBlock.java
public void customButtonPressed(DialogField field, int index) { switch (index) { case 0: editEntries(null); break; case 1: List selected= fVariablesList.getSelectedElements(); editEntries((CPVariableElement)selected.get(0)); break; } } public void selectionChanged(DialogField field) { doSelectionChanged(field); } public void dialogFieldChanged(DialogField field) { } } private boolean containsReserved(List selected) { for (int i= selected.size()-1; i >= 0; i--) { if (((CPVariableElement)selected.get(i)).isReserved()) {
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableBlock.java
return true; } } return false; } private static void addAll(Object[] objs, Collection dest) { for (int i= 0; i < objs.length; i++) { dest.add(objs[i]); } } private void doSelectionChanged(DialogField field) { List selected= fVariablesList.getSelectedElements(); boolean isSingleSelected= selected.size() == 1; boolean containsReserved= containsReserved(selected); fVariablesList.enableButton(1, isSingleSelected && !containsReserved); fVariablesList.enableButton(3, !containsReserved); } private void editEntries(CPVariableElement entry) { List existingEntries= fVariablesList.getElements(); VariableCreationDialog dialog= new VariableCreationDialog(getShell(), entry, existingEntries); if (dialog.open() != dialog.OK) { return; } CPVariableElement newEntry= dialog.getClasspathElement(); if (entry == null) {
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableBlock.java
fVariablesList.addElement(newEntry); entry= newEntry; } else { entry.setName(newEntry.getName()); entry.setPath(newEntry.getPath()); fVariablesList.refresh(); } fVariablesList.selectElements(new StructuredSelection(entry)); } public List getSelectedElements() { return fVariablesList.getSelectedElements(); } public void performDefaults() { fVariablesList.removeAllElements(); String[] reservedName= getReservedVariableNames(); for (int i= 0; i < reservedName.length; i++) { CPVariableElement elem= new CPVariableElement(reservedName[i], null, true); elem.setReserved(true); fVariablesList.addElement(elem); } } public boolean performOk() { List toRemove= new ArrayList(); toRemove.addAll(Arrays.asList(JavaCore.getClasspathVariableNames())); List elements= fVariablesList.getElements(); for (int i= elements.size()-1; i >= 0; i--) {
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableBlock.java
CPVariableElement curr= (CPVariableElement) elements.get(i); if (curr.isReserved()) { elements.remove(curr); } else { IPath path= curr.getPath(); IPath prevPath= JavaCore.getClasspathVariable(curr.getName()); if (prevPath != null && prevPath.equals(path)) { elements.remove(curr); } } toRemove.remove(curr.getName()); } int steps= elements.size() + toRemove.size(); if (steps > 0) { IRunnableWithProgress runnable= new VariableBlockRunnable(toRemove, elements); ProgressMonitorDialog dialog= new ProgressMonitorDialog(getShell()); try { dialog.run(true, true, runnable); } catch (InvocationTargetException e) { ExceptionHandler.handle(e, getShell(), NewWizardMessages.getString("VariableBlock.operation_errror.title"), NewWizardMessages.getString("VariableBlock.operation_errror.message")); return false; } catch (InterruptedException e) { return true; } } return true; } private class VariableBlockRunnable implements IRunnableWithProgress {
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableBlock.java
private List fToRemove; private List fToChange; public VariableBlockRunnable(List toRemove, List toChange) { fToRemove= toRemove; fToChange= toChange; } /*
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableBlock.java
* @see IRunnableWithProgress#run(IProgressMonitor) */ public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { int steps= fToChange.size() + fToRemove.size(); monitor.beginTask(NewWizardMessages.getString("VariableBlock.operation_desc"), steps); try { for (int i= 0; i < fToChange.size(); i++) { CPVariableElement curr= (CPVariableElement) fToChange.get(i); SubProgressMonitor subMonitor= new SubProgressMonitor(monitor, 1); JavaCore.setClasspathVariable(curr.getName(), curr.getPath(), subMonitor); if (monitor.isCanceled()) { return; } } for (int i= 0; i < fToRemove.size(); i++) { SubProgressMonitor subMonitor= new SubProgressMonitor(monitor, 1); JavaCore.removeClasspathVariable((String) fToRemove.get(i), subMonitor); if (monitor.isCanceled()) { return; } } } catch (JavaModelException e) { throw new InvocationTargetException(e); } finally { monitor.done(); } } } }
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableCreationDialog.java
/* * (c) Copyright IBM Corp. 2000, 2001. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.wizards.buildpaths; import java.io.File;
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableCreationDialog.java
import java.util.List; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Path; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.DirectoryDialog; import org.eclipse.swt.widgets.FileDialog; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.dialogs.IDialogSettings; import org.eclipse.ui.help.WorkbenchHelp; import org.eclipse.jdt.core.JavaConventions; import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; import org.eclipse.jdt.internal.ui.IUIConstants; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.dialogs.StatusDialog; import org.eclipse.jdt.internal.ui.dialogs.StatusInfo; import org.eclipse.jdt.internal.ui.dialogs.StatusUtil; import org.eclipse.jdt.internal.ui.util.PixelConverter; import org.eclipse.jdt.internal.ui.wizards.NewWizardMessages; import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; import org.eclipse.jdt.internal.ui.wizards.dialogfields.IStringButtonAdapter; import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; import org.eclipse.jdt.internal.ui.wizards.dialogfields.SelectionButtonDialogField; import org.eclipse.jdt.internal.ui.wizards.dialogfields.StringButtonDialogField; import org.eclipse.jdt.internal.ui.wizards.dialogfields.StringDialogField; import org.eclipse.swt.layout.GridLayout; public class VariableCreationDialog extends StatusDialog {
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableCreationDialog.java
private IDialogSettings fDialogSettings; private StringDialogField fNameField; private StatusInfo fNameStatus; private StringButtonDialogField fPathField; private StatusInfo fPathStatus; private SelectionButtonDialogField fDirButton; private CPVariableElement fElement; private List fExistingNames; public VariableCreationDialog(Shell parent, CPVariableElement element, List existingNames) { super(parent); if (element == null) { setTitle(NewWizardMessages.getString("VariableCreationDialog.titlenew")); } else { setTitle(NewWizardMessages.getString("VariableCreationDialog.titleedit")); } fDialogSettings= JavaPlugin.getDefault().getDialogSettings(); fElement= element;
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableCreationDialog.java
fNameStatus= new StatusInfo(); fPathStatus= new StatusInfo(); NewVariableAdapter adapter= new NewVariableAdapter(); fNameField= new StringDialogField(); fNameField.setDialogFieldListener(adapter); fNameField.setLabelText(NewWizardMessages.getString("VariableCreationDialog.name.label")); fPathField= new StringButtonDialogField(adapter); fPathField.setDialogFieldListener(adapter); fPathField.setLabelText(NewWizardMessages.getString("VariableCreationDialog.path.label")); fPathField.setButtonLabel(NewWizardMessages.getString("VariableCreationDialog.path.file.button")); fDirButton= new SelectionButtonDialogField(SWT.PUSH); fDirButton.setDialogFieldListener(adapter); fDirButton.setLabelText(NewWizardMessages.getString("VariableCreationDialog.path.dir.button")); fExistingNames= existingNames; if (element != null) { fNameField.setText(element.getName()); fPathField.setText(element.getPath().toString()); fExistingNames.remove(element.getName()); } else { fNameField.setText(""); fPathField.setText(""); } } /*
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableCreationDialog.java
* @see Windows#configureShell */ protected void configureShell(Shell newShell) { super.configureShell(newShell); WorkbenchHelp.setHelp(newShell, IJavaHelpContextIds.VARIABLE_CREATION_DIALOG); } public CPVariableElement getClasspathElement() { return new CPVariableElement(fNameField.getText(), new Path(fPathField.getText()), false); } /* * @see Dialog#createDialogArea(org.eclipse.swt.widgets.Composite) */ protected Control createDialogArea(Composite parent) { Composite composite= (Composite)super.createDialogArea(parent); PixelConverter converter= new PixelConverter(parent); Composite inner= new Composite(composite, SWT.NONE); GridLayout layout= new GridLayout(); layout.marginWidth= 0; layout.numColumns= 3; inner.setLayout(layout); int fieldWidthHint= converter.convertWidthInCharsToPixels(50); fNameField.doFillIntoGrid(inner, 2); LayoutUtil.setWidthHint(fNameField.getTextControl(null), fieldWidthHint); LayoutUtil.setHorizontalGrabbing(fNameField.getTextControl(null));
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableCreationDialog.java
DialogField.createEmptySpace(inner, 1); fPathField.doFillIntoGrid(inner, 3); LayoutUtil.setWidthHint(fPathField.getTextControl(null), fieldWidthHint); DialogField.createEmptySpace(inner, 2); fDirButton.doFillIntoGrid(inner, 1); DialogField focusField= (fElement == null) ? fNameField : fPathField; focusField.postSetFocusOnDialogField(parent.getDisplay()); return composite; } private class NewVariableAdapter implements IDialogFieldListener, IStringButtonAdapter { public void dialogFieldChanged(DialogField field) { doFieldUpdated(field); } public void changeControlPressed(DialogField field) { doChangeControlPressed(field); } } private void doChangeControlPressed(DialogField field) { if (field == fPathField) {
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableCreationDialog.java
IPath path= chooseExtJarFile(); if (path != null) { fPathField.setText(path.toString()); } } } private void doFieldUpdated(DialogField field) { if (field == fNameField) { fNameStatus= nameUpdated(); } else if (field == fPathField) { fPathStatus= pathUpdated(); } else if (field == fDirButton) { IPath path= chooseExtDirectory(); if (path != null) { fPathField.setText(path.toString()); } } updateStatus(StatusUtil.getMoreSevere(fPathStatus, fNameStatus)); } private StatusInfo nameUpdated() { StatusInfo status= new StatusInfo(); String name= fNameField.getText(); if (name.length() == 0) { status.setError(NewWizardMessages.getString("VariableCreationDialog.error.entername")); return status; } IStatus val= JavaConventions.validateIdentifier(name); if (val.matches(IStatus.ERROR)) {
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableCreationDialog.java
status.setError(NewWizardMessages.getFormattedString("VariableCreationDialog.error.invalidname", val.getMessage())); } else if (nameConflict(name)) { status.setError(NewWizardMessages.getString("VariableCreationDialog.error.nameexists")); } return status; } private boolean nameConflict(String name) { if (fElement != null && fElement.getName().equals(name)) { return false; } for (int i= 0; i < fExistingNames.size(); i++) { CPVariableElement elem= (CPVariableElement)fExistingNames.get(i); if (name.equals(elem.getName())){ return true; } } return false; } private StatusInfo pathUpdated() { StatusInfo status= new StatusInfo(); String path= fPathField.getText(); if (path.length() > 0) { if (!Path.ROOT.isValidPath(path)) { status.setError(NewWizardMessages.getString("VariableCreationDialog.error.invalidpath")); } else if (!new File(path).exists()) { status.setWarning(NewWizardMessages.getString("VariableCreationDialog.warning.pathnotexists"));
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableCreationDialog.java
} } return status; } private String getInitPath() { String initPath= fPathField.getText(); if (initPath.length() == 0) { initPath= fDialogSettings.get(IUIConstants.DIALOGSTORE_LASTEXTJAR); if (initPath == null) { initPath= ""; } } else { IPath entryPath= new Path(initPath); if (ArchiveFileFilter.isArchivePath(entryPath)) { entryPath.removeLastSegments(1); } initPath= entryPath.toOSString(); } return initPath; } /* * Open a dialog to choose a jar from the file system */ private IPath chooseExtJarFile() { String initPath= getInitPath();
14,083
Bug 14083 Error exiting Window->Preferences Dialog
Just Installed the new Milestone 5 version of Eclipse and wanted to change some Preferences (I changed Java->Code Formatter->Line Splitting->Maximum line length to 100) and when I click on the OK button the following error occurs: "Problems while setting classpath variable. See log for details. Assertion failed; Variable path cannot be null.." Under classpath variables I have 4 variabled (I added none of them, but maybe a project I imported from CVS did?): ECLIPSE_HOME JRE_LIB JRE_SRC JRE_SRCROOT If I want to edit the ECLIPSE_HOME entry, the following error occurs: "An internal error has occured. See error log for more details. Exit workspace?" Under details I see the following exception stack: "java.lang.NullPointerException at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableCreationDialog.<init> (VariableCreationDialog.java:92) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.editEntries (VariableBlock.java:231) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock.access$0 (VariableBlock.java:228) at org.eclipse.jdt.internal.ui.wizards.buildpaths.VariableBlock$VariablesAdapter.cu stomButtonPressed(VariableBlock.java:175) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.buttonPressed (ListDialogField.java:149) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.doButtonSelecte d(ListDialogField.java:356) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.access$1 (ListDialogField.java:352) at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField$1.widgetSelecte d(ListDialogField.java:319) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.OpenPreferencesAction.run (OpenPreferencesAction.java:47) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836) at org.eclipse.ui.internal.Workbench.run(Workbench.java:819) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)" If I remove the ECLIPSE_HOME variable, no error occurs after clicking the OK button. BTW, the tool get's nicer and nicer with every release...if you keep going on like this, nobody will buy WebSphere Application Developer :-) Mirko
resolved fixed
ca84d62
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:44:26Z
2002-04-18T08:53:20Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariableCreationDialog.java
FileDialog dialog= new FileDialog(getShell()); dialog.setText(NewWizardMessages.getString("VariableCreationDialog.extjardialog.text")); dialog.setFilterExtensions(new String[] {"*.jar;*.zip"}); dialog.setFilterPath(initPath); String res= dialog.open(); if (res != null) { fDialogSettings.put(IUIConstants.DIALOGSTORE_LASTEXTJAR, dialog.getFilterPath()); return new Path(res).makeAbsolute(); } return null; } private IPath chooseExtDirectory() { String initPath= getInitPath(); DirectoryDialog dialog= new DirectoryDialog(getShell()); dialog.setText(NewWizardMessages.getString("VariableCreationDialog.extdirdialog.text")); dialog.setMessage(NewWizardMessages.getString("VariableCreationDialog.extdirdialog.message")); dialog.setFilterPath(initPath); String res= dialog.open(); if (res != null) { fDialogSettings.put(IUIConstants.DIALOGSTORE_LASTEXTJAR, dialog.getFilterPath()); return new Path(res); } return null; } }
10,022
Bug 10022 Incorrect "Build" popup action enablement
If "Build" action in the context sensitive popup menu in the Java perspective is always enabled. Even if the user goes to Preferences -> Workbench and selects "Perform build automatically on resource modification" the build menu option still appears in the Java popup menus. I believe this is incorrect. No need for a manual build if the build is already done, automatically. Mazen Faraj.
resolved fixed
72d2138
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:51:03Z
2002-02-20T15:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/BuildActionGroup.java
/******************************************************************************* * Copyright (c) 2002 International Business Machines Corp. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v0.5 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v05.html *
10,022
Bug 10022 Incorrect "Build" popup action enablement
If "Build" action in the context sensitive popup menu in the Java perspective is always enabled. Even if the user goes to Preferences -> Workbench and selects "Perform build automatically on resource modification" the build menu option still appears in the Java popup menus. I believe this is incorrect. No need for a manual build if the build is already done, automatically. Mazen Faraj.
resolved fixed
72d2138
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:51:03Z
2002-02-20T15:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/BuildActionGroup.java
* Contributors: * IBM Corporation - initial API and implementation ******************************************************************************/ package org.eclipse.jdt.ui.actions; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.action.IAction; import org.eclipse.jface.action.IMenuManager; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.core.resources.IncrementalProjectBuilder; import org.eclipse.ui.IActionBars; import org.eclipse.ui.IViewPart; import org.eclipse.ui.IWorkbenchActionConstants; import org.eclipse.ui.actions.ActionGroup; import org.eclipse.ui.actions.BuildAction; import org.eclipse.ui.actions.RefreshAction; import org.eclipse.jdt.internal.ui.actions.ActionMessages; import org.eclipse.jdt.ui.IContextMenuConstants; /** * Contributes all build related actions to the context menu and installs action handlers * for them in the global menu bar. * * @since 2.0 */ public class BuildActionGroup extends ActionGroup{ private BuildAction fBuildAction; private BuildAction fFullBuildAction; private RefreshAction fRefreshAction; /** * Creates a new <code>BuildActionGroup</code>.
10,022
Bug 10022 Incorrect "Build" popup action enablement
If "Build" action in the context sensitive popup menu in the Java perspective is always enabled. Even if the user goes to Preferences -> Workbench and selects "Perform build automatically on resource modification" the build menu option still appears in the Java popup menus. I believe this is incorrect. No need for a manual build if the build is already done, automatically. Mazen Faraj.
resolved fixed
72d2138
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:51:03Z
2002-02-20T15:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/BuildActionGroup.java
* * @param part the view part that owns this action group */ public BuildActionGroup(IViewPart part) { Shell shell= part.getSite().getShell(); ISelectionProvider provider= part.getSite().getSelectionProvider(); fBuildAction= new BuildAction(shell, IncrementalProjectBuilder.INCREMENTAL_BUILD); fBuildAction.setText(ActionMessages.getString("BuildAction.label")); fFullBuildAction= new BuildAction(shell, IncrementalProjectBuilder.FULL_BUILD); fFullBuildAction.setText(ActionMessages.getString("RebuildAction.label")); fRefreshAction= new RefreshAction(shell); provider.addSelectionChangedListener(fBuildAction); provider.addSelectionChangedListener(fFullBuildAction); provider.addSelectionChangedListener(fRefreshAction); } /** * Returns the refresh action managed by this group. * * @return the refresh action. If this group doesn't manage a refresh action * <code>null</code> is returned. */ public RefreshAction getRefreshAction() { return fRefreshAction;
10,022
Bug 10022 Incorrect "Build" popup action enablement
If "Build" action in the context sensitive popup menu in the Java perspective is always enabled. Even if the user goes to Preferences -> Workbench and selects "Perform build automatically on resource modification" the build menu option still appears in the Java popup menus. I believe this is incorrect. No need for a manual build if the build is already done, automatically. Mazen Faraj.
resolved fixed
72d2138
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T12:51:03Z
2002-02-20T15:46:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/BuildActionGroup.java
} /* (non-Javadoc) * Method declared in ActionGroup */ public void fillActionBars(IActionBars actionBar) { super.fillActionBars(actionBar); setGlobalActionHandlers(actionBar); } /* (non-Javadoc) * Method declared in ActionGroup */ public void fillContextMenu(IMenuManager menu) { super.fillContextMenu(menu); appendToGroup(menu, fFullBuildAction); appendToGroup(menu, fRefreshAction); } private void setGlobalActionHandlers(IActionBars actionBar) { actionBar.setGlobalActionHandler(IWorkbenchActionConstants.BUILD_PROJECT, fBuildAction); actionBar.setGlobalActionHandler(IWorkbenchActionConstants.REBUILD_PROJECT, fFullBuildAction); actionBar.setGlobalActionHandler(IWorkbenchActionConstants.REFRESH, fRefreshAction); } private void appendToGroup(IMenuManager menu, IAction action) { if (action.isEnabled()) menu.appendToGroup(IContextMenuConstants.GROUP_BUILD, action); } }
11,853
Bug 11853 extract method: incorrectly allowed on constructor invocation
tests 180 and 181 fail - disabled them for now just in case i'll put them here: public class A_test180 { public A_test180() { /*]*/this(10); foo();/*[*/ } public A_test180(int i) { super(); } public void foo() { } } public class A_test181 { public A_test181() { /*]*/super(); foo();/*[*/ } public void foo() { } }
resolved fixed
6cdf011
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-18T17:01:29Z
2002-03-20T16:00:00Z
org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/A.java
public class A{ public int value; boolean m(){ return a().length != 3; } int[] a(){ return null; } }
14,112
Bug 14112 Show in Navigator doesn't work for non-java resources
1) select logo.gif in JUnit 2) show in navigator -> action
resolved fixed
72e1faa
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T10:37:18Z
2002-04-18T14:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInNavigatorViewAction.java
/******************************************************************************* * Copyright (c) 2000, 2002 International Business Machines Corp. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v0.5 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v05.html * * Contributors: * IBM Corporation - initial API and implementation ******************************************************************************/ package org.eclipse.jdt.ui.actions; import org.eclipse.jface.text.ITextSelection; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException;
14,112
Bug 14112 Show in Navigator doesn't work for non-java resources
1) select logo.gif in JUnit 2) show in navigator -> action
resolved fixed
72e1faa
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T10:37:18Z
2002-04-18T14:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInNavigatorViewAction.java
import org.eclipse.ui.IPageLayout; import org.eclipse.ui.IViewPart; import org.eclipse.ui.IWorkbenchPage; import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.PartInitException; import org.eclipse.ui.part.ISetSelectionTarget; import org.eclipse.ui.views.navigator.ResourceNavigator; import org.eclipse.jdt.core.IClassFile; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.internal.corext.util.JavaModelUtil; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.actions.ActionMessages; import org.eclipse.jdt.internal.ui.actions.OpenActionUtil; import org.eclipse.jdt.internal.ui.actions.SelectionConverter; import org.eclipse.jdt.internal.ui.javaeditor.JavaEditor; import org.eclipse.jdt.internal.ui.util.ExceptionHandler; /** * <p> * This class may be instantiated; it is not intended to be subclassed. * </p> * * @since 2.0 */ public class ShowInNavigatorViewAction extends SelectionDispatchAction { private JavaEditor fEditor; /** * Creates a new <code>ShowInNavigatorViewAction</code>. *
14,112
Bug 14112 Show in Navigator doesn't work for non-java resources
1) select logo.gif in JUnit 2) show in navigator -> action
resolved fixed
72e1faa
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T10:37:18Z
2002-04-18T14:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInNavigatorViewAction.java
* @param site the site providing context information for this action */ public ShowInNavigatorViewAction(UnifiedSite site) { super(site); setText(ActionMessages.getString("ShowInNavigatorView.label")); } /** * Creates a new <code>ShowInNavigatorViewAction</code>. * <p> * Note: This constructor is for internal use only. Clients should not call this constructor. * </p> */ public ShowInNavigatorViewAction(JavaEditor editor) { this(UnifiedSite.create(editor.getEditorSite())); fEditor= editor; } /* (non-Javadoc) * Method declared on SelectionDispatchAction. */ protected void selectionChanged(ITextSelection selection) { setEnabled(fEditor != null); } /* (non-Javadoc) * Method declared on SelectionDispatchAction. */ protected void selectionChanged(IStructuredSelection selection) { try { setEnabled(getResource(getElement(selection)) != null); } catch (JavaModelException e) {
14,112
Bug 14112 Show in Navigator doesn't work for non-java resources
1) select logo.gif in JUnit 2) show in navigator -> action
resolved fixed
72e1faa
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T10:37:18Z
2002-04-18T14:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInNavigatorViewAction.java
JavaPlugin.log(e); setEnabled(false); } } /* (non-Javadoc) * Method declared on SelectionDispatchAction. */ protected void run(ITextSelection selection) { IJavaElement element= SelectionConverter.codeResolveOrInputHandled(fEditor, getShell(), getDialogTitle(), ActionMessages.getString("ShowInNavigatorView.dialog.message")); if (element != null) run(element); } /* (non-Javadoc) * Method declared on SelectionDispatchAction. */ protected void run(IStructuredSelection selection) { run(getElement(selection)); } private void run(IJavaElement element) { try { IResource resource= getResource(element); if (resource == null) return; IWorkbenchPage page= getSite().getWorkbenchWindow().getActivePage(); IViewPart view= page.showView(IPageLayout.ID_RES_NAV); if (view instanceof ISetSelectionTarget) { ISelection selection= new StructuredSelection(resource);
14,112
Bug 14112 Show in Navigator doesn't work for non-java resources
1) select logo.gif in JUnit 2) show in navigator -> action
resolved fixed
72e1faa
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T10:37:18Z
2002-04-18T14:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInNavigatorViewAction.java
((ISetSelectionTarget)view).selectReveal(selection); } } catch(PartInitException e) { ExceptionHandler.handle(e, getShell(), getDialogTitle(), ActionMessages.getString("ShowInNavigatorView.error.activation_failed")); } catch(JavaModelException e) { ExceptionHandler.handle(e, getShell(), getDialogTitle(), ActionMessages.getString("ShowInNavigatorView.error.conversion_failed")); } } private IJavaElement getElement(IStructuredSelection selection) { if (selection.size() != 1) return null; Object element= selection.getFirstElement(); if (!(element instanceof IJavaElement)) return null; return (IJavaElement)element; } private IResource getResource(IJavaElement element) throws JavaModelException { element= OpenActionUtil.getElementToOpen(element); if (element == null) return null; return element.getCorrespondingResource(); } private static String getDialogTitle() { return ActionMessages.getString("ShowInNavigatorView.dialog.title"); } }
11,882
Bug 11882 structured selection: remembering history should stop on 'whole-cu-selected' case
credit goes to Erich for finding this one when you press alt+up many times you select the whole cu when you press it again a couple of times then it takes the same number of times to bring it down again with alt+down it should stop stacking ranges when the range covers the full cu
resolved fixed
9328a0f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T12:29:36Z
2002-03-20T16:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/structureselection/StructureSelectionAction.java
package org.eclipse.jdt.internal.ui.javaeditor.structureselection; import java.util.Collection; import org.eclipse.jface.action.Action; import org.eclipse.jface.text.ITextSelection; import org.eclipse.jface.util.Assert; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.ISourceRange; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.core.dom.AST; import org.eclipse.jdt.core.dom.ASTNode; import org.eclipse.jdt.core.dom.Block; import org.eclipse.jdt.core.dom.CompilationUnit; import org.eclipse.jdt.core.dom.TypeDeclaration; import org.eclipse.jdt.internal.corext.SourceRange; import org.eclipse.jdt.internal.corext.dom.Selection; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor; public abstract class StructureSelectionAction extends Action {
11,882
Bug 11882 structured selection: remembering history should stop on 'whole-cu-selected' case
credit goes to Erich for finding this one when you press alt+up many times you select the whole cu when you press it again a couple of times then it takes the same number of times to bring it down again with alt+down it should stop stacking ranges when the range covers the full cu
resolved fixed
9328a0f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T12:29:36Z
2002-03-20T16:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/structureselection/StructureSelectionAction.java
public static final String NEXT= "SelectNextElement"; public static final String PREVIOUS= "SelectPreviousElement"; public static final String ENCLOSING= "SelectEnclosingElement"; public static final String HISTORY= "RestoreLastSelection"; private CompilationUnitEditor fEditor; private SelectionHistory fSelectionHistory; protected StructureSelectionAction(String text, CompilationUnitEditor editor, SelectionHistory history) { super(text); Assert.isNotNull(editor); Assert.isNotNull(history); fEditor= editor; fSelectionHistory= history; } /* * This constructor is for testing purpose only. */ protected StructureSelectionAction() { super(""); } /* (non-JavaDoc) * Method declared in IAction. */ public final void run() { ITextSelection selection= getTextSelection(); fSelectionHistory.remember(new SourceRange(selection.getOffset(), selection.getLength())); ISourceRange newRange= getNewSelectionRange(createSourceRange(selection), getCompilationUnit()); try {
11,882
Bug 11882 structured selection: remembering history should stop on 'whole-cu-selected' case
credit goes to Erich for finding this one when you press alt+up many times you select the whole cu when you press it again a couple of times then it takes the same number of times to bring it down again with alt+down it should stop stacking ranges when the range covers the full cu
resolved fixed
9328a0f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T12:29:36Z
2002-03-20T16:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/structureselection/StructureSelectionAction.java
fSelectionHistory.ignoreSelectionChanges(); fEditor.selectAndReveal(newRange.getOffset(), newRange.getLength()); } finally { fSelectionHistory.listenToSelectionChanges(); } } public final ISourceRange getNewSelectionRange(ISourceRange oldSourceRange, ICompilationUnit cu){ try{ if (! cu.isStructureKnown()) return oldSourceRange; CompilationUnit root= AST.parseCompilationUnit(cu, false); Selection selection= Selection.createFromStartLength(oldSourceRange.getOffset(), oldSourceRange.getLength()); StructureSelectionAnalyzer selAnalyzer= new StructureSelectionAnalyzer(selection, true); root.accept(selAnalyzer); return internalGetNewSelectionRange(oldSourceRange, cu, selAnalyzer); } catch (JavaModelException e){ JavaPlugin.log(e); return new SourceRange(oldSourceRange.getOffset(), oldSourceRange.getLength()); } } /** * This is the default implementation - it goes up one level in the AST. * Subclasses may implement different behavior and/or use this implementation as a fallback for cases they do not handle.. */ abstract ISourceRange internalGetNewSelectionRange(ISourceRange oldSourceRange, ICompilationUnit cu, StructureSelectionAnalyzer selAnalyzer) throws JavaModelException; protected final ICompilationUnit getCompilationUnit() { return JavaPlugin.getDefault().getWorkingCopyManager().getWorkingCopy(fEditor.getEditorInput());
11,882
Bug 11882 structured selection: remembering history should stop on 'whole-cu-selected' case
credit goes to Erich for finding this one when you press alt+up many times you select the whole cu when you press it again a couple of times then it takes the same number of times to bring it down again with alt+down it should stop stacking ranges when the range covers the full cu
resolved fixed
9328a0f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T12:29:36Z
2002-03-20T16:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/structureselection/StructureSelectionAction.java
} protected final ITextSelection getTextSelection() { return (ITextSelection)fEditor.getSelectionProvider().getSelection(); } protected static ISourceRange getLastCoveringNodeRange(ISourceRange oldSourceRange, ICompilationUnit cu, StructureSelectionAnalyzer selAnalyzer) throws JavaModelException { if (selAnalyzer.getLastCoveringNode() == null) return oldSourceRange; else return getSelectedNodeSourceRange(cu, selAnalyzer.getLastCoveringNode()); } protected static ISourceRange getSelectedNodeSourceRange(ICompilationUnit cu, ASTNode nodeToSelect) throws JavaModelException { int offset= nodeToSelect.getStartPosition(); int end= Math.min(cu.getSourceRange().getLength(), nodeToSelect.getStartPosition() + nodeToSelect.getLength() - 1); return createSourceRange(offset, end); } private static ISourceRange createSourceRange(ITextSelection ts){ if (ts.getLength() == 0) return new SourceRange(ts.getOffset(), 1); else return new SourceRange(ts.getOffset(), ts.getLength()); }
11,882
Bug 11882 structured selection: remembering history should stop on 'whole-cu-selected' case
credit goes to Erich for finding this one when you press alt+up many times you select the whole cu when you press it again a couple of times then it takes the same number of times to bring it down again with alt+down it should stop stacking ranges when the range covers the full cu
resolved fixed
9328a0f
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T12:29:36Z
2002-03-20T16:00:00Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/structureselection/StructureSelectionAction.java
static ISourceRange createSourceRange(int offset, int end){ int length= end - offset + 1; if (length == 0) length= 1; return new SourceRange(Math.max(0, offset), length); } static ASTNode[] getChildNodes(ASTNode node){ if (node instanceof Block) return convertToNodeArray(((Block)node).statements()); if (node instanceof TypeDeclaration) return convertToNodeArray(((TypeDeclaration)node).bodyDeclarations()); if (node instanceof CompilationUnit) return convertToNodeArray(((CompilationUnit)node).types()); return null; } private static ASTNode[] convertToNodeArray(Collection statements){ return (ASTNode[]) statements.toArray(new ASTNode[statements.size()]); } static int findIndex(Object[] array, Object o){ for (int i= 0; i < array.length; i++) { Object object= array[i]; if (object == o) return i; } return -1; } }
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/CreateJarActionDelegate.java
/* * (c) Copyright IBM Corp. 2000, 2002. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.jarpackager; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.List; import org.eclipse.core.resources.IFile; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.MultiStatus; import org.eclipse.core.runtime.Status; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.action.IAction; import org.eclipse.jface.dialogs.ProgressMonitorDialog; import org.eclipse.jface.util.Assert; import org.eclipse.jdt.ui.jarpackager.IJarDescriptionReader; import org.eclipse.jdt.ui.jarpackager.IJarExportRunnable; import org.eclipse.jdt.ui.jarpackager.JarPackageData; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.dialogs.ProblemDialog; import org.eclipse.jdt.internal.ui.util.ExceptionHandler; public class CreateJarActionDelegate extends JarPackageActionDelegate {
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/CreateJarActionDelegate.java
/* * @see IActionDelegate */ public void run(IAction action) { IFile[] descriptions= getDescriptionFiles(getSelection()); MultiStatus mergedStatus; int length= descriptions.length; if (length < 1) return; String message; if (length > 1) message= JarPackagerMessages.getString("JarFileExportOperation.creationOfSomeJARsFailed"); else message= JarPackagerMessages.getString("JarFileExportOperation.jarCreationFailed"); MultiStatus readStatus= new MultiStatus(JavaPlugin.getPluginId(), 0, message, null); JarPackageData[] jarPackages= readJarPackages(descriptions, readStatus);
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/CreateJarActionDelegate.java
if (jarPackages.length > 0) { IStatus status= export(jarPackages); if (status == null) return; if (readStatus.getSeverity() == IStatus.ERROR) message= readStatus.getMessage(); else message= status.getMessage(); mergedStatus= new MultiStatus(JavaPlugin.getPluginId(), status.getCode(), readStatus.getChildren(), message, null); mergedStatus.merge(status); } else mergedStatus= readStatus; if (!mergedStatus.isOK()) ProblemDialog.open(getShell(), JarPackagerMessages.getString("CreateJarActionDelegate.jarExport.title"), null, mergedStatus); } private JarPackageData[] readJarPackages(IFile[] descriptions, MultiStatus readStatus) { List jarPackagesList= new ArrayList(descriptions.length); for (int i= 0; i < descriptions.length; i++) { JarPackageData jarPackage= readJarPackage(descriptions[i], readStatus); if (jarPackage != null) jarPackagesList.add(jarPackage); } return (JarPackageData[])jarPackagesList.toArray(new JarPackageData[jarPackagesList.size()]); } private IStatus export(JarPackageData[] jarPackages) { Shell shell= getShell(); IJarExportRunnable op= jarPackages[0].createJarExportRunnable(jarPackages, shell); try {
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/CreateJarActionDelegate.java
ProgressMonitorDialog dialog= new ProgressMonitorDialog(shell); dialog.run(true, true, op); } catch (InvocationTargetException ex) { if (ex.getTargetException() != null) { ExceptionHandler.handle(ex, shell, JarPackagerMessages.getString("CreateJarActionDelegate.jarExportError.title"), JarPackagerMessages.getString("CreateJarActionDelegate.jarExportError.message")); return null; } } catch (InterruptedException e) { return null; } return op.getStatus(); } /** * Reads the JAR package spec from file. */ protected JarPackageData readJarPackage(IFile description, MultiStatus readStatus) { Assert.isLegal(description.isAccessible()); Assert.isNotNull(description.getFileExtension()); Assert.isLegal(description.getFileExtension().equals(JarPackagerUtil.DESCRIPTION_EXTENSION)); JarPackageData jarPackage= new JarPackageData(); IJarDescriptionReader reader= null; try { reader= jarPackage.createJarDescriptionReader(description.getContents()); reader.read(jarPackage); jarPackage.setSaveManifest(false); jarPackage.setSaveDescription(false); } catch (CoreException ex) {
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/CreateJarActionDelegate.java
String message= JarPackagerMessages.getFormattedString("JarFileExportOperation.errorReadingFile", description.getFullPath(), ex.getStatus().getException().getLocalizedMessage()); addToStatus(readStatus, jarPackage, message, ex); return null; } finally { if ((jarPackage == null || jarPackage.logWarnings()) && reader != null) readStatus.addAll(reader.getStatus()); try { if (reader != null) reader.close(); } catch (CoreException ex) { String message= JarPackagerMessages.getFormattedString("JarFileExportOperation.errorClosingJarPackageDescriptionReader", description.getFullPath()); addToStatus(readStatus, jarPackage, message, ex); } } return jarPackage; } protected void addToStatus(MultiStatus multiStatus, JarPackageData jarPackage, String defaultMessage, CoreException ex) { IStatus status= ex.getStatus(); int severity= status.getSeverity(); if (jarPackage == null || (severity == IStatus.ERROR && jarPackage.logErrors()) || (severity == IStatus.WARNING && jarPackage.logWarnings())) { String message= ex.getLocalizedMessage(); if (message == null || message.length() < 1) { status= new Status(status.getSeverity(), status.getPlugin(), status.getCode(), defaultMessage, ex); } multiStatus.add(status); } } }
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
/* * (c) Copyright IBM Corp. 2000, 2002. * All Rights Reserved. */ package org.eclipse.jdt.internal.ui.jarpackager; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.jar.Manifest;
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IFolder; import org.eclipse.core.resources.IMarker; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IWorkspace; import org.eclipse.core.resources.IWorkspaceDescription; import org.eclipse.core.resources.IncrementalProjectBuilder; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.MultiStatus; import org.eclipse.core.runtime.Status; import org.eclipse.core.runtime.SubProgressMonitor; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.jface.dialogs.IDialogConstants; import org.eclipse.jface.dialogs.ProgressMonitorDialog; import org.eclipse.jface.operation.IRunnableWithProgress; import org.eclipse.jface.operation.ModalContext; import org.eclipse.jface.util.Assert; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.IFileEditorInput; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IJavaModelMarker; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.IPackageFragment;
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
import org.eclipse.jdt.core.IPackageFragmentRoot; import org.eclipse.jdt.core.JavaCore; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.ui.jarpackager.IJarDescriptionWriter; import org.eclipse.jdt.ui.jarpackager.IJarExportRunnable; import org.eclipse.jdt.ui.jarpackager.JarPackageData; import org.eclipse.jdt.ui.jarpackager.JarWriter; import org.eclipse.jdt.internal.corext.util.JavaModelUtil; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.JavaStatusConstants; import org.eclipse.jdt.internal.ui.util.BusyIndicatorRunnableContext; /** * Operation for exporting a resource and its children to a new JAR file. */ public class JarFileExportOperation implements IJarExportRunnable { private static class MessageMultiStatus extends MultiStatus { MessageMultiStatus(String pluginId, int code, String message, Throwable exception) { super(pluginId, code, message, exception); } /* * allows to change the message */ protected void setMessage(String message) { super.setMessage(message); } } private static final String COMPILER_SOURCE_FILE_ATTR = "org.eclipse.jdt.core.compiler.debug.sourceFile"; private JarWriter fJarWriter; private JarPackageData fJarPackage; private JarPackageData[] fJarPackages;
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
private Shell fParentShell; private Map fJavaNameToClassFilesMap; private IContainer fClassFilesMapContainer; private Set fExportedClassContainers; private MessageMultiStatus fStatus; /** * Creates an instance of this class. * * @param jarPackage the JAR package specification * @param parent the parent for the dialog, * or <code>null</code> if no dialog should be presented */ public JarFileExportOperation(JarPackageData jarPackage, Shell parent) { this(new JarPackageData[] {jarPackage}, parent); } /** * Creates an instance of this class. * * @param jarPackages an array with JAR package data objects * @param parent the parent for the dialog, * or <code>null</code> if no dialog should be presented */ public JarFileExportOperation(JarPackageData[] jarPackages, Shell parent) { this(parent); fJarPackages= jarPackages; } private JarFileExportOperation(Shell parent) { fParentShell= parent; fStatus= new MessageMultiStatus(JavaPlugin.getPluginId(), IStatus.OK, "", null);
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
} protected void addToStatus(CoreException ex) { IStatus status= ex.getStatus(); int severity= status.getSeverity(); if (fJarPackage == null || (severity == IStatus.ERROR && fJarPackage.logErrors()) || (severity == IStatus.WARNING && fJarPackage.logWarnings())) { String message= ex.getLocalizedMessage(); if (message == null || message.length() < 1) { message= JarPackagerMessages.getString("JarFileExportOperation.coreErrorDuringExport"); status= new Status(status.getSeverity(), status.getPlugin(), status.getCode(), message, ex); } fStatus.add(status); } } /** * Adds a new warning to the list with the passed information. * Normally the export operation continues after a warning. * @param message the message * @param exception the throwable that caused the warning, or <code>null</code> */ protected void addWarning(String message, Throwable error) { if (fJarPackage == null || fJarPackage.logWarnings()) fStatus.add(new Status(IStatus.WARNING, JavaPlugin.getPluginId(), JavaStatusConstants.INTERNAL_ERROR, message, error)); } /** * Adds a new error to the list with the passed information. * Normally an error terminates the export operation. * @param message the message * @param exception the throwable that caused the error, or <code>null</code> */
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
protected void addError(String message, Throwable error) { if (fJarPackage == null || fJarPackage.logErrors()) fStatus.add(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), JavaStatusConstants.INTERNAL_ERROR, message, error)); } /** * Answers the number of file resources specified by the JAR package. * * @return int */ protected int countSelectedElements() { int count= 0; int n= fJarPackage.getElements().length; for (int i= 0; i < n; i++) { Object element= fJarPackage.getElements()[i]; IResource resource= null; if (element instanceof IJavaElement) { IJavaElement je= (IJavaElement)element; try { resource= je.getUnderlyingResource(); } catch (JavaModelException ex) { addWarning(JarPackagerMessages.getFormattedString("JarFileExportOperation.underlyingResourceNotFound", je.getElementName()), ex); return count; } } else resource= (IResource)element; if (resource.getType() == IResource.FILE) count++; else count += getTotalChildCount((IContainer)resource);
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
} return count; } private int getTotalChildCount(IContainer container) { IResource[] members; try { members= container.members(); } catch (CoreException ex) { return 0; } int count= 0; for (int i= 0; i < members.length; i++) { if (members[i].getType() == IResource.FILE) count++; else count += getTotalChildCount((IContainer)members[i]); } return count; } /** * Exports the passed resource to the JAR file * * @param element the resource or JavaElement to export */ protected void exportElement(Object element, IProgressMonitor progressMonitor) throws InterruptedException { int leadSegmentsToRemove= 1; IPackageFragmentRoot pkgRoot= null; boolean isInJavaProject= false; IResource resource= null;
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
IJavaProject jProject= null; if (element instanceof IJavaElement) { isInJavaProject= true; IJavaElement je= (IJavaElement)element; try { resource= je.getUnderlyingResource(); } catch (JavaModelException ex) { addWarning(JarPackagerMessages.getFormattedString("JarFileExportOperation.underlyingResourceNotFound", je.getElementName()), ex); return; } jProject= je.getJavaProject(); pkgRoot= JavaModelUtil.getPackageFragmentRoot(je); } else resource= (IResource)element; if (!resource.isAccessible()) { addWarning(JarPackagerMessages.getFormattedString("JarFileExportOperation.resourceNotFound", resource.getFullPath()), null); return; } if (resource.getType() == IResource.FILE) { if (!resource.isLocal(IResource.DEPTH_ZERO)) try { resource.setLocal(true , IResource.DEPTH_ZERO, progressMonitor); } catch (CoreException ex) { addWarning(JarPackagerMessages.getFormattedString("JarFileExportOperation.resourceNotLocal", resource.getFullPath()), ex); return; } if (!isInJavaProject) { try {
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
isInJavaProject= resource.getProject().hasNature(JavaCore.NATURE_ID); } catch (CoreException ex) { addWarning(JarPackagerMessages.getFormattedString("JarFileExportOperation.projectNatureNotDeterminable", resource.getFullPath()), ex); return; } if (isInJavaProject) { jProject= JavaCore.create(resource.getProject()); try { IPackageFragment pkgFragment= jProject.findPackageFragment(resource.getFullPath().removeLastSegments(1)); if (pkgFragment != null) pkgRoot= JavaModelUtil.getPackageFragmentRoot(pkgFragment); else pkgRoot= findPackageFragmentRoot(jProject, resource.getFullPath().removeLastSegments(1)); } catch (JavaModelException ex) { addWarning(JarPackagerMessages.getFormattedString("JarFileExportOperation.javaPackageNotDeterminable", resource.getFullPath()), ex); return; } } } if (pkgRoot != null) { leadSegmentsToRemove= pkgRoot.getPath().segmentCount(); if (mustUseSourceFolderHierarchy() && !pkgRoot.getElementName().equals(pkgRoot.DEFAULT_PACKAGEROOT_PATH)) leadSegmentsToRemove--; } IPath destinationPath= resource.getFullPath().removeFirstSegments(leadSegmentsToRemove); boolean isInOutputFolder= false; if (isInJavaProject) {
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
try { isInOutputFolder= jProject.getOutputLocation().isPrefixOf(resource.getFullPath()); } catch (JavaModelException ex) { isInOutputFolder= false; } } exportClassFiles(progressMonitor, pkgRoot, resource, jProject, destinationPath); exportResource(progressMonitor, pkgRoot, isInJavaProject, resource, destinationPath, isInOutputFolder); progressMonitor.worked(1); ModalContext.checkCanceled(progressMonitor); } else if (element instanceof IPackageFragment) exportPackageFragment(progressMonitor, (IPackageFragment)element); else exportContainer(progressMonitor, (IContainer)resource); } private void exportPackageFragment(IProgressMonitor progressMonitor, IPackageFragment pkgFragment) throws java.lang.InterruptedException { Object[] children; try { children= pkgFragment.getChildren(); for (int i= 0; i < children.length; i++) exportElement(children[i], progressMonitor); children= pkgFragment.getNonJavaResources(); for (int i= 0; i < children.length; i++) exportElement(children[i], progressMonitor); } catch (CoreException e) { addWarning(JarPackagerMessages.getFormattedString("JarFileExportOperation.errorDuringExport", pkgFragment.toString()), e); } }
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
private void exportContainer(IProgressMonitor progressMonitor, IContainer container) throws java.lang.InterruptedException { if (container.getType() == IResource.FOLDER && isOutputFolder((IFolder)container)) return; IResource[] children= null; try { children= container.members(); } catch (CoreException e) { addWarning(JarPackagerMessages.getFormattedString("JarFileExportOperation.errorDuringExport", container.getFullPath()), e); } for (int i= 0; i < children.length; i++) exportElement(children[i], progressMonitor); } private IPackageFragmentRoot findPackageFragmentRoot(IJavaProject jProject, IPath path) throws JavaModelException { if (jProject == null || path == null || path.segmentCount() <= 0) return null; IPackageFragmentRoot pkgRoot= jProject.findPackageFragmentRoot(path); if (pkgRoot != null) return pkgRoot; else return findPackageFragmentRoot(jProject, path.removeLastSegments(1)); } private void exportResource(IProgressMonitor progressMonitor, IPackageFragmentRoot pkgRoot, boolean isInJavaProject, IResource resource, IPath destinationPath, boolean isInOutputFolder) { boolean isNonJavaResource= !isInJavaProject || pkgRoot == null; boolean isInClassFolder= false; try { isInClassFolder= pkgRoot != null && !pkgRoot.isArchive() && pkgRoot.getKind() == pkgRoot.K_BINARY; } catch (JavaModelException ex) { addWarning(JarPackagerMessages.getFormattedString("JarFileExportOperation.cantGetRootKind", resource.getFullPath()), ex);
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
} if ((fJarPackage.areClassFilesExported() && ((isNonJavaResource || (pkgRoot != null && !isJavaFile(resource) && !isClassFile(resource))) || isInClassFolder && isClassFile(resource))) || (fJarPackage.areJavaFilesExported() && (isNonJavaResource || (pkgRoot != null && !isClassFile(resource))))) { try { progressMonitor.subTask(JarPackagerMessages.getFormattedString("JarFileExportOperation.exporting", destinationPath.toString())); fJarWriter.write((IFile) resource, destinationPath); } catch (CoreException ex) { addToStatus(ex); } } } private boolean isOutputFolder(IFolder folder) { try { IJavaProject javaProject= JavaCore.create(folder.getProject()); IPath outputFolderPath= javaProject.getOutputLocation(); return folder.getFullPath().equals(outputFolderPath); } catch (JavaModelException ex) { return false; } } private void exportClassFiles(IProgressMonitor progressMonitor, IPackageFragmentRoot pkgRoot, IResource resource, IJavaProject jProject, IPath destinationPath) { if (fJarPackage.areClassFilesExported() && isJavaFile(resource) && pkgRoot != null) { try { Iterator iter= filesOnClasspath((IFile)resource, destinationPath, jProject, progressMonitor); IPath baseDestinationPath= destinationPath.removeLastSegments(1); while (iter.hasNext()) { IFile file= (IFile)iter.next();
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
if (!resource.isLocal(IResource.DEPTH_ZERO)) file.setLocal(true , IResource.DEPTH_ZERO, progressMonitor); IPath classFilePath= baseDestinationPath.append(file.getName()); progressMonitor.subTask(JarPackagerMessages.getFormattedString("JarFileExportOperation.exporting", classFilePath.toString())); fJarWriter.write(file, classFilePath); } } catch (CoreException ex) { addToStatus(ex); } } } /** * Exports the resources as specified by the JAR package. */ protected void exportSelectedElements(IProgressMonitor progressMonitor) throws InterruptedException { fExportedClassContainers= new HashSet(10); int n= fJarPackage.getElements().length; for (int i= 0; i < n; i++) exportElement(fJarPackage.getElements()[i], progressMonitor); } /** * Returns an iterator on a list with files that correspond to the * passed file and that are on the classpath of its project. * * @param file the file for which to find the corresponding classpath resources * @param pathInJar the path that the file has in the JAR (i.e. project and source folder segments removed) * @param javaProject the javaProject that contains the file * @return the iterator over the corresponding classpath files for the given file */ protected Iterator filesOnClasspath(IFile file, IPath pathInJar, IJavaProject javaProject, IProgressMonitor progressMonitor) throws CoreException {
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
IFile[] classFiles= fJarPackage.findClassfilesFor(file); if (classFiles != null) return Arrays.asList(classFiles).iterator(); if (!isJavaFile(file)) return Collections.EMPTY_LIST.iterator(); IPath outputPath= javaProject.getOutputLocation(); IContainer outputContainer; if (javaProject.getProject().getFullPath().equals(outputPath)) outputContainer= javaProject.getProject(); else { outputContainer= createFolderHandle(outputPath); if (outputContainer == null || !outputContainer.isAccessible()) { String msg= JarPackagerMessages.getString("JarFileExportOperation.outputContainerNotAccessible"); throw new CoreException(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), JavaStatusConstants.INTERNAL_ERROR, msg, null)); } } boolean hasErrors= hasCompileErrors(file); boolean hasWarnings= hasCompileWarnings(file); boolean canBeExported= canBeExported(hasErrors, hasWarnings); if (!canBeExported) return Collections.EMPTY_LIST.iterator(); reportPossibleCompileProblems(file, hasErrors, hasWarnings, canBeExported); IContainer classContainer= outputContainer; if (pathInJar.segmentCount() > 1) classContainer= outputContainer.getFolder(pathInJar.removeLastSegments(1)); if (fExportedClassContainers.contains(classContainer))
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
return Collections.EMPTY_LIST.iterator(); if (fClassFilesMapContainer == null || !fClassFilesMapContainer.equals(classContainer)) { fJavaNameToClassFilesMap= buildJavaToClassMap(classContainer); if (fJavaNameToClassFilesMap == null) { String msg= JarPackagerMessages.getFormattedString("JarFileExportOperation.missingSourceFileAttributeExportedAll", classContainer.getLocation().toFile()); addWarning(msg, null); fExportedClassContainers.add(classContainer); return getClassesIn(classContainer); } fClassFilesMapContainer= classContainer; } ArrayList classFileList= (ArrayList)fJavaNameToClassFilesMap.get(file.getName()); if (classFileList == null || classFileList.isEmpty()) { String msg= JarPackagerMessages.getFormattedString("JarFileExportOperation.classFileOnClasspathNotAccessible", file.getFullPath()); throw new CoreException(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), JavaStatusConstants.INTERNAL_ERROR, msg, null)); } return classFileList.iterator(); } private Iterator getClassesIn(IContainer classContainer) throws CoreException { IResource[] resources= classContainer.members(); List files= new ArrayList(resources.length); for (int i= 0; i < resources.length; i++) if (resources[i].getType() == IResource.FILE && isClassFile(resources[i])) files.add(resources[i]); return files.iterator(); } /** * Answers whether the given resource is a Java file.
14,236
Bug 14236 Unable to log info messages during jar packaging
Using the 04/18 Integration build, I still can't get an info message into the status maintained by JarFileExportOperation. In my JarWriter implementation, the close() method is throwing a CoreException which contains a status whose severity is set to IStatus.INFO. However, note that JarFileExportOperation.addToStatus() only accepts ERROR and WARNING (and only when they are being logged respectively which they are for my package data).
resolved fixed
202c3f9
JDT
https://github.com/eclipse-jdt/eclipse.jdt.ui
eclipse-jdt/eclipse.jdt.ui
java
null
null
null
2002-04-19T16:07:06Z
2002-04-19T15:26:40Z
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
* The resource must be a file whose file name ends with ".java". * * @return a <code>true<code> if the given resource is a Java file */ boolean isJavaFile(IResource file) { return file != null && file.getType() == IFile.FILE && file.getFileExtension() != null && file.getFileExtension().equalsIgnoreCase("java"); } /** * Answers whether the given resource is a class file. * The resource must be a file whose file name ends with ".class". * * @return a <code>true<code> if the given resource is a class file */ boolean isClassFile(IResource file) { return file != null && file.getType() == IFile.FILE && file.getFileExtension() != null && file.getFileExtension().equalsIgnoreCase("class"); } /* * Builds and returns a map that has the class files * for each java file in a given directory */ private Map buildJavaToClassMap(IContainer container) throws CoreException { if (!isCompilerGeneratingSourceFileAttribute()) return null;