Commit 1cb07e88 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

BS-8589

Filtering on product id is useless.
Contributions are not called installer applications
parent d4bc2ab8
/**
* Copyright (C) 2009-2011 BonitaSoft S.A.
* BonitaSoft, 31 rue Gustave Eiffel - 38000 Grenoble
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2.0 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
......@@ -451,7 +451,7 @@ public class BonitaStudioWorkbenchAdvisor extends WorkbenchAdvisor implements IS
final long startupDuration = System.currentTimeMillis() - BonitaStudioApplication.START_TIME;
BonitaStudioLog.info("Startup duration : " + DateUtil.getDisplayDuration(startupDuration), ApplicationPlugin.PLUGIN_ID);
}
@Override
public void postStartup() {
super.postStartup();
......
/**
* Copyright (C) 2014 Bonitasoft S.A.
* BonitaSoft, 32 rue Gustave Eiffel - 38000 Grenoble
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2.0 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.bonitasoft.studio.registration;
import org.bonitasoft.studio.common.extension.IPostStartupContribution;
import org.eclipse.core.runtime.Platform;
import org.eclipse.swt.widgets.Display;
public class RegistrationContribution implements IPostStartupContribution {
......@@ -30,17 +29,15 @@ public class RegistrationContribution implements IPostStartupContribution {
/* (non-Javadoc)
* @see org.bonitasoft.studio.application.contribution.IPostStartupContribution#execute()
*/
@Override
public void execute() {
final String productId = Platform.getProduct().getId();
if(!"org.bonitasoft.studio.workspaceRecovery".equals(productId)
&& !"org.bonitasoft.studio.initializer".equals(productId)){
Display.getDefault().syncExec(new Runnable() {
public void run() {
new BonitaRegistrationDialog( Display.getDefault().getActiveShell(), new BonitaRegisterWizard()).open();
}
});
}
Display.getDefault().syncExec(new Runnable() {
@Override
public void run() {
new BonitaRegistrationDialog(Display.getDefault().getActiveShell(), new BonitaRegisterWizard()).open();
}
});
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment