Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

refactored to remove some warnings

  • Loading branch information...
commit d5c6aeb27aceb250f6c1c3bab73386533d8d6463 1 parent 40bc424
@kaptoxic authored
View
34 ch.epfl.insynth.build/ch.epfl.insynth/src/ch/epfl/insynth/core/completion/InSynthCompletitionProposal.scala
@@ -4,7 +4,7 @@ import org.eclipse.jdt.ui.text.java.IJavaCompletionProposal
import org.eclipse.jface.text.contentassist.{ ICompletionProposalExtension, ICompletionProposalExtension6, IContextInformation }
import org.eclipse.swt.graphics.Image
import org.eclipse.jface.text.IDocument
-import org.eclipse.jface.viewers.{ISelectionProvider, StyledString}
+import org.eclipse.jface.viewers.{ ISelectionProvider, StyledString }
import org.eclipse.jface.text.TextSelection
import org.eclipse.jface.text.ITextViewer
import org.eclipse.jdt.internal.ui.JavaPluginImages
@@ -18,49 +18,51 @@ import org.eclipse.jface.text.link.LinkedModeUI.ExitFlags
import org.eclipse.swt.SWT
import org.eclipse.jface.text.contentassist.ICompletionProposal
-class InSynthCompletitionProposal (completition:String, relevance:Int)
-extends IJavaCompletionProposal with ICompletionProposalExtension with ICompletionProposalExtension6
-{
+class InSynthCompletitionProposal(completition: String, relevance: Int)
+ extends IJavaCompletionProposal with ICompletionProposalExtension with ICompletionProposalExtension6 {
+
def getRelevance = {
1000 + relevance
}
-
+
def getImage = {
- null
+ null
}
-
- def getContextInformation(): IContextInformation ={
+
+ def getContextInformation(): IContextInformation = {
null
}
+
def getDisplayString() = {
completition
}
-
- def getStyledDisplayString() = {
+
+ def getStyledDisplayString() = {
new StyledString(completition)
}
-
+
def getAdditionalProposalInfo() = {
null
}
+
def getSelection(d: IDocument) = {
null
}
- def apply(d: IDocument) {
- null
+
+ def apply(d: IDocument) {
}
- def apply(d: IDocument, trigger: Char, offset: Int){
+ def apply(d: IDocument, trigger: Char, offset: Int) {
d.replace(offset, 0, completition)
}
-
+
def getTriggerCharacters = {
null
}
def getContextInformationPosition = {
1
}
-
+
def isValidFor(d: IDocument, pos: Int) = {
true
}
View
25 ch.epfl.insynth.build/pom.xml
@@ -436,6 +436,31 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <version>${tycho.version}</version>
+ <configuration>
+ <!-- tell tycho what target environments you are interested in -->
+ <environments>
+ <environment>
+ <os>win32</os>
+ <ws>win32</ws>
+ <arch>x86</arch>
+ </environment>
+ <environment>
+ <os>linux</os>
+ <ws>gtk</ws>
+ <arch>x86_64</arch>
+ </environment>
+ <environment>
+ <os>macosx</os>
+ <ws>cocoa</ws>
+ <arch>x86_64</arch>
+ </environment>
+ </environments>
+ </configuration>
+ </plugin>
</plugins>
</build>
Please sign in to comment.
Something went wrong with that request. Please try again.