Package org.eclipse.ui.activities

Examples of org.eclipse.ui.activities.IActivityRequirementBinding


    protected Set buildDependencies(IActivityManager activityManager, String activityId) {
        Set set = new HashSet();
        for (Iterator i = activityManager.getDefinedActivityIds().iterator(); i.hasNext(); ) {
            IActivity activity = activityManager.getActivity((String) i.next());
            for (Iterator j = activity.getActivityRequirementBindings().iterator(); j.hasNext(); ) {
                IActivityRequirementBinding binding = (IActivityRequirementBinding) j.next();
                if (activityId.equals(binding.getRequiredActivityId())) {
                    set.addAll(buildDependencies(activityManager, activity.getId()));
                }
            }
        }
        set.add(activityId);
View Full Code Here


    ArrayList childRequiredActivities = new ArrayList();
    IActivity activity = manager.getActivity(activityId);
    Set actvitiyRequirementBindings = activity
        .getActivityRequirementBindings();
    String requiredActivityId = null;
    IActivityRequirementBinding currentActivityRequirementBinding = null;
    Object[] currentCategoryIds = null;
    for (Iterator i = actvitiyRequirementBindings.iterator(); i.hasNext();) {
      currentActivityRequirementBinding = (IActivityRequirementBinding) i
          .next();
      requiredActivityId = currentActivityRequirementBinding
          .getRequiredActivityId();
      currentCategoryIds = getActivityCategories(requiredActivityId);
      for (int index = 0; index < currentCategoryIds.length; index++) {
        childRequiredActivities.add(new CategorizedActivity(manager
            .getCategory((String) currentCategoryIds[index]),
View Full Code Here

  public Object[] getParentRequiredActivities(String activityId) {
    ArrayList parentRequiredActivities = new ArrayList();
    Set definedActivities = manager.getDefinedActivityIds();
    String currentActivityId = null;
    Set activityRequirementBindings = null;
    IActivityRequirementBinding currentActivityRequirementBinding = null;
    Object[] currentCategoryIds = null;
    for (Iterator i = definedActivities.iterator(); i.hasNext();) {
      currentActivityId = (String) i.next();
      activityRequirementBindings = manager
          .getActivity(currentActivityId)
          .getActivityRequirementBindings();
      for (Iterator j = activityRequirementBindings.iterator(); j
          .hasNext();) {
        currentActivityRequirementBinding = (IActivityRequirementBinding) j
            .next();
        if (currentActivityRequirementBinding.getRequiredActivityId()
            .equals(activityId)) {
          // We found one - add it to the list
          currentCategoryIds = getActivityCategories(currentActivityId);
          for (int index = 0; index < currentCategoryIds.length; index++) {
            parentRequiredActivities
View Full Code Here

            Set activityRequirementBindings = activity
                    .getActivityRequirementBindings();

            for (Iterator iterator2 = activityRequirementBindings.iterator(); iterator2
                    .hasNext();) {
                IActivityRequirementBinding activityRequirementBinding = (IActivityRequirementBinding) iterator2
                        .next();
                childActivityIds.add(activityRequirementBinding
                        .getRequiredActivityId());
            }

            childActivityIds.removeAll(requiredActivityIds);
            requiredActivityIds.addAll(childActivityIds);
View Full Code Here

                        String childActivityId = activityRequirementBindingDefinition
                                .getRequiredActivityId();

                        if (activityDefinitionsById
                                .containsKey(childActivityId)) {
                            IActivityRequirementBinding activityRequirementBinding = new ActivityRequirementBinding(
                                    childActivityId, parentActivityId);
                            Set activityRequirementBindings = (Set) activityRequirementBindingsByActivityId
                                    .get(parentActivityId);

                            if (activityRequirementBindings == null) {
View Full Code Here

TOP

Related Classes of org.eclipse.ui.activities.IActivityRequirementBinding

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.