Revision 4120 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/commands/RemoveFFrameCommand.java
RemoveFFrameCommand.java | ||
---|---|---|
17 | 17 |
* |
18 | 18 |
* You should have received a copy of the GNU General Public License |
19 | 19 |
* along with this program; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
20 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
|
21 | 21 |
USA. |
22 | 22 |
* |
23 | 23 |
* For more information, contact: |
... | ... | |
45 | 45 |
package com.iver.cit.gvsig.gui.layout.commands; |
46 | 46 |
|
47 | 47 |
|
48 |
import com.iver.cit.gvsig.fmap.edition.commands.Command; |
|
49 |
import com.iver.cit.gvsig.gui.layout.fframes.IFFrame; |
|
48 |
import java.io.IOException; |
|
50 | 49 |
|
50 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
|
51 |
import com.iver.cit.gvsig.fmap.edition.commands.AbstractCommand; |
|
51 | 52 |
|
52 | 53 |
|
53 |
public class RemoveFFrameCommand implements Command { |
|
54 |
|
|
55 |
public class RemoveFFrameCommand extends AbstractCommand { |
|
54 | 56 |
private EditableFeatureSource efs; |
55 | 57 |
private int index; |
56 | 58 |
public RemoveFFrameCommand(EditableFeatureSource ef,int i) { |
57 | 59 |
efs=ef; |
58 | 60 |
index=i; |
59 | 61 |
} |
60 |
|
|
62 |
|
|
61 | 63 |
/** |
62 | 64 |
* @throws DriverIOException |
63 | 65 |
* @throws IOException |
... | ... | |
75 | 77 |
efs.doRemoveFFrame(index); |
76 | 78 |
} |
77 | 79 |
|
80 |
public String getType() { |
|
81 |
return "Remove FFrame"; |
|
82 |
} |
|
83 |
|
|
78 | 84 |
} |
Also available in: Unified diff