Implementing an IPerspectiveFactory... [message #327550] |
Thu, 24 April 2008 13:14 |
Eclipse User |
|
|
|
Originally posted by: j4r0d.hotmail.com
Hello,
I have got a problem when I try to create my own perspective.
If fact, I've been able to create my perspective but the problem is that my
plugin requires the Run.. and Debug menu and when I run my plugin there is
no way I can get those menus. I've tried various things like :
layout.addActionSet("org.eclipse.jdt.ui.JavaActionSet");
I have also tried adding a perspectiveExtensions in my plugin.xml. In this
case, in the resource navigator view I am able to see the wanted menus, but
as soon as I click on my editor (or another view), I lose those menus.
Do you guys know about what I need to do in order to have those menus (Run..
etc) in each view of my perspective?
Thanks in advance,
--
J.
|
|
|
|
Re: Implementing an IPerspectiveFactory... [message #327572 is a reply to message #327560] |
Fri, 25 April 2008 05:47 |
Prakash G.R. Messages: 621 Registered: July 2009 |
Senior Member |
|
|
In case you prefer doing it in plugin.xml than programming, you can add
a perspective extension like this:
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="your perspective id">
<actionSet
id="org.eclipse.debug.ui.launchActionSet">
</actionSet>
</perspectiveExtension>
</extension>
--
- Prakash
Eclipse Tips: http://blog.cypal-solutions.com
Eclipse Search: http://www.cypal.in/eclipsesearch
Dimitrios Kolovos wrote:
> Hi Jarod,
>
> layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET); is what you
> probably need
>
> Cheers,
> Dimitrios
>
> Jarod Mills wrote:
>> Hello,
>>
>> I have got a problem when I try to create my own perspective.
>> If fact, I've been able to create my perspective but the problem is
>> that my plugin requires the Run.. and Debug menu and when I run my
>> plugin there is no way I can get those menus. I've tried various
>> things like :
>>
>> layout.addActionSet("org.eclipse.jdt.ui.JavaActionSet");
>>
>> I have also tried adding a perspectiveExtensions in my plugin.xml. In
>> this case, in the resource navigator view I am able to see the wanted
>> menus, but as soon as I click on my editor (or another view), I lose
>> those menus.
>>
>> Do you guys know about what I need to do in order to have those menus
>> (Run.. etc) in each view of my perspective?
>>
>> Thanks in advance,
>>
|
|
|
Re: Implementing an IPerspectiveFactory... [message #327574 is a reply to message #327572] |
Fri, 25 April 2008 08:09 |
Eclipse User |
|
|
|
Originally posted by: j4r0d.hotmail.com
Thanks for your help Dimitrios and Prakash :-)
--
J.
"Prakash G.R." <grprakash@gmail.com> wrote in message
news:furra8$vtq$1@build.eclipse.org...
> In case you prefer doing it in plugin.xml than programming, you can add a
> perspective extension like this:
>
> <extension
> point="org.eclipse.ui.perspectiveExtensions">
> <perspectiveExtension
> targetID="your perspective id">
> <actionSet
> id="org.eclipse.debug.ui.launchActionSet">
> </actionSet>
> </perspectiveExtension>
> </extension>
>
>
> --
>
> - Prakash
>
> Eclipse Tips: http://blog.cypal-solutions.com
> Eclipse Search: http://www.cypal.in/eclipsesearch
>
>
> Dimitrios Kolovos wrote:
>> Hi Jarod,
>>
>> layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET); is what you
>> probably need
>>
>> Cheers,
>> Dimitrios
>>
>> Jarod Mills wrote:
>>> Hello,
>>>
>>> I have got a problem when I try to create my own perspective.
>>> If fact, I've been able to create my perspective but the problem is that
>>> my plugin requires the Run.. and Debug menu and when I run my plugin
>>> there is no way I can get those menus. I've tried various things like :
>>>
>>> layout.addActionSet("org.eclipse.jdt.ui.JavaActionSet");
>>>
>>> I have also tried adding a perspectiveExtensions in my plugin.xml. In
>>> this case, in the resource navigator view I am able to see the wanted
>>> menus, but as soon as I click on my editor (or another view), I lose
>>> those menus.
>>>
>>> Do you guys know about what I need to do in order to have those menus
>>> (Run.. etc) in each view of my perspective?
>>>
>>> Thanks in advance,
>>>
>
|
|
|
Re: Implementing an IPerspectiveFactory... [message #327576 is a reply to message #327550] |
Fri, 25 April 2008 09:42 |
Eclipse User |
|
|
|
Originally posted by: j4r0d.hotmail.com
Hello again,
I have another small question regarding placeholder.
I've put this into my IPerspectiveFactory implementation :
bottomLeft.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW) ;
When I open a console view, it opens in the placeholder. So it works fine.
However, when I close the console view the placeholder is still visible
(empty grey window) and there is no way I can close it!
The weird thing is that if I simply call for the addView method rather than
the addPlaceholder; when I am closing the console view, there is nothing
remaining.
How can I have the same behavior for the placeholder? Is this possible? Am I
doing something wrong?
--
J.
"Jarod Mills" <j4r0d@hotmail.com> wrote in message
news:fuq1bn$o22$1@build.eclipse.org...
> Hello,
>
> I have got a problem when I try to create my own perspective.
> If fact, I've been able to create my perspective but the problem is that
> my plugin requires the Run.. and Debug menu and when I run my plugin there
> is no way I can get those menus. I've tried various things like :
>
> layout.addActionSet("org.eclipse.jdt.ui.JavaActionSet");
>
> I have also tried adding a perspectiveExtensions in my plugin.xml. In this
> case, in the resource navigator view I am able to see the wanted menus,
> but as soon as I click on my editor (or another view), I lose those menus.
>
> Do you guys know about what I need to do in order to have those menus
> (Run.. etc) in each view of my perspective?
>
> Thanks in advance,
>
> --
> J.
>
|
|
|
Powered by
FUDForum. Page generated in 0.23071 seconds