Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bonita
bonita-studio
Commits
1cb07e88
Commit
1cb07e88
authored
Oct 23, 2014
by
Romain Bioteau
Browse files
BS-8589
Filtering on product id is useless. Contributions are not called installer applications
parent
d4bc2ab8
Changes
2
Hide whitespace changes
Inline
Side-by-side
bundles/plugins/org.bonitasoft.studio.application/src/org/bonitasoft/studio/application/BonitaStudioWorkbenchAdvisor.java
View file @
1cb07e88
/**
* 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
();
...
...
bundles/plugins/org.bonitasoft.studio.registration/src/org/bonitasoft/studio/registration/RegistrationContribution.java
View file @
1cb07e88
/**
* 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
();
}
});
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment