Revision 15599
trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/roi/ui/ROIManagerDialog.java | ||
---|---|---|
49 | 49 |
import org.gvsig.gui.beans.buttonspanel.ButtonsPanel; |
50 | 50 |
import org.gvsig.gui.beans.buttonspanel.ButtonsPanelEvent; |
51 | 51 |
import org.gvsig.gui.beans.buttonspanel.ButtonsPanelListener; |
52 |
import org.gvsig.gui.beans.table.exceptions.NotInitializeException; |
|
52 | 53 |
|
53 | 54 |
import com.iver.andami.PluginServices; |
54 | 55 |
import com.iver.andami.ui.mdiManager.IWindow; |
... | ... | |
152 | 153 |
roiManagerPanel.getTablePanel().getMapControl().setTool(previousTool); |
153 | 154 |
} |
154 | 155 |
|
155 |
public void windowActivated() {} |
|
156 |
public void windowActivated() { |
|
157 |
try { |
|
158 |
if (getROIsManagerPanel().getTablePanel().getTable().getSelectedRows().length==1){ |
|
159 |
getROIsManagerPanel().getTablePanel().setToolsEnabled(true); |
|
160 |
getROIsManagerPanel().getTablePanel().selectDrawRoiTool(); |
|
161 |
} |
|
162 |
} catch (NotInitializeException e) { |
|
163 |
// TODO Auto-generated catch block |
|
164 |
e.printStackTrace(); |
|
165 |
} |
|
166 |
} |
|
156 | 167 |
|
157 | 168 |
public void windowClosed() { |
158 | 169 |
/* |
trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/roi/ui/ROIsManagerPanel.java | ||
---|---|---|
38 | 38 |
|
39 | 39 |
private void initialize() { |
40 | 40 |
setLayout(new BorderLayout(5,5)); |
41 |
setBorder(new EmptyBorder(0,15,11,15)); |
|
42 |
add(getMenuBar(),BorderLayout.NORTH); |
|
41 |
setBorder(new EmptyBorder(11,15,11,15)); |
|
42 |
//setBorder(new EmptyBorder(0,15,11,15)); |
|
43 |
//add(getMenuBar(),BorderLayout.NORTH); |
|
43 | 44 |
add(getTablePanel(),BorderLayout.CENTER); |
44 | 45 |
|
45 | 46 |
listener = new ROIManagerPanelListener(this); |
Also available in: Unified diff