Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
a570ab17
Commit
a570ab17
authored
10 years ago
by
Bas Leijdekkers
Browse files
Options
Download
Email Patches
Plain Diff
SSR: remove unused code from replace options
parent
e19e11f7
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/structuralsearch/source/com/intellij/structuralsearch/plugin/replace/ReplaceOptions.java
+1
-16
...ellij/structuralsearch/plugin/replace/ReplaceOptions.java
with
1 addition
and
16 deletions
+1
-16
plugins/structuralsearch/source/com/intellij/structuralsearch/plugin/replace/ReplaceOptions.java
+
1
-
16
View file @
a570ab17
package
com.intellij.structuralsearch.plugin.replace
;
import
com.intellij.openapi.util.JDOMExternalizable
;
import
com.intellij.openapi.util.Key
;
import
com.intellij.openapi.util.UserDataHolder
;
import
com.intellij.structuralsearch.MatchOptions
;
import
com.intellij.structuralsearch.ReplacementVariableDefinition
;
import
gnu.trove.THashMap
;
import
org.jdom.Attribute
;
import
org.jdom.DataConversionException
;
import
org.jdom.Element
;
import
org.jetbrains.annotations.NonNls
;
import
org.jetbrains.annotations.NotNull
;
import
java.util.*
;
...
...
@@ -19,7 +15,7 @@ import java.util.*;
* Date: Mar 5, 2004
* Time: 7:51:38 PM
*/
public
class
ReplaceOptions
implements
JDOMExternalizable
,
Cloneable
,
UserDataHolder
{
public
class
ReplaceOptions
implements
JDOMExternalizable
,
Cloneable
{
private
Map
<
String
,
ReplacementVariableDefinition
>
variableDefs
;
private
String
replacement
=
""
;
private
boolean
toShortenFQN
;
...
...
@@ -30,7 +26,6 @@ public class ReplaceOptions implements JDOMExternalizable, Cloneable, UserDataHo
@NonNls
private
static
final
String
REPLACEMENT_ATTR_NAME
=
"replacement"
;
@NonNls
private
static
final
String
SHORTEN_FQN_ATTR_NAME
=
"shortenFQN"
;
private
THashMap
myUserMap
=
null
;
@NonNls
private
static
final
String
VARIABLE_DEFINITION_TAG_NAME
=
"variableDefinition"
;
public
String
getReplacement
()
{
...
...
@@ -146,16 +141,6 @@ public class ReplaceOptions implements JDOMExternalizable, Cloneable, UserDataHo
}
}
public
<
T
>
T
getUserData
(
@NotNull
Key
<
T
>
key
)
{
if
(
myUserMap
==
null
)
return
null
;
return
(
T
)
myUserMap
.
get
(
key
);
}
public
<
T
>
void
putUserData
(
@NotNull
Key
<
T
>
key
,
T
value
)
{
if
(
myUserMap
==
null
)
myUserMap
=
new
THashMap
(
1
);
myUserMap
.
put
(
key
,
value
);
}
public
ReplacementVariableDefinition
getVariableDefinition
(
String
name
)
{
return
variableDefs
!=
null
?
variableDefs
.
get
(
name
):
null
;
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help