Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » customise the content of the OutlineView
customise the content of the OutlineView [message #523453] Fri, 26 March 2010 10:19
Eclipse UserFriend
hello,
I have done an editor which integrate the default eclipse's XML editor with a GMF diagram
Class MyEditor extends XMLMultipageEditorPart{

FlowchartEditor editor = new FlowchartEditor();
  @override
  public createPages(){
    super.createPages();
    File file = new File("D:/PFE_WORKSPACE/FlowChart.diagram/wrkspc/hkl/defaultx.flowchart_diagram");
  		IFile iFile = null;
  	IWorkspace workspace= ResourcesPlugin.getWorkspace();
	IPath location= Path.fromOSString(file.getAbsolutePath());
	iFile= workspace.getRoot().getFileForLocation(location); 
	IEditorInput editorInput = new FileEditorInput(iFile);
	int index = addPage(editor, editorInput);
	setPageText(index, "Diagram Editor");
        // when I activate the instruction setAactive(2) the outlineView become a graphic mode
        //setActivePage(2);
	
  }

}



this is what I want
http://img51.imageshack.us/img51/963/10111769.jpg

this is what i get when I activate setActivePage(2);
in other word when the diagram editor is loaded as the default page.
http://img710.imageshack.us/img710/1521/teamviewerh.jpg

My problem is :
- How could I get the XML editor outlineContent to fill a personal outlineViewpage.

[Updated on: Fri, 26 March 2010 11:26] by Moderator

Previous Topic:Integrate XML Editor
Next Topic:Keybinding problem after inheriting the eclipse default scheme
Goto Forum:
  


Current Time: Sat Jun 14 23:50:35 EDT 2025

Powered by FUDForum. Page generated in 0.04748 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top