Skip to content

Commit

Permalink
Move "Download tern modules" wizard to File -> Import ... See
Browse files Browse the repository at this point in the history
  • Loading branch information
angelozerr committed Dec 11, 2014
1 parent b10f536 commit 2969513
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
12 changes: 10 additions & 2 deletions eclipse/tern.eclipse.ide.tools.ui/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,22 @@
category="tern.eclipse.ide.ui.wizard"
class="tern.eclipse.ide.tools.internal.ui.wizards.NewTernPluginWizard"
id="tern.eclipse.ide.tools.internal.ui.wizards.NewTernPluginWizard">
</wizard>
</wizard>
</extension>

<extension
point="org.eclipse.ui.importWizards">
<category
name="%TernWizard.name"
id="tern.eclipse.ide.ui.wizard">
</category>
<wizard
name="%DownloadTernModulesWizard.name"
icon="icons/full/etool16/plugin.gif"
category="tern.eclipse.ide.ui.wizard"
class="tern.eclipse.ide.tools.internal.ui.wizards.DownloadTernModulesWizard"
id="tern.eclipse.ide.tools.internal.ui.wizards.DownloadTernModulesWizard">
</wizard>
</wizard>
</extension>

<!-- =================================================================================== -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
/**
* Copyright (c) 2013-2014 Angelo ZERR.
* All rights reserved. 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
*
* Contributors:
* Angelo Zerr <[email protected]> - initial API and implementation
*/
package tern.eclipse.ide.tools.internal.ui.wizards;

import org.eclipse.ui.INewWizard;
import org.eclipse.ui.IImportWizard;

import tern.eclipse.ide.tools.internal.ui.TernToolsUIMessages;
import tern.eclipse.ide.tools.internal.ui.wizards.TernWizard;

/**
* Download tern plugins wizard.
*
*/
public class DownloadTernModulesWizard extends TernWizard<DownloadOptions>
implements INewWizard {
implements IImportWizard {

@Override
public void addPages() {
Expand Down

2 comments on commit 2969513

@paulvi
Copy link
Contributor

@paulvi paulvi commented on 2969513 Dec 11, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it mean it will be both New and Import ?

@angelozerr
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No just import

Please sign in to comment.