Author: rob.stryker(a)jboss.com
Date: 2008-08-22 16:37:34 -0400 (Fri, 22 Aug 2008)
New Revision: 9874
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesCommonView.java
Log:
JBIDE-2665 - a few more tiny changes to make sure the selection listener was in top shape
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesCommonView.java
===================================================================
---
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesCommonView.java 2008-08-22
20:30:51 UTC (rev 9873)
+++
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesCommonView.java 2008-08-22
20:37:34 UTC (rev 9874)
@@ -72,8 +72,7 @@
if( project != null && project != currentProject ) {
currentProject = project;
if( showProjectRoot()) {
- boolean showAll =
PrefsInitializer.getBoolean(PrefsInitializer.PREF_SHOW_ALL_PROJECTS);
- if( !showAll ||
!getCommonViewer().getInput().equals(ResourcesPlugin.getWorkspace().getRoot()))
+ if( !showAllProjects() ||
!getCommonViewer().getInput().equals(ResourcesPlugin.getWorkspace().getRoot()))
getCommonViewer().setInput(ResourcesPlugin.getWorkspace().getRoot());
} else {
getCommonViewer().setInput(currentProject);
@@ -106,10 +105,15 @@
public IProject getCurrentProject() {
return currentProject;
}
- private boolean showProjectRoot () {
+
+ private boolean showProjectRoot() {
return PrefsInitializer.getBoolean(PrefsInitializer.PREF_SHOW_PROJECT_ROOT);
}
-
+
+ private boolean showAllProjects() {
+ return PrefsInitializer.getBoolean(PrefsInitializer.PREF_SHOW_ALL_PROJECTS);
+ }
+
public void addBuildActionToSite() {
Action buildAction = new Action("",
ArchivesSharedImages.getImageDescriptor(ArchivesSharedImages.IMG_BUILD_PACKAGES)) {
public void run() {
Show replies by date