~veger/ganttproject/manual-import

« back to all changes in this revision

Viewing changes to ganttproject/src/net/sourceforge/ganttproject/export/FileChooserPage.java

  • Committer: Maarten Bezemer
  • Date: 2012-01-22 12:20:00 UTC
  • Revision ID: maarten.bezemer@gmail.com-20120122122000-qwyec45rjx86wi7o
Updated till 2fe683a778c3 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
GanttProject is an opensource project management tool. License: GPL2
 
2
GanttProject is an opensource project management tool. License: GPL3
3
3
Copyright (C) 2011 GanttProject Team
4
4
 
5
5
This program is free software; you can redistribute it and/or
6
6
modify it under the terms of the GNU General Public License
7
 
as published by the Free Software Foundation; either version 2
 
7
as published by the Free Software Foundation; either version 3
8
8
of the License, or (at your option) any later version.
9
9
 
10
10
This program is distributed in the hope that it will be useful,
22
22
import java.io.File;
23
23
import java.net.URL;
24
24
import java.text.MessageFormat;
 
25
import java.util.List;
25
26
 
26
27
import javax.swing.filechooser.FileFilter;
27
28
 
60
61
        return GanttLanguage.getInstance().getText("selectFileToExport");
61
62
    }
62
63
 
 
64
    @Override
63
65
    public String getTitle() {
64
66
        return GanttLanguage.getInstance().getText("selectFileToExport");
65
67
    }
165
167
    protected GPOptionGroup[] getOptionGroups() {
166
168
        GPOptionGroup[] exporterOptions = null;
167
169
        if (myState.getExporter()!=null) {
168
 
            exporterOptions = myState.getExporter().getSecondaryOptions();
 
170
            List<GPOptionGroup> options = myState.getExporter().getSecondaryOptions();
 
171
            exporterOptions = options == null ? null : options.toArray(new GPOptionGroup[0]);
169
172
        }
170
173
        if (exporterOptions==null) {
171
174
            return new GPOptionGroup[] {myWebPublishingGroup};