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 50902 Details for
Bug 154781
Generic annotation editing solution
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Basic patch that implements Tabbed Properties in the JavaEditor
154781Patch.txt (text/plain), 4.15 KB, created by
Karen Butzke
on 2006-09-26 09:29:31 EDT
(
hide
)
Description:
Basic patch that implements Tabbed Properties in the JavaEditor
Filename:
MIME Type:
Creator:
Karen Butzke
Created:
2006-09-26 09:29:31 EDT
Size:
4.15 KB
patch
obsolete
>Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui/META-INF/MANIFEST.MF,v >retrieving revision 1.43 >diff -u -r1.43 MANIFEST.MF >--- META-INF/MANIFEST.MF 11 Sep 2006 13:19:18 -0000 1.43 >+++ META-INF/MANIFEST.MF 25 Sep 2006 20:23:05 -0000 >@@ -127,7 +127,8 @@ > org.eclipse.ltk.ui.refactoring;bundle-version="[3.3.0,4.0.0)", > org.eclipse.ui.forms;bundle-version="[3.2.0,4.0.0)", > org.eclipse.ui.navigator;bundle-version="[3.2.0,4.0.0)", >- org.eclipse.jdt.core.manipulation;bundle-version="[1.1.0,2.0.0)" >+ org.eclipse.jdt.core.manipulation;bundle-version="[1.1.0,2.0.0)", >+ org.eclipse.ui.views.properties.tabbed;bundle-version="[3.2.0, 4.0.0)" > Eclipse-LazyStart: true > Plugin-Class: org.eclipse.jdt.internal.ui.JavaPlugin > Import-Package: com.ibm.icu.text >Index: plugin.xml >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui/plugin.xml,v >retrieving revision 1.705 >diff -u -r1.705 plugin.xml >--- plugin.xml 6 Sep 2006 16:20:45 -0000 1.705 >+++ plugin.xml 25 Sep 2006 20:23:02 -0000 >@@ -5479,5 +5479,29 @@ > </selectionEnablement> > </linkHelper> > </extension> >+ <extension >+ point="org.eclipse.ui.views.properties.tabbed.propertyContributor"> >+ <propertyContributor contributorId="javaEditor"> >+ <propertyCategory category="java"/> >+ </propertyContributor> >+ </extension> >+ <extension point="org.eclipse.ui.views.properties.tabbed.propertyTabs"> >+ <propertyTabs contributorId="javaEditor"> >+ <propertyTab >+ category="java" >+ id="javaEditor.AdvancedTab" >+ label="Advanced"/> >+ </propertyTabs> >+ </extension> >+ <extension point="org.eclipse.ui.views.properties.tabbed.propertySections"> >+ <propertySections contributorId="javaEditor"> >+ <propertySection >+ class="org.eclipse.ui.views.properties.tabbed.AdvancedPropertySection" >+ id="javaEditor.AdvancedSection" >+ tab="javaEditor.AdvancedTab"> >+ <input type="org.eclipse.jdt.core.IJavaElement"/> >+ </propertySection> >+ </propertySections> >+ </extension> > > </plugin> >Index: ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java,v >retrieving revision 1.409 >diff -u -r1.409 JavaEditor.java >--- ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java 17 Aug 2006 13:29:59 -0000 1.409 >+++ ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java 25 Sep 2006 20:23:05 -0000 >@@ -155,6 +155,9 @@ > > import org.eclipse.ui.views.contentoutline.ContentOutline; > import org.eclipse.ui.views.contentoutline.IContentOutlinePage; >+import org.eclipse.ui.views.properties.IPropertySheetPage; >+import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor; >+import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; > > import org.eclipse.jdt.core.IClassFile; > import org.eclipse.jdt.core.ICompilationUnit; >@@ -230,7 +233,7 @@ > /** > * Java specific text editor. > */ >-public abstract class JavaEditor extends AbstractDecoratedTextEditor implements IViewPartInputProvider { >+public abstract class JavaEditor extends AbstractDecoratedTextEditor implements IViewPartInputProvider, ITabbedPropertySheetPageContributor { > > /** > * Internal implementation class for a change listener. >@@ -2036,6 +2039,10 @@ > > if (required == IContextProvider.class) > return JavaUIHelp.getHelpContextProvider(this, IJavaHelpContextIds.JAVA_EDITOR); >+ >+ if (required == IPropertySheetPage.class) { >+ return new TabbedPropertySheetPage(this); >+ } > > return super.getAdapter(required); > } >@@ -3841,4 +3848,12 @@ > extension.collapseComments(); > } > } >+ >+ /* >+ * @see org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor#getContributorId() >+ * @since 3.3 >+ */ >+ public String getContributorId() { >+ return "javaEditor"; //$NON-NLS-1$ >+ } > }
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 154781
:
50902
|
51002
|
51771
|
52128
|
52319
|
52582