Permalink
Browse files

defaults to the only stanza

  • Loading branch information...
1 parent b974c9c commit 92b3bb50bee3a08cffe5f2f8010677beaf776f7e @JPMoresmau committed Dec 6, 2012
@@ -108,6 +108,13 @@ public void init(final IFile file,final IResource srcPath, final String module,f
}
List<PackageDescriptionStanza> l=cabal.getStanzasBySourceDir().get( path );
if (l!=null && l.size()>0){
+ /** defaults to the only one **/
+ if (l.size()==1 && editor==null ){
+ editor=l.get( 0 ).getName();
+ if (editor==null){ // library
+ editor="";
+ }
+ }
GridLayout gl=new GridLayout(4,false);
setLayout( gl );

0 comments on commit 92b3bb5

Please sign in to comment.