Skip to content

Commit

Permalink
Preparing for 3.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbylight committed Dec 21, 2018
1 parent 496b0a0 commit b09b966
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ public class RSyntaxTextAreaDefaultInputMap extends RTADefaultInputMap {
public RSyntaxTextAreaDefaultInputMap() {

int defaultMod = getDefaultModifier();
//int ctrl = InputEvent.CTRL_MASK;
int shift = InputEvent.SHIFT_MASK;
//int alt = InputEvent.ALT_MASK;
int shift = InputEvent.SHIFT_DOWN_MASK;
int defaultShift = defaultMod|shift;

put(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, shift), RSyntaxTextAreaEditorKit.rstaDecreaseIndentAction);
Expand Down Expand Up @@ -76,4 +74,4 @@ public RSyntaxTextAreaDefaultInputMap() {
}


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -981,9 +981,6 @@ else if (x > alloc.x + alloc.width) {
}


/**
* {@inheritDoc}
*/
@Override
public int yForLine(Rectangle alloc, int line) throws BadLocationException {

Expand All @@ -1008,9 +1005,6 @@ public int yForLine(Rectangle alloc, int line) throws BadLocationException {
}


/**
* {@inheritDoc}
*/
@Override
public int yForLineContaining(Rectangle alloc, int offs)
throws BadLocationException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public abstract class TokenMakerFactory {
*/
public static synchronized TokenMakerFactory getDefaultInstance() {
if (DEFAULT_INSTANCE==null) {
String clazz = null;
String clazz;
try {
clazz= System.getProperty(PROPERTY_DEFAULT_TOKEN_MAKER_FACTORY);
} catch (java.security.AccessControlException ace) {
Expand All @@ -55,7 +55,7 @@ public static synchronized TokenMakerFactory getDefaultInstance() {
}
try {
DEFAULT_INSTANCE = (TokenMakerFactory)Class.forName(clazz).
newInstance();
getDeclaredConstructor().newInstance();
} catch (RuntimeException re) { // FindBugs
throw re;
} catch (Exception e) {
Expand Down Expand Up @@ -121,4 +121,4 @@ public static synchronized void setDefaultInstance(TokenMakerFactory tmf) {
}


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1094,9 +1094,6 @@ public int viewToModel(float x, float y, Shape a, Position.Bias[] bias) {
}


/**
* {@inheritDoc}
*/
@Override
public int yForLine(Rectangle alloc, int line) throws BadLocationException {
return yForLineContaining(alloc,
Expand All @@ -1105,9 +1102,6 @@ public int yForLine(Rectangle alloc, int line) throws BadLocationException {
}


/**
* {@inheritDoc}
*/
@Override
public int yForLineContaining(Rectangle alloc, int offs)
throws BadLocationException {
Expand Down Expand Up @@ -1458,4 +1452,4 @@ public void removeUpdate(DocumentEvent e, Shape a, ViewFactory f) {
}


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -733,4 +733,4 @@ public void moveDot(FilterBypass fb, int dot, Position.Bias bias) {
}


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -774,4 +774,4 @@ public void propertyChange(PropertyChangeEvent e) {
}


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public RTADefaultInputMap() {
super();

int defaultModifier = getDefaultModifier();
//int ctrl = InputEvent.CTRL_MASK;
int alt = InputEvent.ALT_MASK;
int shift = InputEvent.SHIFT_MASK;
//int ctrl = InputEvent.CTRL_DOWN_MASK;
int alt = InputEvent.ALT_DOWN_MASK;
int shift = InputEvent.SHIFT_DOWN_MASK;
boolean isOSX = RTextArea.isOSX();
int moveByWordMod = isOSX ? alt : defaultModifier;

Expand Down Expand Up @@ -154,10 +154,10 @@ public RTADefaultInputMap() {
*
* @return The default modifier key.
*/
protected static final int getDefaultModifier() {
protected static int getDefaultModifier() {
return Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();
}



}
}
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ protected JPopupMenu createPopupMenu() {
private static void createPopupMenuActions() {

// Create actions for right-click popup menu.
// 1.5.2004/pwy: Replaced the CTRL_MASK with the cross-platform version...
int mod = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();
ResourceBundle msg = ResourceBundle.getBundle(MSG);

Expand Down

This file was deleted.

11 changes: 5 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,19 @@ allprojects {
}

wrapper {
gradleVersion = '5.0-rc-4'
gradleVersion = '5.0'
}
}

subprojects {

apply plugin: 'java'
apply plugin: 'checkstyle'
// apply plugin: 'checkstyle' // TODO: Figure out why checkstyle stopped finding suppressions file with gradle 5
//apply plugin: 'findbugs' //TODO: Have FindBugs ignore generated code

checkstyle {
toolVersion = '8.14'
configFile = '../config/checkstyle/checkstyle.xml' as File // Relative to subprojects
}
// checkstyle {
// toolVersion = '8.15'
// }

/*
tasks.withType(FindBugs) {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Note that Maven- and signing-related properties are in <maven-home>/gradle.properties
javaVersion=1.8
version=3.0.0-SNAPSHOT
version=3.0.0
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-rc-4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit b09b966

Please sign in to comment.