[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] menu paths etc for new operations
|
On 15-Jan-07, at 6:54 AM, Murray Richardson wrote:
Hope you all had a good weekend!
Trying to wrap up a project and have a few last minute questions if
anyone might be able to help:
(1) I haven't been able to figure out the menu paths to use for new
operations. What are they? Also - is it possible to have new
subcategories within new categories to better organize operations?
Finally, is it possible to put new Operations into a new Menu
altogether (not Operations), but still have them accessible under
the Operations menu accessed by right-clicking layers?
That is an optional attribute by default operations will be in the
Operation Menu in the category that was declared in the extension
definition. The Menu path allows one to place the operation else
where. You can find most of the options in the Constants class.
Look at:
http://svn.geotools.org/udig/branches/1.1.x/udig/plugins/
net.refractions.udig.ui/src/net/refractions/udig/ui/Constants.java
(2) Is it possible to reset a postGIS service listed in the catalog
from
within an operation? If so, how?
Its not nice... Here's a snippet from the Reset action:
public static void reset( IService original, IProgressMonitor
monitor ) {
IServiceFactory locator = CatalogPlugin.getDefault
().getServiceFactory();
ICatalog connections = CatalogPlugin.getDefault
().getLocalCatalog();
try {
final URL ID = original.getIdentifier();
CatalogUIPlugin.trace("Reset service " +
original.getIdentifier()); //$NON-NLS-1$
Map<java.lang.String, java.io.Serializable>
connectionParams = original
.getConnectionParams();
IService replacement = null; // unknown
TEST: for( IService candidate : locator.acquire(ID,
connectionParams) ) {
try {
CatalogUIPlugin.trace(ID + " :
connecting"); //$NON-NLS-1$
IServiceInfo info = candidate.getInfo(monitor);
CatalogUIPlugin.trace(ID + " : found " +
info.getTitle()); //$NON-NLS-1$
replacement = candidate;
break TEST;
} catch (Throwable t) {
CatalogUIPlugin.trace(ID + " : ... " +
t.getLocalizedMessage()); //$NON-NLS-1$
}
}
if (replacement == null) {
return; // not available - should update
existing service to error?
}
connections.replace(ID, replacement);
} catch (Throwable failed) {
CatalogUIPlugin.log("Reset failed", failed); //$NON-
NLS-1$
}
}
(3) Is it possible to have more than one target class for an
operation? e.g. How do I make an operation apply to resources in
List-Subscribe: <http://lists.refractions.net/mailman/listinfo/udig-devel>,
<mailto:udig-devel-request@xxxxxxxxxxxxxxxxxxxxx?subject=subscribe>
X-List-Received-Date: Tue, 16 Jan 2007 01:17:30 -0000
WFS schema maybe nillable but default value is null
---------------------------------------------------
Key: UDIG-1195
URL: http://jira.codehaus.org/browse/UDIG-1195
Project: uDIG
Issue Type: Bug
Components: wfs
Affects Versions: UDIG 1.1.RC8
Reporter: Jesse Eichar
Fix For: UDIG 1.1.0
this affects the export feature. try exporting:
http://mapserver.refractions.net/cgi-bin/mapserv48?map=/home/www/mapserv/maps/victoria-wms.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities
the VotingAreas layer
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira