Revision 1055 org.gvsig.geoprocess/branches/refactor-2018/org.gvsig.geoprocess/org.gvsig.geoprocess.lib/org.gvsig.geoprocess.lib.sextante/src/main/java/org/gvsig/geoprocess/lib/sextante/SextanteGeoProcessManager.java

View differences:

SextanteGeoProcessManager.java
99 99
        geoprocesses = new HashMap<String, GeoAlgorithm>();
100 100
    }
101 101

  
102
    @Override
102 103
    public String getTranslation(String label) {
103 104
        // Just in case an algorithm is using a sextante label
104 105
        String text = i18nManager.getTranslation(label);
105 106
        return text == null ? Sextante.getText(label) : text;
106 107
    }
107 108

  
109
    @Override
108 110
    public void registerGeoProcess(GeoProcess geoProcess) {
109 111
        if (geoProcess instanceof GeoAlgorithm) {
110 112
            GeoAlgorithm geoAlgorithm = (GeoAlgorithm) geoProcess;
......
116 118
        }
117 119
    }
118 120

  
121
    @Override
119 122
    public void registerGeoProcess(Class<? extends GeoProcess> geoProcessClazz,
120 123
        Map<String, String> localeStrings) {
121 124
        try {
......
132 135
        }
133 136
    }
134 137

  
138
    @Override
135 139
    public void initialize() {
136 140
        // Nothing to do
137 141
    }
138 142

  
143
    @Override
139 144
    public String getName() {
140 145
        return Messages.getText("gv_algorithms");
141 146
    }
142 147

  
148
    @Override
143 149
    public HashMap<String, GeoAlgorithm> getAlgorithms() {
144 150
        return new HashMap<String, GeoAlgorithm>(geoprocesses);
145 151
    }
146 152

  
153
    @Override
147 154
    public HashMap<String, Class> getCustomModelerParameterPanels() {
148 155
        final HashMap<String, Class> map = new HashMap<String, Class>();
149 156
        final Set<String> set = getAlgorithms().keySet();
......
155 162
        return map;
156 163
    }
157 164

  
165
    @Override
158 166
    public HashMap<String, Class> getCustomParameterPanels() {
159 167
        final HashMap<String, Class> map = new HashMap<String, Class>();
160 168
        final Set<Entry<String, GeoAlgorithm>> set = getAlgorithms().entrySet();
......
175 183
        return map;
176 184
    }
177 185

  
186
    @Override
178 187
    public ImageIcon getIcon() {
179 188
        return IconThemeHelper.getImageIcon("gvsig-icon16x16");
180 189
    }
181 190

  
191
    @Override
182 192
    public Setting getSettings() {
183 193
        return new GeoprocessSetting();
184 194
    }
185 195

  
196
    @Override
186 197
    public void update() {
187 198
        // Nothing to do
188 199
    }
189 200

  
201
    @Override
190 202
    public Object getAlgorithmHelp(GeoAlgorithm alg) {
191 203
        String algName = alg.getClass().getSimpleName();
192 204
        String helpFileName =
......
388 400
        return doc.getHTMLCode();
389 401
    }
390 402

  
403
    @Override
391 404
    public String getAlgorithmHelpFilename(GeoAlgorithm alg,
392 405
        boolean bForceCurrentLocale) {
393 406
        // TODO Auto-generated method stub
394 407
        return null;
395 408
    }
396 409

  
410
    @Override
397 411
    public boolean canEditHelp() {
398 412
        return false;
399 413
    }
......
504 518

  
505 519
    }
506 520

  
521
    @Override
507 522
    public HashMap<NameAndIcon, ArrayList<ToolboxAction>> getToolboxActions() {
508 523
        return new HashMap<NameAndIcon, ArrayList<ToolboxAction>>();
509 524
     }
510 525

  
511 526

  
527
    @Override
512 528
     public IToolboxRightButtonAction[] getToolboxRightButtonActions() {
513 529
        return new IToolboxRightButtonAction[0];
514 530
     }

Also available in: Unified diff