From d2dd98d76911b2bb72e77e11aa5c2a31159fce86 Mon Sep 17 00:00:00 2001 From: Florian Hoelzl <hoelzl@fortiss.org> Date: Thu, 19 Jan 2012 18:02:19 +0000 Subject: [PATCH] added simple resource perspective refs 438 --- .../trunk/icons/folder_storage.gif | Bin 0 -> 355 bytes .../trunk/plugin.xml | 9 ++++ .../perspective/StoragePerspective.java | 48 ++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 org.fortiss.tooling.kernel.ui/trunk/icons/folder_storage.gif create mode 100644 org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/perspective/StoragePerspective.java 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 GIT binary patch literal 355 zcmZ?wbhEHb6krfwxXQrr<3Y{;kK6x0Zu<Xf<^R_!|G!%G|MjZ>H}gJSD*FF;>i@^n z{$DHj|8VO6;~xJ{hW@`^_y2nR|Kp+m&t(2Tm-+up*8g)^|BpocKN9u-Xw>zUVgI+< z{a<H%a;n$=rFsV@1Ra_ba-ctGZ%^QX3Bh}M0=IYg|DUR~uFi9Fv(L^B|5cT4OUqnV zRl3hFa9WySm}Ddxrpo;v3>b(8ia%Kx85j&1bU->leqvy2I54BYLr2KoWAR4T>}^w= z`578c6u8JuIAOt6!J1H@5TYW=)6M+pa>jx#b=M;YOY-7eFFPwQjoKLHtSuxP8`s{R zVyGpqn#RV;GLe~uCErO$uaJk6a}E~|k9sBlQhtHu%hg<)MTJF0M1(hLy7q{Pi%E#> S5z}(hIe6$$z)?d-25SHl6p&H? literal 0 HcmV?d00001 diff --git a/org.fortiss.tooling.kernel.ui/trunk/plugin.xml b/org.fortiss.tooling.kernel.ui/trunk/plugin.xml index 0a39b9dfe..c0ffbc07a 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 000000000..fa2839b6a --- /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"); + } +} -- GitLab