Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Add problem view
Add problem view [message #157090] Thu, 25 October 2007 12:12 Go to next message
Eclipse UserFriend
Originally posted by: ijerez2001.gmail.com

Hello,
I need problem view to my gmf editor, that it´s a rcp application.
I have looked up and I have found that I can add in teh
DiagramEditorPerspective, but when a run the editor it doesn´t appear.
Do anyone know the solution?
Thanks.
Re: Add problem view [message #157098 is a reply to message #157090] Thu, 25 October 2007 13:54 Go to previous messageGo to next message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi Iván,

Problem view is declared in the org.eclipse.ui.ide plugin. You will need
to import this plugin into your configuration, otherwise the view will
not be available.
However, it does not seem too much rcp-like to add ide plugins, so
probably you might want to reconsider the rcp-ness in the first place.

Best regards,
Boris


Iván Jerez wrote:
> Hello,
> I need problem view to my gmf editor, that it´s a rcp application.
> I have looked up and I have found that I can add in teh
> DiagramEditorPerspective, but when a run the editor it doesn´t appear.
> Do anyone know the solution?
> Thanks.
Re: Add problem view [message #157182 is a reply to message #157098] Fri, 26 October 2007 08:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ijerez2001.gmail.com

I have declared the org.eclipse.ui.ide.plugin.
The problem is that in the class DiagramEditorPerspective that contain

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);
bottomRight.addView(IPageLayout.ID_PROBLEM_VIEW);
}

never run this code, because I write outputs to watch the execution and here
not work.
I would like to be able to open the Problem_View when i want, but I don´t
know how
to get the IPageLayout. Also I could have the menu like eclipse,
Window->Show view...

Thanks.

"Boris Blajer" <boris.blajer@borland.com> escribió en el mensaje de
noticias:ffq767$9vp$1@build.eclipse.org...
> Hi Iván,
>
> Problem view is declared in the org.eclipse.ui.ide plugin. You will need
> to import this plugin into your configuration, otherwise the view will not
> be available.
> However, it does not seem too much rcp-like to add ide plugins, so
> probably you might want to reconsider the rcp-ness in the first place.
>
> Best regards,
> Boris
>
>
> Iván Jerez wrote:
>> Hello,
>> I need problem view to my gmf editor, that it´s a rcp application.
>> I have looked up and I have found that I can add in teh
>> DiagramEditorPerspective, but when a run the editor it doesn´t appear.
>> Do anyone know the solution?
>> Thanks.
Re: Add problem view [message #157223 is a reply to message #157182] Fri, 26 October 2007 12:10 Go to previous messageGo to next message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi Iván,

This method is called only when you first open the perspective or after
"Reset Perspective" menu item is invoked (which might not be accessible
in RCP). Start with a clean workspace and the problems view should appear.
Note however, that the user will be able to close it manually. I believe
that in this case, a call to IWorkbenchPage.showView(...) will reopen it
in the location specified by the createInitialLayout (or at least where
it was the last time it was visible in the perspective).

Best regards,
Boris

Iván Jerez wrote:
> I have declared the org.eclipse.ui.ide.plugin.
> The problem is that in the class DiagramEditorPerspective that contain
>
> 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);
> bottomRight.addView(IPageLayout.ID_PROBLEM_VIEW);
> }
>
> never run this code, because I write outputs to watch the execution and
> here not work.
> I would like to be able to open the Problem_View when i want, but I
> don´t know how
> to get the IPageLayout. Also I could have the menu like eclipse,
> Window->Show view...
>
> Thanks.
>
> "Boris Blajer" <boris.blajer@borland.com> escribió en el mensaje de
> noticias:ffq767$9vp$1@build.eclipse.org...
>> Hi Iván,
>>
>> Problem view is declared in the org.eclipse.ui.ide plugin. You will
>> need to import this plugin into your configuration, otherwise the view
>> will not be available.
>> However, it does not seem too much rcp-like to add ide plugins, so
>> probably you might want to reconsider the rcp-ness in the first place.
>>
>> Best regards,
>> Boris
>>
>>
>> Iván Jerez wrote:
>>> Hello,
>>> I need problem view to my gmf editor, that it´s a rcp application.
>>> I have looked up and I have found that I can add in teh
>>> DiagramEditorPerspective, but when a run the editor it doesn´t appear.
>>> Do anyone know the solution?
>>> Thanks.
>
Re: Add problem view [message #157285 is a reply to message #157223] Fri, 26 October 2007 15:31 Go to previous message
Eclipse UserFriend
Originally posted by: ijerez2001.gmail.com

Thanks.

"Boris Blajer" <boris.blajer@borland.com> escribió en el mensaje de
noticias:ffslgd$htg$1@build.eclipse.org...
> Hi Iván,
>
> This method is called only when you first open the perspective or after
> "Reset Perspective" menu item is invoked (which might not be accessible in
> RCP). Start with a clean workspace and the problems view should appear.
> Note however, that the user will be able to close it manually. I believe
> that in this case, a call to IWorkbenchPage.showView(...) will reopen it
> in the location specified by the createInitialLayout (or at least where it
> was the last time it was visible in the perspective).
>
> Best regards,
> Boris
>
> Iván Jerez wrote:
>> I have declared the org.eclipse.ui.ide.plugin.
>> The problem is that in the class DiagramEditorPerspective that contain
>>
>> 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);
>> bottomRight.addView(IPageLayout.ID_PROBLEM_VIEW);
>> }
>>
>> never run this code, because I write outputs to watch the execution and
>> here not work.
>> I would like to be able to open the Problem_View when i want, but I don´t
>> know how
>> to get the IPageLayout. Also I could have the menu like eclipse,
>> Window->Show view...
>>
>> Thanks.
>>
>> "Boris Blajer" <boris.blajer@borland.com> escribió en el mensaje de
>> noticias:ffq767$9vp$1@build.eclipse.org...
>>> Hi Iván,
>>>
>>> Problem view is declared in the org.eclipse.ui.ide plugin. You will need
>>> to import this plugin into your configuration, otherwise the view will
>>> not be available.
>>> However, it does not seem too much rcp-like to add ide plugins, so
>>> probably you might want to reconsider the rcp-ness in the first place.
>>>
>>> Best regards,
>>> Boris
>>>
>>>
>>> Iván Jerez wrote:
>>>> Hello,
>>>> I need problem view to my gmf editor, that it´s a rcp application.
>>>> I have looked up and I have found that I can add in teh
>>>> DiagramEditorPerspective, but when a run the editor it doesn´t appear.
>>>> Do anyone know the solution?
>>>> Thanks.
>>
Previous Topic:node' name
Next Topic:How to capture the event mouseOver
Goto Forum:
  


Current Time: Thu Jul 18 06:35:05 GMT 2024

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

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

Back to the top