RCP App: remove Resource perspective? [message #251932] |
Fri, 11 June 2004 15:25  |
Eclipse User |
|
|
|
Is there an API for disabling a perspective? Unfortunately, our RCP app has
a dependency on org.eclipse.ui.ide which defines the Resource perspective-of
course, I could always hack the plugin.xml and remove the extension but I
was hoping there might be a way to achieve this.
I've looked at org.eclipse.ui.internal.Registry.PerspectiveRegistry but it
will not delete a perspective defined in an extension:
/**
* Delete a perspective.
* Has no effect if the perspective is defined in an extension.
*/
public void deletePerspective(IPerspectiveDescriptor in) {
PerspectiveDescriptor desc = (PerspectiveDescriptor) in;
// Don't delete predefined perspectives
if (!desc.isPredefined()) {
perspToRemove.add(desc.getId());
remove(desc.getPluginId(), desc);
desc.deleteCustomDefinition();
verifyDefaultPerspective();
cleanRegistry();
}
}
|
|
|
|
|
|
|
|
Re: RCP App: remove Resource perspective? [message #252741 is a reply to message #252569] |
Tue, 15 June 2004 11:39  |
Eclipse User |
|
|
|
Thanks for the reply Ed. I created bug #67275.
"Ed Burnette" <ed.burnette@REMOVE.THIS.sas.com> wrote in message
news:calllq$tao$1@eclipse.org...
> I don't know of an easier way but please file a bugzilla report
> (www.eclipse.org > bugs) any time you find yourself hacking or copying the
> Eclipse source in your RCP apps. Maybe further refactoring can make it
> unnecessary in the next version. That's how RCP was born in the first
place.
>
> --
> Ed Burnette, co-author, Eclipse in Action
> www.eclipsepowered.org
>
> > "Michael Keppler" <michael.keppler@gmx.de> wrote in message
> > news:cae6d7$r5k$1@eclipse.org...
> > > Paul Wuethrich schrieb:
> > >
> > > > Also, I'm guessing the answer is the same for views since
> > org.eclipse.ui.ide
> > > > pulls in Outline, Bookmarks, Properties, Progress, Tasks which we do
> not
> > > > require??
> > >
> > > I had the problem the other way around: I needed the progress view but
> > > did not need the IDE dependency. On filing a bug I was told to just
copy
> > > the progress view implementation manually so hacking the plugin might
> > > also be a reasonable solution for your problem.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03441 seconds