Lines 155-160
Link Here
|
155 |
|
155 |
|
156 |
import org.eclipse.ui.views.contentoutline.ContentOutline; |
156 |
import org.eclipse.ui.views.contentoutline.ContentOutline; |
157 |
import org.eclipse.ui.views.contentoutline.IContentOutlinePage; |
157 |
import org.eclipse.ui.views.contentoutline.IContentOutlinePage; |
|
|
158 |
import org.eclipse.ui.views.properties.IPropertySheetPage; |
159 |
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor; |
160 |
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; |
158 |
|
161 |
|
159 |
import org.eclipse.jdt.core.IClassFile; |
162 |
import org.eclipse.jdt.core.IClassFile; |
160 |
import org.eclipse.jdt.core.ICompilationUnit; |
163 |
import org.eclipse.jdt.core.ICompilationUnit; |
Lines 230-236
Link Here
|
230 |
/** |
233 |
/** |
231 |
* Java specific text editor. |
234 |
* Java specific text editor. |
232 |
*/ |
235 |
*/ |
233 |
public abstract class JavaEditor extends AbstractDecoratedTextEditor implements IViewPartInputProvider { |
236 |
public abstract class JavaEditor extends AbstractDecoratedTextEditor implements IViewPartInputProvider, ITabbedPropertySheetPageContributor { |
234 |
|
237 |
|
235 |
/** |
238 |
/** |
236 |
* Internal implementation class for a change listener. |
239 |
* Internal implementation class for a change listener. |
Lines 2036-2041
Link Here
|
2036 |
|
2039 |
|
2037 |
if (required == IContextProvider.class) |
2040 |
if (required == IContextProvider.class) |
2038 |
return JavaUIHelp.getHelpContextProvider(this, IJavaHelpContextIds.JAVA_EDITOR); |
2041 |
return JavaUIHelp.getHelpContextProvider(this, IJavaHelpContextIds.JAVA_EDITOR); |
|
|
2042 |
|
2043 |
if (required == IPropertySheetPage.class) { |
2044 |
return new TabbedPropertySheetPage(this); |
2045 |
} |
2039 |
|
2046 |
|
2040 |
return super.getAdapter(required); |
2047 |
return super.getAdapter(required); |
2041 |
} |
2048 |
} |
Lines 3841-3844
Link Here
|
3841 |
extension.collapseComments(); |
3848 |
extension.collapseComments(); |
3842 |
} |
3849 |
} |
3843 |
} |
3850 |
} |
|
|
3851 |
|
3852 |
/* |
3853 |
* @see org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor#getContributorId() |
3854 |
* @since 3.3 |
3855 |
*/ |
3856 |
public String getContributorId() { |
3857 |
return "javaEditor"; //$NON-NLS-1$ |
3858 |
} |
3844 |
} |
3859 |
} |