Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-ui-dev] Voting: Inconsistent Perspective Opening

A: Yes.  If you look at the javadoc (way down below) there are two methods.
The first takes an IAdaptable input.  The second takes a persp id and
input.

Dave


                                                                                                 
                    "Cornell, Kevin"                                                             
                    <kcornell@xxxxxxxxxxxx>        To:     "'platform-ui-dev@xxxxxxxxxxx'"       
                    Sent by:                       <platform-ui-dev@xxxxxxxxxxx>                 
                    platform-ui-dev-admin@e        cc:                                           
                    clipse.org                     Subject:     RE: [platform-ui-dev] Voting:    
                                                   Inconsistent Perspective Opening              
                                                                                                 
                    12/12/01 11:10 AM                                                            
                    Please respond to                                                            
                    platform-ui-dev                                                              
                                                                                                 
                                                                                                 



Q: With this proposal, will there be a workbench method openPage( String
perspectiveId, IAdaptable input) so that a specific perspective (other than
the default) can be opened? It could still use the user's preference for
the
mode of opening the page.

As an Eclipse user, I would not like the model of "one page per window".
The
desktop would become overloaded with extra windows (my icon bar is already
full). I typically have a "Team Perspective" open but it is usally a hidden
page that I can easily get at when needed. The page shortcut toolbar is
much
easier to use than Window's icon bar, Linux desktop icon boxes or CDE's
(Motif/Solaris) icon placement scheme.

Kevin

-----Original Message-----
From: Nick_Edgar@xxxxxxx [mailto:Nick_Edgar@xxxxxxx]
Sent: Wednesday, December 12, 2001 10:14 AM
To: platform-ui-dev@xxxxxxxxxxx
Subject: Re: [platform-ui-dev] Voting: Inconsistent Perspective Opening


Currently we have preferences for whether opening a new perspective
(either using Perspective / Open or programmatically) opens in a new page,
a new window, or replaces the perspective in the current page.  The
problem this proposal seeks to address is the programmatic case, since
currently each client has to check these settings an honour them (and not
all of them do), and several plugins have their own preferences for this.
If we're considering a model where there is only ever one page per window,
replacing its perspective is the norm, and we recommend against opening a
new window programmatically, then the proposal below has to conform to
these restrictions.  It probably still makes sense to have the API on
IWorkbench to encapsulate this decision.

I was just suggesting that you mention the reworking of perspectives in
this proposal since they're so related.

Nick





David_Springgay@xxxxxxx
Sent by: platform-ui-dev-admin@xxxxxxxxxxx
12/11/01 05:00 PM
Please respond to platform-ui-dev


        To:     platform-ui-dev@xxxxxxxxxxx
        cc:
        Subject:        Re: [platform-ui-dev] Voting: Inconsistent
Perspective Opening


I don't understand what you're saying.   This proposal simply addresses
the
inconsistent way plugin developers open a page.   Nothing else is implied.
Do you feel the javadoc for this method should be more clear?

Dave



                    Nick_Edgar@xxxxxxx
                    Sent by:                       To:
platform-ui-dev@xxxxxxxxxxx
                    platform-ui-dev-admin@e        cc:
                    clipse.org                     Subject:     Re:
[platform-ui-dev] Voting:
                                                   Inconsistent
Perspective Opening

                    12/11/01 04:35 PM
                    Please respond to
                    platform-ui-dev





This proposal should describe how it relates to the new perspectives
story.
If each window has one page, then the only option is to create a new
window when creating a new page.

Nick





David_Springgay@xxxxxxx
Sent by: platform-ui-dev-admin@xxxxxxxxxxx
12/11/01 04:10 PM
Please respond to platform-ui-dev


        To:     platform-ui-dev@xxxxxxxxxxx
        cc:
        Subject:        [platform-ui-dev] Voting: Inconsistent Perspective
Opening

Inconsistent Perspective Opening

The Loss of Context Proposal has been split up so we can move forward on
individual issues.  This section concerns the Inconsistent Perspective
Open
issues (Problem #13).  We would like to vote on the direction of this
proposal.  If agreement can be reached, we will progress with the
implementation and address PR's as they come up.

In Eclipse, it is possible to open a perspective as a page in the current
window, or as a page in a new window.  The appropriate choice is
determined
by user preference.  Unfortunately, many plugins ignore this preference,
and do it their own way, leading to inconsistencies in the UI.

To resolve this issue we will add an openPage method to the IWorkbench
interface.  When called, this method will examine the user preference, and
open the page in the correct mode.  The old methods will be deprecated.
Here is the prototype API.

/**
 * Creates and opens a new workbench page.  If the user preference for
 * "Open Perspective" is "in current window", the page will be created in
 * the current window.  Otherwise, it will be created in a new window.
 * The perspective of the new page is the default perspective.
 * On return, the new window and new page be active.
 *
 * @param input the page input, or <code>null</code> if there is no
current
input.
 *  This is used to seed the input for the new page's views.
 * @return the new workbench page
 * @exception WorkbenchException if a new page could not be opened
 */
public IWorkbenchPage openPage(final IAdaptable input)
 throws WorkbenchException;

/**
 * Creates and opens a new workbench page.
 * [ snip ]
 * </p>
 * @param perspectiveId the perspective id for the window's initial page
 * @param input the page input, or <code>null</code> if there is no
current
input.
 *  This is used to seed the input for the new page's views.
 * @return the new workbench page
 * @exception WorkbenchException if a new page could not be opened
 */
public IWorkbenchPage openPage(final String perspID, final IAdaptable
input)
 throws WorkbenchException;

Voting:

     +1 = You are in favour of this proposal & agree with further
exploration to determine API/contribution
     changes.
     0 = Abstain
     -1 = You are opposed to this proposal. When voting -1 you must also
provide a detailed explanation of your
     reasons.

Voting ends 1 week from date proposal is submitted to the mailing list.

_______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ui-dev



_______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ui-dev




_______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ui-dev



_______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ui-dev
_______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ui-dev






Back to the top