Skip to content

Commit 2a00bbf

Browse files
committed
refactor code
1 parent 1ec06e3 commit 2a00bbf

File tree

9 files changed

+20
-19
lines changed

9 files changed

+20
-19
lines changed

app/src/main/java/com/duy/ccppcompiler/compiler/manager/CompileManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import com.duy.ide.diagnostic.Diagnostic;
3535
import com.duy.ide.diagnostic.DiagnosticPresenter;
3636
import com.duy.ide.diagnostic.DiagnosticsCollector;
37-
import com.duy.ide.editor.SimpleEditorActivity;
37+
import com.duy.ide.core.SimpleEditorActivity;
3838
import com.jecelyin.common.utils.UIUtils;
3939
import com.jecelyin.editor.v2.widget.menu.MenuDef;
4040

app/src/main/java/com/duy/editor/CodeEditorActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import com.duy.common.purchase.Premium;
4242
import com.duy.editor.theme.ThemeActivity;
4343
import com.duy.file.explorer.FileExplorerActivity;
44-
import com.duy.ide.editor.SimpleEditorActivity;
44+
import com.duy.ide.core.SimpleEditorActivity;
4545
import com.jecelyin.common.utils.UIUtils;
4646
import com.jecelyin.editor.v2.editor.Document;
4747
import com.jecelyin.editor.v2.editor.EditorDelegate;

editor/src/main/java/com/duy/ide/editor/SimpleEditorActivity.java renamed to editor/src/main/java/com/duy/ide/core/SimpleEditorActivity.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
/*
2-
* Copyright 2018 Mr Duy
2+
* Copyright (C) 2018 Duy Tran Le
33
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
78
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
913
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
14+
* You should have received a copy of the GNU General Public License
15+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1516
*/
1617

17-
package com.duy.ide.editor;
18+
package com.duy.ide.core;
1819

1920
import android.Manifest;
2021
import android.content.Intent;

editor/src/main/java/com/duy/ide/diagnostic/DiagnosticPresenter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import android.view.View;
2424

2525
import com.duy.common.DLog;
26-
import com.duy.ide.editor.SimpleEditorActivity;
26+
import com.duy.ide.core.SimpleEditorActivity;
2727
import com.duy.ide.editor.editor.R;
2828
import com.duy.ide.suggestion.ISuggestion;
2929
import com.jecelyin.common.utils.UIUtils;

editor/src/main/java/com/jecelyin/editor/v2/dialog/AbstractDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import android.content.Context;
2121
import android.support.v7.app.AlertDialog;
2222

23-
import com.duy.ide.editor.SimpleEditorActivity;
23+
import com.duy.ide.core.SimpleEditorActivity;
2424

2525
/**
2626
* @author Jecelyin Peng <jecelyin@gmail.com>

editor/src/main/java/com/jecelyin/editor/v2/editor/EditorDelegate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
import com.duy.astyle.AStyleInterface;
4646
import com.duy.common.ShareUtil;
47-
import com.duy.ide.editor.SimpleEditorActivity;
47+
import com.duy.ide.core.SimpleEditorActivity;
4848
import com.duy.ide.editor.editor.R;
4949
import com.duy.ide.editor.span.ErrorSpan;
5050
import com.duy.ide.editor.theme.model.EditorTheme;

editor/src/main/java/com/jecelyin/editor/v2/editor/task/SaveAllTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import android.os.AsyncTask;
2020
import android.support.annotation.Nullable;
2121

22-
import com.duy.ide.editor.SimpleEditorActivity;
22+
import com.duy.ide.core.SimpleEditorActivity;
2323
import com.duy.ide.editor.pager.EditorFragmentPagerAdapter;
2424
import com.duy.ide.filemanager.SaveListener;
2525
import com.jecelyin.editor.v2.editor.IEditorDelegate;

editor/src/main/java/com/jecelyin/editor/v2/manager/TabManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import android.support.v4.view.ViewPager;
2525
import android.view.View;
2626

27-
import com.duy.ide.editor.SimpleEditorActivity;
27+
import com.duy.ide.core.SimpleEditorActivity;
2828
import com.duy.ide.editor.editor.R;
2929
import com.duy.ide.editor.pager.EditorFragmentPagerAdapter;
3030
import com.duy.ide.editor.pager.EditorPageDescriptor;

simple-editor/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
android:theme="@style/LightTheme">
3131

3232
<activity
33-
android:name="com.duy.ide.editor.SimpleEditorActivity"
33+
android:name="com.duy.ide.core.SimpleEditorActivity"
3434
android:configChanges="orientation|keyboard|keyboardHidden|screenSize"
3535
android:exported="true"
3636
android:label="@string/app_name">

0 commit comments

Comments
 (0)