Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-dev] Content Assist from XML Schema in StructuredTextEditor does not work..

Hi all,

I am trying to use the WebTools StructuredTextEditor in one Multipage (MPE) editor i am developing for editing some files with XML content.

So far i have managed to include the StructuredTextEditor (see code below) in the MPE and i have also specified an extension point for the specific extension to be handled as XML.


 protected void addPages()
  {
      
     try {
      addPage( this.page1 );
      addPage( this.pag2 );
      addResourceEditorPage();
     
         }
 
   catch (PartInitException e) {     
      Activator.logException( e );      
   }
    
  }
 
  private void addResourceEditorPage()throws PartInitException{
        
   this.sourcePageIndex = addPage(getSourceEditor(),   getEditorInput());
    
    
   setPageText(this.sourcePageIndex,getEditorInput().getName());
 
   getSourceEditor().setInput(getEditorInput());
    
  }
 
 
  private StructuredTextEditor getSourceEditor()
  {  
    
     if (this.editor == null)
      {
       this.editor = new StructuredTextEditor();   
       this.editor.setEditorPart( this );
      }
      return this.editor;
  }
 


The problem i am facing is that the Content Assist functionality does not work. The XML files i am editing include the location of the XML schema's.

<?xml version="1.0" encoding="UTF-8"?>
<jsdl:RootDocument xmlns:js="http://..." 
		xmlns:js-p="http://...">
 

Any suggestions on how to solve this problem? Is there is something additional that i have to do ?

Thanks in advance,
 
-- 
_________________________________________________

Nicholas Loulloudes
High Performance Computing Systems Laboratory (HPCL)
University of Cyprus,
Nicosia, Cyprus

Tel:  +357-22892663
Email: loulloudes.n[at]cs.ucy.ac.cy

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Back to the top