diff --git a/org.fortiss.tooling.kernel.ui/trunk/icons/folder_storage.gif b/org.fortiss.tooling.kernel.ui/trunk/icons/folder_storage.gif new file mode 100644 index 0000000000000000000000000000000000000000..45b1ea5591f7bb739a4f2b99fcb9e0484fa4f187 Binary files /dev/null and b/org.fortiss.tooling.kernel.ui/trunk/icons/folder_storage.gif differ diff --git a/org.fortiss.tooling.kernel.ui/trunk/plugin.xml b/org.fortiss.tooling.kernel.ui/trunk/plugin.xml index 0a39b9dfe8677486a5149fab012ce2d7852b6f3f..c0ffbc07a5b6c49de3adca472e3ad74ed675fa5f 100644 --- a/org.fortiss.tooling.kernel.ui/trunk/plugin.xml +++ b/org.fortiss.tooling.kernel.ui/trunk/plugin.xml @@ -121,5 +121,14 @@ contributor="org.fortiss.tooling.kernel.ui.internal.views.NavigatorNewMenu"> </contextMenuContribution> </extension> + <extension + point="org.eclipse.ui.perspectives"> + <perspective + class="org.fortiss.tooling.kernel.ui.internal.perspective.StoragePerspective" + icon="icons/folder_storage.gif" + id="org.fortiss.tooling.kernel.ui.storage.perspective" + name="Storage"> + </perspective> + </extension> </plugin> diff --git a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/perspective/StoragePerspective.java b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/perspective/StoragePerspective.java new file mode 100644 index 0000000000000000000000000000000000000000..fa2839b6adbfb249074907cd64b305347af4f670 --- /dev/null +++ b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/perspective/StoragePerspective.java @@ -0,0 +1,48 @@ +/*--------------------------------------------------------------------------+ +$Id$ +| | +| Copyright 2011 ForTISS GmbH | +| | +| Licensed under the Apache License, Version 2.0 (the "License"); | +| you may not use this file except in compliance with the License. | +| You may obtain a copy of the License at | +| | +| http://www.apache.org/licenses/LICENSE-2.0 | +| | +| Unless required by applicable law or agreed to in writing, software | +| distributed under the License is distributed on an "AS IS" BASIS, | +| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | +| See the License for the specific language governing permissions and | +| limitations under the License. | ++--------------------------------------------------------------------------*/ +package org.fortiss.tooling.kernel.ui.internal.perspective; + +import org.eclipse.ui.IFolderLayout; +import org.eclipse.ui.IPageLayout; +import org.eclipse.ui.IPerspectiveFactory; + +/** + * Perspective for the component simulator. + * + * @author hoelzl + * @author $Author$ + * @version $Rev$ + * @ConQAT.Rating YELLOW Hash: CCA87EF8953100DC0556166DA9756533 + */ +public class StoragePerspective implements IPerspectiveFactory { + + /** The ID of this perspective. */ + public static final String ID = StoragePerspective.class.getName(); + + /** {@inheritDoc} */ + @Override + public void createInitialLayout(IPageLayout layout) { + IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, + 0.2f, layout.getEditorArea()); + left.addView("org.eclipse.ui.views.ResourceNavigator"); + + IFolderLayout bottom = layout.createFolder("bottom", + IPageLayout.BOTTOM, 0.75f, layout.getEditorArea()); + bottom.addView("org.eclipse.ui.views.ProgressView"); + } +}