Revision 10997 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/histogram/ui/HistogramTocMenuEntry.java

View differences:

HistogramTocMenuEntry.java
57 57
	}
58 58
	
59 59
	public void execute(ITocItem item, FLayer[] selectedItems) {
60

  
61 60
		
62 61
		if (selectedItems.length == 1 )
63 62
			lyr = selectedItems[0];
......
67 66
		lyr = getNodeLayer(item);
68 67
		
69 68
		histogramDialog = new HistogramDialog(width, height);
70
		histogramDialog.setSize(width, height);
69
//		histogramDialog.setSize(width, height);
71 70

  
72 71
		histogramDialog.clearSources();
73 72
		histogramDialog.setHistogramableSource(((FLyrRasterSE)lyr).getSource().getRender().getLastRenderBuffer(), PluginServices.getText(this, "datos_visualizados"));
74
		histogramDialog.setHistogramableSource(((FLyrRasterSE)lyr).getSource().getDatasource().getGeoRasterMultiFile(), PluginServices.getText(this, "vista_datasource"));
73
		histogramDialog.setHistogramableSource(((FLyrRasterSE)lyr).getSource().getDatasource().getGeoRasterMultiFile(), PluginServices.getText(this, "imagen_completa"));
75 74

  
76 75
		//Par?metros de inicializaci?n del histograma
77 76

  
......
80 79
		histogramDialog.getHistogramPanel().setRGBInBandList(); //Asignaci?n R,G,B en el combo
81 80

  
82 81
		histogramDialog.getHistogramPanel().firstRun(); // Mostar por primera vez el histograma
82
		histogramDialog.setVisible(true);
83 83
 		       					
84 84
		PluginServices.getMDIManager().addWindow(histogramDialog);
85 85
	}

Also available in: Unified diff