summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid W. Miller2012-06-21 19:36:34 (EDT)
committer Roberto E. Escobar2012-06-21 19:36:34 (EDT)
commit6db5818fb8a61705ad53a3d9b7fe95cfcf7d8b55 (patch)
tree408b5246361a8af6f093adbd7b46bce4488f0f1c
parentcafc18256795bf8c4896d8a66de4851c21af62c0 (diff)
downloadorg.eclipse.osee-6db5818fb8a61705ad53a3d9b7fe95cfcf7d8b55.zip
org.eclipse.osee-6db5818fb8a61705ad53a3d9b7fe95cfcf7d8b55.tar.gz
org.eclipse.osee-6db5818fb8a61705ad53a3d9b7fe95cfcf7d8b55.tar.bz2
refactor: Update return type for ArtifactChangeHandler
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/plugin.xml2
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/handler/ChangeArtifactTypeHandler.java (renamed from plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/handler/ArtifactChangeHandler.java)10
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/plugin.xml b/plugins/org.eclipse.osee.framework.ui.skynet/plugin.xml
index 98f818d..10a4ba0 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/plugin.xml
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/plugin.xml
@@ -1509,7 +1509,7 @@
plugin="org.eclipse.osee.framework.skynet.core">
</statusHandler>
<statusHandler
- class="org.eclipse.osee.framework.ui.skynet.handler.ArtifactChangeHandler"
+ class="org.eclipse.osee.framework.ui.skynet.handler.ChangeArtifactTypeHandler"
code="257"
id="org.eclipse.osee.framework.ui.skynet.ArtifactChangeHandler"
plugin="org.eclipse.osee.framework.skynet.core">
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/handler/ArtifactChangeHandler.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/handler/ChangeArtifactTypeHandler.java
index b1bce0c..f1ceebd 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/handler/ArtifactChangeHandler.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/handler/ChangeArtifactTypeHandler.java
@@ -10,20 +10,20 @@
*******************************************************************************/
package org.eclipse.osee.framework.ui.skynet.handler;
+import org.apache.commons.lang.mutable.MutableBoolean;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.debug.core.IStatusHandler;
import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.osee.framework.jdk.core.type.MutableInteger;
import org.eclipse.osee.framework.ui.swt.Displays;
import org.eclipse.ui.PlatformUI;
/**
* @author Ryan D. Brooks
*/
-public class ArtifactChangeHandler implements IStatusHandler {
+public class ChangeArtifactTypeHandler implements IStatusHandler {
@Override
public Object handleStatus(IStatus status, Object source) {
- final MutableInteger result = new MutableInteger(0);
+ final MutableBoolean result = new MutableBoolean(false);
final String message = (String) source;
Runnable runnable = new Runnable() {
@@ -31,13 +31,13 @@ public class ArtifactChangeHandler implements IStatusHandler {
public void run() {
if (MessageDialog.openQuestion(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
"Confirm Artifact Type Change ", message)) {
- result.setValue(1);
+ result.setValue(true);
}
}
};
Displays.pendInDisplayThread(runnable);
- return result.getValue() == 1;
+ return result.getValue();
}
} \ No newline at end of file