This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void resourceChanged(final IResourceChangeEvent event) { | |
| if (event.getType() == IResourceChangeEvent.POST_CHANGE) { | |
| Display.getDefault().asyncExec(new Runnable() { | |
| public void run() { | |
| IFile file = ((IFileEditorInput) input).getFile(); | |
| if (!file.exists()) { | |
| // ファイル名が変更されていたら、EditorをCloseする | |
| IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); | |
| page.closeEditor(VisualMXMLEditor.this, false); | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void resourceChanged(final IResourceChangeEvent event) { | |
| if (event.getType() == IResourceChangeEvent.POST_CHANGE) { | |
| IResourceDelta rootDelta = event.getDelta(); | |
| final IEditorInput input = getEditorInput(); | |
| IFile file = ((IFileEditorInput) input).getFile(); | |
| IPath filePath = file.getFullPath(); | |
| IResourceDelta targetDelta = rootDelta.findMember(filePath); | |
| if (targetDelta != null) { | |
| Display.getDefault().asyncExec(new Runnable() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void resourceChanged(final IResourceChangeEvent event) { | |
| if (event.getType() != IResourceChangeEvent.POST_CHANGE | |
| || !(getEditorInput() instanceof IFileEditorInput)) { | |
| return; | |
| } | |
| IResourceDelta rootDelta = event.getDelta(); | |
| IFile file = ((IFileEditorInput) getEditorInput()).getFile(); | |
| IPath filePath = file.getFullPath(); | |
| IResourceDelta delta = rootDelta.findMember(filePath); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <extension | |
| id="AIRFlexProjectNature" | |
| point="org.eclipse.core.resources.natures"> | |
| <runtime> | |
| <run class="net.sf.amateras.air.natures.AIRFlexProjectNature"/> | |
| </runtime> | |
| <builder id="net.sf.amateras.air.MXMLBuilder"/> | |
| </extension> | |
| <extension |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IProjectNatureDescriptor natureDescriptor = project.getWorkspace().getNatureDescriptor(NATURE_ID); | |
| String[] builderIds = ((ProjectNatureDescriptor) natureDescriptor).getBuilderIds(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function compileErrorTest():void { | |
| var timer:Timer = new Timer(1000); | |
| timer.addEventListener(TimerEvent.TIMER, function onTick(event:Event):void { | |
| var httpService:HTTPService = new HTTPService(); | |
| httpService.addEventListener(ResultEvent.RESULT, | |
| function http(event:ResultEvent):void { | |
| httpService.removeEventListener(ResultEvent.RESULT, http); | |
| }); | |
| }); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # uncrustify config file for objective-c and objective-c++ | |
| # | |
| newlines = auto # auto/lf/crlf/cr | |
| utf8_force = true | |
| output_tab_size = 4 # new tab size | |
| # | |
| # Indenting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{ | |
| dispatch_async(dispatch_get_main_queue(), ^{ | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)addObserver { | |
| CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), | |
| NULL, | |
| MyCallBack, | |
| CFSTR("MyNotificationName"), | |
| NULL, | |
| CFNotificationSuspensionBehaviorDeliverImmediately); | |
| } | |
| static void MyCallBack(CFNotificationCenterRef center, void *observer, CFStringRef name,const void *object, CFDictionaryRef userInfo) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let targetNode = self.scene!.rootNode.childNodeWithName(FLSNodeName.CameraTargetPoint, recursively: false) | |
| if let target = targetNode { | |
| let lookAtConstraint = SCNLookAtConstraint(target:target) | |
| lookAtConstraint.influenceFactor = 0 | |
| self.pointOfView!.constraints = [lookAtConstraint] | |
| } |
OlderNewer