~codeminer.team/codeminer/eclipse

« back to all changes in this revision

Viewing changes to CodeMinerEtape3/src/codeminer/export/preference/Reader.java

  • Committer: Sébastien Heymann
  • Date: 2009-04-05 15:46:55 UTC
  • Revision ID: sebastien@chartreuse-one-20090405154655-57re7tmumautti6o
Wizard corrected and bugfix on gexf static export

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
package codeminer.export.preference;
2
 
 
3
 
import java.util.ArrayList;
4
 
import java.util.List;
5
 
 
6
 
import org.eclipse.jface.preference.IPreferenceStore;
7
 
 
8
 
import codeminer.main.Activator;
9
 
 
10
 
public abstract class Reader {
11
 
 
12
 
        public static List<String> getExportableTypes() {
13
 
                List<String> types = new ArrayList<String>();
14
 
                IPreferenceStore preference = Activator.getDefault().getPreferenceStore();
15
 
                
16
 
                if(preference.getBoolean(Constants.P_EXPORT_TYPE_PACKAGE))
17
 
                        types.add("package");
18
 
                
19
 
                if(preference.getBoolean(Constants.P_EXPORT_TYPE_CLASS))
20
 
                        types.add("class");
21
 
                
22
 
                if(preference.getBoolean(Constants.P_EXPORT_TYPE_METHOD))
23
 
                        types.add("method");
24
 
                
25
 
                if(preference.getBoolean(Constants.P_EXPORT_TYPE_VARIABLE))
26
 
                        types.add("variable");
27
 
                
28
 
                return types;
29
 
        }
30
 
        
31
 
        public static List<String> getAllTypes() {
32
 
                List<String> types = new ArrayList<String>();
33
 
                types.add("package");
34
 
                types.add("class");
35
 
                types.add("method");
36
 
                types.add("variable");
37
 
                
38
 
                return types;
39
 
        }
40
 
}