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 193781 Details for
Bug 296786
[actions] Opening a project in Package Explorer forces me to select the project to open twice
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]
Proposed fix
patch_296786.txt (text/plain), 1.16 KB, created by
Raksha Vasisht
on 2011-04-21 03:34:02 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Raksha Vasisht
Created:
2011-04-21 03:34:02 EDT
Size:
1.16 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.ui >Index: ui/org/eclipse/jdt/ui/actions/OpenProjectAction.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenProjectAction.java,v >retrieving revision 1.28 >diff -u -r1.28 OpenProjectAction.java >--- ui/org/eclipse/jdt/ui/actions/OpenProjectAction.java 1 Mar 2011 11:50:29 -0000 1.28 >+++ ui/org/eclipse/jdt/ui/actions/OpenProjectAction.java 21 Apr 2011 07:26:56 -0000 >@@ -40,6 +40,8 @@ > import org.eclipse.ui.actions.OpenResourceAction; > import org.eclipse.ui.dialogs.ListSelectionDialog; > >+import org.eclipse.jdt.core.IJavaProject; >+ > import org.eclipse.jdt.ui.JavaElementLabelProvider; > > import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; >@@ -147,6 +149,11 @@ > } > > private static boolean isClosedProject(Object element) { >+ if (element instanceof IJavaProject) { >+ IProject project= ((IJavaProject) element).getProject(); >+ return !project.isOpen(); >+ } >+ > // assume all closed project are rendered as IProject > return element instanceof IProject && !((IProject) element).isOpen(); > }
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
Actions:
View
|
Diff
Attachments on
bug 296786
:
154018
|
170168
| 193781