getPermissions() {
+ return permissions;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String getDescription() {
+ return description;
+ }
+
+ @Override
+ public String toString() {
+ return name;
+ }
+
+}
diff --git a/edexOsgi/com.raytheon.uf.common.plugin.nwsauth/src/com/raytheon/uf/common/plugin/nwsauth/exception/RoleApplicationNotFoundException.java b/edexOsgi/com.raytheon.uf.common.plugin.nwsauth/src/com/raytheon/uf/common/plugin/nwsauth/exception/RoleApplicationNotFoundException.java
index 4c317cb05a..2fa212e9f3 100644
--- a/edexOsgi/com.raytheon.uf.common.plugin.nwsauth/src/com/raytheon/uf/common/plugin/nwsauth/exception/RoleApplicationNotFoundException.java
+++ b/edexOsgi/com.raytheon.uf.common.plugin.nwsauth/src/com/raytheon/uf/common/plugin/nwsauth/exception/RoleApplicationNotFoundException.java
@@ -19,6 +19,8 @@
**/
package com.raytheon.uf.common.plugin.nwsauth.exception;
+import com.raytheon.uf.common.auth.exception.AuthorizationException;
+
/**
* Exception when the application id for a role is not found.
*
diff --git a/edexOsgi/com.raytheon.uf.common.serialization/src/com/raytheon/uf/common/serialization/DynamicSerializationManager.java b/edexOsgi/com.raytheon.uf.common.serialization/src/com/raytheon/uf/common/serialization/DynamicSerializationManager.java
index 318e6dca6b..075ad03b2f 100644
--- a/edexOsgi/com.raytheon.uf.common.serialization/src/com/raytheon/uf/common/serialization/DynamicSerializationManager.java
+++ b/edexOsgi/com.raytheon.uf.common.serialization/src/com/raytheon/uf/common/serialization/DynamicSerializationManager.java
@@ -92,8 +92,7 @@ import com.vividsolutions.jts.geom.Geometry;
* Oct 08, 2012 #1251 dgilling Ensure type registered with
* serialization adapter is encoded
* in serialization stream.
- * Nov 02, 2012 1310 djohnson Remove field level adapters, they
- * break python serialization.
+ * Nov 02, 2012 1302 djohnson Remove field level adapters, they break python serialization.
*
*
*
@@ -499,4 +498,4 @@ public class DynamicSerializationManager {
return sm;
}
-}
\ No newline at end of file
+}
diff --git a/edexOsgi/com.raytheon.uf.common.serialization/src/com/raytheon/uf/common/serialization/thrift/ThriftSerializationContext.java b/edexOsgi/com.raytheon.uf.common.serialization/src/com/raytheon/uf/common/serialization/thrift/ThriftSerializationContext.java
index 27931d799a..c2b41b87b1 100644
--- a/edexOsgi/com.raytheon.uf.common.serialization/src/com/raytheon/uf/common/serialization/thrift/ThriftSerializationContext.java
+++ b/edexOsgi/com.raytheon.uf.common.serialization/src/com/raytheon/uf/common/serialization/thrift/ThriftSerializationContext.java
@@ -65,7 +65,7 @@ import com.raytheon.uf.common.serialization.SerializationException;
* Mar 01, 2011 njensen Restructured deserializeArray()
* Sep 14, 2012 #1169 djohnson Add ability to write another object into the stream directly.
* Sep 28, 2012 #1195 djohnson Add ability to specify adapter at field level.
- * Nov 02, 2012 1310 djohnson No more field level adapters.
+ * Nov 02, 2012 1302 djohnson No more field level adapters.
*
*
*
@@ -1350,4 +1350,4 @@ public class ThriftSerializationContext extends BaseSerializationContext {
throw new SerializationException(e);
}
}
-}
\ No newline at end of file
+}
diff --git a/edexOsgi/com.raytheon.uf.common.time/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.uf.common.time/META-INF/MANIFEST.MF
index 87f5b51597..e2914c2ca3 100644
--- a/edexOsgi/com.raytheon.uf.common.time/META-INF/MANIFEST.MF
+++ b/edexOsgi/com.raytheon.uf.common.time/META-INF/MANIFEST.MF
@@ -6,7 +6,6 @@ Bundle-Version: 1.12.1174.qualifier
Bundle-Vendor: RAYTHEON
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: net.sf.cglib,
- net.jcip;bundle-version="1.0.0",
com.raytheon.uf.common.status;bundle-version="1.12.1174",
com.raytheon.uf.common.serialization;bundle-version="1.12.1174",
com.raytheon.uf.common.serialization.comm;bundle-version="1.12.1174",
diff --git a/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/SimulatedTime.java b/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/SimulatedTime.java
index fd0fc26a70..dcf3bf8897 100644
--- a/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/SimulatedTime.java
+++ b/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/SimulatedTime.java
@@ -37,6 +37,7 @@ import java.util.TimeZone;
* ------------ ---------- ----------- --------------------------
* Jul 16, 2008 randerso Initial creation
* Aug 24, 2012 0743 djohnson Add option to use milliseconds for operations, change to singleton.
+ * Nov 02, 2012 1302 djohnson Change mistakenly public constructor to private.
*
*
*
@@ -129,7 +130,7 @@ public final class SimulatedTime {
* @param isFrozen
* true to freeze time
*/
- public SimulatedTime(long millis, double scale, boolean isFrozen) {
+ private SimulatedTime(long millis, double scale, boolean isFrozen) {
setTime(millis);
this.scale = scale;
this.isFrozen = isFrozen;
diff --git a/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/util/AbstractTimer.java b/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/util/AbstractTimer.java
index 284831f894..0be0ed7b40 100644
--- a/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/util/AbstractTimer.java
+++ b/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/util/AbstractTimer.java
@@ -1,6 +1,5 @@
package com.raytheon.uf.common.time.util;
-import net.jcip.annotations.NotThreadSafe;
/**
*
@@ -20,7 +19,7 @@ import net.jcip.annotations.NotThreadSafe;
* @author djohnson
* @version 1.0
*/
-@NotThreadSafe
+// @NotThreadSafe
abstract class AbstractTimer implements ITimer {
private long start;
diff --git a/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/util/ITimeStrategy.java b/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/util/ITimeStrategy.java
index c2f55698e1..77a25a02f0 100644
--- a/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/util/ITimeStrategy.java
+++ b/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/util/ITimeStrategy.java
@@ -2,7 +2,10 @@ package com.raytheon.uf.common.time.util;
/**
*
- * Denotes a strategy to retrieve the current time.
+ * Denotes a strategy to retrieve the current time. In production this will
+ * always retrieve it from {@link System#currentTimeMillis()} but in tests it
+ * can be used to give the behavior of specific time spans, or to freeze time
+ * entirely.
*
*
*
@@ -11,6 +14,7 @@ package com.raytheon.uf.common.time.util;
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Aug 16, 2012 0743 djohnson Initial creation
+ * Nov 02, 2012 1302 djohnson Add more Javadoc.
*
*
*
diff --git a/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/util/ImmutableDate.java b/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/util/ImmutableDate.java
index eb18ca0520..b46fe7c2b3 100644
--- a/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/util/ImmutableDate.java
+++ b/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/util/ImmutableDate.java
@@ -23,8 +23,6 @@ import java.util.Date;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-import net.jcip.annotations.Immutable;
-
import com.raytheon.uf.common.serialization.IDeserializationContext;
import com.raytheon.uf.common.serialization.ISerializationContext;
import com.raytheon.uf.common.serialization.ISerializationTypeAdapter;
@@ -34,7 +32,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeTypeAdap
import com.raytheon.uf.common.time.SimulatedTime;
/**
- * An {@link Immutable} version of {@link Date}.
+ * An immutable version of {@link Date}.
*
*
*
@@ -51,7 +49,7 @@ import com.raytheon.uf.common.time.SimulatedTime;
* @version 1.0
*/
@XmlJavaTypeAdapter(value=ImmutableDateAdapter.class)
-@Immutable
+// @Immutable
@DynamicSerialize
@DynamicSerializeTypeAdapter(factory = ImmutableDate.class)
public final class ImmutableDate extends Date implements
diff --git a/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/util/TimerImpl.java b/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/util/TimerImpl.java
index 6614625b3c..337deafa35 100644
--- a/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/util/TimerImpl.java
+++ b/edexOsgi/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/util/TimerImpl.java
@@ -1,6 +1,5 @@
package com.raytheon.uf.common.time.util;
-import net.jcip.annotations.NotThreadSafe;
/**
*
@@ -21,7 +20,7 @@ import net.jcip.annotations.NotThreadSafe;
* @author djohnson
* @version 1.0
*/
-@NotThreadSafe
+// @NotThreadSafe
class TimerImpl extends AbstractTimer {
/**
diff --git a/edexOsgi/com.raytheon.uf.edex.auth/.classpath b/edexOsgi/com.raytheon.uf.edex.auth/.classpath
index b614cf5821..ad32c83a78 100644
--- a/edexOsgi/com.raytheon.uf.edex.auth/.classpath
+++ b/edexOsgi/com.raytheon.uf.edex.auth/.classpath
@@ -3,6 +3,5 @@
-
diff --git a/edexOsgi/com.raytheon.uf.edex.auth/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.uf.edex.auth/META-INF/MANIFEST.MF
index f8af623847..9b94d8d0cb 100644
--- a/edexOsgi/com.raytheon.uf.edex.auth/META-INF/MANIFEST.MF
+++ b/edexOsgi/com.raytheon.uf.edex.auth/META-INF/MANIFEST.MF
@@ -9,8 +9,7 @@ Require-Bundle: com.raytheon.uf.common.serialization;bundle-version="1.11.31",
com.raytheon.uf.common.serialization.comm;bundle-version="1.11.31",
com.raytheon.uf.common.auth;bundle-version="1.0.0",
com.raytheon.edex.common;bundle-version="1.11.31",
- com.raytheon.uf.common.status;bundle-version="1.11.31",
- com.raytheon.uf.common.plugin.nwsauth;bundle-version="1.12.1174"
+ com.raytheon.uf.common.status;bundle-version="1.11.31"
Export-Package: com.raytheon.uf.edex.auth,
com.raytheon.uf.edex.auth.authentication,
com.raytheon.uf.edex.auth.req,
diff --git a/edexOsgi/com.raytheon.uf.edex.auth/src/com/raytheon/uf/edex/auth/AuthManager.java b/edexOsgi/com.raytheon.uf.edex.auth/src/com/raytheon/uf/edex/auth/AuthManager.java
index bc0abae9b7..248986367d 100644
--- a/edexOsgi/com.raytheon.uf.edex.auth/src/com/raytheon/uf/edex/auth/AuthManager.java
+++ b/edexOsgi/com.raytheon.uf.edex.auth/src/com/raytheon/uf/edex/auth/AuthManager.java
@@ -19,9 +19,9 @@
**/
package com.raytheon.uf.edex.auth;
-import com.raytheon.uf.common.plugin.nwsauth.roles.IRoleStorage;
import com.raytheon.uf.edex.auth.authentication.IAuthenticationStorage;
import com.raytheon.uf.edex.auth.authentication.IAuthenticator;
+import com.raytheon.uf.edex.auth.roles.IRoleStorage;
/**
* Authentication Manager class, contains classes for storing and retrieving
diff --git a/edexOsgi/com.raytheon.uf.edex.auth/src/com/raytheon/uf/edex/auth/req/AbstractPrivilegedRequestHandler.java b/edexOsgi/com.raytheon.uf.edex.auth/src/com/raytheon/uf/edex/auth/req/AbstractPrivilegedRequestHandler.java
index c881ea310f..912a068a96 100644
--- a/edexOsgi/com.raytheon.uf.edex.auth/src/com/raytheon/uf/edex/auth/req/AbstractPrivilegedRequestHandler.java
+++ b/edexOsgi/com.raytheon.uf.edex.auth/src/com/raytheon/uf/edex/auth/req/AbstractPrivilegedRequestHandler.java
@@ -19,9 +19,9 @@
**/
package com.raytheon.uf.edex.auth.req;
+import com.raytheon.uf.common.auth.exception.AuthorizationException;
import com.raytheon.uf.common.auth.req.AbstractPrivilegedRequest;
import com.raytheon.uf.common.auth.user.IUser;
-import com.raytheon.uf.common.plugin.nwsauth.exception.AuthorizationException;
import com.raytheon.uf.common.serialization.comm.IRequestHandler;
import com.raytheon.uf.edex.auth.resp.AuthorizationResponse;
@@ -51,7 +51,6 @@ public abstract class AbstractPrivilegedRequestHandler
*
@@ -68,4 +69,5 @@ public interface IRoleStorage {
*/
public String[] getAllDefinedPermissions(String application)
throws AuthorizationException;
+
}
diff --git a/edexOsgi/com.raytheon.uf.edex.common.core.feature/feature.xml b/edexOsgi/com.raytheon.uf.edex.common.core.feature/feature.xml
index 15b219d757..de0bca7678 100644
--- a/edexOsgi/com.raytheon.uf.edex.common.core.feature/feature.xml
+++ b/edexOsgi/com.raytheon.uf.edex.common.core.feature/feature.xml
@@ -275,6 +275,13 @@
install-size="0"
version="0.0.0"
unpack="false"/>
+
+
-
-
*
@@ -43,6 +43,7 @@ import com.raytheon.uf.edex.database.DataAccessLayerException;
* ------------ ---------- ----------- --------------------------
* Jan 21, 2009 1939 jkorman Initial creation
* Oct 10, 2012 1261 djohnson Add some generics wildcarding.
+ * Nov 02, 2012 1302 djohnson Add Javadoc.
*
*
*
diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.nwsauth/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.uf.edex.plugin.nwsauth/META-INF/MANIFEST.MF
index c8e3926a3c..db55acc1af 100644
--- a/edexOsgi/com.raytheon.uf.edex.plugin.nwsauth/META-INF/MANIFEST.MF
+++ b/edexOsgi/com.raytheon.uf.edex.plugin.nwsauth/META-INF/MANIFEST.MF
@@ -8,7 +8,8 @@ Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: com.raytheon.uf.edex.auth;bundle-version="1.12.2",
com.raytheon.uf.common.auth;bundle-version="1.12.2",
com.raytheon.uf.common.plugin.nwsauth;bundle-version="1.0.0",
- com.raytheon.uf.common.status;bundle-version="1.12.1174"
+ com.raytheon.uf.common.status;bundle-version="1.12.1174",
+ com.raytheon.uf.common.localization
Import-Package: com.raytheon.uf.common.localization,
com.raytheon.uf.common.serialization,
com.raytheon.uf.common.status,
diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.nwsauth/res/spring/nwsauth-request.xml b/edexOsgi/com.raytheon.uf.edex.plugin.nwsauth/res/spring/nwsauth-request.xml
index 94734124d0..8157f3b3f6 100644
--- a/edexOsgi/com.raytheon.uf.edex.plugin.nwsauth/res/spring/nwsauth-request.xml
+++ b/edexOsgi/com.raytheon.uf.edex.plugin.nwsauth/res/spring/nwsauth-request.xml
@@ -4,7 +4,7 @@
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
-
+
diff --git a/edexOsgi/com.raytheon.uf.common.plugin.nwsauth/src/com/raytheon/uf/common/plugin/nwsauth/xml/NwsRoleStorage.java b/edexOsgi/com.raytheon.uf.edex.plugin.nwsauth/src/com/raytheon/uf/edex/plugin/nwsauth/NwsRoleStorage.java
similarity index 90%
rename from edexOsgi/com.raytheon.uf.common.plugin.nwsauth/src/com/raytheon/uf/common/plugin/nwsauth/xml/NwsRoleStorage.java
rename to edexOsgi/com.raytheon.uf.edex.plugin.nwsauth/src/com/raytheon/uf/edex/plugin/nwsauth/NwsRoleStorage.java
index 776f137d7e..08988dd73e 100644
--- a/edexOsgi/com.raytheon.uf.common.plugin.nwsauth/src/com/raytheon/uf/common/plugin/nwsauth/xml/NwsRoleStorage.java
+++ b/edexOsgi/com.raytheon.uf.edex.plugin.nwsauth/src/com/raytheon/uf/edex/plugin/nwsauth/NwsRoleStorage.java
@@ -1,21 +1,22 @@
-package com.raytheon.uf.common.plugin.nwsauth.xml;
+package com.raytheon.uf.edex.plugin.nwsauth;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
+import com.raytheon.uf.common.auth.exception.AuthorizationException;
import com.raytheon.uf.common.localization.IPathManager;
import com.raytheon.uf.common.localization.LocalizationContext;
import com.raytheon.uf.common.localization.LocalizationContext.LocalizationLevel;
import com.raytheon.uf.common.localization.LocalizationContext.LocalizationType;
import com.raytheon.uf.common.localization.LocalizationFile;
import com.raytheon.uf.common.localization.PathManagerFactory;
-import com.raytheon.uf.common.plugin.nwsauth.exception.AuthorizationException;
import com.raytheon.uf.common.plugin.nwsauth.exception.RoleApplicationNotFoundException;
-import com.raytheon.uf.common.plugin.nwsauth.roles.IRoleStorage;
+import com.raytheon.uf.common.plugin.nwsauth.xml.NwsRoleData;
import com.raytheon.uf.common.serialization.SerializationUtil;
import com.raytheon.uf.common.status.UFStatus;
import com.raytheon.uf.common.status.UFStatus.Priority;
+import com.raytheon.uf.edex.auth.roles.IRoleStorage;
/**
* Implementation of IRoleStorage
@@ -35,11 +36,11 @@ import com.raytheon.uf.common.status.UFStatus.Priority;
public class NwsRoleStorage implements IRoleStorage {
private static NwsRoleStorage instance = null;
- private Map lastUsedFileMap = new HashMap();
+ private final Map lastUsedFileMap = new HashMap();
- private Map lastModificationTimeMap = new HashMap();
+ private final Map lastModificationTimeMap = new HashMap();
- private Map applicationRoleMap = new HashMap();
+ private final Map applicationRoleMap = new HashMap();
/**
* This is called from the CAVE side for the User Administration dialogs. Do
diff --git a/cots/net.jcip/.classpath b/edexOsgi/com.raytheon.uf.edex.spatial/.classpath
similarity index 69%
rename from cots/net.jcip/.classpath
rename to edexOsgi/com.raytheon.uf.edex.spatial/.classpath
index 10f492202b..1fa3e6803d 100644
--- a/cots/net.jcip/.classpath
+++ b/edexOsgi/com.raytheon.uf.edex.spatial/.classpath
@@ -1,7 +1,7 @@
-
+
diff --git a/edexOsgi/com.raytheon.uf.edex.spatial/.project b/edexOsgi/com.raytheon.uf.edex.spatial/.project
new file mode 100644
index 0000000000..f8fdc72bc1
--- /dev/null
+++ b/edexOsgi/com.raytheon.uf.edex.spatial/.project
@@ -0,0 +1,28 @@
+
+
+ com.raytheon.uf.common.spatial
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.pde.ManifestBuilder
+
+
+
+
+ org.eclipse.pde.SchemaBuilder
+
+
+
+
+
+ org.eclipse.pde.PluginNature
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/cots/net.jcip/.settings/org.eclipse.jdt.core.prefs b/edexOsgi/com.raytheon.uf.edex.spatial/.settings/org.eclipse.jdt.core.prefs
similarity index 92%
rename from cots/net.jcip/.settings/org.eclipse.jdt.core.prefs
rename to edexOsgi/com.raytheon.uf.edex.spatial/.settings/org.eclipse.jdt.core.prefs
index 503d44edbb..295d77f55d 100644
--- a/cots/net.jcip/.settings/org.eclipse.jdt.core.prefs
+++ b/edexOsgi/com.raytheon.uf.edex.spatial/.settings/org.eclipse.jdt.core.prefs
@@ -1,4 +1,4 @@
-#Wed Jul 25 12:18:05 CDT 2012
+#Thu Dec 02 10:55:26 CST 2010
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
diff --git a/edexOsgi/com.raytheon.uf.edex.spatial/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.uf.edex.spatial/META-INF/MANIFEST.MF
new file mode 100644
index 0000000000..0d3101c899
--- /dev/null
+++ b/edexOsgi/com.raytheon.uf.edex.spatial/META-INF/MANIFEST.MF
@@ -0,0 +1,16 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Database
+Bundle-SymbolicName: com.raytheon.uf.common.spatial
+Bundle-Version: 1.0.0.qualifier
+Bundle-Vendor: RAYTHEON
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Export-Package: com.raytheon.uf.common.spatial.repojection
+Require-Bundle: org.apache.commons.lang;bundle-version="2.3.0",
+ org.apache.commons.logging;bundle-version="1.1.1",
+ org.geotools;bundle-version="2.6.4",
+ com.raytheon.uf.common.geospatial;bundle-version="1.12.1174",
+ com.raytheon.uf.common.dataplugin;bundle-version="1.12.1174",
+ com.raytheon.uf.common.datastorage;bundle-version="1.12.1174",
+ com.raytheon.uf.common.serialization;bundle-version="1.12.1174"
+
diff --git a/cots/net.jcip/build.properties b/edexOsgi/com.raytheon.uf.edex.spatial/build.properties
similarity index 63%
rename from cots/net.jcip/build.properties
rename to edexOsgi/com.raytheon.uf.edex.spatial/build.properties
index 61cb16eb3f..5791d48d5f 100644
--- a/cots/net.jcip/build.properties
+++ b/edexOsgi/com.raytheon.uf.edex.spatial/build.properties
@@ -1,4 +1,5 @@
+source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
- jcip-annotations.jar
+ res/
diff --git a/edexOsgi/com.raytheon.uf.edex.spatial/res/spring/database-common.xml b/edexOsgi/com.raytheon.uf.edex.spatial/res/spring/database-common.xml
new file mode 100644
index 0000000000..200e44abc3
--- /dev/null
+++ b/edexOsgi/com.raytheon.uf.edex.spatial/res/spring/database-common.xml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/AbstractDataReprojector.java b/edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/AbstractDataReprojector.java
similarity index 98%
rename from edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/AbstractDataReprojector.java
rename to edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/AbstractDataReprojector.java
index 12cb58776c..a4056ed052 100644
--- a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/AbstractDataReprojector.java
+++ b/edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/AbstractDataReprojector.java
@@ -28,7 +28,7 @@
* Jun 15, 2011 bclement Initial creation
*
*/
-package com.raytheon.uf.edex.database.spatial;
+package com.raytheon.uf.common.spatial.repojection;
import java.awt.image.DataBuffer;
import java.awt.image.WritableRaster;
diff --git a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/ByteDataReprojector.java b/edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/ByteDataReprojector.java
similarity index 92%
rename from edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/ByteDataReprojector.java
rename to edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/ByteDataReprojector.java
index e54ccb96b9..9b2e575743 100644
--- a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/ByteDataReprojector.java
+++ b/edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/ByteDataReprojector.java
@@ -28,7 +28,7 @@
* May 18, 2011 bclement Initial creation
*
*/
-package com.raytheon.uf.edex.database.spatial;
+package com.raytheon.uf.common.spatial.repojection;
import java.awt.Point;
import java.awt.image.DataBufferByte;
@@ -60,7 +60,7 @@ public class ByteDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#getGridCoverage
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#getGridCoverage
* (com.raytheon.uf.common.datastorage.records.IDataRecord,
* org.opengis.referencing.crs.CoordinateReferenceSystem,
* org.opengis.geometry.Envelope)
@@ -82,7 +82,7 @@ public class ByteDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#getMaskCoverage
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#getMaskCoverage
* (com.raytheon.uf.common.datastorage.records.IDataRecord,
* org.opengis.referencing.crs.CoordinateReferenceSystem,
* org.opengis.geometry.Envelope)
@@ -103,7 +103,7 @@ public class ByteDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#extractData(org
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#extractData(org
* .geotools.coverage.grid.GridCoverage2D)
*/
@Override
@@ -128,7 +128,7 @@ public class ByteDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#extractData(org
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#extractData(org
* .geotools.coverage.grid.GridCoverage2D,
* org.geotools.coverage.grid.GridCoverage2D)
*/
@@ -176,7 +176,7 @@ public class ByteDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#getDataSlice(com
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#getDataSlice(com
* .raytheon.uf.common.datastorage.records.IDataRecord,
* com.raytheon.uf.common.datastorage.Request)
*/
@@ -213,7 +213,7 @@ public class ByteDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.AbstractDataReprojector#compatible
+ * com.raytheon.uf.common.spatial.repojection.AbstractDataReprojector#compatible
* (com.raytheon.uf.common.datastorage.records.IDataRecord)
*/
@Override
diff --git a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/DataReprojector.java b/edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/DataReprojector.java
similarity index 98%
rename from edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/DataReprojector.java
rename to edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/DataReprojector.java
index 450e6ee17d..063270dc86 100644
--- a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/DataReprojector.java
+++ b/edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/DataReprojector.java
@@ -28,7 +28,7 @@
* May 18, 2011 bclement Initial creation
*
*/
-package com.raytheon.uf.edex.database.spatial;
+package com.raytheon.uf.common.spatial.repojection;
import java.awt.Point;
import java.io.FileNotFoundException;
@@ -68,8 +68,8 @@ import com.raytheon.uf.common.datastorage.records.IntegerDataRecord;
import com.raytheon.uf.common.datastorage.records.ShortDataRecord;
import com.raytheon.uf.common.geospatial.ISpatialObject;
import com.raytheon.uf.common.geospatial.MapUtil;
-import com.raytheon.uf.edex.database.spatial.AbstractDataReprojector.RequestWrapper;
-import com.raytheon.uf.edex.database.spatial.KeyLocker.KeyLock;
+import com.raytheon.uf.common.spatial.repojection.AbstractDataReprojector.RequestWrapper;
+import com.raytheon.uf.common.spatial.repojection.KeyLocker.KeyLock;
import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.Envelope;
diff --git a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/FloatDataReprojector.java b/edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/FloatDataReprojector.java
similarity index 93%
rename from edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/FloatDataReprojector.java
rename to edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/FloatDataReprojector.java
index 626fdde857..dd4ba746f6 100644
--- a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/FloatDataReprojector.java
+++ b/edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/FloatDataReprojector.java
@@ -28,7 +28,7 @@
* Jun 13, 2011 bclement Initial creation
*
*/
-package com.raytheon.uf.edex.database.spatial;
+package com.raytheon.uf.common.spatial.repojection;
import java.awt.Point;
import java.awt.image.DataBufferFloat;
@@ -60,7 +60,7 @@ public class FloatDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#getGridCoverage
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#getGridCoverage
* (com.raytheon.uf.common.datastorage.records.IDataRecord,
* org.opengis.referencing.crs.CoordinateReferenceSystem,
* org.opengis.geometry.Envelope)
@@ -81,7 +81,7 @@ public class FloatDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#getMaskCoverage
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#getMaskCoverage
* (com.raytheon.uf.common.datastorage.records.IDataRecord,
* org.opengis.referencing.crs.CoordinateReferenceSystem,
* org.opengis.geometry.Envelope)
@@ -102,7 +102,7 @@ public class FloatDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#extractData(org
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#extractData(org
* .geotools.coverage.grid.GridCoverage2D)
*/
@Override
@@ -128,7 +128,7 @@ public class FloatDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#extractData(org
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#extractData(org
* .geotools.coverage.grid.GridCoverage2D,
* org.geotools.coverage.grid.GridCoverage2D)
*/
@@ -177,7 +177,7 @@ public class FloatDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#getDataSlice(com
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#getDataSlice(com
* .raytheon.uf.common.datastorage.records.IDataRecord,
* com.raytheon.uf.common.datastorage.Request)
*/
@@ -221,7 +221,7 @@ public class FloatDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.AbstractDataReprojector#compatible
+ * com.raytheon.uf.common.spatial.repojection.AbstractDataReprojector#compatible
* (com.raytheon.uf.common.datastorage.records.IDataRecord)
*/
@Override
diff --git a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/IntDataReprojector.java b/edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/IntDataReprojector.java
similarity index 93%
rename from edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/IntDataReprojector.java
rename to edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/IntDataReprojector.java
index a2452012ec..f54aa541e1 100644
--- a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/IntDataReprojector.java
+++ b/edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/IntDataReprojector.java
@@ -28,7 +28,7 @@
* Jun 13, 2011 bclement Initial creation
*
*/
-package com.raytheon.uf.edex.database.spatial;
+package com.raytheon.uf.common.spatial.repojection;
import java.awt.Point;
import java.awt.image.DataBuffer;
@@ -61,7 +61,7 @@ public class IntDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#getGridCoverage
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#getGridCoverage
* (com.raytheon.uf.common.datastorage.records.IDataRecord,
* org.opengis.referencing.crs.CoordinateReferenceSystem,
* org.opengis.geometry.Envelope)
@@ -82,7 +82,7 @@ public class IntDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#getMaskCoverage
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#getMaskCoverage
* (com.raytheon.uf.common.datastorage.records.IDataRecord,
* org.opengis.referencing.crs.CoordinateReferenceSystem,
* org.opengis.geometry.Envelope)
@@ -103,7 +103,7 @@ public class IntDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#extractData(org
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#extractData(org
* .geotools.coverage.grid.GridCoverage2D)
*/
@Override
@@ -129,7 +129,7 @@ public class IntDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#extractData(org
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#extractData(org
* .geotools.coverage.grid.GridCoverage2D,
* org.geotools.coverage.grid.GridCoverage2D)
*/
@@ -178,7 +178,7 @@ public class IntDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#getDataSlice(com
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#getDataSlice(com
* .raytheon.uf.common.datastorage.records.IDataRecord,
* com.raytheon.uf.common.datastorage.Request)
*/
@@ -222,7 +222,7 @@ public class IntDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.AbstractDataReprojector#compatible
+ * com.raytheon.uf.common.spatial.repojection.AbstractDataReprojector#compatible
* (com.raytheon.uf.common.datastorage.records.IDataRecord)
*/
@Override
diff --git a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/KeyLocker.java b/edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/KeyLocker.java
similarity index 97%
rename from edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/KeyLocker.java
rename to edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/KeyLocker.java
index bb8e378dc2..50c7a778f3 100644
--- a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/KeyLocker.java
+++ b/edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/KeyLocker.java
@@ -21,7 +21,7 @@
* 402.291.0100
*
*/
-package com.raytheon.uf.edex.database.spatial;
+package com.raytheon.uf.common.spatial.repojection;
import java.util.HashMap;
import java.util.Map;
diff --git a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/ReferencedDataRecord.java b/edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/ReferencedDataRecord.java
similarity index 96%
rename from edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/ReferencedDataRecord.java
rename to edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/ReferencedDataRecord.java
index 9644ef3943..66087818f2 100644
--- a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/ReferencedDataRecord.java
+++ b/edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/ReferencedDataRecord.java
@@ -28,7 +28,7 @@
* May 18, 2011 bclement Initial creation
*
*/
-package com.raytheon.uf.edex.database.spatial;
+package com.raytheon.uf.common.spatial.repojection;
import org.geotools.geometry.jts.ReferencedEnvelope;
diff --git a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/ShortDataReprojector.java b/edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/ShortDataReprojector.java
similarity index 93%
rename from edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/ShortDataReprojector.java
rename to edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/ShortDataReprojector.java
index 95274d1f09..953db9efcd 100644
--- a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/spatial/ShortDataReprojector.java
+++ b/edexOsgi/com.raytheon.uf.edex.spatial/src/com/raytheon/uf/common/spatial/repojection/ShortDataReprojector.java
@@ -28,7 +28,7 @@
* Jun 13, 2011 bclement Initial creation
*
*/
-package com.raytheon.uf.edex.database.spatial;
+package com.raytheon.uf.common.spatial.repojection;
import java.awt.Point;
import java.awt.image.DataBuffer;
@@ -62,7 +62,7 @@ public class ShortDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#getGridCoverage
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#getGridCoverage
* (com.raytheon.uf.common.datastorage.records.IDataRecord,
* org.opengis.referencing.crs.CoordinateReferenceSystem,
* org.opengis.geometry.Envelope)
@@ -83,7 +83,7 @@ public class ShortDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#getMaskCoverage
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#getMaskCoverage
* (com.raytheon.uf.common.datastorage.records.IDataRecord,
* org.opengis.referencing.crs.CoordinateReferenceSystem,
* org.opengis.geometry.Envelope)
@@ -104,7 +104,7 @@ public class ShortDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#extractData(org
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#extractData(org
* .geotools.coverage.grid.GridCoverage2D)
*/
@Override
@@ -130,7 +130,7 @@ public class ShortDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#extractData(org
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#extractData(org
* .geotools.coverage.grid.GridCoverage2D,
* org.geotools.coverage.grid.GridCoverage2D)
*/
@@ -179,7 +179,7 @@ public class ShortDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.DataReprojector#getDataSlice(com
+ * com.raytheon.uf.common.spatial.repojection.DataReprojector#getDataSlice(com
* .raytheon.uf.common.datastorage.records.IDataRecord,
* com.raytheon.uf.common.datastorage.Request)
*/
@@ -223,7 +223,7 @@ public class ShortDataReprojector extends
* (non-Javadoc)
*
* @see
- * com.raytheon.uf.edex.database.spatial.AbstractDataReprojector#compatible
+ * com.raytheon.uf.common.spatial.repojection.AbstractDataReprojector#compatible
* (com.raytheon.uf.common.datastorage.records.IDataRecord)
*/
@Override
diff --git a/ncep/gov.noaa.nws.ncep.viz.ui.perspectives/src/gov/noaa/nws/ncep/viz/ui/perspectives/PreferencesHandler.java b/ncep/gov.noaa.nws.ncep.viz.ui.perspectives/src/gov/noaa/nws/ncep/viz/ui/perspectives/PreferencesHandler.java
new file mode 100644
index 0000000000..398e12f64b
--- /dev/null
+++ b/ncep/gov.noaa.nws.ncep.viz.ui.perspectives/src/gov/noaa/nws/ncep/viz/ui/perspectives/PreferencesHandler.java
@@ -0,0 +1,64 @@
+/**
+ * This software was developed and / or modified by Raytheon Company,
+ * pursuant to Contract DG133W-05-CQ-1067 with the US Government.
+ *
+ * U.S. EXPORT CONTROLLED TECHNICAL DATA
+ * This software product contains export-restricted data whose
+ * export/transfer/disclosure is restricted by U.S. law. Dissemination
+ * to non-U.S. persons whether in the United States or abroad requires
+ * an export license or other authorization.
+ *
+ * Contractor Name: Raytheon Company
+ * Contractor Address: 6825 Pine Street, Suite 340
+ * Mail Stop B8
+ * Omaha, NE 68106
+ * 402.291.0100
+ *
+ * See the AWIPS II Master Rights File ("Master Rights File.pdf") for
+ * further licensing information.
+ **/
+
+package gov.noaa.nws.ncep.viz.ui.perspectives;
+
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.jface.preference.PreferenceDialog;
+import org.eclipse.ui.dialogs.PreferencesUtil;
+
+/**
+ * Opens the preference window
+ *
+ *
+ *
+ * SOFTWARE HISTORY
+ * Date Ticket# Engineer Description
+ * ------------ ---------- ----------- --------------------------
+ * Apr 11, 2007 chammack Initial Creation.
+ *
+ *
+ *
+ * @author chammack
+ * @version 1.0
+ */
+public class PreferencesHandler extends AbstractHandler {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands
+ * .ExecutionEvent)
+ */
+ @Override
+ public Object execute(ExecutionEvent arg0) throws ExecutionException {
+
+ String prefPageId = "gov.noaa.nws.ncep.ui.pgen.Preferences";
+
+ PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(
+ null, prefPageId, new String[] { prefPageId }, null);
+ dialog.open();
+ return null;
+ }
+
+}