Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Creating a model browser(How to get a create model browser for my graphiti editor project)
Creating a model browser [message #711789] Sat, 06 August 2011 16:55 Go to next message
vrm  is currently offline vrm Friend
Messages: 31
Registered: June 2011
Member
HI,

I'm quite new with Graphiti and getting along quite well.
I'm working on a Flowchart example and I have succeeded in building an editor with some basic functionalities.But what I need now is to build a model browser.As you see in the screenshot attached,my project in the project explorer still includes "EClass" and none of the new elements I added.I understand the EClass came up because I selected the default Graphiti Sample project but I'd like to know what steps I need to follow to define my own model browser.
Any pointers to this topic would be of great help ..
Re: Creating a model browser [message #711878 is a reply to message #711789] Sat, 06 August 2011 19:16 Go to previous message
Joerg Reichert is currently offline Joerg ReichertFriend
Messages: 80
Registered: July 2009
Location: Leipzig
Member
Hi,

you have to provide your own tree content provider. Have a look at the contents of
http://git.eclipse.org/c/gmp/org.eclipse.gmp.graphiti.git/tree/examples/org.eclipse.graphiti.examples.common/src/org/eclipse/graphiti/examples/common/navigator

as well as the plugin.xml:

   <extension
         point="org.eclipse.ui.navigator.viewer">
      <viewerContentBinding
            viewerId="org.eclipse.ui.navigator.ProjectExplorer">
         <includes>
            <contentExtension
                  isRoot="false"
                  pattern="org.eclipse.graphiti.examples.navigatorContent">
            </contentExtension>
         </includes>
      </viewerContentBinding>
   </extension>

   <extension
         point="org.eclipse.ui.navigator.navigatorContent">
      ...
   </extension>


Cheers,
Joerg


--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Previous Topic:Setting own file extension for Graphiti Diagram
Next Topic:Workflow Editor with Graphiti
Goto Forum:
  


Current Time: Thu Apr 25 04:35:01 GMT 2024

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

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

Back to the top