Home » Modeling » GMF (Graphical Modeling Framework) » Add problem view
Add problem view [message #157090] |
Thu, 25 October 2007 08:12  |
Eclipse User |
|
|
|
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 #157182 is a reply to message #157098] |
Fri, 26 October 2007 04:32   |
Eclipse User |
|
|
|
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 08:10   |
Eclipse User |
|
|
|
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 11:31  |
Eclipse User |
|
|
|
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.
>>
|
|
|
Goto Forum:
Current Time: Sat May 03 16:55:51 EDT 2025
Powered by FUDForum. Page generated in 0.03661 seconds
|