Skip to content

Commit

Permalink
Remove old legacy project and project conversion code
Browse files Browse the repository at this point in the history
  • Loading branch information
BoykoAlex committed Oct 12, 2023
1 parent 4fe5be7 commit 2b85fb3
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 1,216 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Export-Package: org.springsource.ide.eclipse.commons.frameworks.core,
org.springsource.ide.eclipse.commons.frameworks.core.internal.commands,
org.springsource.ide.eclipse.commons.frameworks.core.internal.java,
org.springsource.ide.eclipse.commons.frameworks.core.internal.plugins,
org.springsource.ide.eclipse.commons.frameworks.core.legacyconversion,
org.springsource.ide.eclipse.commons.frameworks.core.maintype,
org.springsource.ide.eclipse.commons.frameworks.core.util,
org.springsource.ide.eclipse.commons.frameworks.core.workspace
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2012 Pivotal Software, Inc.
* Copyright (c) 2012, 2023 Pivotal Software, Inc.
* 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
Expand All @@ -10,13 +10,10 @@
*******************************************************************************/
package org.springsource.ide.eclipse.commons.frameworks.core;

import java.net.URISyntaxException;

import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
import org.springsource.ide.eclipse.commons.frameworks.core.legacyconversion.IConversionConstants;

/**
* @author Nieraj Singh
Expand Down Expand Up @@ -91,26 +88,5 @@ public static IStatus createWarningStatus(String message,
}
return new Status(IStatus.WARNING, PLUGIN_ID, 0, message, exception);
}

/**
* Returns true if the plugin id has not yet run legacy conversion for this workspace yet
* @param pluginid plugin id to check
* @return true iff legacy conversion has not taken place for this plugin, but it has for the workspace as a whole
*/
public boolean shouldMigratePlugin(String pluginid) {
if (getPreferenceStore().getBoolean(IConversionConstants.LEGACY_MIGRATION_ALREADY_DONE)) {
String plugins = getPreferenceStore().getString(IConversionConstants.LEGACY_MIGRATION_PLUGINS);
return plugins.contains("," + pluginid + ","); //$NON-NLS-1$ //$NON-NLS-2$
} else {
// workspace legacy migration has not yet been successfully performed
return false;
}
}

public void registerPluginMigrationComplete(String pluginid) {
String plugins = getPreferenceStore().getString(IConversionConstants.LEGACY_MIGRATION_PLUGINS);
plugins += "," + pluginid + ","; //$NON-NLS-1$ //$NON-NLS-2$
getPreferenceStore().putValue(IConversionConstants.LEGACY_MIGRATION_PLUGINS, plugins);
}

}

This file was deleted.

This file was deleted.

Loading

0 comments on commit 2b85fb3

Please sign in to comment.