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 2036-2045
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(buildTabbedPropertySheetPageContributor()); |
2045 |
} |
2039 |
|
2046 |
|
2040 |
return super.getAdapter(required); |
2047 |
return super.getAdapter(required); |
2041 |
} |
2048 |
} |
2042 |
|
2049 |
|
|
|
2050 |
private ITabbedPropertySheetPageContributor buildTabbedPropertySheetPageContributor() { |
2051 |
return new ITabbedPropertySheetPageContributor() { |
2052 |
public String getContributorId() { |
2053 |
return "javaEditor"; //$NON-NLS-1$ |
2054 |
} |
2055 |
}; |
2056 |
} |
2057 |
|
2043 |
/** |
2058 |
/** |
2044 |
* React to changed selection. |
2059 |
* React to changed selection. |
2045 |
* |
2060 |
* |