Skip to main content
summaryrefslogtreecommitdiffstats
blob: ea70f0fd9ace39dc3ee7d8749497d59c3adefe3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*******************************************************************************
 * Copyright (c) 2004, 2007 Boeing.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Boeing - initial API and implementation
 *******************************************************************************/

package org.eclipse.osee.ats.navigate;

import org.eclipse.osee.framework.db.connection.exception.OseeCoreException;
import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
import org.eclipse.osee.framework.ui.skynet.widgets.xnavigate.XNavigateItem;
import org.eclipse.osee.framework.ui.skynet.widgets.xnavigate.XNavigateItemAction;
import org.eclipse.osee.framework.ui.skynet.widgets.xnavigate.XNavigateComposite.TableLoadOption;

/**
 * @author Donald G. Dunne
 */
public class SubscribeByActionableItem extends XNavigateItemAction {

   public SubscribeByActionableItem(XNavigateItem parent) {
      super(parent, "Subscribe by Actionable Item", FrameworkImage.EMAIL);
   }

   /*
    * (non-Javadoc)
    * 
    * @see org.eclipse.osee.ats.navigate.ActionNavigateItem#run()
    */
   @Override
   public void run(TableLoadOption... tableLoadOptions) throws OseeCoreException {
      AWorkbench.popup("Not implemented yet");
      //      final AICheckTreeDialog diag =
      //            new AICheckTreeDialog(getName(),
      //                  "Select Actionable Items\n\nEmail will be sent for every action written against these AIs.",
      //                  Active.Active);
      //      try {
      //         List<Object> objs =
      //               Collections.castAll(UserManager.getUser().getRelatedArtifactsOfType(AtsRelation.SubscribedUser_Artifact,
      //                     ActionableItemArtifact.class));
      //         diag.setInitialSelections(objs);
      //         if (diag.open() != 0) return;
      //         UserManager.getUser().setRelationsOfType(AtsRelation.SubscribedUser_Artifact, diag.getChecked(),
      //               ActionableItemArtifact.class);
      //         UserManager.getUser().persistAttributesAndRelations();
      //         AWorkbench.popup(getName(), "Subscriptions updated.");
      //      } catch (Exception ex) {
      //         OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
      //      }
   }
}

Back to the top