Examples of IContainer


Examples of org.eclipse.core.resources.IContainer

  public void linkActivated() {
    try {
      WGARuntime runtime = TomcatUtils.getInstance().getCurrentRuntime();
      if (runtime != null) {
          // determine designcontainer of selected tml warning
          IContainer designContainer = null;
          if (_warning.getDb() != null) {
              if (!_warning.getDb().startsWith("plugin-")) {
                  WGAConfiguration wgaConfiguration = runtime.retrieveWGAConfig(false);
                  ContentStore cs = wgaConfiguration.getContentStore(_warning.getDb());
                  if (cs != null && cs.getDesign() != null && cs.getDesign().getSource() != null && cs.getDesign().getSource().equals("fs-designs")) {
View Full Code Here

Examples of org.eclipse.core.resources.IContainer

          ISynchronizeModelElement node = (ISynchronizeModelElement)element;
          element = node.getResource();
    }
   
    if (element instanceof IContainer) {
      IContainer container = (IContainer) element;
      if (container.isAccessible() && WGADesignStructureHelper.isDesignFolder(container)) {
        WGADesignStructureHelper helper = new WGADesignStructureHelper(container);
        if (helper.hasPluginConfig()) {
          return WGADesignerPlugin.getDefault().getImageRegistry().get(WGADesignerPlugin.IMAGE_WGA_PLUGIN);
        } else {
          return WGADesignerPlugin.getDefault().getImageRegistry().get(WGADesignerPlugin.IMAGE_WGA_DESIGN);
        }
      } else if (container.isAccessible()) {
        // we might have to resolve dirlinks
        IFile dirlink = container.getFile(new Path("dirlink.xml"));
        if (dirlink.exists()) {
          File target = WGUtils.resolveDirLink(dirlink.getParent().getLocation().toFile());
          if (WGADesignStructureHelper.isDesignFolder(target)) {
            IContainer targets[] = ResourcesPlugin.getWorkspace().getRoot().findContainersForLocation(new Path(target.getAbsolutePath()));
            if (targets != null && targets.length >= 1) {
              WGADesignStructureHelper helper = new WGADesignStructureHelper(targets[0]);
              if (helper.hasPluginConfig()) {
                return WGADesignerPlugin.getDefault().getImageRegistry().get(WGADesignerPlugin.IMAGE_WGA_PLUGIN_LINK);
              } else {
View Full Code Here

Examples of org.eclipse.core.resources.IContainer

  }

  @Override
  protected boolean initialize(Object element) {
    if (element instanceof IContainer) {
      IContainer container = (IContainer) element;
      try {
        _refactoringInformations  = RefactoringManager.getAffectedResources(container, getArguments());
      } catch (Exception e) {
        _refactoringStatus.addEntry(new  RefactoringStatusEntry(RefactoringStatus.ERROR,"Unable to gather refactoring information. See error log for details. Essential refactoring operations will be skipped. Workspace structure might get invalid."));
        WGADesignerPlugin.getDefault().logError("Unable to gather refactoring information.", e);         
View Full Code Here

Examples of org.eclipse.core.resources.IContainer

  }

  private static IPath computeNewLinkTarget(DirlinkRefactoringInformation info) {
    if (info.getArguments() instanceof RenameArguments) {
      RenameArguments arguments = (RenameArguments) info.getArguments();
      IContainer currentDirLinkTarget = WGADesignStructureHelper.resolveDirLink(info.getFile());
     
      // compute newTargetPath up to renamed resource
      IPath newTarget = info.getElement().getLocation().removeLastSegments(1).append(arguments.getNewName());
     
      // build full target path
      int segments = currentDirLinkTarget.getLocation().matchingFirstSegments(newTarget);
      newTarget = newTarget.append(currentDirLinkTarget.getLocation().removeFirstSegments(segments + 1));
      return newTarget;
    }else if(info.getArguments() instanceof MoveArguments){
      MoveArguments moveArguments = (MoveArguments) info.getArguments();
      IContainer currentDirLinkTarget = WGADesignStructureHelper.resolveDirLink(info.getFile());
      if(moveArguments.getDestination() instanceof IContainer){
        IContainer destinationContainer = (IContainer)moveArguments.getDestination();
       
        IPath newTarget = destinationContainer.getLocation().append(info.getElement().getName());   
       
        int segments = currentDirLinkTarget.getLocation().matchingFirstSegments(((IFolder)info.getElement()).getLocation());       
       
        newTarget = newTarget.append(currentDirLinkTarget.getLocation().removeFirstSegments(segments));
     
View Full Code Here

Examples of org.eclipse.ecf.core.IContainer

        }
        addEditorListener();
    }

    private IRosterManager getLocalRosterManager() {
        IContainer container = (IContainer) this.adapter.getAdapter(IContainer.class);
        if (container != null) {
            IPresenceContainerAdapter presenceContainerAdapter = (IPresenceContainerAdapter) container
                    .getAdapter(IPresenceContainerAdapter.class);
            if (presenceContainerAdapter != null) {
                return presenceContainerAdapter.getRosterManager();
            }
        }
View Full Code Here

Examples of org.jacorb.notification.IContainer

        container_.dispose();

        final List list = container_.getComponentInstancesOfType(IContainer.class);
        for (Iterator i = list.iterator(); i.hasNext();)
        {
            IContainer element = (IContainer) i.next();
            element.destroy();
        }
    }
View Full Code Here

Examples of org.jcoredb.fs.IContainer

   
    JSONArray childs = new JSONArray("containers");
   
    for (int i = 0; i < cs.length; i++)
    {
       IContainer c = cs[i];
      
       JSONNode child = new JSONNode();
       JSONAttribute id = new JSONAttribute("id", ""+c.getId(), AttrType.Number);
       child.add(id);
      
       childs.add(child);
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.