Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Zied is currently offline Zied
Messages: 26
Registered: February 2010
Junior Member
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();
  public 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


this is what I want

this is what i get when I activate setActivePage(2);
in other word when the diagram editor is loaded as the default page.

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

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

Report message to a moderator

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

Current Time: Wed Aug 20 22:37:18 EDT 2014

Powered by FUDForum. Page generated in 0.08212 seconds