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 61651 Details for
Bug 177331
[Forms] Key binding actions should not go to the editor while header has focus
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch for forms.examples to reproduce the problem
177331.patch (text/plain), 3.62 KB, created by
Christof Marti
on 2007-03-22 04:16:51 EDT
(
hide
)
Description:
Patch for forms.examples to reproduce the problem
Filename:
MIME Type:
Creator:
Christof Marti
Created:
2007-03-22 04:16:51 EDT
Size:
3.62 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.forms.examples >Index: src/org/eclipse/ui/forms/examples/internal/rcp/SingleHeaderEditor.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.forms.examples/src/org/eclipse/ui/forms/examples/internal/rcp/SingleHeaderEditor.java,v >retrieving revision 1.5 >diff -u -r1.5 SingleHeaderEditor.java >--- src/org/eclipse/ui/forms/examples/internal/rcp/SingleHeaderEditor.java 16 Mar 2007 20:24:49 -0000 1.5 >+++ src/org/eclipse/ui/forms/examples/internal/rcp/SingleHeaderEditor.java 22 Mar 2007 08:00:13 -0000 >@@ -10,23 +10,32 @@ > *******************************************************************************/ > package org.eclipse.ui.forms.examples.internal.rcp; > >+import org.eclipse.core.filesystem.EFS; >+import org.eclipse.core.filesystem.IFileStore; >+import org.eclipse.core.runtime.IPath; > import org.eclipse.core.runtime.IProgressMonitor; > import org.eclipse.jface.action.Action; > import org.eclipse.jface.action.ControlContribution; > import org.eclipse.swt.SWT; >+import org.eclipse.swt.layout.FillLayout; > import org.eclipse.swt.widgets.Button; > import org.eclipse.swt.widgets.Composite; > import org.eclipse.swt.widgets.Control; > import org.eclipse.swt.widgets.Display; >+import org.eclipse.swt.widgets.Text; >+import org.eclipse.ui.IEditorInput; > import org.eclipse.ui.ISharedImages; > import org.eclipse.ui.PartInitException; > import org.eclipse.ui.PlatformUI; >+import org.eclipse.ui.editors.text.TextEditor; > import org.eclipse.ui.forms.IManagedForm; > import org.eclipse.ui.forms.editor.SharedHeaderFormEditor; > import org.eclipse.ui.forms.examples.internal.ExamplesPlugin; > import org.eclipse.ui.forms.widgets.Form; > import org.eclipse.ui.forms.widgets.FormToolkit; > import org.eclipse.ui.forms.widgets.ScrolledForm; >+import org.eclipse.ui.internal.editors.text.EditorsPlugin; >+import org.eclipse.ui.internal.editors.text.NonExistingFileEditorInput; > > /** > * A form editor that has several pages but only one stable header. >@@ -62,6 +71,10 @@ > } > }); > //sform.setMessage("Static text", 0); >+ Composite parent= headerForm.getForm().getForm().getHead(); >+ parent.setLayout(new FillLayout()); >+ Text text= new Text(parent, SWT.NONE); >+ headerForm.getForm().getForm().setHeadClient(text); > } > > /* >@@ -74,11 +87,22 @@ > addPage(new HeadlessPage(this, 1)); > addPage(new HeadlessPage(this, 2)); > addPage(new HeadlessPage(this, 3)); >+ addPage(new TextEditor(), createEditorInput(queryFileStore())); > } catch (PartInitException e) { > // > } > } > >+ private IFileStore queryFileStore() { >+ IPath stateLocation= EditorsPlugin.getDefault().getStateLocation(); >+ IPath path= stateLocation.append("/_" + new Object().hashCode()); >+ return EFS.getLocalFileSystem().getStore(path); >+ } >+ >+ private IEditorInput createEditorInput(IFileStore fileStore) { >+ return new NonExistingFileEditorInput(fileStore, ""); >+ } >+ > /* > * (non-Javadoc) > * >Index: plugin.xml >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.forms.examples/plugin.xml,v >retrieving revision 1.22 >diff -u -r1.22 plugin.xml >--- plugin.xml 19 Feb 2007 20:52:00 -0000 1.22 >+++ plugin.xml 22 Mar 2007 08:00:13 -0000 >@@ -18,6 +18,8 @@ > <import plugin="org.eclipse.ui.forms"/> > <import plugin="org.eclipse.core.runtime"/> > <import plugin="org.eclipse.ui.ide"/> >+ <import plugin="org.eclipse.ui.editors"/> >+ <import plugin="org.eclipse.core.filesystem"/> > </requires> > <extension > point="org.eclipse.ui.commands">
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 177331
: 61651