Skip to content

Commit

Permalink
Remove toplevel from dsview if default is the only one
Browse files Browse the repository at this point in the history
  • Loading branch information
goglepox committed Jun 26, 2015
1 parent eeb2593 commit a9888e7
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -469,9 +469,11 @@ public void run() {
//Init viewer with available endpoints
IDSManager ds = net.bioclipse.ds.Activator.getDefault().getJavaManager();
try {
if (ds.getFullTopLevels().size()>0) //There is always the uncategorized...
if (ds.getFullTopLevels().size()>1) //There is always the uncategorized...
viewer.setInput(ds.getFullTopLevels().toArray());
else{
else if(ds.getFullTopLevels().size()==1 && ds.getFullEndpoints().size()>1) {
viewer.setInput( ds.getFullEndpoints() );
} else {
String[] msg = new String[2];
msg[0]=" No models available.";
msg[1]="link:Install models...";// from menu: 'Install > DS Models...'";
Expand Down

0 comments on commit a9888e7

Please sign in to comment.