-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andre Dietisheim <[email protected]>
- Loading branch information
Showing
13 changed files
with
275 additions
and
420 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
src/main/java/com/redhat/devtools/intellij/telemetry/core/service/FeedbackEvent.java
This file was deleted.
Oops, something went wrong.
62 changes: 0 additions & 62 deletions
62
...main/java/com/redhat/devtools/intellij/telemetry/core/service/FeedbackMessageBuilder.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...ava/com/redhat/devtools/intellij/telemetry/core/service/segment/SegmentBrokerFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.redhat.devtools.intellij.telemetry.core.service.segment; | ||
|
||
import com.redhat.devtools.intellij.telemetry.core.IMessageBroker; | ||
import com.redhat.devtools.intellij.telemetry.core.service.Environment; | ||
import com.redhat.devtools.intellij.telemetry.core.service.IDE; | ||
import com.redhat.devtools.intellij.telemetry.core.service.UserId; | ||
|
||
import static com.redhat.devtools.intellij.telemetry.core.IMessageBroker.*; | ||
|
||
public class SegmentBrokerFactory implements IMessageBrokerFactory { | ||
|
||
@Override | ||
public IMessageBroker create(boolean isDebug, ClassLoader classLoader) { | ||
Environment environment = createEnvironment(classLoader); | ||
SegmentConfiguration configuration = new SegmentConfiguration(classLoader); | ||
return new SegmentBroker( | ||
isDebug, | ||
UserId.INSTANCE.get(), | ||
environment, | ||
configuration); | ||
} | ||
|
||
private static Environment createEnvironment(ClassLoader classLoader) { | ||
IDE ide = new IDE.Factory() | ||
.create() | ||
.setJavaVersion(); | ||
return new Environment.Builder() | ||
.ide(ide) | ||
.plugin(classLoader) | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.