Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 9272 Details for
Bug 56431
[ViewMgmt] Placeholder is lost when a multi-view instanced view is opened
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
test case - patch for RCP Browser example
test-case-rcpbrowser-patch.txt (text/plain), 9.29 KB, created by
Matthew Hatem
on 2004-04-06 19:19:39 EDT
(
hide
)
Description:
test case - patch for RCP Browser example
Filename:
MIME Type:
Creator:
Matthew Hatem
Created:
2004-04-06 19:19:39 EDT
Size:
9.29 KB
patch
obsolete
>Index: plugin.xml >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.examples.rcp.browser/plugin.xml,v >retrieving revision 1.2 >diff -u -r1.2 plugin.xml >--- plugin.xml 19 Mar 2004 07:14:18 -0000 1.2 >+++ plugin.xml 6 Apr 2004 23:02:41 -0000 >@@ -37,11 +37,54 @@ > <extension > point="org.eclipse.ui.views"> > <view >+ allowMultiple="true" > name="Browser" > icon="icons/sample.gif" > class="org.eclipse.ui.examples.rcp.browser.BrowserView" > id="org.eclipse.ui.examples.rcp.browser.browserView"> > </view> >+ <view >+ allowMultiple="true" >+ name="Browser Unknown" >+ icon="icons/sample.gif" >+ class="org.eclipse.ui.examples.rcp.browser.BrowserView" >+ id="org.eclipse.ui.examples.rcp.browser.browserUnknown"> >+ </view> >+ <view >+ name="Browser Exact" >+ icon="icons/sample.gif" >+ class="org.eclipse.ui.examples.rcp.browser.BrowserView" >+ id="org.eclipse.ui.examples.rcp.browser.browserExact"> >+ </view> >+ <view >+ allowMultiple="true" >+ name="Browser Exact" >+ icon="icons/sample.gif" >+ class="org.eclipse.ui.examples.rcp.browser.BrowserView" >+ id="org.eclipse.ui.examples.rcp.browser.browserExact.Match"> >+ </view> >+ <view >+ allowMultiple="true" >+ name="Browser Partial" >+ icon="icons/sample.gif" >+ class="org.eclipse.ui.examples.rcp.browser.BrowserView" >+ id="org.eclipse.ui.examples.rcp.browser.browserPartial"> >+ </view> >+ <view >+ allowMultiple="true" >+ name="Browser Partial" >+ icon="icons/sample.gif" >+ class="org.eclipse.ui.examples.rcp.browser.BrowserView" >+ id="org.eclipse.ui.examples.rcp.browser.browserPartial.Match"> >+ </view> >+ <view >+ allowMultiple="true" >+ name="Browser Partial" >+ icon="icons/sample.gif" >+ class="org.eclipse.ui.examples.rcp.browser.BrowserView" >+ id="org.eclipse.ui.examples.rcp.browser.browserPartial.X"> >+ </view> >+ > </extension> > > </plugin> >Index: src/org/eclipse/ui/examples/rcp/browser/BrowserActionBuilder.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.examples.rcp.browser/src/org/eclipse/ui/examples/rcp/browser/BrowserActionBuilder.java,v >retrieving revision 1.4 >diff -u -r1.4 BrowserActionBuilder.java >--- src/org/eclipse/ui/examples/rcp/browser/BrowserActionBuilder.java 9 Feb 2004 20:16:09 -0000 1.4 >+++ src/org/eclipse/ui/examples/rcp/browser/BrowserActionBuilder.java 6 Apr 2004 23:02:43 -0000 >@@ -25,6 +25,7 @@ > import org.eclipse.jface.dialogs.MessageDialog; > > import org.eclipse.ui.ISharedImages; >+import org.eclipse.ui.IWorkbenchPage; > import org.eclipse.ui.IWorkbenchWindow; > import org.eclipse.ui.actions.ActionFactory; > import org.eclipse.ui.actions.RetargetAction; >@@ -47,7 +48,8 @@ > public class BrowserActionBuilder { > > private IWorkbenchWindow window; >- private IAction newWindowAction, quitAction, aboutAction; >+ private IAction newWindowAction, quitAction, aboutAction, showSingleUnknownAction; >+ private IAction showViewActions[] = new IAction[8]; > private RetargetAction backAction, forwardAction, stopAction, refreshAction; > > public BrowserActionBuilder(IWorkbenchWindow window) { >@@ -102,8 +104,115 @@ > "(c) 2003,2004 IBM Corporation and others."); > } > }; >+ >+ // all mighty wild card (*) >+ showViewActions[0] = new Action() { >+ { setText("no placeholder for xxx - (*)"); } >+ public void run() { >+ try { >+ window.getActivePage().showView(BrowserApp.PLUGIN_ID + ".browserUnknown"); >+ } >+ catch (Exception e) { >+ e.printStackTrace(); >+ } >+ } >+ }; >+ showViewActions[1] = new Action() { >+ { setText("no placeholder for xxx:xxx - (*)"); } >+ public void run() { >+ try { >+ window.getActivePage().showView(BrowserApp.PLUGIN_ID + ".browserUnknown", >+ BrowserApp.PLUGIN_ID + ".browserUnknown", IWorkbenchPage.VIEW_ACTIVATE); >+ } >+ catch (Exception e) { >+ e.printStackTrace(); >+ } >+ } >+ }; >+ >+ // exact match (xxx) >+ showViewActions[2] = new Action() { >+ { setText("exact match (xxx)"); } >+ public void run() { >+ try { >+ window.getActivePage().showView(BrowserApp.PLUGIN_ID + ".browserExact.Match"); >+ } >+ catch (Exception e) { >+ e.printStackTrace(); >+ } >+ } >+ }; >+ >+ // exact match multi (xxx:xxx) >+ showViewActions[3] = new Action() { >+ { setText("exact match multi (xxx:xxx)"); } >+ public void run() { >+ try { >+ window.getActivePage().showView(BrowserApp.PLUGIN_ID + ".browserExact.Match", >+ "Exact.Match", IWorkbenchPage.VIEW_ACTIVATE); >+ } >+ catch (Exception e) { >+ e.printStackTrace(); >+ } >+ } >+ }; >+ >+ // partial match (xxx.*) >+ showViewActions[4] = new Action() { >+ { setText("partial match (xxx.*)"); } >+ public void run() { >+ try { >+ window.getActivePage().showView(BrowserApp.PLUGIN_ID + ".browserPartial.X"); >+ } >+ catch (Exception e) { >+ e.printStackTrace(); >+ } >+ } >+ }; >+ >+ // partial match multi (xxx.*:xxx) >+ showViewActions[5] = new Action() { >+ { setText("partial match multi (xxx.*:xxx)"); } >+ public void run() { >+ try { >+ window.getActivePage().showView(BrowserApp.PLUGIN_ID + ".browserPartial.X", >+ "Partial.Match", IWorkbenchPage.VIEW_ACTIVATE); >+ } >+ catch (Exception e) { >+ e.printStackTrace(); >+ } >+ } >+ }; >+ >+ // partial match multi (xxx:xxx.*) >+ showViewActions[6] = new Action() { >+ { setText("partial match multi (xxx:xxx.*)"); } >+ public void run() { >+ try { >+ window.getActivePage().showView(BrowserApp.PLUGIN_ID + ".browserPartial.Match", >+ "Partial.X", IWorkbenchPage.VIEW_ACTIVATE); >+ } >+ catch (Exception e) { >+ e.printStackTrace(); >+ } >+ } >+ }; >+ >+ // partial match multi (xxx.*:xxx.*) >+ showViewActions[7] = new Action() { >+ { setText("partial match multi (xxx.*:xxx.*)"); } >+ public void run() { >+ try { >+ window.getActivePage().showView(BrowserApp.PLUGIN_ID + ".browserPartial.X", >+ "Partial.X", IWorkbenchPage.VIEW_ACTIVATE); >+ } >+ catch (Exception e) { >+ e.printStackTrace(); >+ } >+ } >+ }; > } >- >+ > public void fillMenuBar(IMenuManager menuBar) { > IMenuManager fileMenu = new MenuManager("&File", "file"); //$NON-NLS-2$ > menuBar.add(fileMenu); >@@ -117,6 +226,12 @@ > viewMenu.add(forwardAction); > viewMenu.add(stopAction); > viewMenu.add(refreshAction); >+ >+ IMenuManager showMenu = new MenuManager("&Show", "show"); //$NON-NLS-2$ >+ menuBar.add(showMenu); >+ for (int i=0; i<showViewActions.length; i++) { >+ showMenu.add(showViewActions[i]); >+ } > > IMenuManager helpMenu = new MenuManager("&Help", "help"); //$NON-NLS-2$ > menuBar.add(helpMenu); >Index: src/org/eclipse/ui/examples/rcp/browser/BrowserPerspectiveFactory.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.examples.rcp.browser/src/org/eclipse/ui/examples/rcp/browser/BrowserPerspectiveFactory.java,v >retrieving revision 1.1 >diff -u -r1.1 BrowserPerspectiveFactory.java >--- src/org/eclipse/ui/examples/rcp/browser/BrowserPerspectiveFactory.java 12 Jan 2004 03:27:57 -0000 1.1 >+++ src/org/eclipse/ui/examples/rcp/browser/BrowserPerspectiveFactory.java 6 Apr 2004 23:02:43 -0000 >@@ -23,8 +23,36 @@ > * of the perspective to have a single Browser view and no editor area. > */ > public void createInitialLayout(IPageLayout layout) { >- layout.addView(BrowserApp.PLUGIN_ID + ".browserView", IPageLayout.TOP, 1.0f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ >+ layout.addView(BrowserApp.PLUGIN_ID + ".browserView", IPageLayout.RIGHT, .5f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ > layout.setEditorAreaVisible(false); >+ >+ // all mighty wild card (*) >+ layout.addPlaceholder("*", >+ IPageLayout.LEFT, .5f, BrowserApp.PLUGIN_ID + ".browserView"); >+ >+ // exact match (xxx) >+ layout.addPlaceholder(BrowserApp.PLUGIN_ID + ".browserExact.Match", >+ IPageLayout.LEFT, .5f, BrowserApp.PLUGIN_ID + ".browserView"); >+ >+ // exact match multi (xxx:xxx) >+ layout.addPlaceholder(BrowserApp.PLUGIN_ID + ".browserExact.Match:Exact.Match", >+ IPageLayout.LEFT, .5f, BrowserApp.PLUGIN_ID + ".browserView"); >+ >+ // partial match (xxx.*) >+ layout.addPlaceholder(BrowserApp.PLUGIN_ID + ".browserPartial.*", >+ IPageLayout.LEFT, .5f, BrowserApp.PLUGIN_ID + ".browserView"); >+ >+ // partial match multi (xxx.*:xxx) >+ layout.addPlaceholder(BrowserApp.PLUGIN_ID + ".browserPartial.*:Partial.Match", >+ IPageLayout.LEFT, .5f, BrowserApp.PLUGIN_ID + ".browserView"); >+ >+ // partial match multi (xxx:xxx.*) >+ layout.addPlaceholder(BrowserApp.PLUGIN_ID + ".browserPartial.Match:Partial.*", >+ IPageLayout.LEFT, .5f, BrowserApp.PLUGIN_ID + ".browserView"); >+ >+ // partial match multi (xxx.*:xxx.*) >+ layout.addPlaceholder(BrowserApp.PLUGIN_ID + ".browserPartial.*:Partial.*", >+ IPageLayout.LEFT, .5f, BrowserApp.PLUGIN_ID + ".browserView"); > } > > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 56431
:
9271
| 9272 |
9339
|
9340
|
9355
|
9446
|
9713