Package org.apache.uima.caseditor.core.model

Examples of org.apache.uima.caseditor.core.model.NlpProject


        } catch (InterruptedException e) {
        }
      }
    }

    NlpProject nlpProject = (NlpProject) CasEditorPlugin.getNlpModel().findMember(
            mProject.getProject());

    assertTrue(nlpProject.getTypesystemElement().getResource().
            getFullPath().equals(renamedTypesystemPath));
  }
View Full Code Here


    @Override
    public void createControl(Composite parent)
    {
        if (isPropertyPage())
        {
            NlpProject nlpProject = getProject();

            mPreferenceStore = new DotCorpusPreferenceStore(
                    nlpProject.getDotCorpus());
        }

        super.createControl(parent);

        if (isPropertyPage())
View Full Code Here

    // what happens if someone selects DocumentElements form
    // different projects ?
    if (!documentElements.isEmpty()) {
      DocumentElement aDocument = documentElements.getFirst();

      NlpProject project = aDocument.getNlpProject();

      Collection<CasProcessorFolder> sourceFolders = project.getCasProcessorFolders();

      for (CasProcessorFolder sourceFolder : sourceFolders) {
        Collection<AnnotatorElement> annotators = sourceFolder.getAnnotators();

        for (AnnotatorElement annotator : annotators) {
View Full Code Here

     */
    public Object[] getChildren(Object o)
    {
        Object result[];

        NlpProject nlpProject = (NlpProject) o;

        if (nlpProject.getProject().isOpen())
        {
            LinkedList<Object> childrenList = new LinkedList<Object>();

            childrenList.addAll(nlpProject.getCorpora());

            if (nlpProject.getTypesystemElement() != null)
            {
                childrenList.add(nlpProject.getTypesystemElement());
            }

            IResource[] resources;
            try
            {
                resources = nlpProject.getResources();
            }
            catch (CoreException e)
            {
                // TODO just log it
                return new Object[]{};
            }

            if (resources != null)
            {
                Collections.addAll(childrenList, resources);
            }

            childrenList.addAll(nlpProject.getCasProcessorFolders());

            result = childrenList.toArray();

        }
        else
View Full Code Here

     *
     * @return the <code>ImageDescriptor</code>
     */
    public ImageDescriptor getImageDescriptor(Object object)
    {
        NlpProject nlpProject = (NlpProject) object;

        IProject project = nlpProject.getProject();

        if (project.isOpen())
        {
          return CasEditorPlugin.getTaeImageDescriptor(Images.MODEL_PROJECT_OPEN);
        }
View Full Code Here

TOP

Related Classes of org.apache.uima.caseditor.core.model.NlpProject

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.