Skip to content
Snippets Groups Projects
Commit ff2b41cf authored by Jens Bendisposto's avatar Jens Bendisposto
Browse files

PROBPLUGIN-35

parent 36e94335
Branches
Tags
No related merge requests found
...@@ -563,23 +563,6 @@ ...@@ -563,23 +563,6 @@
</with> </with>
</enabledWhen> </enabledWhen>
</handler> </handler>
<handler
commandId="de.prob.ui.classic.export">
<class
class="de.prob.ui.eventb.ExportClassicHandler">
</class>
<enabledWhen>
<with
variable="selection">
<iterate
operator="or">
<instanceof
value="org.eventb.core.IEventBRoot">
</instanceof>
</iterate>
</with>
</enabledWhen>
</handler>
<handler <handler
commandId="de.prob.ui.classic.open"> commandId="de.prob.ui.classic.open">
<class <class
...@@ -995,7 +978,7 @@ ...@@ -995,7 +978,7 @@
</with> </with>
</visibleWhen> </visibleWhen>
<command <command
commandId="de.prob.ui.classic.export" commandId="de.prob.ui.newcore.export"
icon="icons/prob_mini_logo.gif" icon="icons/prob_mini_logo.gif"
label="Export for use in ProB classic" label="Export for use in ProB classic"
style="push"> style="push">
...@@ -1006,12 +989,6 @@ ...@@ -1006,12 +989,6 @@
label="Open in ProB classic" label="Open in ProB classic"
style="push"> style="push">
</command> </command>
<command
commandId="de.prob.ui.newcore.export"
icon="icons/prob_mini_logo.gif"
label="Export for new core (experimental)"
style="push">
</command>
</menu> </menu>
<separator <separator
name="de.prob.ui.separator1" name="de.prob.ui.separator1"
......
...@@ -28,6 +28,11 @@ import de.prob.core.translator.TranslationFailedException; ...@@ -28,6 +28,11 @@ import de.prob.core.translator.TranslationFailedException;
import de.prob.eventb.translator.TranslatorFactory; import de.prob.eventb.translator.TranslatorFactory;
import de.prob.logging.Logger; import de.prob.logging.Logger;
/**
* @author bendisposto
* @deprecated Use ExpprtNewCoreHandler instead
*/
@Deprecated
public class ExportClassicHandler extends AbstractHandler implements IHandler { public class ExportClassicHandler extends AbstractHandler implements IHandler {
public Object execute(final ExecutionEvent event) throws ExecutionException { public Object execute(final ExecutionEvent event) throws ExecutionException {
......
package de.prob.ui.eventb; package de.prob.ui.eventb;
import java.io.ByteArrayInputStream;
import java.io.File; import java.io.File;
import java.io.FileWriter; import java.io.FileWriter;
import java.io.IOException; import java.io.IOException;
...@@ -18,7 +17,6 @@ import org.eclipse.core.commands.ExecutionException; ...@@ -18,7 +17,6 @@ import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.IHandler; import org.eclipse.core.commands.IHandler;
import org.eclipse.core.runtime.Platform; import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.preferences.InstanceScope; import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.xmi.XMLResource; import org.eclipse.emf.ecore.xmi.XMLResource;
import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.dialogs.MessageDialog;
...@@ -30,7 +28,6 @@ import org.eclipse.swt.widgets.Shell; ...@@ -30,7 +28,6 @@ import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.handlers.HandlerUtil; import org.eclipse.ui.handlers.HandlerUtil;
import org.eventb.core.IEventBRoot; import org.eventb.core.IEventBRoot;
import org.eventb.core.IMachineRoot; import org.eventb.core.IMachineRoot;
import org.eventb.emf.core.EventBNamedCommentedComponentElement;
import org.eventb.emf.core.Project; import org.eventb.emf.core.Project;
import org.eventb.emf.persistence.ProjectResource; import org.eventb.emf.persistence.ProjectResource;
import org.osgi.service.prefs.BackingStoreException; import org.osgi.service.prefs.BackingStoreException;
......
...@@ -35,8 +35,7 @@ public class OpenClassicHandler extends AbstractHandler implements IHandler { ...@@ -35,8 +35,7 @@ public class OpenClassicHandler extends AbstractHandler implements IHandler {
if (root != null) { if (root != null) {
final File temp = createTempFile(); final File temp = createTempFile();
final String tmp = temp.getAbsolutePath(); final String tmp = temp.getAbsolutePath();
ExportClassicHandler.exportToClassic(tmp, root); ExportNewCoreHandler.exportToClassic(tmp, root);
runProBClassic(location, tmp); runProBClassic(location, tmp);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment