diff options
author | Daniel Teske <[email protected]> | 2014-01-15 16:58:52 +0100 |
---|---|---|
committer | Daniel Teske <[email protected]> | 2014-01-20 14:57:04 +0100 |
commit | d1fd61cbf35189e3a4823e8afa1c85d9c005f19b (patch) | |
tree | e091abbcd5dfed166d15092780695ca33e644f46 /src/plugins/android/androidplugin.cpp | |
parent | cdd19fe6ad689aef9f884014e8d7ba29334d952a (diff) |
Android: Add minimal Java editing support
Indentation for blocks '{'. '}' and completion for keywords.
TODO: "New File" is missing,
TODO: probably needs some tweaks to the indentation.
Task-number: QTCREATORBUG-11220
Change-Id: I758b3815e47d1427d39c0248eb16e39ffb7a29fb
Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
Diffstat (limited to 'src/plugins/android/androidplugin.cpp')
-rw-r--r-- | src/plugins/android/androidplugin.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/android/androidplugin.cpp b/src/plugins/android/androidplugin.cpp index e772c7fc7ce..77640d02a96 100644 --- a/src/plugins/android/androidplugin.cpp +++ b/src/plugins/android/androidplugin.cpp @@ -46,6 +46,8 @@ #include "androidgdbserverkitinformation.h" #include "androidmanifesteditorfactory.h" #include "androidpotentialkit.h" +#include "javaeditorfactory.h" +#include "javacompletionassistprovider.h" #ifdef HAVE_QBS # include "androidqbspropertyprovider.h" #endif @@ -83,6 +85,8 @@ bool AndroidPlugin::initialize(const QStringList &arguments, QString *errorMessa addAutoReleasedObject(new Internal::AndroidDeployConfigurationFactory); addAutoReleasedObject(new Internal::AndroidDeviceFactory); addAutoReleasedObject(new Internal::AndroidPotentialKit); + addAutoReleasedObject(new Internal::JavaEditorFactory); + addAutoReleasedObject(new Internal::JavaCompletionAssistProvider); ProjectExplorer::KitManager::registerKitInformation(new Internal::AndroidGdbServerKitInformation); // AndroidManifest.xml editor @@ -99,6 +103,9 @@ bool AndroidPlugin::initialize(const QStringList &arguments, QString *errorMessa } addAutoReleasedObject(new Internal::AndroidManifestEditorFactory); + if (!Core::MimeDatabase::addMimeTypes(QLatin1String(":android/Java.mimetypes.xml"), errorMessage)) + return false; + connect(ProjectExplorer::KitManager::instance(), SIGNAL(kitsLoaded()), this, SLOT(kitsRestored())); |