Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsXNavigateItemLauncher.java')
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsXNavigateItemLauncher.java91
1 files changed, 45 insertions, 46 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsXNavigateItemLauncher.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsXNavigateItemLauncher.java
index bec67f9e51f..89510e0a63a 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsXNavigateItemLauncher.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsXNavigateItemLauncher.java
@@ -8,8 +8,8 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.ats.navigate;
-
+package org.eclipse.osee.ats.navigate;
+
import java.util.Collection;
import org.eclipse.osee.ats.internal.AtsPlugin;
import org.eclipse.osee.ats.task.TaskEditor;
@@ -29,47 +29,46 @@ import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateComposite.TableLoadOption;
import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateItem;
-
-/**
- * @author Donald G. Dunne
- */
-public class AtsXNavigateItemLauncher {
-
- public static void handleDoubleClick(XNavigateItem item, TableLoadOption... tableLoadOptions) throws OseeCoreException {
- Collection<TableLoadOption> tableLoadOpts = Collections.getAggregate(tableLoadOptions);
- boolean dontCopyWsi = tableLoadOpts.contains(TableLoadOption.DontCopySearchItem);
- if (item instanceof SearchNavigateItem) {
- WorldSearchItem worldSearchItem = ((SearchNavigateItem) item).getWorldSearchItem();
- if (worldSearchItem.getLoadView() == LoadView.WorldEditor) {
- if (worldSearchItem instanceof WorldUISearchItem) {
- WorldEditor.open(new WorldEditorUISearchItemProvider(
- (WorldUISearchItem) (dontCopyWsi ? worldSearchItem : worldSearchItem.copy()), null,
- tableLoadOptions));
- } else if (worldSearchItem instanceof WorldEditorParameterSearchItem) {
- WorldEditor.open(new WorldEditorParameterSearchItemProvider(
- (WorldEditorParameterSearchItem) (dontCopyWsi ? worldSearchItem : worldSearchItem.copy()), null,
- tableLoadOptions));
- } else {
- AWorkbench.popup("ERROR", "Unhandled WorldEditor navigate item");
- }
- } else if (worldSearchItem.getLoadView() == LoadView.TaskEditor) {
- if (worldSearchItem instanceof TaskEditorParameterSearchItem) {
- TaskEditor.open(new TaskEditorParameterSearchItemProvider(
- (TaskEditorParameterSearchItem) (dontCopyWsi ? worldSearchItem : worldSearchItem.copy()), null,
- tableLoadOptions));
- } else {
- AWorkbench.popup("ERROR", "Unhandled TaskEditor navigate item");
- }
- } else {
- AWorkbench.popup("ERROR", "Unhandled navigate item");
- }
- } else {
- try {
- item.run(tableLoadOptions);
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
- }
-
-}
+
+/**
+ * @author Donald G. Dunne
+ */
+public class AtsXNavigateItemLauncher {
+
+ public static void handleDoubleClick(XNavigateItem item, TableLoadOption... tableLoadOptions) throws OseeCoreException {
+ Collection<TableLoadOption> tableLoadOpts = Collections.getAggregate(tableLoadOptions);
+ boolean dontCopyWsi = tableLoadOpts.contains(TableLoadOption.DontCopySearchItem);
+ if (item instanceof SearchNavigateItem) {
+ WorldSearchItem worldSearchItem = ((SearchNavigateItem) item).getWorldSearchItem();
+ if (worldSearchItem.getLoadView() == LoadView.WorldEditor) {
+ if (worldSearchItem instanceof WorldUISearchItem) {
+ WorldEditor.open(new WorldEditorUISearchItemProvider(
+ (WorldUISearchItem) (dontCopyWsi ? worldSearchItem : worldSearchItem.copy()), null, tableLoadOptions));
+ } else if (worldSearchItem instanceof WorldEditorParameterSearchItem) {
+ WorldEditor.open(new WorldEditorParameterSearchItemProvider(
+ (WorldEditorParameterSearchItem) (dontCopyWsi ? worldSearchItem : worldSearchItem.copy()), null,
+ tableLoadOptions));
+ } else {
+ AWorkbench.popup("ERROR", "Unhandled WorldEditor navigate item");
+ }
+ } else if (worldSearchItem.getLoadView() == LoadView.TaskEditor) {
+ if (worldSearchItem instanceof TaskEditorParameterSearchItem) {
+ TaskEditor.open(new TaskEditorParameterSearchItemProvider(
+ (TaskEditorParameterSearchItem) (dontCopyWsi ? worldSearchItem : worldSearchItem.copy()), null,
+ tableLoadOptions));
+ } else {
+ AWorkbench.popup("ERROR", "Unhandled TaskEditor navigate item");
+ }
+ } else {
+ AWorkbench.popup("ERROR", "Unhandled navigate item");
+ }
+ } else {
+ try {
+ item.run(tableLoadOptions);
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+ }
+
+}

Back to the top