Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Implementing an IPerspectiveFactory...
Implementing an IPerspectiveFactory... [message #327550] Thu, 24 April 2008 13:14 Go to next message
Eclipse UserFriend
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 #327560 is a reply to message #327550] Thu, 24 April 2008 16:56 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
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 #327572 is a reply to message #327560] Fri, 25 April 2008 05:47 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
>
Previous Topic:anonymous cvs checkout
Next Topic:[Databinding] Valuebinding: Model To Target Synchronisation
Goto Forum:
  


Current Time: Sat Nov 23 11:45:08 GMT 2024

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

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

Back to the top