Skip to content
Snippets Groups Projects
Commit e8328bc6 authored by Simon Barner's avatar Simon Barner
Browse files

- Use constants in IPageLayout instead of hard-coded String constants to...

- Use constants in IPageLayout instead of hard-coded String constants to configure views for StoragePerspective.
- Note: ResourceNavigator view is deprecated since Eclipse 3.5! (warning suppressed for now)
parent 3c05a9fc
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ import org.eclipse.ui.IPerspectiveFactory;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: B0AF9659218D128667AB69BD47E4C88C
* @ConQAT.Rating YELLOW Hash: 7AE8C77505FC5FB053B26217B6DB69D6
*/
public class StoragePerspective implements IPerspectiveFactory {
......@@ -35,14 +35,15 @@ public class StoragePerspective implements IPerspectiveFactory {
public static final String ID = StoragePerspective.class.getName();
/** {@inheritDoc} */
@SuppressWarnings("deprecation")
@Override
public void createInitialLayout(IPageLayout layout) {
IFolderLayout left =
layout.createFolder("left", IPageLayout.LEFT, 0.2f, layout.getEditorArea());
left.addView("org.eclipse.ui.views.ResourceNavigator");
left.addView(IPageLayout.ID_RES_NAV);
IFolderLayout bottom =
layout.createFolder("bottom", IPageLayout.BOTTOM, 0.75f, layout.getEditorArea());
bottom.addView("org.eclipse.ui.views.ProgressView");
bottom.addView(IPageLayout.ID_PROGRESS_VIEW);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment