Skip to content

Commit

Permalink
Delay for build.
Browse files Browse the repository at this point in the history
  • Loading branch information
peransin-obeo committed Jun 26, 2024
1 parent 4c091b7 commit 703a9ab
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
6 changes: 3 additions & 3 deletions parent/tpd/sdk.target
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde?>
<!-- generated with https://github.com/eclipse-cbi/targetplatform-dsl -->
<target name="Capella Viewpoint Extension tools - SDK" sequenceNumber="1718819781">
<target name="Capella Viewpoint Extension tools - SDK" sequenceNumber="1719428371">
<locations>
<location includeMode="planner" includeAllPlatforms="false" includeSource="true" includeConfigurePhase="false" type="InstallableUnit">
<unit id="org.eclipse.gmf.runtime.notation.sdk.feature.group" version="1.13.1.202211151334"/>
Expand Down Expand Up @@ -68,8 +68,8 @@
<repository id="sirius" location="https://download.eclipse.org/sirius/updates/releases/7.1.0/2021-06/"/>
</location>
<location includeMode="planner" includeAllPlatforms="false" includeSource="true" includeConfigurePhase="false" type="InstallableUnit">
<unit id="org.mypsycho.emf.modit_feature.feature.group" version="1.3.0.v20240619-1707"/>
<unit id="org.mypsycho.emf.modit.sirius_feature.feature.group" version="1.3.0.v20240619-1707"/>
<unit id="org.mypsycho.emf.modit_feature.feature.group" version="1.3.0.v20240625-1622"/>
<unit id="org.mypsycho.emf.modit.sirius_feature.feature.group" version="1.3.0.v20240625-1622"/>
<repository id="modit" location="https://mypsycho.github.io/ModIt/releases/v1.3"/>
</location>
<location includeMode="planner" includeAllPlatforms="false" includeSource="true" includeConfigurePhase="false" type="InstallableUnit">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,19 @@ static void logConsole(IOConsole console, String message) {
* to perform
*/
static void scheduleInUI(String jobName, IOConsole trace, IRunnableWithProgress operation) {
scheduleInUI(jobName, trace, 0L, operation);
}

/**
* Schedules a job.
*
* @param jobName
* of operation
* @param operation
* to perform
*/
static void scheduleInUI(
String jobName, IOConsole trace, long delay, IRunnableWithProgress operation) {
WorkspaceJob job = new WorkspaceJob(jobName) {

@Override
Expand All @@ -146,7 +159,7 @@ public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
job.setRule(ResourcesPlugin.getWorkspace().getRoot());
job.setUser(true);
job.setPriority(Job.BUILD);
job.schedule();
job.schedule(delay);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static EObject generateViewpoint(EObject anchor, Set<GenGapModel> genMode
MessageFormat.format("Generation failed {0}\n", e.getLocalizedMessage()));
throw new InvocationTargetException(e);
}
scheduleInUI("Viewpoint Custom Generation", fb,
scheduleInUI("Viewpoint Custom Generation", fb, 2_000,
subProgress -> startLaunchConfiguration(getCustomLaunchName(anchor),
fb, subProgress));
});
Expand Down

0 comments on commit 703a9ab

Please sign in to comment.