gvsig-vectorediting / org.gvsig.vectorediting / trunk / org.gvsig.vectorediting / org.gvsig.vectorediting.app / org.gvsig.vectorediting.app.mainplugin / src / main / java / org / gvsig / vectorediting / app / mainplugin / extensions / InsertPointExtension.java @ 23
History | View | Annotate | Download (934 Bytes)
1 |
/*
|
---|---|
2 |
* Copyright 2014 DiSiD Technologies S.L.L. All rights reserved.
|
3 |
*
|
4 |
* Project : DiSiD org.gvsig.vectorediting.app.mainplugin
|
5 |
* SVN Id : $Id$
|
6 |
*/
|
7 |
package org.gvsig.vectorediting.app.mainplugin.extensions; |
8 |
|
9 |
import org.gvsig.app.project.documents.view.gui.DefaultViewPanel; |
10 |
import org.gvsig.vectorediting.app.mainplugin.BaseEditingServiceExtension; |
11 |
|
12 |
public class InsertPointExtension extends BaseEditingServiceExtension { |
13 |
|
14 |
/**
|
15 |
*
|
16 |
*/
|
17 |
private static final long serialVersionUID = 5284754862994440445L; |
18 |
|
19 |
public void execute(String arg0) { |
20 |
|
21 |
DefaultViewPanel view = getActiveView(); |
22 |
manager.activateTool("InsertPoint", view.getMapControl());
|
23 |
|
24 |
} |
25 |
|
26 |
public void initialize() { |
27 |
// TODO Auto-generated method stub
|
28 |
|
29 |
} |
30 |
|
31 |
public boolean isEnabled() { |
32 |
// TODO Auto-generated method stub
|
33 |
return true; |
34 |
} |
35 |
|
36 |
public boolean isVisible() { |
37 |
// TODO Auto-generated method stub
|
38 |
return true; |
39 |
} |
40 |
|
41 |
} |