Skip to content

Commit

Permalink
Remove Generate Sequence Diagram intention.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanco committed Jun 16, 2022
1 parent f075624 commit 1c7d03e
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 77 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
# SequenceDiagram Changelog

## [Unreleased]
## [2.1.10]
### Added
- `Show lambda call` option
- Add Color Icon in setting Colors.
- Support generate function expression body in kotlin
- Support generate lambda_argument

### Removed
- Remove `Generate Sequence Diagram` intention

### Fixed
- Issue#127
- Issue#100 Method Declaration Becomes Grey

## [2.1.9]
### Changed
- Build for 222.x
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Since v2.1.0, the UI has improved a lot. now you can easily find it everywhere :
2. In Tools menu. `Tools` > `Sequence Diagram ...`
3. In Project view popup up menu. `Sequence Diagram ...`
4. In Editor popup up menu. `Sequence Diagram ...`
5. In IntentionAction tips.`Generate sequence diagram`
5. ~~In IntentionAction tips.`Generate sequence diagram`~~(removed, not stable)

Please try to experience it and find what happen.

Expand Down
28 changes: 0 additions & 28 deletions src/main/java/org/intellij/sequencer/SequenceAnnotator.java

This file was deleted.

46 changes: 0 additions & 46 deletions src/main/java/org/intellij/sequencer/SequenceIntentionAction.java

This file was deleted.

9 changes: 8 additions & 1 deletion src/main/java/org/intellij/sequencer/diagram/Parser.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.intellij.sequencer.diagram;

import com.google.gson.Gson;
import com.google.gson.stream.MalformedJsonException;
import org.apache.log4j.Logger;
import org.intellij.sequencer.Constants;
import org.intellij.sequencer.generator.ClassDescription;
Expand Down Expand Up @@ -40,7 +41,12 @@ public void parse(PushbackReader reader) throws IOException {
break;
} else if (c == '(') {
String methodName = readIdent(reader);
addCall(methodName);
try { addCall(methodName); } catch (Throwable e) {
if (e instanceof MalformedJsonException) {
LOGGER.error("org.intellij.sequencer.diagram.Parser: "+methodName);
}
throw e;
}
} else if (c == ')') {
addReturn();
} else {
Expand Down Expand Up @@ -235,6 +241,7 @@ else if (c == '\\') {

/**
* Peek a sdt tile read top method of Sequence Diagram.
*
* @param f a .sdt file
* @return MethodDescription
*/
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ The original version SequencePlugin come from ksibilev@yahoo.com.</p>
<projectService serviceInterface="org.intellij.sequencer.SequenceService"
serviceImplementation="org.intellij.sequencer.impl.SequenceServiceImpl"/>

<annotator language="JAVA" implementationClass="org.intellij.sequencer.SequenceAnnotator"/>

</extensions>
</idea-plugin>

0 comments on commit 1c7d03e

Please sign in to comment.