Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 174715 Details for
Bug 312054
[preferences] UserLibraryPreferencePage: After renaming a user library the Up, Down, Remove buttons do not work until dialog is reopened
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch_v2
patch3_312054.txt (text/plain), 3.32 KB, created by
Raksha Vasisht
on 2010-07-20 04:49:14 EDT
(
hide
)
Description:
Patch_v2
Filename:
MIME Type:
Creator:
Raksha Vasisht
Created:
2010-07-20 04:49:14 EDT
Size:
3.32 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.ui >Index: ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPListElement.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPListElement.java,v >retrieving revision 1.79 >diff -u -r1.79 CPListElement.java >--- ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPListElement.java 14 Feb 2009 07:57:06 -0000 1.79 >+++ ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPListElement.java 20 Jul 2010 08:44:13 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2009 IBM Corporation and others. >+ * Copyright (c) 2000, 2010 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -394,6 +394,16 @@ > } > > /** >+ * Sets the parent container. >+ * >+ * @param parent the parent container >+ * @since 3.7 >+ */ >+ protected void setParentContainer(CPUserLibraryElement parent) { >+ fParentContainer= parent; >+ } >+ >+ /** > * Notifies that an attribute has changed > * > * @param key the changed key >Index: ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPUserLibraryElement.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPUserLibraryElement.java,v >retrieving revision 1.17 >diff -u -r1.17 CPUserLibraryElement.java >--- ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPUserLibraryElement.java 11 Sep 2008 11:59:19 -0000 1.17 >+++ ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPUserLibraryElement.java 20 Jul 2010 08:44:13 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2008 IBM Corporation and others. >+ * Copyright (c) 2000, 2010 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -84,11 +84,26 @@ > } > } > >+ /** >+ * Creates the new library element with the given name and children elements, also sets itself as the parent >+ * container to all the given children elements. >+ * >+ * @param name the name of the library element >+ * @param isSystemLibrary <code>true</code> if the library is a system library, >+ * <code>false</code> otherwise >+ * @param children the children elements of the library element or <code>null</code> >+ */ > public CPUserLibraryElement(String name, boolean isSystemLibrary, CPListElement[] children) { > fName= name; > fChildren= new ArrayList(); > if (children != null) { > for (int i= 0; i < children.length; i++) { >+ Object container= children[i].getParentContainer(); >+ if (!(container instanceof CPUserLibraryElement)) >+ continue; >+ CPUserLibraryElement libraryElement= (CPUserLibraryElement)container; >+ if (!libraryElement.getName().equals(name)) >+ children[i].setParentContainer(this); > fChildren.add(children[i]); > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
daniel_megert
:
review-
Actions:
View
|
Diff
Attachments on
bug 312054
:
174584
|
174715
|
174736