eclipse plugin: Add the initial Addons Management view

This commit is contained in:
Timotei Dolean 2011-07-08 21:10:03 +00:00
parent b075c8cfc3
commit 40eebfb5d1
4 changed files with 43 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

View file

@ -220,6 +220,15 @@
id="org.wesnoth.navigator.WesnothProjectsExplorer"
name="Wesnoth Projects">
</view>
<view
allowMultiple="false"
category="org.wesnoth.views"
class="org.wesnoth.views.AddonsView"
icon="icons/icon-addon-publish.png"
id="org.wesnoth.addonsView"
name="Wesnoth Addons "
restorable="true">
</view>
</extension>
<extension
point="org.eclipse.ui.navigator.navigatorContent">

View file

@ -13,6 +13,7 @@ import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.console.IConsoleConstants;
import org.wesnoth.navigator.WesnothProjectsExplorer;
import org.wesnoth.views.AddonsView;
public class WMLPerspective implements IPerspectiveFactory
{
@ -27,6 +28,7 @@ public class WMLPerspective implements IPerspectiveFactory
layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
layout.addShowViewShortcut( AddonsView.ID_ADDONS_VIEW );
// Editors are placed for free.
String editorArea = layout.getEditorArea();
@ -40,6 +42,7 @@ public class WMLPerspective implements IPerspectiveFactory
bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
bottom.addView(IPageLayout.ID_PROGRESS_VIEW);
bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
bottom.addView( AddonsView.ID_ADDONS_VIEW );
bottom.addView("org.eclipse.pde.runtime.LogView"); //$NON-NLS-1$
IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, 0.68f, editorArea); //$NON-NLS-1$

View file

@ -0,0 +1,31 @@
/*******************************************************************************
* Copyright (c) 2011 by Timotei Dolean <timotei21@gmail.com>
*
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.wesnoth.views;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;
public class AddonsView extends ViewPart
{
public final static String ID_ADDONS_VIEW = "org.wesnoth.addonsView";
public AddonsView()
{
}
@Override
public void createPartControl( Composite parent )
{
}
@Override
public void setFocus()
{
}
}