Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Adding Extra Views to RCP GMF
Adding Extra Views to RCP GMF [message #126660] Tue, 15 May 2007 12:07 Go to next message
Eclipse UserFriend
Originally posted by: mcglinnk.cs.tcd.ie

Hey Guys,

Been using GMF now for a bit and have to say I think it is a powerful
tool. I have now written the best part of my application and am now
looking to add new views to the gmf tool. I have began by trying to
incorporate an RCP view like so:

public void createInitialLayout(IPageLayout layout) {

layout.setEditorAreaVisible(true);
layout
.addPerspectiveShortcut(DiagramEditorWorkbenchAdvisor.PERSPE CTIVE_ID);

IFolderLayout right = layout.createFolder(
"right", IPageLayout.RIGHT, 0.6f, layout.getEditorArea());
//$NON-NLS-1$
right.addView(IPageLayout.ID_OUTLINE);
IFolderLayout bottomRight = layout.createFolder(
"bottomRight", IPageLayout.BOTTOM, 0.6f, "right"); //$NON-NLS-1$
//$NON-NLS-2$
bottomRight.addView(IPageLayout.ID_PROP_SHEET);


//Here is the new View
IFolderLayout left = layout.createFolder
("left", IPageLayout.LEFT, 0.6f, "left");
left.addView(ContextView.ID);


}

I have also added this to the plugin.xml so that it appears in the
extentsion window. It doesnt appear to be be displaying properly though.
In fact, I seem to be able to comment out the code that sets all the views
without it having an effect.

Is there something I have forgotten to do here?

All help is much appreciated,

Thanks,

Kris.
Re: Adding Extra Views to RCP GMF [message #126815 is a reply to message #126660] Wed, 16 May 2007 11:36 Go to previous message
Eclipse UserFriend
Originally posted by: mcglinnk.cs.tcd.ie

Hey Guys,

Any help on this one? Even just a yay or nay about whether it is possible?
I have been shifting through the news groups to find an answer but cant,

Kris.
Previous Topic:figure for child reference of diagram root not shown
Next Topic:Layout & LayoutData
Goto Forum:
  


Current Time: Sun Jul 27 06:06:36 EDT 2025

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

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

Back to the top