gvSIG feature requests #4252
Different icon for Jython geoprocesses in the Toolbox
Status: | Closed | % Done: | 0% | |
---|---|---|---|---|
Priority: | Normal | Spent time: | - | |
Assignee: | Joaquín del Cerro Murciano | |||
Category: | Scripting | |||
Target version: | 2.3.0-2439 (rev. org.gvsig.desktop-2.0.145) | |||
gvSIG version: | 2.3.0 | Add-on resolve version: | ||
Keywords: | Add-on resolve build: | |||
Has patch: | Proyecto: | |||
Add-on name: | Unknown | Hito: | ||
Add-on version: |
Description
It would be nice to have a different icon for Jython geoprocesses in the Toolbox, just like models and BeanShell scripts.
Associated revisions
refs #4252, añadido soporte para que cada geoprocesos pueda especificar el icono a presentar en el panel de geoprocesos.
History
#1 Updated by Joaquín del Cerro Murciano almost 8 years ago
- Target version changed from 2.3.0-2447-final (rev. org.gvsig.desktop-2.0.153) to 2.3.0-2439 (rev. org.gvsig.desktop-2.0.145)
- Assignee set to Joaquín del Cerro Murciano
- Status changed from New to Fixed
Hola,
he añadido algo, que aunque no es exactamente lo mismo que pides creo puede ser suficiente.
He hecho que si un geoproceso implementa el interface HasIcon:
package es.unex.sextante.gui.core; import javax.swing.ImageIcon; public interface HasIcon { public ImageIcon getIcon(); }
La toolbox use el metodo getIcon() para obtener el icono para ese geoproceso.
Esto permitira que cada geoproceso pueda especificar su propio icono.
#2 Updated by Antonio Falciano almost 8 years ago
Hi Joaquín,
the basic idea could be to set the icon e.g. in the defineCharacteristics function (or hard code it directly in gvsig.libs.toolbox). For instance:
def defineCharacteristics(self): self.setName("My algorithm") self.setGroup("My algorithms") self.setIcon(imageIcon) #javax.swing.ImageIcon params = self.getParameters() # ...Will it be possible in this way? Thanks in advance.
#3 Updated by Álvaro Anguix over 7 years ago
Could you test in the last builds?
#4 Updated by Antonio Falciano over 7 years ago
To test it simply execute the proceso_desplazamientoxy.py example. Result: the icon of "Prueba desplazamiento in X e Y" is the same of other geoprocesses in the latest builds, so the feature request is not satisfied yet. AFAIK there's not a setIcon method yet or a new icon for Jython geoprocesses hard coded in gvsig.libs.toolbox.
#5 Updated by Álvaro Anguix over 7 years ago
- Status changed from Fixed to Closed