- 浏览: 52551 次
- 性别:
- 来自: 沈阳
最新评论
-
imu2008:
嗯,此方法可用。好文。mark
rcp中新建工程没有图标解决方案 -
553563608:
今天也遇到这个问题了,,,,
这个方法可以解决。。。
rcp中新建工程没有图标解决方案 -
zhaozhongwei:
这个就不清楚了,我们也是两个文件啊。我很久没搞gmf了
关于gmf copy/paste 的解决方案 -
popjxc:
我下了你的代码,发现copy paste后,原来复制的是一个n ...
关于gmf copy/paste 的解决方案 -
赤道螞蟻:
你這不是用附件的方式傳的圖片嗎? 沒有什麽新招?
用java mail发送包含图片的html
dltk code Completion
org.eclipse.dltk.ui.text.completion.ScriptCompletionProposalComputer#computeCompletionProposals
the Language specific proposals is on top of Template proposals
if want to change the proposals' older,could store the configure the older in the preference page and
store it(format like "computeScriptCompletionProposals,computeTemplateCompletionProposals,other"),and ScriptCompletionProposalComputer's subclass override computeCompletionProposals,split the stored value then iterate them and then judge it use if ,finally call the corresponding method,so the older is under control.
code completion contexts : CompletionContextResolver.java /org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts
php completion engine PHPCompletionEngine.java /org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist
php evaluate expression PHPWatchExpressionDelegate.java /org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/watch
php text hover PHPDebugTextHover.java /org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/hovers
Bug 207699
Static class variables do not show up in the Variables view when debugging in the PHP Debug perspective
because the value is got from PHPValue#getVariables,requestVariables,actually the RemoteDebugger send a
GetVariableValueRequest
response = (GetVariableValueResponse) connection
.sendRequest(request);
...
return response.getVarResult();
and then ExpressionsValueDeserializer#deserializer use VariableReader to deserialize the value
it seems there is no method to get a static variable's value
java hit count store the hitcount number in BreakpointRequestImpl(EventRequestImpl).fCountFilters,
and then write to JDWP bytestream(outData)
JavaBreakpoint#configureRequestHitCount
protected void configureRequestHitCount(EventRequest request) throws CoreException {
int hitCount= getHitCount();
if (hitCount > 0) {
request.addCountFilter(hitCount);//store to EventRequestImpl.fCountFilters
request.putProperty(HIT_COUNT, new Integer(hitCount));
}
}
writeInt(((Integer)fCountFilters.get(i)).intValue(), "count filter", outData);
so if want to add hit count support to pdt,it must be supported by the debugger
link with debug view is completed through PHPThread#setBreakpoints which is called by
PHPDebugTarget#breakpointHit.
the php debug is through the ui ,then new request for the special action then receive response.
when start a php debug,pdt will add all breakpoints to the remote debugger(AddBreakpointRequest)
get content type for a text viewer and the text offset
IDocument document= viewer.getDocument();
String type= TextUtilities.getContentType(document, getDocumentPartitioning(), offset, true);
php code assist works in the html contest,this is for PHPStructuredTextViewerConfiguration#getContentAssistProcessors
type <input type="hi in php file entry "ctrl" + "space" will not show "hidden".
this because php PHPTokenizer(about line 1944)
// JSP attribute value start - complex single quoted
assembleEmbeddedContainer(XML_TAG_ATTRIBUTE_VALUE_SQUOTE,
XML_TAG_ATTRIBUTE_VALUE_SQUOTE);
this make XML_TAG_ATTRIBUTE_VALUE_SQUOTE ContextRegionContainer type not AttributeValueRegion type.
and then in HTMLContentAssistProcessor#addAttributeValueProposals method (line 343)
// d210858, if the region's a container, don't suggest the
// enumerated values as they probably won't help
boolean existingComplicatedValue = (contentAssistRequest.getRegion() != null) && (contentAssistRequest.getRegion() instanceof ITextRegionContainer);
if (!existingComplicatedValue) {
...
}
so the "hidden" string not popup when entry "ctrl" + "space"
editor base wtp,its code assist is computed in CompoundContentAssistProcessor#computeCompletionProposals
here has some relation with StructuredTextViewerConfigurationHTML#getContentAssistProcessors,subclass
reimplement this method to deal with the partition types that it is interested in.
<!-- PHP Model Handler -->
<extension
point="org.eclipse.wst.sse.core.modelHandler">
<modelHandler
default="yes"
class="org.eclipse.php.internal.core.documentModel.handler.PHPModelHandler"
associatedContentTypeId="org.eclipse.php.core.phpsource"
id="org.eclipse.php.core.documentModel.handler">
</modelHandler>
</extension>
org.eclipse.php.internal.core.documentModel.handler.PHPModelHandler
public IDocumentLoader getDocumentLoader() {
return new PHPDocumentLoader();
}
in PHPDocumentLoader
protected IEncodedDocument newEncodedDocument() {
IEncodedDocument doc = super.newEncodedDocument();
assert doc instanceof BasicStructuredDocument;
((BasicStructuredDocument) doc)
.setReParser(new PhpStructuredDocumentReParser());
// doc.setPreferredLineDelimiter( "\n" );
return doc;
}
public RegionParser getParser() {
PhpSourceParser parser = new PhpSourceParser();
// for the "static HTML" case, we need to initialize
// Blocktags here.
addHTMLishTag(parser, "script"); //$NON-NLS-1$
addHTMLishTag(parser, "style"); //$NON-NLS-1$
return parser;
}
when change something in php editor will call PhpStructuredDocumentReParser#reparse,
then PhpSourceParser#parseNodes,then PHPTokenizer#getNextToken
then ContextRegionContainer...will be instanced
ScriptCompletionProcessor
PHPStructuredEditor#
resAction = new TextOperationAction(
DLTKEditorMessages.getBundleForConstructedKeys(),
"ShowOutline.", this, PHPStructuredTextViewer.SHOW_OUTLINE, true); //$NON-NLS-1$
resAction
.setActionDefinitionId(IScriptEditorActionDefinitionIds.SHOW_OUTLINE); //$NON-NLS-1$
setAction(IScriptEditorActionDefinitionIds.SHOW_OUTLINE, resAction);
PHPStructuredTextViewer#configure
fOutlinePresenter = phpConfiguration.getOutlinePresenter(this);
if (fOutlinePresenter != null) {
fOutlinePresenter.install(this);
}
PHPStructuredTextViewer#doOperation
case SHOW_OUTLINE:
if (fOutlinePresenter != null) {
fOutlinePresenter.showInformation();
}
return;
PHPStructuredTextViewerConfiguration#getOutlinePresenter
refactor is in DeltaProcessor#updateModel,ModelUpdater#traverseDelta,SourceModule#close
发表评论
-
How to Debug and Detect Deadlocks
2010-12-01 15:04 1007Deadlocks in 2 minutes ... -
Run FindBugs from your Eclipse RCP headless build
2010-12-01 14:53 978Running FindBugs from Eclipse R ... -
Markers and Annotations in Eclipse for Error Feedback(forward)
2010-12-01 14:39 1564Motto: Ninety per cent ... -
Testing declarative Eclipse expressions(forward)
2010-11-19 08:32 1038Our Eclipse-based product plugs ... -
Release engineer vs dependency management: Basing RCP Product and headless build
2010-11-02 23:32 840http://www.bonitasoft.org/blog/ ... -
Unit testing puzzle – How can I verify that System.exit() gets called?
2010-08-14 08:17 0Sounds strange – yes, very ... -
Invoking an Eclipse Wizard programmatically
2010-07-23 09:45 0Sometimes I find the need to ... -
A testing strategy for multiple inheritance in EMF generated code.
2010-07-23 09:12 0I recently became a comittter ... -
Can we build it? Yes we can!(FW)
2010-07-16 11:05 0Thomas Hallgren, Michal Ruzicka ... -
eclipse headless
2010-06-16 17:37 1460java -jar <eclipse-install ... -
Generating p2 meta data from command line
2010-06-11 12:08 783Many times when working with ... -
Opening files in Eclipse from the command line(转发)
2010-06-11 12:08 1189I ran a query to see all the ... -
http://cvalcarcel.wordpress.com/
2010-04-09 03:00 0http://cvalcarcel.wordpress.com ... -
HOWTO: Build Plugin & Feature Projects, Then Run Their Unit Tests w/ Tycho ::GEF
2010-04-03 14:30 01. Check out entire source tree ... -
Tip: How to Debug SWT components in Modal Dialogs(转发)
2010-04-03 14:22 0SWT and JFace components, and e ... -
action
2010-03-24 17:22 0这两天在改一个bug,跟action有关的,以前一直也没好好弄 ... -
SWT: Drop an Outlook Email(转发)
2010-03-18 14:43 1795I wanted to drop an outlook ema ... -
终于成为eclipse的committer了
2010-03-16 16:33 3144虽然以前也是committer,但是是个非常小的工程还是卵化期 ... -
Animated GIF in TableViewer
2010-03-02 12:23 0I'm quite attached to TableVie ... -
extend jdt with ot
2010-02-28 11:56 0extend jdt with ot http://blog ...
相关推荐
CDT+DLTK Eclipse Plugins, 直接拷贝,无需安装。
DLTK 提供一个预打包的开发环境,只需进行一些小的调整就能工作
python库,解压后可用。 资源全名:dltk_ai-1.1.4-py3-none-any.whl
eclipse下 离线 搭建shell脚本编辑器--...1、首先要安装 dltk : 动态语言工具包 dltk-R-5.10-201808292040 2、安装shelled插件 net.sourceforge.shelled-site-2.0.3 解决在官网下载不了时,离线安装包,都是最新版本
AI医疗图像的入门资料,教你如何利用Tensorflow和DLTK库进行图像分析。
CDT+DLTK Eclipse Plugins (First-pachage)安装包
DLTK-深度学习工具包 什么是DLTK? 此仓库包含用于分类,回归和聚类,计算机视觉和自然语言处理的所有广泛使用的机器学习技术(作为Docker映像) 此存储库包含与ML,Computer Vision和NLP相对应的所有开源Docker...
eclipse下 离线 搭建shell脚本编辑器-...1、首先要安装 dltk : 动态语言工具包 dltk-R-5.10-201808292040 2、安装shelled插件 net.sourceforge.shelled-site-2.0.3 解决在官网下载不了时,离线安装包,都是最新版本
资源来自pypi官网。 资源全名:qubitai-dltk-1.0.2.tar.gz
DLTK 用于医学图像分析的深度学习工具箱。用python编写的神经网络工具箱,构建在Tensorflow之上。
DLTK模型动物园 模型动物园中的引用和引用方法 要了解如何引用每个实现,请参考作者的README.md中的规范。 如果您在工作中使用DLTK,请参考以下引用: @article{pawlowski2017state, title={DLTK: State of the ...
DLTK Deutsch语言工具套件-
编程语言的工具提供了大量特性,但对脚本语言(比如Perl、Python和PHP)的支持却很少。庆幸的是,EclipseDynamicLanguagesToolkit(DLTK)为这些语言以及类似的语言提供了支持。通过本文学习构建基于DLTK的IDE的步骤,...
Myeclipse禁用updating indexes
(DLTK) 依赖性。 DLTK 项目在过去几年中没有太大的发展,在 DLTK 中做一些事情非常非常复杂,需要做很多工作。 现在,新的IDE 建立在 . 非常适合使用 Eclipse IDE 支持构建 DSL,所以如果您不熟悉,请去看看它。 ...
基于Eclipse的Dynamic Languages Toolkit(http://www.eclipse.org/dltk/)构建的Octave开发环境。 作为Eclipse 3.7 Indigo和用于多个平台的基于Indigo的软件包的更新站点... 另外,值得用DLTK 4支持Eclipse 4.0 Juno。
ruby + watri 自动化部署集成Eclipse 全量安装包 (包括:watir-1.5.4、ruby186-26、WatirRecorder_Setup_lite、dltk-core-ruby、dotnetfx、rubygems-1.3.7、安装说明)
eclipse-gn 对元构建语言支持。 该项目基于 Eclipse 的动态语言工具包 ( ) 5.0。 ##安装 ... GN 语言并不完全适合 DLTK 模型,因此 Outline 视图中的源代码模型可能看起来有点奇怪。 缺少语义代码检