Skip to content

Commit ef59c39

Browse files
author
Erle Czar Mantos
committed
Fixes eclipse-vorto#616 - Model explorer missing in the Vorto perspective of 0.10.0M1 Snapshot version
Signed-off-by: Erle Czar Mantos <[email protected]>
1 parent 38249a1 commit ef59c39

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

Diff for: bundles/org.eclipse.vorto.perspective.vorto/plugin.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
category="org.eclipse.vorto.perspective"
4747
class="org.eclipse.vorto.perspective.vorto.view.VortoProjectSelectionViewPart"
4848
icon="platform:/plugin/org.eclipse.vorto.perspective/icons/vorto-icon.png"
49-
id="org.eclipse.vorto.perspective.view.ProjectSelectionViewPart"
49+
id="org.eclipse.vorto.perspective.view.VortoProjectSelectionViewPart"
5050
name="Vorto Model Project Browser">
5151
</view>
5252
<view

Diff for: bundles/org.eclipse.vorto.perspective.vorto/src/org/eclipse/vorto/perspective/VortoPerspective.java

+3-10
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
*/
1515
package org.eclipse.vorto.perspective;
1616

17+
import org.eclipse.ui.IFolderLayout;
1718
import org.eclipse.ui.IPageLayout;
1819
import org.eclipse.ui.IPerspectiveFactory;
1920
import org.eclipse.vorto.perspective.vorto.view.VortoProjectSelectionViewPart;
@@ -23,16 +24,8 @@ public class VortoPerspective implements IPerspectiveFactory {
2324
@Override
2425
public void createInitialLayout(IPageLayout layout) {
2526

26-
layout.createFolder("left", IPageLayout.LEFT, 0.2f,
27-
IPageLayout.ID_EDITOR_AREA);
28-
layout.createFolder("right", IPageLayout.RIGHT, 0.6f,
29-
IPageLayout.ID_EDITOR_AREA);
30-
layout.createFolder("bottom", IPageLayout.BOTTOM, 0.8f,
31-
IPageLayout.ID_EDITOR_AREA);
32-
layout.createFolder("top", IPageLayout.TOP, 0.6f,
33-
IPageLayout.ID_EDITOR_AREA);
27+
IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.2f, layout.getEditorArea());
3428

35-
layout.addView(VortoProjectSelectionViewPart.PROJECT_SELECT_VIEW_ID, IPageLayout.LEFT, 0.20f,
36-
layout.getEditorArea());
29+
left.addView(VortoProjectSelectionViewPart.PROJECT_SELECT_VIEW_ID);
3730
}
3831
}

Diff for: bundles/org.eclipse.vorto.perspective.vorto/src/org/eclipse/vorto/perspective/vorto/view/VortoProjectSelectionViewPart.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
public class VortoProjectSelectionViewPart extends AbstractProjectSelectionViewPart {
2424

25-
public static final String PROJECT_SELECT_VIEW_ID = "org.eclipse.vorto.perspective.vorto.view.VortoProjectSelectionViewPart";
25+
public static final String PROJECT_SELECT_VIEW_ID = "org.eclipse.vorto.perspective.view.VortoProjectSelectionViewPart";
2626

2727
@Override
2828
protected ModelTreeViewer getDataTypeTreeViewer(Composite modelPanel) {

0 commit comments

Comments
 (0)