aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbeyhan@eclipsesource.com2012-03-16 19:25:25 (EDT)
committerbeyhan@eclipsesource.com2012-03-16 19:25:25 (EDT)
commit134861e6e63ad5d29de56424fcd7a05e3e12dbfe (patch)
treec14ceab12f087e2cbc945ada083d2b432557d0eb
parent89128523ae2be34157c8852ed49157ce71be9107 (diff)
downloadorg.eclipse.rtp-134861e6e63ad5d29de56424fcd7a05e3e12dbfe.zip
org.eclipse.rtp-134861e6e63ad5d29de56424fcd7a05e3e12dbfe.tar.gz
org.eclipse.rtp-134861e6e63ad5d29de56424fcd7a05e3e12dbfe.tar.bz2
364706: [Configurator][UI] Provide a configurator UI
https://bugs.eclipse.org/bugs/show_bug.cgi?id=364706 * a NPE fixed after update
-rw-r--r--bundles/org.eclipse.rtp.configurator.ui/src/org/eclipse/rtp/configurator/ui/ComponentsTab.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.rtp.configurator.ui/src/org/eclipse/rtp/configurator/ui/ComponentsTab.java b/bundles/org.eclipse.rtp.configurator.ui/src/org/eclipse/rtp/configurator/ui/ComponentsTab.java
index d6520a6..528b942 100644
--- a/bundles/org.eclipse.rtp.configurator.ui/src/org/eclipse/rtp/configurator/ui/ComponentsTab.java
+++ b/bundles/org.eclipse.rtp.configurator.ui/src/org/eclipse/rtp/configurator/ui/ComponentsTab.java
@@ -177,7 +177,10 @@ public class ComponentsTab extends AbstractTabContribution {
} else {
sourceVersion = ( SourceVersion )selectedElement;
}
- if( contentUtil.isInstalled( sourceVersion ) ) {
+ if( sourceVersion == null ) {
+ addSource.setEnabled( false );
+ removeSource.setEnabled( false );
+ } else if( contentUtil.isInstalled( sourceVersion ) ) {
addSource.setEnabled( false );
removeSource.setEnabled( true );
} else {