- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个非常旧的 3.X RCP Eclipse 元素,我正在尝试升级到 4,但我想修复该元素的初始问题是使样式与 RCP 经典 CSS 相匹配。我试过以下:http://www.eclipse.org/forums/index.php/m/1034649/?srch=3.x+rcp+theme+css#msg_1034649创建相同的样式但无济于事,所以我只能假设我做错了什么(惊喜)。我对 RCP 很陌生,所以请原谅这个解释。该链接谈到了我在 project.product 文件中看到的扩展点添加,但不确定如何将其添加到那里,所以我将其添加到 plugin.xml 中。总的来说,我希望有更好的理解,这样我至少可以在解决其他一些问题之前完成样式设置。
添加 plugin.xml:
<?eclipse version="3.2"?>
<plugin>
<extension point="org.eclipse.ui.activities">
<activity name="Remove Unused Icons Manager" id="activity.removeUnusedIcons" />
<activityPatternBinding
activityId="activity.removeUnusedIcons"
pattern="org\.eclipse\.ui\.editors/org\.eclipse\.ui\.edit\.text\.gotoLastEditPosition">
</activityPatternBinding>
</extension>
<extension
id="application"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="com.company.project.client.application.Application">
</run>
</application>
</extension>
<extension point="org.eclipse.ui.perspectives">
<perspective
class="com.company.project.client.perspectives.Perspective"
fixed="false"
icon="icons/project.png"
id="project.perspectives.Default"
name="PROJECT Perspective(Default)">
</perspective>
<perspective
class="com.company.project.client.perspectives.ImportPerspective"
fixed="false"
icon="icons/project.png"
id="project.perspectives.ImportPerspective"
name="Import Perspective">
</perspective>
</extension>
<extension
point="org.eclipse.ui.views">
<view
allowMultiple="true"
category="PROJECT"
class="com.company.project.client.views.View"
icon="icons/project.png"
id="PROJECT.view"
name="Start Page">
</view>
<category
id="PROJECT"
name="Sample Category">
</category>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
name="Mail"
id="PROJECT.category">
</category>
<command
name="Open Mailbox"
description="Opens a mailbox"
categoryId="PROJECT.category"
id="PROJECT.open">
</command>
<command
name="TOGGLE DEFAULT"
class="org.eclipse.ui.handlers.RegistryToggleState: false"
id="org.eclipse.ui.commands.toggleState">
</command>
<command
name="Open Message Dialog"
description="Open a message dialog"
categoryId="PROJECT.category"
id="PROJECT.openMessage">
</command>
<command
categoryId="PROJECT.category"
description="Opens a new PROJECT Project"
id="PROJECT.newProject"
name="New Project">
</command>
<command
categoryId="PROJECT.category"
description="Opens a new PROJECT Module"
id="PROJECT.newModule"
name="New Module">
</command>
<command
categoryId="PROJECT.category"
description="Imports data into PROJECT"
id="PROJECT.importData"
name="Import Data">
</command>
<command
categoryId="PROJECT.category"
description="Cancels a data import"
id="PROJECT.cancelImport"
name="Cancel Import">
</command>
<command
categoryId="PROJECT.category"
description="Shows the Number Format Dialog"
id="PROJECT.showNumberFormatDialog"
name="Number Format Dialog">
</command>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="org.eclipse.ui.file.exit"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="ALT+F4">
</key>
</extension>
<extension
id="PROJECT.product"
point="org.eclipse.core.runtime.products">
<product
application="PROJECT.application"
name="PROJECT: DESCRIPTION v1.1.2">
<property
name="aboutText"
value="PROJECT: DESCRIPTION v1.1.2">
</property>
<property
name="csstheme"
value="org.eclipse.e4.ui.css.theme.e4_classic">
</property>
<property
name="applicationcssResources"
value="images/css/">
</property>
<property
name="windowImages"
value="icons/CERView.gif">
</property>
<property
name="aboutImage"
value="images\logo.png">
</property>
<property
name="appName"
value="PROJECT: DESCRIPTION v1.1.2">
</property>
</product>
</extension>
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<view
id="project.views.Globals"
ratio="0.5"
relationship="right"
relative="org.eclipse.ui.views.TaskList">
</view>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<view
id="project.views.ProjectView"
ratio="0.5"
relationship="right"
relative="org.eclipse.ui.views.TaskList">
</view>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<view
id="project.views.Console"
ratio="0.5"
relationship="right"
relative="org.eclipse.ui.views.TaskList">
</view>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<view
id="project.views.LinkagesView"
ratio="0.5"
relationship="right"
relative="org.eclipse.ui.views.TaskList">
</view>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<view
id="project.views.Tasks"
ratio="0.5"
relationship="right"
relative="org.eclipse.ui.views.TaskList">
</view>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<view
id="project.views.Updates"
ratio="0.5"
relationship="right"
relative="org.eclipse.ui.views.TaskList">
</view>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<view
id="project.views.CalculationElements"
ratio="0.5"
relationship="right"
relative="org.eclipse.ui.views.TaskList">
</view>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<view
id="project.views.History"
ratio="0.5"
relationship="right"
relative="org.eclipse.ui.views.TaskList">
</view>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<view
id="project.views.Excel"
ratio="0.5"
relationship="right"
relative="org.eclipse.ui.views.TaskList">
</view>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<view
id="project.views.ImportDataMappingView"
ratio="0.5"
relationship="right"
relative="org.eclipse.ui.views.TaskList">
</view>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<view
id="project.views.ImportDataWorkbookView"
ratio="0.5"
relationship="right"
relative="org.eclipse.ui.views.TaskList">
</view>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<view
id="project.views.ImportDataView"
ratio="0.5"
relationship="right"
relative="org.eclipse.ui.views.TaskList">
</view>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<view
id="project.views.DataView"
ratio="0.5"
relationship="right"
relative="org.eclipse.ui.views.TaskList">
</view>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<view
id="project.views.DataChangeView"
ratio="0.5"
relationship="right"
relative="org.eclipse.ui.views.TaskList">
</view>
</perspectiveExtension>
</extension>
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
application="PROJECT.application"
name="PROJECT: DESCRIPTION">
<property
name="windowImages"
value="icons/CERView.gif,icons/CERView_32.gif,icons/CERView_48.gif">
</property>
<property
name="aboutText"
value="PROJECT: DESCRIPTION">
</property>
<property
name="aboutImage"
value="product_lg.gif">
</property>
<property
name="appName"
value="PROJECT: DESCRIPTION">
</property>
</product>
</extension>
<extension
point="org.eclipse.ui.intro">
<intro
class="org.eclipse.ui.intro.config.CustomizableIntroPart"
icon="icons/project.png"
id="com.company.PROJECT.intro">
</intro>
<introProductBinding
introId="com.company.PROJECT.intro"
productId="PROJECT.product">
</introProductBinding>
</extension>
<extension
point="org.eclipse.ui.intro.config">
<config
content="introContent.xml"
id="PROJECT.introConfigId"
introId="com.company.PROJECT.intro">
<presentation
home-page-id="root">
<implementation
kind="html"
os="win32,linux,macosx"
style="content/shared.css">
</implementation>
</presentation>
</config>
</extension>
<extension
point="org.eclipse.ui.importWizards">
<category
id="com.company.project.client.gui.wizards.sampleCategory"
name="Sample File Import">
</category>
<wizard
category="com.company.project.client.gui.wizards.sampleCategory"
class="com.company.project.client.gui.wizards.ImportWizard"
icon="icons/sample.gif"
id="com.company.project.client.gui.wizards.ImportWizard"
name="Import Wizard">
<description>
</description>
</wizard>
<wizard
category="com.company.project.client.gui.wizards.sampleCategory"
class="com.company.project.client.gui.wizards.TagDataWizard"
icon="icons/sample.gif"
id="com.company.project.client.gui.wizards.TagDataWizard"
name="Tag Data">
<description>
</description>
</wizard>
<wizard
class="com.company.project.client.gui.wizards.EditColumnWizard"
icon="icons/editColumn.png"
id="com.company.project.client.gui.wizards.EditColumnWizard"
name="Edit Column Wizard">
</wizard>
</extension>
<extension
point="org.eclipse.e4.ui.css.swt.theme">
<theme
basestylesheeturi="content/e4_default.css"
id="org.eclipse.e4.ui.css.theme.e4_default.noos"
label="Default theme">
</theme>
<theme
basestylesheeturi="content/e4_classic_winxp.css"
id="org.eclipse.e4.ui.css.theme.e4_classic"
label="Classic">
</theme>
</extension>
</plugin>
最佳答案
所以我很愚蠢,在 .product(启动选项卡)中没有 -clearPersistedState,因此,css 没有更新。你知道的越多。
关于java - Eclipse RCP 3.X 到 4——经典 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39533595/
本文实例总结了常用SQL语句优化技巧。分享给大家供大家参考,具体如下: 除了建立索引之外,保持良好的SQL语句编写习惯将会降低SQL性能问题发生。 ①通过变量的方式来设置参数 好:
写CSS的同学们往往会体会到,随着项目规模的增加,项目中的CSS代码也会越来越多,如果没有及时对CSS代码进行维护,CSS代码不断会越来越多。CSS代码交错复杂,像一张庞大的蜘蛛网分布在网站的各个位
所以我必须解决类的背包问题。到目前为止,我想出了以下内容。我的比较器是确定两个主题中哪一个是更好选择的函数(通过查看相应的(值,工作)元组)。 我决定迭代工作量小于 maxWork 的可能主题,并且为
前言:复杂类型说明 要了解指针,多多少少会出现一些比较复杂的类型,所以我先介绍一下如何完全理解一个复杂类型,要理解复杂类型其实很简单,一个类型里会出现很多运算符,他们也像普通的表达式一样,有优先级
代码如下: 复制代码代码如下: USE [tempdb] GO /****** Object: UserDefinedFunction [dbo].[fun
最近收到一个工作要求,让我完成一个每天一次的Linux服务器巡检工作(服务器的版本为红帽6.4),不可以使用监控软件来操作。在这里,把我的巡检过程和巡检脚本放送给大家做一参考。 首先,巡检内容
可以在 Classic ASP 中动态创建“空”对象并创建对象属性吗? 以这个 JavaScript 示例为例: var sample = new Object(); sample.prop = "O
我正在向旧的经典 asp 站点添加功能,但遇到了一个有趣的问题。页面上的以下行导致有用的错误“需要对象:''” strServerName = Request.ServerVariables("ser
我有一个经典的 ASP 应用程序,我正在处理日期截止。我的服务器位于中部时间,但我在东部时间。发生的情况是我的应用程序认为它早了一个小时,而我的截止时间晚了一个小时。我敢肯定,如果用户在太平洋时间,他
我是经典 ASP 的初学者。需要拆分一个由逗号分隔的许多电子邮件组成的字符串,并使用稍后生成的附加代码将结果插入(逐个电子邮件)到表格中。每条记录都应该有一个电子邮件地址。问题是我陷入了数组范围错误。
这个问题已经有答案了: one condition, multiple events (2 个回答) 已关闭 6 年前。 如何用更小的语句替换 1,2,3..。我尝试将 1 放入 10,但显示错误。
我是 ExtJS 的新手,所以我不知道是否可能。 Google 只回答如何为图表制作工具提示,所以... 我需要制作一个带有工具提示的网格,当用户将鼠标放在单元格上时将显示该工具提示。在该工具提示中,
我正在使用一个非常奇怪的 VB 版本...它不需要我告诉它什么是什么,它想自己弄清楚。 在 C# 中,我可以轻松地对数组进行硬编码...在 VB 中则不然。 我想在调用函数时创建一个硬编码数组...但
我的数据库访问代码如下: set recordset = Server.CReateObject("ADODB.Recordset") set cmd1 = Server.CreateObject(
我有 html 按钮和文本框的代码:文本框是我输入文本的地方,以便我可以在表格上进行一些更改。 'textbox " /> 'button Clear 我现在需要做的是单击“清除”按
我有一个表单,提交后会通过电子邮件发送。该表单使用 JavaScript 进行验证。经典 ASP 处理表单,即获取输入的数据、创建然后发送电子邮件。有报道称正在提交空白表格。仅发送标题和 Logo 。
加载页面 A.asp 默认情况下正在执行,从那里开始执行电子邮件的情况,如果是电子邮件,我们将调用页面 B。我想在控件被执行时执行相同的电子邮件情况从页面 B 转移到页面 A。请帮助我。 Page A
我正在使用经典 ASP 开发一个项目,例如,我想添加一些用户作为临时列表,当我提交表单时,这些数据将保存到数据库中。 我知道如何在 asp.net 中使用它,但不知道如何在经典 asp 中使用它。 例
我有一个带有简单 html 表的经典 ASP 页面,我想根据从数据库中提取的未知数量的记录循环表行,但是,当我使用 do/while 循环循环记录时,我收到一条错误消息,指出 Either BOF o
嘿,一直在寻找一段时间,但我似乎找不到任何有关如何在经典 asp 中处理日期的信息。 现在,我需要一种方法来计算今年过去的天数。我正在考虑一个简单的函数,它将获取当前日期,然后使用 (day = 1,
我是一名优秀的程序员,十分优秀!